Merge branch '19177-sharing-links-ui-config'. Refs #19177
[arvados.git] / services / api / app / models / pipeline_template.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class PipelineTemplate < ArvadosModel
6   before_create :create_disabled
7   before_update :update_disabled
8
9   include HasUuid
10   include KindAndEtag
11   include CommonApiTemplate
12   serialize :components, Hash
13
14   api_accessible :user, extend: :common do |t|
15     t.add :name
16     t.add :components
17     t.add :description
18   end
19
20   def self.limit_index_columns_read
21     ["components"]
22   end
23
24   def create_disabled
25     raise "Disabled"
26   end
27
28   def update_disabled
29     raise "Disabled"
30   end
31 end