X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b3b64d046641ccc39e4f4d6fab85a8b831732d51..0adb096afc227db376823f84956de6d7ea30dc10:/apps/workbench/app/models/container_request.rb?ds=sidebyside diff --git a/apps/workbench/app/models/container_request.rb b/apps/workbench/app/models/container_request.rb index b41cec9c83..3c08d94989 100644 --- a/apps/workbench/app/models/container_request.rb +++ b/apps/workbench/app/models/container_request.rb @@ -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