Class: Vidispine::API::Client::Requests::ImportPlaceholderItem

Inherits:
BaseRequest
  • Object
show all
Defined in:
lib/vidispine/api/client/requests/import_placeholder_item.rb

Overview

Constant Summary collapse

HTTP_METHOD =
:post
HTTP_PATH =
'/import/placeholder/#{path_arguments[:item_id]}/#{path_arguments[:item_type]}'
PARAMETERS =
[
  { :name => :item_id, :required => true, :send_in => :path },
  { :name => :item_type, :required => true, :send_in => :path },

  :allowReimport,
  :createThumbnails,
  :fastStartLength,
  :fileId,
  :growing,
  :index,
  :jobmetadata,
  'no-transcode',
  :notification,
  :notificationDta,
  :original,
  :overrideFastStart,
  :priority,
  :resourceId,
  :requireFastStart,
  :settings,
  :shapeId,
  :tag,
  :thumbnailService,
  :uri
]

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_parametersObject



35
36
37
38
39
# File 'lib/vidispine/api/client/requests/import_placeholder_item.rb', line 35

def after_process_parameters
  # URI Needs to be escaped twice, so we do it once here and then again when the query is built
  _uri = arguments[:uri]
  arguments[:uri] = CGI.escape(_uri) if _uri
end