Sha256: 9723700602797246885abf02a43560abfba3dc0b6300c304039184d2a5a633b9
Contents?: true
Size: 882 Bytes
Versions: 2
Compression:
Stored size: 882 Bytes
Contents
module Fog module Resources class AzureRM class Real def list_resource_groups begin promise = @rmc.resource_groups.list response = promise.value! response.body.value rescue MsRestAzure::AzureOperationError => e msg = "Exception listing Resource Groups. #{e.body['error']['message']}" raise msg end end end class Mock def list_resource_groups resource_group = ::Azure::ARM::Resources::Models::ResourceGroup.new resource_group.id = '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-resource-group' resource_group.name = 'fog-test-resource-group' resource_group.location = 'West US' [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/resources/list_resource_groups.rb |
fog-azure-rm-0.0.0 | lib/fog/azurerm/requests/resources/list_resource_groups.rb |