Sha256: d2184c44afef32b24c86ff6e42fff949d039d36f3105432402ece374447f51f0

Contents?: true

Size: 1.71 KB

Versions: 47

Compression:

Stored size: 1.71 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, Fog::JSON.decode(subnet), 'result.body')
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.5.3 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.5.2 test/api_stub/models/network/subnet.rb
far-gem-0.5.6 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.5.1 test/api_stub/models/network/subnet.rb
far-gem-0.5.5 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.5.0 test/api_stub/models/network/subnet.rb
far-gem-0.5.4 test/api_stub/models/network/subnet.rb
far-gem-0.5.3 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.4.9 test/api_stub/models/network/subnet.rb
far-gem-0.5.2 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.4.8 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.4.7 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.4.6 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.4.5 test/api_stub/models/network/subnet.rb
fog-azure-rm-temp-0.0.5 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.4.4 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.4.3 test/api_stub/models/network/subnet.rb
far-gem-0.5.1 test/api_stub/models/network/subnet.rb
fog-azure-rm-0.4.2 test/api_stub/models/network/subnet.rb