X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d6cc9d6e055974384be446f6da8218ff7da048ae..91bee39e7e5bcba0d5e418b532fc34949ffbefa8:/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 3b099ed794..7c694698e0 100644 --- a/services/api/app/models/pipeline_template.rb +++ b/services/api/app/models/pipeline_template.rb @@ -1,5 +1,12 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class PipelineTemplate < ArvadosModel - include AssignUuid + before_create :create_disabled + before_update :update_disabled + + include HasUuid include KindAndEtag include CommonApiTemplate serialize :components, Hash @@ -7,5 +14,18 @@ class PipelineTemplate < ArvadosModel 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