Sha256: 47cb8041651503f9b55a809c8af05fd2f7b2e2afa9bb1aebd428fa7fc522da95

Contents?: true

Size: 1.44 KB

Versions: 47

Compression:

Stored size: 1.44 KB

Contents

module ApiStub
  module Models
    module Network
      class PublicIp
        def self.create_public_ip_response(network_client)
          public_ip = '{
             "name": "fog-test-public-ip",
             "id": "/subscriptions/{guid}/resourceGroups/fog-test-rg/providers/Microsoft.Network/publicIpAddresses/fog-test-public-ip",
             "location": "West US",
             "tags": {
                "key": "value"
             },
             "etag": "W/\"00000000-0000-0000-0000-000000000000\"",
             "properties": {
                "resourceGuid":"0CB6BF8A-FFBD-486A-A6A2-DA6633481B50",
                "provisioningState": "Succeeded",
                "ipAddress": "1.1.1.1",
                "publicIPAllocationMethod": "Dynamic",
                "idleTimeoutInMinutes": 4,
                "ipConfiguration": {
                   "id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/vm1nic1/ipConfigurations/ip1"
                },
                "dnsSettings": {
                   "domainNameLabel": "mylabel",
                   "fqdn": "mylabel.northus.cloudapp.azure.com.",
                   "reverseFqdn": "contoso.com."
                }
             }
          }'
          public_ip_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper
          network_client.deserialize(public_ip_mapper, Fog::JSON.decode(public_ip), 'result.body')
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.4.1 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.4.0 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.9 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.8 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.7 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.6 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.5 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.4 test/api_stub/models/network/public_ip.rb
fog-azure-rm-temp-0.0.4 test/api_stub/models/network/public_ip.rb
fog-azure-rm-temp-0.0.3 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.3 test/api_stub/models/network/public_ip.rb
fog-azure-rm-temp-0.0.2 test/api_stub/models/network/public_ip.rb
fog-azure-rm-temp-0.0.1 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.2 test/api_stub/models/network/public_ip.rb
fog-azure-rm-downgraded-0.3.1 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.1 test/api_stub/models/network/public_ip.rb
fog-azure-rm-downgraded-0.3.0 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.3.0 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.2.7 test/api_stub/models/network/public_ip.rb
fog-azure-rm-0.2.6 test/api_stub/models/network/public_ip.rb