X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/62121f9b2f15cd35a6ce5b6e66ccaaae1c1af834..d6598fd6339e6219a7103781433356dfde546527:/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