Sha256: 58ec06b4b860f1ac81535c8b60c3fc7c0d1bd14e16fe519fd11863d9d0b39a2b

Contents?: true

Size: 1.56 KB

Versions: 47

Compression:

Stored size: 1.56 KB

Contents

module ApiStub
  module Models
    module Network
      # Mock class for Express Route Circuit Peering Model
      class ExpressRouteCircuitPeering
        def self.create_express_route_circuit_peering_response(network_client)
          peering = '{
                        "name": "MicrosoftPeering",
                        "id": "/subscriptions/{guid}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}",
                        "properties": {
                            "peeringType": "MicrosoftPeering",
                            "peerASN": 100,
                            "primaryPeerAddressPrefix": "192.168.1.0/30",
                            "secondaryPeerAddressPrefix": "192.168.2.0/30",
                            "vlanId": 200,
                            "microsoftPeeringConfig": {
                              "advertisedpublicprefixes": [
                                "11.2.3.4/30",
                                "12.2.3.4/30"
                              ],
                              "advertisedPublicPrefixState": "NotConfigured ",
                              "customerAsn": 200,
                              "routingRegistryName": "<name>"
                            }
                          }
                  }'
          express_route_circuit_peering_mapper = Azure::ARM::Network::Models::ExpressRouteCircuitPeering.mapper
          network_client.deserialize(express_route_circuit_peering_mapper, Fog::JSON.decode(peering), '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_peering.rb
fog-azure-rm-0.5.3 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.5.2 test/api_stub/models/network/express_route_circuit_peering.rb
far-gem-0.5.6 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.5.1 test/api_stub/models/network/express_route_circuit_peering.rb
far-gem-0.5.5 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.5.0 test/api_stub/models/network/express_route_circuit_peering.rb
far-gem-0.5.4 test/api_stub/models/network/express_route_circuit_peering.rb
far-gem-0.5.3 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.4.9 test/api_stub/models/network/express_route_circuit_peering.rb
far-gem-0.5.2 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.4.8 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.4.7 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.4.6 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.4.5 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-temp-0.0.5 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.4.4 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.4.3 test/api_stub/models/network/express_route_circuit_peering.rb
far-gem-0.5.1 test/api_stub/models/network/express_route_circuit_peering.rb
fog-azure-rm-0.4.2 test/api_stub/models/network/express_route_circuit_peering.rb