Sha256: c6e6c8f810d0accc2ae11d3ea653672a94f7600967b700364b2d5ff5d3028e81

Contents?: true

Size: 1.05 KB

Versions: 13

Compression:

Stored size: 1.05 KB

Contents

module Vidispine::API::Client::Requests

  # @see http://apidoc.vidispine.com/4.2/ref/item/import.html#import-using-a-uri
  class ImportUsingURI < BaseRequest

    HTTP_METHOD = :post
    HTTP_PATH = '/import'

    PARAMETERS = [
      { :name => :uri, :aliases => [ :url ], :required => true },
      :tag,
      :original,
      :thumbnails,
      :thumbnailService,
      :createPosers,
      :overrideFastStart,
      :requireFastStart,
      :fastStartLength,
      :storageId,
      :filename,
      :growing,
      :xmpfile,
      :sidecar,
      'no-transcode',
      :notification,
      :notificationData,
      :priority,
      :jobmetadata,
      { :name => :MetadataDocument, :aliases => [ :metadata ], :default_value => { }, :send_in => :body },
    ]

    # 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

    def body
      @body ||= arguments[:MetadataDocument]
    end

  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
vidispine-1.6.5 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.6.4 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.6.3 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.6.2 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.6.1 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.6.0 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.5.5 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.5.4 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.5.3 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.5.2 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.5.1 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.5.0 lib/vidispine/api/client/requests/import_using_uri.rb
vidispine-1.4.0 lib/vidispine/api/client/requests/import_using_uri.rb