Sha256: 811f2929feb7ef6262a223fee208cdfaf55e9df4f6696af98a6dcd7dd8d2c238

Contents?: true

Size: 1.54 KB

Versions: 47

Compression:

Stored size: 1.54 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, Fog::JSON.decode(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

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.5.3 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.5.2 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
far-gem-0.5.6 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.5.1 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
far-gem-0.5.5 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.5.0 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
far-gem-0.5.4 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
far-gem-0.5.3 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.4.9 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
far-gem-0.5.2 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.4.8 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.4.7 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.4.6 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.4.5 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-temp-0.0.5 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.4.4 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.4.3 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
far-gem-0.5.1 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb
fog-azure-rm-0.4.2 test/api_stub/requests/traffic_manager/traffic_manager_endpoint.rb