Sha256: a2cb9f9e1c316b16a2c37e728328cc0ac4c1aa202eb7e8a896914353524490f1

Contents?: true

Size: 1.18 KB

Versions: 47

Compression:

Stored size: 1.18 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, Fog::JSON.decode(endpoint), 'result.body')
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.4.1 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.4.0 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.9 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.8 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.7 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.6 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.5 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.4 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-temp-0.0.4 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-temp-0.0.3 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.3 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-temp-0.0.2 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-temp-0.0.1 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.2 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-downgraded-0.3.1 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.1 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-downgraded-0.3.0 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.3.0 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.2.7 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb
fog-azure-rm-0.2.6 test/api_stub/models/traffic_manager/traffic_manager_end_point.rb