Sha256: 8a69e9ca741fdd9bc62fa379701532716e3a93acc9c033a745da934182ff93bb
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
module Fog module Network class AzureRM class Real def list_virtual_networks(resource_group) begin response = @network_client.virtual_networks.list(resource_group) result = response.value! result.body.value rescue MsRestAzure::AzureOperationError => e msg = "Exception listing Virtual Networks. #{e.body['error']['message']}." raise msg end end end class Mock def list_virtual_networks vnet = Azure::ARM::Network::Models::VirtualNetwork.new vnet.id = '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-resource-group/providers/Microsoft.Network/virtualNetworks/fogtestvnet' vnet.name = 'fogtestvnet' vnet.location = 'West US' vnet.properties = Azure::ARM::Network::Models::VirtualNetworkPropertiesFormat.new [vnet] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.1 | lib/fog/azurerm/requests/network/list_virtual_networks.rb |