Class: Vidispine::API::Client::Requests::CollectionAccessDelete
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Vidispine::API::Client::Requests::CollectionAccessDelete
- Defined in:
- lib/vidispine/api/client/requests/collection_access_delete.rb
Overview
Constant Summary collapse
- HTTP_METHOD =
:delete
- HTTP_PATH =
'/collection/#{path_arguments[:collection_id] ? "#{path_arguments[:collection_id]}/" : ""}access/#{path_arguments[:access_id]}'
- PARAMETERS =
[ { :name => :collection_id, :send_in => :path }, { :name => :access_id, :send_in => :path, :required => true }, { :name => :allow_all_collections, :aliases => [ :all_collections ], :send_in => :none } ]
Constants inherited from BaseRequest
BaseRequest::DEFAULT_PARAMETER_SEND_IN_VALUE, BaseRequest::HTTP_BASE_PATH, BaseRequest::HTTP_SUCCESS_CODE
Instance Attribute Summary
Attributes inherited from BaseRequest
#arguments, #body, #client, #default_parameter_send_in_value, #initial_arguments, #missing_required_arguments, #options, #parameters, #path, #processed_parameters, #query
Instance Method Summary collapse
Methods inherited from BaseRequest
#after_initialize, #base_path, #before_process_parameters, #body_arguments, #eval_http_path?, #http_method, #http_path, #http_success_code, #initialize, #matrix, #matrix_arguments, normalize_argument_hash_keys, normalize_parameter_name, #path_arguments, #path_only, process_parameter, #process_parameters, process_parameters, #query_arguments, #reset_attributes, #success?, #uri_request_path
Constructor Details
This class inherits a constructor from Vidispine::API::Client::Requests::BaseRequest
Instance Method Details
#after_process_parameters ⇒ Object
16 17 18 19 20 21 |
# File 'lib/vidispine/api/client/requests/collection_access_delete.rb', line 16 def after_process_parameters _collection_id = arguments[:collection_id] unless (arguments[:allow_all_collections] == true) || (_collection_id && !_collection_id.empty?) raise ArgumentError, 'Collection ID is required unless :allow_all_collections parameter is set to true.' end end |