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