Sha256: bb12c6894ac10d12c8b05a6c2e6aa7199f4e4bb3032a391b1421c03aa541efea

Contents?: true

Size: 1.84 KB

Versions: 5

Compression:

Stored size: 1.84 KB

Contents

module ApiStub
  module Requests
    module Network
      class VirtualNetworkGateway
        def self.create_virtual_network_gateway_response(network_client)
          network_gateway = '{
            "name": "myvirtualgateway1",
            "location": "West US",
            "tags": { "key1": "value1" },
            "properties": {
              "gatewayType": "DynamicRouting",
              "gatewaySize": "Default",
              "bgpEnabled": true,
              "vpnClientAddressPool": [ "{vpnClientAddressPoolPrefix}" ],
              "defaultSites": [ "mysite1" ]
            }
          }'
          gateway_mapper = Azure::ARM::Network::Models::VirtualNetworkGateway.mapper
          network_client.deserialize(gateway_mapper, JSON.load(network_gateway), 'result.body')
        end

        def self.list_virtual_network_gateway_response(network_client)
          network_gateway = '{
            "value": [
              {
                "name": "myvirtualgateway1",
                "location": "West US",
                "tags": { "key1": "value1" },
                "properties": {
                  "gatewayType": "DynamicRouting",
                  "gatewaySize": "Default",
                  "bgpEnabled": true,
                  "vpnClientAddressPool": [ "{vpnClientAddressPoolPrefix}" ],
                  "defaultSites": [ "mysite1" ]
                }
              }
            ]
          }'
          gateway_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayListResult.mapper
          network_client.deserialize(gateway_mapper, JSON.load(network_gateway), 'result.body')
        end

        def self.delete_virtual_network_gateway_response
          MsRestAzure::AzureOperationResponse.new(MsRest::HttpOperationRequest.new('', '', ''), Faraday::Response.new)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.0 test/api_stub/requests/network/virtual_network_gateway.rb
fog-azure-rm-0.0.9 test/api_stub/requests/network/virtual_network_gateway.rb
fog-azure-rm-0.0.8 test/api_stub/requests/network/virtual_network_gateway.rb
fog-azure-rm-0.0.6 test/api_stub/requests/network/virtual_network_gateway.rb
fog-azure-rm-0.0.5 test/api_stub/requests/network/virtual_network_gateway.rb