azure_mgmt_traffic_manager 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_traffic_manager.rb +10 -5
- data/lib/generated/azure_mgmt_traffic_manager/endpoints.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/heat_map.rb +132 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/dns_config.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/endpoint.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/endpoint_status.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/heat_map_endpoint.rb +56 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/heat_map_model.rb +119 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/monitor_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/profile.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/profile_monitor_status.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/profile_status.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/query_experience.rb +67 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/region.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb +87 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/traffic_routing_method.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/profiles.rb +1 -1
- data/lib/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +6 -2
- data/lib/generated/azure_mgmt_traffic_manager/version.rb +2 -2
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58e597945fa0f729bcbbbf4761c788aeb9ed66cd
|
4
|
+
data.tar.gz: 56082d74361eae93099ea5d290a8d353aabbe0fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08c8d1c764518cb1fbc20fed2c5c444150a9f61f154e15e1682c8f8d504e4e5013e60b3877c41c03c4ff4daaa1c9132ed973ccb7dd71711846a371a1fb423387
|
7
|
+
data.tar.gz: d198b0f200b8db4fba148888400e8accd44cc5e7d659def5112a66f31e0fe2c52f8745a4f5e258e35eadd6f3cd2531c7a0dde8e05798b6ac309541c0d655cc2d
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -23,21 +23,26 @@ module Azure::ARM::TrafficManager
|
|
23
23
|
autoload :Endpoints, 'generated/azure_mgmt_traffic_manager/endpoints.rb'
|
24
24
|
autoload :Profiles, 'generated/azure_mgmt_traffic_manager/profiles.rb'
|
25
25
|
autoload :GeographicHierarchies, 'generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb'
|
26
|
+
autoload :HeatMap, 'generated/azure_mgmt_traffic_manager/heat_map.rb'
|
26
27
|
autoload :TrafficManagerManagementClient, 'generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb'
|
27
28
|
|
28
29
|
module Models
|
29
30
|
autoload :TrafficManagerNameAvailability, 'generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb'
|
30
|
-
autoload :DeleteOperationResult, 'generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb'
|
31
31
|
autoload :Region, 'generated/azure_mgmt_traffic_manager/models/region.rb'
|
32
|
-
autoload :
|
32
|
+
autoload :DeleteOperationResult, 'generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb'
|
33
33
|
autoload :DnsConfig, 'generated/azure_mgmt_traffic_manager/models/dns_config.rb'
|
34
|
-
autoload :
|
34
|
+
autoload :TrafficFlow, 'generated/azure_mgmt_traffic_manager/models/traffic_flow.rb'
|
35
|
+
autoload :HeatMapEndpoint, 'generated/azure_mgmt_traffic_manager/models/heat_map_endpoint.rb'
|
36
|
+
autoload :CheckTrafficManagerRelativeDnsNameAvailabilityParameters, 'generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb'
|
37
|
+
autoload :QueryExperience, 'generated/azure_mgmt_traffic_manager/models/query_experience.rb'
|
35
38
|
autoload :ProfileListResult, 'generated/azure_mgmt_traffic_manager/models/profile_list_result.rb'
|
39
|
+
autoload :MonitorConfig, 'generated/azure_mgmt_traffic_manager/models/monitor_config.rb'
|
40
|
+
autoload :ProxyResource, 'generated/azure_mgmt_traffic_manager/models/proxy_resource.rb'
|
36
41
|
autoload :Endpoint, 'generated/azure_mgmt_traffic_manager/models/endpoint.rb'
|
37
42
|
autoload :Profile, 'generated/azure_mgmt_traffic_manager/models/profile.rb'
|
38
|
-
autoload :ProxyResource, 'generated/azure_mgmt_traffic_manager/models/proxy_resource.rb'
|
39
43
|
autoload :TrafficManagerGeographicHierarchy, 'generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb'
|
40
44
|
autoload :TrackedResource, 'generated/azure_mgmt_traffic_manager/models/tracked_resource.rb'
|
45
|
+
autoload :HeatMapModel, 'generated/azure_mgmt_traffic_manager/models/heat_map_model.rb'
|
41
46
|
autoload :EndpointStatus, 'generated/azure_mgmt_traffic_manager/models/endpoint_status.rb'
|
42
47
|
autoload :EndpointMonitorStatus, 'generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb'
|
43
48
|
autoload :ProfileMonitorStatus, 'generated/azure_mgmt_traffic_manager/models/profile_monitor_status.rb'
|
@@ -0,0 +1,132 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::TrafficManager
|
7
|
+
#
|
8
|
+
# HeatMap
|
9
|
+
#
|
10
|
+
class HeatMap
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the HeatMap class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [TrafficManagerManagementClient] reference to the TrafficManagerManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets latest heatmap for Traffic Manager profile.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group containing
|
28
|
+
# the Traffic Manager endpoint.
|
29
|
+
# @param profile_name [String] The name of the Traffic Manager profile.
|
30
|
+
# @param top_left [Array<Float>] The top left latitude,longitude pair of the
|
31
|
+
# rectangular viewport to query for.
|
32
|
+
# @param bot_right [Array<Float>] The bottom right latitude,longitude pair of
|
33
|
+
# the rectangular viewport to query for.
|
34
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
35
|
+
# will be added to the HTTP request.
|
36
|
+
#
|
37
|
+
# @return [HeatMapModel] operation results.
|
38
|
+
#
|
39
|
+
def get(resource_group_name, profile_name, top_left = nil, bot_right = nil, custom_headers = nil)
|
40
|
+
response = get_async(resource_group_name, profile_name, top_left, bot_right, custom_headers).value!
|
41
|
+
response.body unless response.nil?
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# Gets latest heatmap for Traffic Manager profile.
|
46
|
+
#
|
47
|
+
# @param resource_group_name [String] The name of the resource group containing
|
48
|
+
# the Traffic Manager endpoint.
|
49
|
+
# @param profile_name [String] The name of the Traffic Manager profile.
|
50
|
+
# @param top_left [Array<Float>] The top left latitude,longitude pair of the
|
51
|
+
# rectangular viewport to query for.
|
52
|
+
# @param bot_right [Array<Float>] The bottom right latitude,longitude pair of
|
53
|
+
# the rectangular viewport to query for.
|
54
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
55
|
+
# will be added to the HTTP request.
|
56
|
+
#
|
57
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
|
+
#
|
59
|
+
def get_with_http_info(resource_group_name, profile_name, top_left = nil, bot_right = nil, custom_headers = nil)
|
60
|
+
get_async(resource_group_name, profile_name, top_left, bot_right, custom_headers).value!
|
61
|
+
end
|
62
|
+
|
63
|
+
#
|
64
|
+
# Gets latest heatmap for Traffic Manager profile.
|
65
|
+
#
|
66
|
+
# @param resource_group_name [String] The name of the resource group containing
|
67
|
+
# the Traffic Manager endpoint.
|
68
|
+
# @param profile_name [String] The name of the Traffic Manager profile.
|
69
|
+
# @param top_left [Array<Float>] The top left latitude,longitude pair of the
|
70
|
+
# rectangular viewport to query for.
|
71
|
+
# @param bot_right [Array<Float>] The bottom right latitude,longitude pair of
|
72
|
+
# the rectangular viewport to query for.
|
73
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
74
|
+
# to the HTTP request.
|
75
|
+
#
|
76
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
77
|
+
#
|
78
|
+
def get_async(resource_group_name, profile_name, top_left = nil, bot_right = nil, custom_headers = nil)
|
79
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
80
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
81
|
+
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
82
|
+
heat_map_type = 'default'
|
83
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
84
|
+
|
85
|
+
|
86
|
+
request_headers = {}
|
87
|
+
|
88
|
+
# Set Headers
|
89
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
90
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
91
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/heatMaps/{heatMapType}'
|
92
|
+
|
93
|
+
request_url = @base_url || @client.base_url
|
94
|
+
|
95
|
+
options = {
|
96
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
97
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'profileName' => profile_name,'heatMapType' => heat_map_type},
|
98
|
+
query_params: {'topLeft' => top_left.nil? ? nil : top_left.join(','),'botRight' => bot_right.nil? ? nil : bot_right.join(','),'api-version' => @client.api_version},
|
99
|
+
headers: request_headers.merge(custom_headers || {}),
|
100
|
+
base_url: request_url
|
101
|
+
}
|
102
|
+
promise = @client.make_request_async(:get, path_template, options)
|
103
|
+
|
104
|
+
promise = promise.then do |result|
|
105
|
+
http_response = result.response
|
106
|
+
status_code = http_response.status
|
107
|
+
response_content = http_response.body
|
108
|
+
unless status_code == 200
|
109
|
+
error_model = JSON.load(response_content)
|
110
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
111
|
+
end
|
112
|
+
|
113
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
114
|
+
# Deserialize Response
|
115
|
+
if status_code == 200
|
116
|
+
begin
|
117
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
118
|
+
result_mapper = Azure::ARM::TrafficManager::Models::HeatMapModel.mapper()
|
119
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
120
|
+
rescue Exception => e
|
121
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
result
|
126
|
+
end
|
127
|
+
|
128
|
+
promise.execute
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|
132
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::TrafficManager
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Class which is a sparse representation of a Traffic Manager endpoint.
|
10
|
+
#
|
11
|
+
class HeatMapEndpoint
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The ARM Resource ID of this Traffic Manager endpoint.
|
17
|
+
attr_accessor :resource_id
|
18
|
+
|
19
|
+
# @return [Integer] A number uniquely identifying this endpoint in query
|
20
|
+
# experiences.
|
21
|
+
attr_accessor :endpoint_id
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for HeatMapEndpoint class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'HeatMapEndpoint',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'HeatMapEndpoint',
|
35
|
+
model_properties: {
|
36
|
+
resource_id: {
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'resourceId',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
endpoint_id: {
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'endpointId',
|
46
|
+
type: {
|
47
|
+
name: 'Number'
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::TrafficManager
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Class representing a Traffic Manager HeatMap.
|
10
|
+
#
|
11
|
+
class HeatMapModel < ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [DateTime] The beginning of the time window for this HeatMap,
|
17
|
+
# inclusive.
|
18
|
+
attr_accessor :start_time
|
19
|
+
|
20
|
+
# @return [DateTime] The ending of the time window for this HeatMap,
|
21
|
+
# exclusive.
|
22
|
+
attr_accessor :end_time
|
23
|
+
|
24
|
+
# @return [Array<HeatMapEndpoint>] The endpoints used in this HeatMap
|
25
|
+
# calculation.
|
26
|
+
attr_accessor :endpoints
|
27
|
+
|
28
|
+
# @return [Array<TrafficFlow>] The traffic flows produced in this HeatMap
|
29
|
+
# calculation.
|
30
|
+
attr_accessor :traffic_flows
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for HeatMapModel class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'HeatMapModel',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'HeatMapModel',
|
44
|
+
model_properties: {
|
45
|
+
id: {
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'id',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
name: {
|
54
|
+
required: false,
|
55
|
+
read_only: true,
|
56
|
+
serialized_name: 'name',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
type: {
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'type',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
start_time: {
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'properties.startTime',
|
72
|
+
type: {
|
73
|
+
name: 'DateTime'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
end_time: {
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'properties.endTime',
|
79
|
+
type: {
|
80
|
+
name: 'DateTime'
|
81
|
+
}
|
82
|
+
},
|
83
|
+
endpoints: {
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'properties.endpoints',
|
86
|
+
type: {
|
87
|
+
name: 'Sequence',
|
88
|
+
element: {
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'HeatMapEndpointElementType',
|
91
|
+
type: {
|
92
|
+
name: 'Composite',
|
93
|
+
class_name: 'HeatMapEndpoint'
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
},
|
98
|
+
traffic_flows: {
|
99
|
+
required: false,
|
100
|
+
serialized_name: 'properties.trafficFlows',
|
101
|
+
type: {
|
102
|
+
name: 'Sequence',
|
103
|
+
element: {
|
104
|
+
required: false,
|
105
|
+
serialized_name: 'TrafficFlowElementType',
|
106
|
+
type: {
|
107
|
+
name: 'Composite',
|
108
|
+
class_name: 'TrafficFlow'
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::TrafficManager
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Class representing a Traffic Manager HeatMap query experience properties.
|
10
|
+
#
|
11
|
+
class QueryExperience
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Integer] The id of the endpoint from the 'endpoints' array
|
17
|
+
# which these queries were routed to.
|
18
|
+
attr_accessor :endpoint_id
|
19
|
+
|
20
|
+
# @return [Integer] The number of queries originating from this location.
|
21
|
+
attr_accessor :query_count
|
22
|
+
|
23
|
+
# @return [Float] The latency experienced by queries originating from
|
24
|
+
# this location.
|
25
|
+
attr_accessor :latency
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for QueryExperience class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'QueryExperience',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'QueryExperience',
|
39
|
+
model_properties: {
|
40
|
+
endpoint_id: {
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'endpointId',
|
43
|
+
type: {
|
44
|
+
name: 'Number'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
query_count: {
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'queryCount',
|
50
|
+
type: {
|
51
|
+
name: 'Number'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
latency: {
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'latency',
|
57
|
+
type: {
|
58
|
+
name: 'Double'
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::TrafficManager
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Class representing a Traffic Manager HeatMap traffic flow properties.
|
10
|
+
#
|
11
|
+
class TrafficFlow
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] The IP address that this query experience originated
|
17
|
+
# from.
|
18
|
+
attr_accessor :source_ip
|
19
|
+
|
20
|
+
# @return [Float] The approximate latitude that these queries originated
|
21
|
+
# from.
|
22
|
+
attr_accessor :latitude
|
23
|
+
|
24
|
+
# @return [Float] The approximate longitude that these queries originated
|
25
|
+
# from.
|
26
|
+
attr_accessor :longitude
|
27
|
+
|
28
|
+
# @return [Array<QueryExperience>] The query experiences produced in this
|
29
|
+
# HeatMap calculation.
|
30
|
+
attr_accessor :query_experiences
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for TrafficFlow class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'TrafficFlow',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'TrafficFlow',
|
44
|
+
model_properties: {
|
45
|
+
source_ip: {
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'sourceIp',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
latitude: {
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'latitude',
|
55
|
+
type: {
|
56
|
+
name: 'Double'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
longitude: {
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'longitude',
|
62
|
+
type: {
|
63
|
+
name: 'Double'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
query_experiences: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'queryExperiences',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'QueryExperienceElementType',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'QueryExperience'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -45,6 +45,9 @@ module Azure::ARM::TrafficManager
|
|
45
45
|
# @return [GeographicHierarchies] geographic_hierarchies
|
46
46
|
attr_reader :geographic_hierarchies
|
47
47
|
|
48
|
+
# @return [HeatMap] heat_map
|
49
|
+
attr_reader :heat_map
|
50
|
+
|
48
51
|
#
|
49
52
|
# Creates initializes a new instance of the TrafficManagerManagementClient class.
|
50
53
|
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
@@ -61,7 +64,8 @@ module Azure::ARM::TrafficManager
|
|
61
64
|
@endpoints = Endpoints.new(self)
|
62
65
|
@profiles = Profiles.new(self)
|
63
66
|
@geographic_hierarchies = GeographicHierarchies.new(self)
|
64
|
-
@
|
67
|
+
@heat_map = HeatMap.new(self)
|
68
|
+
@api_version = '2017-09-01-preview'
|
65
69
|
@accept_language = 'en-US'
|
66
70
|
@long_running_operation_retry_timeout = 30
|
67
71
|
@generate_client_request_id = true
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::TrafficManager
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.13.0'
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_traffic_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,12 +91,15 @@ files:
|
|
91
91
|
- lib/generated/azure_mgmt_traffic_manager.rb
|
92
92
|
- lib/generated/azure_mgmt_traffic_manager/endpoints.rb
|
93
93
|
- lib/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb
|
94
|
+
- lib/generated/azure_mgmt_traffic_manager/heat_map.rb
|
94
95
|
- lib/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb
|
95
96
|
- lib/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb
|
96
97
|
- lib/generated/azure_mgmt_traffic_manager/models/dns_config.rb
|
97
98
|
- lib/generated/azure_mgmt_traffic_manager/models/endpoint.rb
|
98
99
|
- lib/generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb
|
99
100
|
- lib/generated/azure_mgmt_traffic_manager/models/endpoint_status.rb
|
101
|
+
- lib/generated/azure_mgmt_traffic_manager/models/heat_map_endpoint.rb
|
102
|
+
- lib/generated/azure_mgmt_traffic_manager/models/heat_map_model.rb
|
100
103
|
- lib/generated/azure_mgmt_traffic_manager/models/monitor_config.rb
|
101
104
|
- lib/generated/azure_mgmt_traffic_manager/models/monitor_protocol.rb
|
102
105
|
- lib/generated/azure_mgmt_traffic_manager/models/profile.rb
|
@@ -104,8 +107,10 @@ files:
|
|
104
107
|
- lib/generated/azure_mgmt_traffic_manager/models/profile_monitor_status.rb
|
105
108
|
- lib/generated/azure_mgmt_traffic_manager/models/profile_status.rb
|
106
109
|
- lib/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb
|
110
|
+
- lib/generated/azure_mgmt_traffic_manager/models/query_experience.rb
|
107
111
|
- lib/generated/azure_mgmt_traffic_manager/models/region.rb
|
108
112
|
- lib/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb
|
113
|
+
- lib/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb
|
109
114
|
- lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb
|
110
115
|
- lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb
|
111
116
|
- lib/generated/azure_mgmt_traffic_manager/models/traffic_routing_method.rb
|