Method: Aspose::Cloud::AsposeStorage::Folder#get_disc_usage
- Defined in:
- lib/Storage/folder.rb
#get_disc_usage(storage_type = 'Aspose', storage_name = '') ⇒ Object
Get Disk Usage
107 108 109 110 111 112 113 114 |
# File 'lib/Storage/folder.rb', line 107 def get_disc_usage (storage_type = 'Aspose', storage_name = '') str_uri = @str_uri_disc str_uri = Aspose::Cloud::Common::Utils.append_storage(str_uri,'',storage_name,storage_type) signed_uri = Aspose::Cloud::Common::Utils.sign(str_uri) response = RestClient.get(signed_uri, :accept => 'application/json') JSON.parse(response)['DiscUsage'] end |