Sha256: 71faa3f209b2499ea0e14fd2d682dc890a105a55625bdf6b90117ee0a3af5948
Contents?: true
Size: 1.29 KB
Versions: 5
Compression:
Stored size: 1.29 KB
Contents
module Fog module Storage class AzureRM # This class provides the actual implementation for service calls. class Real def get_storage_access_keys(resource_group, storage_account_name, options = {}) msg = "Getting storage access keys for storage account: #{storage_account_name}." Fog::Logger.debug msg begin storage_account_keys = @storage_mgmt_client.storage_accounts.list_keys(resource_group, storage_account_name, options) rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end Fog::Logger.debug "Storage access keys for storage account: #{storage_account_name} listed successfully." storage_account_keys.keys end end # This class provides the mock implementation. class Mock def get_storage_access_keys(_resource_group, storage_account_name, _options = {}) Fog::Logger.debug "Getting storage access keys for storage account: #{storage_account_name}." Fog::Logger.debug "Storage access keys for storage account: #{storage_account_name} listed successfully." { 'key1' => 'key1 value', 'key2' => 'key2 value' } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems