Class: Ubiquity::Envoi::API::Client::Requests::MediaFileAddFile
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Ubiquity::Envoi::API::Client::Requests::MediaFileAddFile
- Defined in:
- lib/ubiquity/envoi/api/client/requests/media_file_add_file.rb
Overview
Constant Summary collapse
- HTTP_METHOD =
:post
- HTTP_PATH =
'/media-files/media-file/#{path_arguments[:media_file_id]}/file'
- DEFAULT_PARAMETER_SEND_IN_VALUE =
:body
- PARAMETERS =
[ { :name => :media_file_id, :aliases => [ :id ], :required => true, :send_in => :path }, { :name => :shape_type, :aliases => [ :type ], :required => true }, { :name => :shape_label, :aliases => [ :label ], :required => true }, { :name => :name, :required => true }, { :name => :mime, :required => true }, { :name => :path }, { :name => :size, :required => true }, { :name => :width }, { :name => :height }, { :name => :duration }, { :name => :setting_id }, { :name => :storage_key }, { :name => :storage_info }, { :name => :uri, :aliases => [ :url ] } ]
Constants inherited from BaseRequest
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, #initial_options, #initialized, #missing_required_arguments, #options, #parameters, #path, #processed_parameters, #query, #response
Instance Method Summary collapse
Methods inherited from BaseRequest
#after_initialize, #base_path, #before_process_parameters, #body_arguments, #eval_http_path?, #execute, #http_client, #http_method, #http_path, #http_response, #http_success_code, #initialize, #initialize_attributes, normalize_argument_hash_keys, normalize_parameter_name, #path_arguments, process_parameter, #process_parameters, process_parameters, #query_arguments, #relative_path, #success?, #uri_request_path
Constructor Details
This class inherits a constructor from Ubiquity::Envoi::API::Client::Requests::BaseRequest
Instance Method Details
#after_process_parameters ⇒ Object
27 28 29 |
# File 'lib/ubiquity/envoi/api/client/requests/media_file_add_file.rb', line 27 def after_process_parameters # arguments.delete(:folderId) if arguments[:folderId].to_s == '0' end |