Class: AsposeWordsCloud::CopyFileRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_words_cloud/models/requests/copy_file_request.rb

Overview

Request model for copy_file operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dest_path, src_path, src_storage_name = nil, dest_storage_name = nil, version_id = nil) ⇒ CopyFileRequest

Initializes a new instance.

Parameters:

  • dest_path

    Destination file path.

  • src_path

    Source file’s path e.g. ‘/Folder 1/file.ext’ or ‘/Bucket/Folder 1/file.ext’.

  • src_storage_name (defaults to: nil)

    Source storage name.

  • dest_storage_name (defaults to: nil)

    Destination storage name.

  • version_id (defaults to: nil)

    File version ID to copy.



55
56
57
58
59
60
61
# File 'lib/aspose_words_cloud/models/requests/copy_file_request.rb', line 55

def initialize(dest_path, src_path, src_storage_name = nil, dest_storage_name = nil, version_id = nil)
  self.dest_path = dest_path
  self.src_path = src_path
  self.src_storage_name = src_storage_name
  self.dest_storage_name = dest_storage_name
  self.version_id = version_id
end

Instance Attribute Details

#dest_pathObject

Destination file path.



33
34
35
# File 'lib/aspose_words_cloud/models/requests/copy_file_request.rb', line 33

def dest_path
  @dest_path
end

#dest_storage_nameObject

Destination storage name.



42
43
44
# File 'lib/aspose_words_cloud/models/requests/copy_file_request.rb', line 42

def dest_storage_name
  @dest_storage_name
end

#src_pathObject

Source file’s path e.g. ‘/Folder 1/file.ext’ or ‘/Bucket/Folder 1/file.ext’.



36
37
38
# File 'lib/aspose_words_cloud/models/requests/copy_file_request.rb', line 36

def src_path
  @src_path
end

#src_storage_nameObject

Source storage name.



39
40
41
# File 'lib/aspose_words_cloud/models/requests/copy_file_request.rb', line 39

def src_storage_name
  @src_storage_name
end

#version_idObject

File version ID to copy.



45
46
47
# File 'lib/aspose_words_cloud/models/requests/copy_file_request.rb', line 45

def version_id
  @version_id
end