Sha256: cf42d9bcb0dfe89054c52ee8b5bff5c5528d7500d54c420c7f6094d2387496f4

Contents?: true

Size: 1.79 KB

Versions: 47

Compression:

Stored size: 1.79 KB

Contents

module ApiStub
  module Models
    module Network
      # Mock class for Express Route Circuit Model
      class ExpressRouteCircuit
        def self.create_express_route_circuit_response(network_client)
          circuit = '{
            "name": "<circuit name>",
            "id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/testCircuit",
            "location": "<location>",
            "tags": {
              "key1": "value1",
              "key2": "value2"
            },
            "sku": {
              "name": "Standard_MeteredData",
              "tier": "Standard",
              "family": "MeteredData"
            },
            "properties": {
              "serviceProviderProperties": {
                  "serviceProviderName": "serviceProviderName",
                  "peeringLocation": "<peering location>",
                  "bandwidthInMbps": 100
              },
              "peerings": [
                {
                  "name": "AzurePublicPeering",
                  "id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}",
                  "properties": {
                    "peeringType": "AzurePublicPeering",
                    "peerASN": 100,
                    "PrimaryPeerAddressPrefix": "192.168.1.0/30",
                    "SecondaryPeerAddressPrefix": "192.168.2.0/30",
                    "vlanId": 200
                  }
                }
              ]
            }
          }'
          express_route_circuit_mapper = Azure::ARM::Network::Models::ExpressRouteCircuit.mapper
          network_client.deserialize(express_route_circuit_mapper, Fog::JSON.decode(circuit), '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/express_route_circuit.rb
fog-azure-rm-0.5.3 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.5.2 test/api_stub/models/network/express_route_circuit.rb
far-gem-0.5.6 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.5.1 test/api_stub/models/network/express_route_circuit.rb
far-gem-0.5.5 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.5.0 test/api_stub/models/network/express_route_circuit.rb
far-gem-0.5.4 test/api_stub/models/network/express_route_circuit.rb
far-gem-0.5.3 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.4.9 test/api_stub/models/network/express_route_circuit.rb
far-gem-0.5.2 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.4.8 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.4.7 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.4.6 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.4.5 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-temp-0.0.5 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.4.4 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.4.3 test/api_stub/models/network/express_route_circuit.rb
far-gem-0.5.1 test/api_stub/models/network/express_route_circuit.rb
fog-azure-rm-0.4.2 test/api_stub/models/network/express_route_circuit.rb