X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3db1a8bbb9f14799e0aabd12cff3c980c7da0167..e838828374ceed5ef6da260939251e86f72b6f27:/services/api/app/controllers/arvados/v1/container_requests_controller.rb diff --git a/services/api/app/controllers/arvados/v1/container_requests_controller.rb b/services/api/app/controllers/arvados/v1/container_requests_controller.rb index 6e2848ceb5..3d5d4616ef 100644 --- a/services/api/app/controllers/arvados/v1/container_requests_controller.rb +++ b/services/api/app/controllers/arvados/v1/container_requests_controller.rb @@ -1,7 +1,31 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class Arvados::V1::ContainerRequestsController < ApplicationController accept_attribute_as_json :environment, Hash accept_attribute_as_json :mounts, Hash accept_attribute_as_json :runtime_constraints, Hash accept_attribute_as_json :command, Array accept_attribute_as_json :filters, Array + accept_attribute_as_json :scheduling_parameters, Hash + accept_attribute_as_json :secret_mounts, Hash + + def self._index_requires_parameters + (super rescue {}). + merge({ + include_trash: { + type: 'boolean', required: false, description: "Include container requests whose owner project is trashed." + }, + }) + end + + def self._show_requires_parameters + (super rescue {}). + merge({ + include_trash: { + type: 'boolean', required: false, description: "Show container request even if its owner project is trashed." + }, + }) + end end