Sha256: 80e0d7a7a4e5a82e6caaf7b1a2b25b72aefbda674eb3f17445c2b7e98f6c1504
Contents?: true
Size: 1.58 KB
Versions: 5
Compression:
Stored size: 1.58 KB
Contents
module ApiStub module Requests module TrafficManager # Mock class for raffic Manager End Point Requests class TrafficManagerEndPoint def self.create_traffic_manager_endpoint_response(traffic_manager_client) body = '{ "id": "/subscriptions/######/resourceGroups/fog-test-rg/providers/Microsoft.Network/trafficManagerProfiles/fog-test-profile/externalEndpoints/fog-test-end-point?api-version=2015-11-01", "name": "fog-test-end-point", "type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints", "properties": { "endpointStatus": "Enabled", "endpointMonitorStatus": "Online", "target": "test.com", "weight": 10, "priority": 5, "endpointLocation": "northeurope" } }' endpoint_mapper = Azure::ARM::TrafficManager::Models::Endpoint.mapper traffic_manager_client.deserialize(endpoint_mapper, JSON.load(body), 'result.body') end def self.endpoint_hash { resource_group: 'resource-group', name: 'name', traffic_manager_profile_name: 'traffic_manager_profile_name', type: 'type', target_resource_id: 'target_resource_id', target: 'target', weight: 'weight', priority: 'priority', endpoint_location: 'endpoint_location', min_child_endpoints: 'min_child_endpoints' } end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems