Merge branch '13561-collection-versions-doc'
[arvados.git] / apps / workbench / app / models / container_request.rb
index b41cec9c836d160214c96057a11a3d4309550daa..3c08d94989e0eba7231fb8db6b7318aa693e0bfe 100644 (file)
@@ -1,9 +1,21 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class ContainerRequest < ArvadosBase
-  def cancel
-    arvados_api_client.api "container_requests/#{self.uuid}/", "cancel", {}
+  def self.creatable?
+    false
+  end
+
+  def textile_attributes
+    [ 'description' ]
+  end
+
+  def self.goes_in_projects?
+    true
   end
 
-  def work_unit(label=nil)
-    ContainerWorkUnit.new(self, label)
+  def work_unit(label=nil, child_objects=nil)
+    ContainerWorkUnit.new(self, label, self.uuid, child_objects=child_objects)
   end
 end