X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2d4263c16812a906589cbc13be26535a85691bd8..df1ebc0e3184afd3fb66414651fc1aec713928bf:/services/api/app/models/pipeline_template.rb diff --git a/services/api/app/models/pipeline_template.rb b/services/api/app/models/pipeline_template.rb index 97e1426f02..7c694698e0 100644 --- a/services/api/app/models/pipeline_template.rb +++ b/services/api/app/models/pipeline_template.rb @@ -1,11 +1,31 @@ -class PipelineTemplate < OrvosModel - include AssignUuid +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +class PipelineTemplate < ArvadosModel + before_create :create_disabled + before_update :update_disabled + + include HasUuid include KindAndEtag include CommonApiTemplate serialize :components, Hash - api_accessible :superuser, :extend => :common do |t| + api_accessible :user, extend: :common do |t| t.add :name t.add :components + t.add :description + end + + def self.limit_index_columns_read + ["components"] + end + + def create_disabled + raise "Disabled" + end + + def update_disabled + raise "Disabled" end end