Sha256: 45ed581d63b45c730bd28b0a9e454c2f1f8992cc95934e891a74fa49c5f88bd9

Contents?: true

Size: 1.38 KB

Versions: 47

Compression:

Stored size: 1.38 KB

Contents

module ApiStub
  module Models
    module Network
      # Mock class for Virtual Network Gateway Connection Models
      class VirtualNetworkGatewayConnection
        def self.create_virtual_network_gateway_connection_response(network_client)
          gateway_connection = '{
            "name": "cn1",
            "id": "/subscriptions/{subscription-id}/resourceGroups/{resource_group_name}/providers/microsoft.network/connections/connection1",
            "location": "West US",
            "tags": { "key1": "value1" },
            "properties": {
              "virtualNetworkGateway1": {
                "name": "firstgateway",
                "id": "/subscriptions/{subscription-id}/resourceGroups/{resource_group_name}/providers/microsoft.network/SiteToSite/firstgateway"
              },
              "virtualNetworkGateway2": {
                "name": "secondgateway",
                "id": "/subscriptions/{subscription-id}/resourceGroups/{resource_group_name}/providers/microsoft.network/SiteToSite/secondgateway"
              },
              "connectionType": "SiteToSite",
              "connectivityState": "Connected"
            }
          }'
          connection_mapper = Azure::ARM::Network::Models::VirtualNetworkGatewayConnection.mapper
          network_client.deserialize(connection_mapper, Fog::JSON.decode(gateway_connection), '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/virtual_network_gateway_connection.rb
fog-azure-rm-0.5.3 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.5.2 test/api_stub/models/network/virtual_network_gateway_connection.rb
far-gem-0.5.6 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.5.1 test/api_stub/models/network/virtual_network_gateway_connection.rb
far-gem-0.5.5 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.5.0 test/api_stub/models/network/virtual_network_gateway_connection.rb
far-gem-0.5.4 test/api_stub/models/network/virtual_network_gateway_connection.rb
far-gem-0.5.3 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.4.9 test/api_stub/models/network/virtual_network_gateway_connection.rb
far-gem-0.5.2 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.4.8 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.4.7 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.4.6 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.4.5 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-temp-0.0.5 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.4.4 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.4.3 test/api_stub/models/network/virtual_network_gateway_connection.rb
far-gem-0.5.1 test/api_stub/models/network/virtual_network_gateway_connection.rb
fog-azure-rm-0.4.2 test/api_stub/models/network/virtual_network_gateway_connection.rb