Class: Etna::Clients::Metis::UploadBlobRequest

Inherits:
Struct
  • Object
show all
Includes:
MultipartSerializableNestedHash
Defined in:
lib/etna/clients/metis/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MultipartSerializableNestedHash

included

Constructor Details

#initialize(args) ⇒ UploadBlobRequest

Returns a new instance of UploadBlobRequest.



386
387
388
# File 'lib/etna/clients/metis/models.rb', line 386

def initialize(args)
  super({ action: UploadAction::BLOB }.update(args))
end

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



383
384
385
# File 'lib/etna/clients/metis/models.rb', line 383

def action
  @action
end

#blob_dataObject

Returns the value of attribute blob_data

Returns:

  • (Object)

    the current value of blob_data



383
384
385
# File 'lib/etna/clients/metis/models.rb', line 383

def blob_data
  @blob_data
end

#current_byte_positionObject

Returns the value of attribute current_byte_position

Returns:

  • (Object)

    the current value of current_byte_position



383
384
385
# File 'lib/etna/clients/metis/models.rb', line 383

def current_byte_position
  @current_byte_position
end

#file_sizeObject

Returns the value of attribute file_size

Returns:

  • (Object)

    the current value of file_size



383
384
385
# File 'lib/etna/clients/metis/models.rb', line 383

def file_size
  @file_size
end

#metis_uidObject

Returns the value of attribute metis_uid

Returns:

  • (Object)

    the current value of metis_uid



383
384
385
# File 'lib/etna/clients/metis/models.rb', line 383

def metis_uid
  @metis_uid
end

#next_blob_hashObject

Returns the value of attribute next_blob_hash

Returns:

  • (Object)

    the current value of next_blob_hash



383
384
385
# File 'lib/etna/clients/metis/models.rb', line 383

def next_blob_hash
  @next_blob_hash
end

#next_blob_sizeObject

Returns the value of attribute next_blob_size

Returns:

  • (Object)

    the current value of next_blob_size



383
384
385
# File 'lib/etna/clients/metis/models.rb', line 383

def next_blob_size
  @next_blob_size
end

#upload_pathObject

Returns the value of attribute upload_path

Returns:

  • (Object)

    the current value of upload_path



383
384
385
# File 'lib/etna/clients/metis/models.rb', line 383

def upload_path
  @upload_path
end

Instance Method Details

#encode_multipart_content(base_key = '') ⇒ Object



390
391
392
# File 'lib/etna/clients/metis/models.rb', line 390

def encode_multipart_content(base_key = '')
  self.class.encode_multipart_content(to_h, base_key)
end