azure_mgmt_traffic_manager 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_traffic_manager.rb +3 -0
- data/lib/generated/azure_mgmt_traffic_manager/endpoints.rb +8 -8
- data/lib/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +2 -2
- data/lib/generated/azure_mgmt_traffic_manager/heat_map.rb +2 -2
- data/lib/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/dns_config.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/endpoint.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/heat_map_endpoint.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/heat_map_model.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/profile.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb +1 -2
- data/lib/generated/azure_mgmt_traffic_manager/models/query_experience.rb +2 -3
- data/lib/generated/azure_mgmt_traffic_manager/models/region.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/resource.rb +69 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb +1 -2
- data/lib/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +0 -1
- data/lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb +69 -0
- data/lib/generated/azure_mgmt_traffic_manager/profiles.rb +14 -14
- data/lib/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +4 -4
- data/lib/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb +277 -0
- data/lib/generated/azure_mgmt_traffic_manager/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a32f5146732f71d47c7d7debf2db2a58e5313f1
|
4
|
+
data.tar.gz: 94c681f725555b350be2cfde54f02a34776e359d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7631aa858a0106769e89fd3429f70f449e8310c9452f290509e6ea2165b431ceda2372fe2e69d78c40a0f3caab61c628cc9c144a8ee3aeeee0ab1ae2653e09ba
|
7
|
+
data.tar.gz: acf220d96a2149dd9d40d0621682fc4b315365391d0f7959fb3ec7467b4a896745ad570b58839c7dfec702f540deb87276670d965f5597f8fb98617abcd2ac8e
|
@@ -24,6 +24,7 @@ module Azure::ARM::TrafficManager
|
|
24
24
|
autoload :Profiles, 'generated/azure_mgmt_traffic_manager/profiles.rb'
|
25
25
|
autoload :GeographicHierarchies, 'generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb'
|
26
26
|
autoload :HeatMap, 'generated/azure_mgmt_traffic_manager/heat_map.rb'
|
27
|
+
autoload :TrafficManagerUserMetricsKeys, 'generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb'
|
27
28
|
autoload :TrafficManagerManagementClient, 'generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb'
|
28
29
|
|
29
30
|
module Models
|
@@ -33,6 +34,7 @@ module Azure::ARM::TrafficManager
|
|
33
34
|
autoload :DnsConfig, 'generated/azure_mgmt_traffic_manager/models/dns_config.rb'
|
34
35
|
autoload :TrafficFlow, 'generated/azure_mgmt_traffic_manager/models/traffic_flow.rb'
|
35
36
|
autoload :HeatMapEndpoint, 'generated/azure_mgmt_traffic_manager/models/heat_map_endpoint.rb'
|
37
|
+
autoload :Resource, 'generated/azure_mgmt_traffic_manager/models/resource.rb'
|
36
38
|
autoload :CheckTrafficManagerRelativeDnsNameAvailabilityParameters, 'generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb'
|
37
39
|
autoload :QueryExperience, 'generated/azure_mgmt_traffic_manager/models/query_experience.rb'
|
38
40
|
autoload :ProfileListResult, 'generated/azure_mgmt_traffic_manager/models/profile_list_result.rb'
|
@@ -42,6 +44,7 @@ module Azure::ARM::TrafficManager
|
|
42
44
|
autoload :Profile, 'generated/azure_mgmt_traffic_manager/models/profile.rb'
|
43
45
|
autoload :TrafficManagerGeographicHierarchy, 'generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb'
|
44
46
|
autoload :TrackedResource, 'generated/azure_mgmt_traffic_manager/models/tracked_resource.rb'
|
47
|
+
autoload :TrafficManagerUserMetricsKeyModel, 'generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb'
|
45
48
|
autoload :HeatMapModel, 'generated/azure_mgmt_traffic_manager/models/heat_map_model.rb'
|
46
49
|
autoload :EndpointStatus, 'generated/azure_mgmt_traffic_manager/models/endpoint_status.rb'
|
47
50
|
autoload :EndpointMonitorStatus, 'generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb'
|
@@ -87,7 +87,7 @@ module Azure::ARM::TrafficManager
|
|
87
87
|
fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
|
88
88
|
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
89
89
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
90
|
-
|
90
|
+
api_version = '2017-05-01'
|
91
91
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
92
92
|
|
93
93
|
|
@@ -111,7 +111,7 @@ module Azure::ARM::TrafficManager
|
|
111
111
|
options = {
|
112
112
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
113
113
|
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointType' => endpoint_type,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
114
|
-
query_params: {'api-version' =>
|
114
|
+
query_params: {'api-version' => api_version},
|
115
115
|
body: request_content,
|
116
116
|
headers: request_headers.merge(custom_headers || {}),
|
117
117
|
base_url: request_url
|
@@ -198,7 +198,7 @@ module Azure::ARM::TrafficManager
|
|
198
198
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
199
199
|
fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
|
200
200
|
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
201
|
-
|
201
|
+
api_version = '2017-05-01'
|
202
202
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
203
203
|
|
204
204
|
|
@@ -214,7 +214,7 @@ module Azure::ARM::TrafficManager
|
|
214
214
|
options = {
|
215
215
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
216
216
|
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointType' => endpoint_type,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
217
|
-
query_params: {'api-version' =>
|
217
|
+
query_params: {'api-version' => api_version},
|
218
218
|
headers: request_headers.merge(custom_headers || {}),
|
219
219
|
base_url: request_url
|
220
220
|
}
|
@@ -313,7 +313,7 @@ module Azure::ARM::TrafficManager
|
|
313
313
|
fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
|
314
314
|
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
315
315
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
316
|
-
|
316
|
+
api_version = '2017-05-01'
|
317
317
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
318
318
|
|
319
319
|
|
@@ -337,7 +337,7 @@ module Azure::ARM::TrafficManager
|
|
337
337
|
options = {
|
338
338
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
339
339
|
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointType' => endpoint_type,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
340
|
-
query_params: {'api-version' =>
|
340
|
+
query_params: {'api-version' => api_version},
|
341
341
|
body: request_content,
|
342
342
|
headers: request_headers.merge(custom_headers || {}),
|
343
343
|
base_url: request_url
|
@@ -440,7 +440,7 @@ module Azure::ARM::TrafficManager
|
|
440
440
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
441
441
|
fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
|
442
442
|
fail ArgumentError, 'endpoint_name is nil' if endpoint_name.nil?
|
443
|
-
|
443
|
+
api_version = '2017-05-01'
|
444
444
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
445
445
|
|
446
446
|
|
@@ -456,7 +456,7 @@ module Azure::ARM::TrafficManager
|
|
456
456
|
options = {
|
457
457
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
458
458
|
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'endpointType' => endpoint_type,'endpointName' => endpoint_name,'subscriptionId' => @client.subscription_id},
|
459
|
-
query_params: {'api-version' =>
|
459
|
+
query_params: {'api-version' => api_version},
|
460
460
|
headers: request_headers.merge(custom_headers || {}),
|
461
461
|
base_url: request_url
|
462
462
|
}
|
@@ -58,7 +58,7 @@ module Azure::ARM::TrafficManager
|
|
58
58
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
59
59
|
#
|
60
60
|
def get_default_async(custom_headers = nil)
|
61
|
-
|
61
|
+
api_version = '2017-05-01'
|
62
62
|
|
63
63
|
|
64
64
|
request_headers = {}
|
@@ -72,7 +72,7 @@ module Azure::ARM::TrafficManager
|
|
72
72
|
|
73
73
|
options = {
|
74
74
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
75
|
-
query_params: {'api-version' =>
|
75
|
+
query_params: {'api-version' => api_version},
|
76
76
|
headers: request_headers.merge(custom_headers || {}),
|
77
77
|
base_url: request_url
|
78
78
|
}
|
@@ -80,7 +80,7 @@ module Azure::ARM::TrafficManager
|
|
80
80
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
81
81
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
82
82
|
heat_map_type = 'default'
|
83
|
-
|
83
|
+
api_version = '2017-09-01-preview'
|
84
84
|
|
85
85
|
|
86
86
|
request_headers = {}
|
@@ -95,7 +95,7 @@ module Azure::ARM::TrafficManager
|
|
95
95
|
options = {
|
96
96
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
97
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' =>
|
98
|
+
query_params: {'topLeft' => top_left.nil? ? nil : top_left.join(','),'botRight' => bot_right.nil? ? nil : bot_right.join(','),'api-version' => api_version},
|
99
99
|
headers: request_headers.merge(custom_headers || {}),
|
100
100
|
base_url: request_url
|
101
101
|
}
|
@@ -12,7 +12,6 @@ module Azure::ARM::TrafficManager
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
include MsRest::JSONable
|
16
15
|
# @return [String] The relative DNS name provided by this Traffic Manager
|
17
16
|
# profile. This value is combined with the DNS domain name used by Azure
|
18
17
|
# Traffic Manager to form the fully-qualified domain name (FQDN) of the
|
@@ -13,7 +13,6 @@ module Azure::ARM::TrafficManager
|
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
-
include MsRest::JSONable
|
17
16
|
# @return [ProfileMonitorStatus] The profile-level monitoring status of
|
18
17
|
# the Traffic Manager profile. Possible values include:
|
19
18
|
# 'CheckingEndpoints', 'Online', 'Degraded', 'Disabled', 'Inactive'
|
@@ -9,11 +9,10 @@ module Azure::ARM::TrafficManager
|
|
9
9
|
# The resource model definition for a ARM proxy resource. It will have
|
10
10
|
# everything other than required location and tags
|
11
11
|
#
|
12
|
-
class ProxyResource <
|
12
|
+
class ProxyResource < Resource
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
-
include MsRest::JSONable
|
17
16
|
|
18
17
|
#
|
19
18
|
# Mapper for ProxyResource class as Ruby Hash.
|
@@ -12,7 +12,6 @@ module Azure::ARM::TrafficManager
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
include MsRest::JSONable
|
16
15
|
# @return [Integer] The id of the endpoint from the 'endpoints' array
|
17
16
|
# which these queries were routed to.
|
18
17
|
attr_accessor :endpoint_id
|
@@ -38,14 +37,14 @@ module Azure::ARM::TrafficManager
|
|
38
37
|
class_name: 'QueryExperience',
|
39
38
|
model_properties: {
|
40
39
|
endpoint_id: {
|
41
|
-
required:
|
40
|
+
required: true,
|
42
41
|
serialized_name: 'endpointId',
|
43
42
|
type: {
|
44
43
|
name: 'Number'
|
45
44
|
}
|
46
45
|
},
|
47
46
|
query_count: {
|
48
|
-
required:
|
47
|
+
required: true,
|
49
48
|
serialized_name: 'queryCount',
|
50
49
|
type: {
|
51
50
|
name: 'Number'
|
@@ -0,0 +1,69 @@
|
|
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
|
+
# The core properties of ARM resources
|
10
|
+
#
|
11
|
+
class Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Fully qualified resource Id for the resource. Ex -
|
16
|
+
# /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] The name of the resource
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# @return [String] The type of the resource. Ex-
|
23
|
+
# Microsoft.Network/trafficmanagerProfiles.
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for Resource class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Resource',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'Resource',
|
38
|
+
model_properties: {
|
39
|
+
id: {
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'id',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
name: {
|
48
|
+
required: false,
|
49
|
+
read_only: true,
|
50
|
+
serialized_name: 'name',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
type: {
|
56
|
+
required: false,
|
57
|
+
read_only: true,
|
58
|
+
serialized_name: 'type',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -8,11 +8,10 @@ module Azure::ARM::TrafficManager
|
|
8
8
|
#
|
9
9
|
# The resource model definition for a ARM tracked top level resource
|
10
10
|
#
|
11
|
-
class TrackedResource <
|
11
|
+
class TrackedResource < Resource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
include MsRest::JSONable
|
16
15
|
# @return [Hash{String => String}] Resource tags.
|
17
16
|
attr_accessor :tags
|
18
17
|
|
data/lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb
ADDED
@@ -0,0 +1,69 @@
|
|
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 Real User Metrics key response.
|
10
|
+
#
|
11
|
+
class TrafficManagerUserMetricsKeyModel < ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The key returned by the Realtime User Metrics
|
16
|
+
# operation.
|
17
|
+
attr_accessor :key
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for TrafficManagerUserMetricsKeyModel class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'TrafficManagerUserMetricsKeyModel',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'TrafficManagerUserMetricsKeyModel',
|
31
|
+
model_properties: {
|
32
|
+
id: {
|
33
|
+
required: false,
|
34
|
+
read_only: true,
|
35
|
+
serialized_name: 'id',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
},
|
40
|
+
name: {
|
41
|
+
required: false,
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'name',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
type: {
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'type',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
key: {
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'properties.key',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -65,7 +65,7 @@ module Azure::ARM::TrafficManager
|
|
65
65
|
#
|
66
66
|
def check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers = nil)
|
67
67
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
68
|
-
|
68
|
+
api_version = '2017-05-01'
|
69
69
|
|
70
70
|
|
71
71
|
request_headers = {}
|
@@ -87,7 +87,7 @@ module Azure::ARM::TrafficManager
|
|
87
87
|
|
88
88
|
options = {
|
89
89
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
90
|
-
query_params: {'api-version' =>
|
90
|
+
query_params: {'api-version' => api_version},
|
91
91
|
body: request_content,
|
92
92
|
headers: request_headers.merge(custom_headers || {}),
|
93
93
|
base_url: request_url
|
@@ -162,7 +162,7 @@ module Azure::ARM::TrafficManager
|
|
162
162
|
#
|
163
163
|
def list_by_resource_group_async(resource_group_name, custom_headers = nil)
|
164
164
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
165
|
-
|
165
|
+
api_version = '2017-05-01'
|
166
166
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
167
167
|
|
168
168
|
|
@@ -178,7 +178,7 @@ module Azure::ARM::TrafficManager
|
|
178
178
|
options = {
|
179
179
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
180
180
|
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
181
|
-
query_params: {'api-version' =>
|
181
|
+
query_params: {'api-version' => api_version},
|
182
182
|
headers: request_headers.merge(custom_headers || {}),
|
183
183
|
base_url: request_url
|
184
184
|
}
|
@@ -245,7 +245,7 @@ module Azure::ARM::TrafficManager
|
|
245
245
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
246
246
|
#
|
247
247
|
def list_by_subscription_async(custom_headers = nil)
|
248
|
-
|
248
|
+
api_version = '2017-05-01'
|
249
249
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
250
250
|
|
251
251
|
|
@@ -261,7 +261,7 @@ module Azure::ARM::TrafficManager
|
|
261
261
|
options = {
|
262
262
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
263
263
|
path_params: {'subscriptionId' => @client.subscription_id},
|
264
|
-
query_params: {'api-version' =>
|
264
|
+
query_params: {'api-version' => api_version},
|
265
265
|
headers: request_headers.merge(custom_headers || {}),
|
266
266
|
base_url: request_url
|
267
267
|
}
|
@@ -339,7 +339,7 @@ module Azure::ARM::TrafficManager
|
|
339
339
|
def get_async(resource_group_name, profile_name, custom_headers = nil)
|
340
340
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
341
341
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
342
|
-
|
342
|
+
api_version = '2017-05-01'
|
343
343
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
344
344
|
|
345
345
|
|
@@ -355,7 +355,7 @@ module Azure::ARM::TrafficManager
|
|
355
355
|
options = {
|
356
356
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
357
357
|
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'subscriptionId' => @client.subscription_id},
|
358
|
-
query_params: {'api-version' =>
|
358
|
+
query_params: {'api-version' => api_version},
|
359
359
|
headers: request_headers.merge(custom_headers || {}),
|
360
360
|
base_url: request_url
|
361
361
|
}
|
@@ -440,7 +440,7 @@ module Azure::ARM::TrafficManager
|
|
440
440
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
441
441
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
442
442
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
443
|
-
|
443
|
+
api_version = '2017-05-01'
|
444
444
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
445
445
|
|
446
446
|
|
@@ -464,7 +464,7 @@ module Azure::ARM::TrafficManager
|
|
464
464
|
options = {
|
465
465
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
466
466
|
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'subscriptionId' => @client.subscription_id},
|
467
|
-
query_params: {'api-version' =>
|
467
|
+
query_params: {'api-version' => api_version},
|
468
468
|
body: request_content,
|
469
469
|
headers: request_headers.merge(custom_headers || {}),
|
470
470
|
base_url: request_url
|
@@ -556,7 +556,7 @@ module Azure::ARM::TrafficManager
|
|
556
556
|
def delete_async(resource_group_name, profile_name, custom_headers = nil)
|
557
557
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
558
558
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
559
|
-
|
559
|
+
api_version = '2017-05-01'
|
560
560
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
561
561
|
|
562
562
|
|
@@ -572,7 +572,7 @@ module Azure::ARM::TrafficManager
|
|
572
572
|
options = {
|
573
573
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
574
574
|
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'subscriptionId' => @client.subscription_id},
|
575
|
-
query_params: {'api-version' =>
|
575
|
+
query_params: {'api-version' => api_version},
|
576
576
|
headers: request_headers.merge(custom_headers || {}),
|
577
577
|
base_url: request_url
|
578
578
|
}
|
@@ -657,7 +657,7 @@ module Azure::ARM::TrafficManager
|
|
657
657
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
658
658
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
659
659
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
660
|
-
|
660
|
+
api_version = '2017-05-01'
|
661
661
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
662
662
|
|
663
663
|
|
@@ -681,7 +681,7 @@ module Azure::ARM::TrafficManager
|
|
681
681
|
options = {
|
682
682
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
683
683
|
path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'subscriptionId' => @client.subscription_id},
|
684
|
-
query_params: {'api-version' =>
|
684
|
+
query_params: {'api-version' => api_version},
|
685
685
|
body: request_content,
|
686
686
|
headers: request_headers.merge(custom_headers || {}),
|
687
687
|
base_url: request_url
|
@@ -22,9 +22,6 @@ module Azure::ARM::TrafficManager
|
|
22
22
|
# for every service call.
|
23
23
|
attr_accessor :subscription_id
|
24
24
|
|
25
|
-
# @return [String] Client Api Version.
|
26
|
-
attr_reader :api_version
|
27
|
-
|
28
25
|
# @return [String] Gets or sets the preferred language for the response.
|
29
26
|
attr_accessor :accept_language
|
30
27
|
|
@@ -48,6 +45,9 @@ module Azure::ARM::TrafficManager
|
|
48
45
|
# @return [HeatMap] heat_map
|
49
46
|
attr_reader :heat_map
|
50
47
|
|
48
|
+
# @return [TrafficManagerUserMetricsKeys] traffic_manager_user_metrics_keys
|
49
|
+
attr_reader :traffic_manager_user_metrics_keys
|
50
|
+
|
51
51
|
#
|
52
52
|
# Creates initializes a new instance of the TrafficManagerManagementClient class.
|
53
53
|
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
@@ -65,7 +65,7 @@ module Azure::ARM::TrafficManager
|
|
65
65
|
@profiles = Profiles.new(self)
|
66
66
|
@geographic_hierarchies = GeographicHierarchies.new(self)
|
67
67
|
@heat_map = HeatMap.new(self)
|
68
|
-
@
|
68
|
+
@traffic_manager_user_metrics_keys = TrafficManagerUserMetricsKeys.new(self)
|
69
69
|
@accept_language = 'en-US'
|
70
70
|
@long_running_operation_retry_timeout = 30
|
71
71
|
@generate_client_request_id = true
|
@@ -0,0 +1,277 @@
|
|
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
|
+
# TrafficManagerUserMetricsKeys
|
9
|
+
#
|
10
|
+
class TrafficManagerUserMetricsKeys
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the TrafficManagerUserMetricsKeys 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
|
+
# Get the subscription-level key used for Realtime User Metrics collection.
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [TrafficManagerUserMetricsKeyModel] operation results.
|
31
|
+
#
|
32
|
+
def get_default(custom_headers = nil)
|
33
|
+
response = get_default_async(custom_headers).value!
|
34
|
+
response.body unless response.nil?
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Get the subscription-level key used for Realtime User Metrics collection.
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def get_default_with_http_info(custom_headers = nil)
|
46
|
+
get_default_async(custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Get the subscription-level key used for Realtime User Metrics collection.
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def get_default_async(custom_headers = nil)
|
58
|
+
api_version = '2017-09-01-preview'
|
59
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
60
|
+
|
61
|
+
|
62
|
+
request_headers = {}
|
63
|
+
|
64
|
+
# Set Headers
|
65
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
66
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
67
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default'
|
68
|
+
|
69
|
+
request_url = @base_url || @client.base_url
|
70
|
+
|
71
|
+
options = {
|
72
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
73
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
74
|
+
query_params: {'api-version' => api_version},
|
75
|
+
headers: request_headers.merge(custom_headers || {}),
|
76
|
+
base_url: request_url
|
77
|
+
}
|
78
|
+
promise = @client.make_request_async(:get, path_template, options)
|
79
|
+
|
80
|
+
promise = promise.then do |result|
|
81
|
+
http_response = result.response
|
82
|
+
status_code = http_response.status
|
83
|
+
response_content = http_response.body
|
84
|
+
unless status_code == 200 || status_code == 204
|
85
|
+
error_model = JSON.load(response_content)
|
86
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
87
|
+
end
|
88
|
+
|
89
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
90
|
+
# Deserialize Response
|
91
|
+
if status_code == 200
|
92
|
+
begin
|
93
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
94
|
+
result_mapper = Azure::ARM::TrafficManager::Models::TrafficManagerUserMetricsKeyModel.mapper()
|
95
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
96
|
+
rescue Exception => e
|
97
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
result
|
102
|
+
end
|
103
|
+
|
104
|
+
promise.execute
|
105
|
+
end
|
106
|
+
|
107
|
+
#
|
108
|
+
# Create or update a subscription-level key used for Realtime User Metrics
|
109
|
+
# collection.
|
110
|
+
#
|
111
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
112
|
+
# will be added to the HTTP request.
|
113
|
+
#
|
114
|
+
# @return [TrafficManagerUserMetricsKeyModel] operation results.
|
115
|
+
#
|
116
|
+
def create_or_update(custom_headers = nil)
|
117
|
+
response = create_or_update_async(custom_headers).value!
|
118
|
+
response.body unless response.nil?
|
119
|
+
end
|
120
|
+
|
121
|
+
#
|
122
|
+
# Create or update a subscription-level key used for Realtime User Metrics
|
123
|
+
# collection.
|
124
|
+
#
|
125
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
126
|
+
# will be added to the HTTP request.
|
127
|
+
#
|
128
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
129
|
+
#
|
130
|
+
def create_or_update_with_http_info(custom_headers = nil)
|
131
|
+
create_or_update_async(custom_headers).value!
|
132
|
+
end
|
133
|
+
|
134
|
+
#
|
135
|
+
# Create or update a subscription-level key used for Realtime User Metrics
|
136
|
+
# collection.
|
137
|
+
#
|
138
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
139
|
+
# to the HTTP request.
|
140
|
+
#
|
141
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
142
|
+
#
|
143
|
+
def create_or_update_async(custom_headers = nil)
|
144
|
+
api_version = '2017-09-01-preview'
|
145
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
146
|
+
|
147
|
+
|
148
|
+
request_headers = {}
|
149
|
+
|
150
|
+
# Set Headers
|
151
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
152
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
153
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default'
|
154
|
+
|
155
|
+
request_url = @base_url || @client.base_url
|
156
|
+
|
157
|
+
options = {
|
158
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
159
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
160
|
+
query_params: {'api-version' => api_version},
|
161
|
+
headers: request_headers.merge(custom_headers || {}),
|
162
|
+
base_url: request_url
|
163
|
+
}
|
164
|
+
promise = @client.make_request_async(:put, path_template, options)
|
165
|
+
|
166
|
+
promise = promise.then do |result|
|
167
|
+
http_response = result.response
|
168
|
+
status_code = http_response.status
|
169
|
+
response_content = http_response.body
|
170
|
+
unless status_code == 201
|
171
|
+
error_model = JSON.load(response_content)
|
172
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
173
|
+
end
|
174
|
+
|
175
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
176
|
+
# Deserialize Response
|
177
|
+
if status_code == 201
|
178
|
+
begin
|
179
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
180
|
+
result_mapper = Azure::ARM::TrafficManager::Models::TrafficManagerUserMetricsKeyModel.mapper()
|
181
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
182
|
+
rescue Exception => e
|
183
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
result
|
188
|
+
end
|
189
|
+
|
190
|
+
promise.execute
|
191
|
+
end
|
192
|
+
|
193
|
+
#
|
194
|
+
# Delete a subscription-level key used for Realtime User Metrics collection.
|
195
|
+
#
|
196
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
197
|
+
# will be added to the HTTP request.
|
198
|
+
#
|
199
|
+
# @return [DeleteOperationResult] operation results.
|
200
|
+
#
|
201
|
+
def delete(custom_headers = nil)
|
202
|
+
response = delete_async(custom_headers).value!
|
203
|
+
response.body unless response.nil?
|
204
|
+
end
|
205
|
+
|
206
|
+
#
|
207
|
+
# Delete a subscription-level key used for Realtime User Metrics collection.
|
208
|
+
#
|
209
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
210
|
+
# will be added to the HTTP request.
|
211
|
+
#
|
212
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
213
|
+
#
|
214
|
+
def delete_with_http_info(custom_headers = nil)
|
215
|
+
delete_async(custom_headers).value!
|
216
|
+
end
|
217
|
+
|
218
|
+
#
|
219
|
+
# Delete a subscription-level key used for Realtime User Metrics collection.
|
220
|
+
#
|
221
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
222
|
+
# to the HTTP request.
|
223
|
+
#
|
224
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
225
|
+
#
|
226
|
+
def delete_async(custom_headers = nil)
|
227
|
+
api_version = '2017-09-01-preview'
|
228
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
229
|
+
|
230
|
+
|
231
|
+
request_headers = {}
|
232
|
+
|
233
|
+
# Set Headers
|
234
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
235
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
236
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default'
|
237
|
+
|
238
|
+
request_url = @base_url || @client.base_url
|
239
|
+
|
240
|
+
options = {
|
241
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
242
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
243
|
+
query_params: {'api-version' => api_version},
|
244
|
+
headers: request_headers.merge(custom_headers || {}),
|
245
|
+
base_url: request_url
|
246
|
+
}
|
247
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
248
|
+
|
249
|
+
promise = promise.then do |result|
|
250
|
+
http_response = result.response
|
251
|
+
status_code = http_response.status
|
252
|
+
response_content = http_response.body
|
253
|
+
unless status_code == 200
|
254
|
+
error_model = JSON.load(response_content)
|
255
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
256
|
+
end
|
257
|
+
|
258
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
259
|
+
# Deserialize Response
|
260
|
+
if status_code == 200
|
261
|
+
begin
|
262
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
263
|
+
result_mapper = Azure::ARM::TrafficManager::Models::DeleteOperationResult.mapper()
|
264
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
265
|
+
rescue Exception => e
|
266
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
result
|
271
|
+
end
|
272
|
+
|
273
|
+
promise.execute
|
274
|
+
end
|
275
|
+
|
276
|
+
end
|
277
|
+
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.14.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-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -109,14 +109,17 @@ files:
|
|
109
109
|
- lib/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb
|
110
110
|
- lib/generated/azure_mgmt_traffic_manager/models/query_experience.rb
|
111
111
|
- lib/generated/azure_mgmt_traffic_manager/models/region.rb
|
112
|
+
- lib/generated/azure_mgmt_traffic_manager/models/resource.rb
|
112
113
|
- lib/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb
|
113
114
|
- lib/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb
|
114
115
|
- lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb
|
115
116
|
- lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb
|
117
|
+
- lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb
|
116
118
|
- lib/generated/azure_mgmt_traffic_manager/models/traffic_routing_method.rb
|
117
119
|
- lib/generated/azure_mgmt_traffic_manager/module_definition.rb
|
118
120
|
- lib/generated/azure_mgmt_traffic_manager/profiles.rb
|
119
121
|
- lib/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb
|
122
|
+
- lib/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb
|
120
123
|
- lib/generated/azure_mgmt_traffic_manager/version.rb
|
121
124
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
122
125
|
licenses:
|