Sha256: 8f386f4b2c01927416067c9008ff9bd03f6fc4976616e2431c36bd7740ab9e8e
Contents?: true
Size: 1.74 KB
Versions: 5
Compression:
Stored size: 1.74 KB
Contents
module ApiStub module Models module Network class Subnet def self.create_subnet_response(network_client) subnet = '{ "name":"fog-test-subnet", "id":"/subscriptions/{guid}/resourceGroups/fog-test-rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/fog-test-subnet", "etag":"W/\"00000000-0000-0000-0000-000000000000\"", "properties":{ "provisioningState":"Succeeded", "addressPrefix":"10.1.0.0/24", "networkSecurityGroup":{ "id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/myNSG1" }, "routeTable": { "id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/myRT1" }, "ipConfigurations":[ { "id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/vm1nic1/ipConfigurations/ip1" }, { "id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/lb1/frontendIpConfigurations/ip1" }, { "id":"/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/gw1/ipConfigurations/ip1" } ] } }' subnet_mapper = Azure::ARM::Network::Models::Subnet.mapper network_client.deserialize(subnet_mapper, JSON.load(subnet), 'result.body') end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems