Sha256: d57aabd49f9b9fd6661e068b2567f3ff7fdd54c8be10494e6842c2c2d46f8b20
Contents?: true
Size: 846 Bytes
Versions: 2
Compression:
Stored size: 846 Bytes
Contents
# rubocop:disable LineLength module Fog module Storage class AzureRM # This class provides the actual implemention for service calls. class Real def list_storage_account_for_rg(resource_group) begin promise = @storage_mgmt_client.storage_accounts.list_by_resource_group(resource_group) response = promise.value! response.body.value rescue MsRestAzure::AzureOperationError => e msg = "Exception listing Storage Accounts in Resource Group #{resource_group}. #{e.body['error']['message']}" raise msg end end end # This class provides the mock implementation for unit tests. class Mock def list_storage_account_for_rg(resource_group) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.1 | lib/fog/azurerm/requests/storage/list_storage_account_for_rg.rb |
fog-azure-rm-0.0.0 | lib/fog/azurerm/requests/storage/list_storage_account_for_rg.rb |