Sha256: b04c3016714c41e28dff599ad9af06927dadb524604f777d4f887af0f980a9d6

Contents?: true

Size: 1.18 KB

Versions: 47

Compression:

Stored size: 1.18 KB

Contents

module ApiStub
  module Models
    module Network
      # Mock class for Local Network Gateway Model
      class LocalNetworkGateway
        def self.create_local_network_gateway_response(network_client)
          local_network_gateway = {
            'id' => '/subscriptions/<Subscription_id>/resourceGroups/learn_fog/providers/Microsoft.Network/localNetworkGateways/testLocalNetworkGateway',
            'name' => 'testLocalNetworkGateway',
            'type' => 'Microsoft.Network/localNetworkGateways',
            'location' => 'eastus',
            'properties' =>
              {
                'local_network_address_space' => {
                  'address_prefixes' => []
                },
                'gateway_ip_address' => '192.168.1.1',
                'bgp_settings' => {
                  'asn' => 100,
                  'bgp_peering_address' => '192.168.1.2',
                  'peer_weight' => 3
                }
              }
          }
          local_network_gateway_mapper = Azure::ARM::Network::Models::LocalNetworkGateway.mapper
          network_client.deserialize(local_network_gateway_mapper, local_network_gateway, '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/local_network_gateway.rb
fog-azure-rm-0.5.3 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.5.2 test/api_stub/models/network/local_network_gateway.rb
far-gem-0.5.6 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.5.1 test/api_stub/models/network/local_network_gateway.rb
far-gem-0.5.5 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.5.0 test/api_stub/models/network/local_network_gateway.rb
far-gem-0.5.4 test/api_stub/models/network/local_network_gateway.rb
far-gem-0.5.3 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.4.9 test/api_stub/models/network/local_network_gateway.rb
far-gem-0.5.2 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.4.8 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.4.7 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.4.6 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.4.5 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-temp-0.0.5 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.4.4 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.4.3 test/api_stub/models/network/local_network_gateway.rb
far-gem-0.5.1 test/api_stub/models/network/local_network_gateway.rb
fog-azure-rm-0.4.2 test/api_stub/models/network/local_network_gateway.rb