+# 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