Sha256: 2b80ae20889a6800074fb755e99f07e7ece9f1acc54e56e409ad6292207b323e
Contents?: true
Size: 1019 Bytes
Versions: 2
Compression:
Stored size: 1019 Bytes
Contents
module Fog module Storage class AzureRM # This class provides the actual implementation for service calls. class Real def get_container_metadata(name) msg = "Getting Container #{name} metadata." Fog::Logger.debug msg begin container = @blob_client.get_container_metadata(name) rescue Azure::Core::Http::HTTPError => ex raise_azure_exception(ex, msg) end Fog::Logger.debug "Getting metadata of container #{name} successfully." container.metadata end end # This class provides the mock implementation for unit tests. class Mock def get_container_metadata(*) { 'container-name' => 'testcontainer1', 'created-by' => 'User', 'source-machine' => 'Test-machine', 'category' => 'guidance', 'doctype' => 'textDocuments' } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.6 | lib/fog/azurerm/requests/storage/get_container_metadata.rb |
fog-azure-rm-0.0.5 | lib/fog/azurerm/requests/storage/get_container_metadata.rb |