Sha256: ba1b5d8b4026e033c23fde81fa64036db661904bb7923c5ad1b9532da47c5551
Contents?: true
Size: 1.17 KB
Versions: 5
Compression:
Stored size: 1.17 KB
Contents
module Fog module Storage class AzureRM # This class provides the actual implementation for service calls. class Real def get_container_properties(name, options = {}) msg = "Getting container properties: #{name}." Fog::Logger.debug msg begin container_properties = @blob_client.get_container_properties(name, options) rescue Azure::Core::Http::HTTPError => ex raise_azure_exception(ex, msg) end Fog::Logger.debug "Getting properties of container #{name} successfully." container_properties end end # This class provides the mock implementation for unit tests. class Mock def get_container_properties(*) { 'name' => 'testcontainer1', 'properties' => { 'last_modified' => 'Mon, 04 Jul 2016 02:50:20 GMT', 'etag' => '0x8D3A3B5F017F52D', 'lease_status' => 'unlocked', 'lease_state' => 'available' }, 'metadata' => {} } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems