Sha256: 9a0eae441d2566552adbf2610db09881284adcfb5b01b1726f517d3aabb274bf
Contents?: true
Size: 1.2 KB
Versions: 5
Compression:
Stored size: 1.2 KB
Contents
module ApiStub module Models module TrafficManager # Mock class for Traffic Manager End Point Model class TrafficManagerEndPoint def self.create_traffic_manager_end_point_response(traffic_manager_client) endpoint = '{ "id": "/subscriptions/######/resourceGroups/fog-test-rg/providers/Microsoft.Network/trafficManagerProfiles/fog-test-profile/azureEndpoints/fog-test-end-point?api-version=2015-11-01", "name": "fog-test-end-point", "type": "Microsoft.Network/trafficManagerProfiles/azureEndpoints", "properties": { "endpointStatus": "Enabled", "endpointMonitorStatus": "Online", "targetResourceId": "/subscriptions/######/resourceGroups/fog-test-rg/providers/Microsoft.Network/", "target": "myapp.azurewebsites.net", "weight": 10, "priority": 3, "endpointLocation": "centralus" } }' endpoint_mapper = Azure::ARM::TrafficManager::Models::Endpoint.mapper traffic_manager_client.deserialize(endpoint_mapper, JSON.load(endpoint), 'result.body') end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems