Class: AsposeEmailCloud::StorageApi
- Inherits:
-
Object
- Object
- AsposeEmailCloud::StorageApi
- Defined in:
- lib/aspose-email-cloud/api/storage_api.rb
Overview
StorageApi operations.
Instance Attribute Summary collapse
-
#api_invoker ⇒ Object
readonly
Returns the value of attribute api_invoker.
Instance Method Summary collapse
-
#exists(request) ⇒ StorageExist
Check if storage exists.
-
#get_disc_usage(request) ⇒ DiscUsage
Get disc usage.
-
#get_file_versions(request) ⇒ FileVersions
Get file versions.
-
#initialize(api_invoker) ⇒ StorageApi
constructor
Initializes a new instance of the StorageApi class.
-
#object_exists(request) ⇒ ObjectExist
Check if file or folder exists.
Constructor Details
#initialize(api_invoker) ⇒ StorageApi
Initializes a new instance of the StorageApi class.
45 46 47 |
# File 'lib/aspose-email-cloud/api/storage_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/storage_api.rb', line 31 def api_invoker @api_invoker end |
Instance Method Details
#exists(request) ⇒ StorageExist
Check if storage exists
76 77 78 79 |
# File 'lib/aspose-email-cloud/api/storage_api.rb', line 76 def exists(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :GET, 'StorageExist') end |
#get_disc_usage(request) ⇒ DiscUsage
Get disc usage
52 53 54 55 |
# File 'lib/aspose-email-cloud/api/storage_api.rb', line 52 def get_disc_usage(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :GET, 'DiscUsage') end |
#get_file_versions(request) ⇒ FileVersions
Get file versions
60 61 62 63 |
# File 'lib/aspose-email-cloud/api/storage_api.rb', line 60 def get_file_versions(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :GET, 'FileVersions') end |
#object_exists(request) ⇒ ObjectExist
Check if file or folder exists
68 69 70 71 |
# File 'lib/aspose-email-cloud/api/storage_api.rb', line 68 def object_exists(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :GET, 'ObjectExist') end |