Class: AsposeEmailCloud::StorageApi

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose-email-cloud/api/storage_api.rb

Overview

StorageApi operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_invoker) ⇒ StorageApi

Initializes a new instance of the StorageApi class.

Parameters:



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_invokerObject (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

Parameters:

Returns:



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

Parameters:

Returns:



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

Parameters:

Returns:



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

Parameters:

Returns:



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