Class: AsposeEmailCloud::FileApi
- Inherits:
-
Object
- Object
- AsposeEmailCloud::FileApi
- Defined in:
- lib/aspose-email-cloud/api/file_api.rb
Overview
FileApi operations.
Instance Attribute Summary collapse
-
#api_invoker ⇒ Object
readonly
Returns the value of attribute api_invoker.
Instance Method Summary collapse
-
#copy_file(request) ⇒ nil
Copy file.
-
#delete_file(request) ⇒ nil
Delete file.
-
#download_file(request) ⇒ File
Download file.
-
#initialize(api_invoker) ⇒ FileApi
constructor
Initializes a new instance of the FileApi class.
-
#move_file(request) ⇒ nil
Move file.
-
#upload_file(request) ⇒ FilesUploadResult
Upload file.
Constructor Details
#initialize(api_invoker) ⇒ FileApi
Initializes a new instance of the FileApi class.
45 46 47 |
# File 'lib/aspose-email-cloud/api/file_api.rb', line 45 def initialize(api_invoker) @api_invoker = api_invoker end |
Instance Attribute Details
#api_invoker ⇒ Object (readonly)
Returns the value of attribute api_invoker.
31 32 33 |
# File 'lib/aspose-email-cloud/api/file_api.rb', line 31 def api_invoker @api_invoker end |
Instance Method Details
#copy_file(request) ⇒ nil
Copy file
52 53 54 55 56 |
# File 'lib/aspose-email-cloud/api/file_api.rb', line 52 def copy_file(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :PUT, nil) nil end |
#delete_file(request) ⇒ nil
Delete file
61 62 63 64 65 |
# File 'lib/aspose-email-cloud/api/file_api.rb', line 61 def delete_file(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :DELETE, nil) nil end |
#download_file(request) ⇒ File
Download file
70 71 72 73 |
# File 'lib/aspose-email-cloud/api/file_api.rb', line 70 def download_file(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :GET, 'File') end |
#move_file(request) ⇒ nil
Move file
78 79 80 81 82 |
# File 'lib/aspose-email-cloud/api/file_api.rb', line 78 def move_file(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :PUT, nil) nil end |
#upload_file(request) ⇒ FilesUploadResult
Upload file
87 88 89 90 |
# File 'lib/aspose-email-cloud/api/file_api.rb', line 87 def upload_file(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :PUT, 'FilesUploadResult') end |