Sha256: a66c20a4d5e6ff11640bfc975398875e7968900ffb3b9070dd17afab11cab512
Contents?: true
Size: 1.86 KB
Versions: 5
Compression:
Stored size: 1.86 KB
Contents
module Fog module Storage class AzureRM # This class provides the actual implementation for service calls. class Real def list_storage_accounts msg = 'Listing Storage Accounts.' Fog::Logger.debug msg begin result = @storage_mgmt_client.storage_accounts.list rescue MsRestAzure::AzureOperationError => e raise_azure_exception(e, msg) end result.value end end # This class provides the mock implementation for unit tests. class Mock def list_storage_accounts [ { 'id' => '/subscriptions/{subscriptionId}/resourceGroups/mock_test_resource_group/providers/Microsoft.Storage/storageAccounts/mock_test_storage_account', 'name' => 'mock_test_storage_account', 'type' => 'Microsoft.Storage/storageAccounts', 'location' => 'westus', 'tags' => {}, 'properties' => { 'provisioningState' => 'Succeeded', 'accountType' => 'Standard_LRS', 'primaryEndpoints' => { 'blob' => 'https://mock_test_storage_account.blob.core.windows.net/', 'queue' => 'https://mock_test_storage_account.queue.core.windows.net/', 'table' => 'https://mock_test_storage_account.table.core.windows.net/', 'file' => 'https://mock_test_storage_account.file.core.windows.net/' }, 'primaryLocation' => 'westus', 'statusOfPrimary' => 'available', 'lastGeoFailoverTime' => '2016-05-19T09:49:07Z', 'creationTime' => '2016-05-19T05:24:36Z' } } ] end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems