Sha256: 46a032fa6e186c90e2433b1eec51d1e223d8d5f5f3fead657052cd7db803a373

Contents?: true

Size: 1.81 KB

Versions: 47

Compression:

Stored size: 1.81 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, Fog::JSON.decode(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, Fog::JSON.decode(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

47 entries across 47 versions & 4 rubygems

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