azure_mgmt_traffic_manager 0.16.0 → 0.17.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/endpoints.rb +8 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb +1 -1
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/resource.rb +9 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/profiles.rb +14 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +6 -5
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/endpoints.rb +8 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +2 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb +1 -1
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/resource.rb +9 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/profiles.rb +14 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +6 -5
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/endpoints.rb +8 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +2 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/resource.rb +10 -1
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/profiles.rb +14 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +6 -5
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/heat_map.rb +2 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/resource.rb +10 -1
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +6 -5
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb +6 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager.rb +50 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/endpoints.rb +501 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +112 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +58 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb +47 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb +76 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb +188 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb +20 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint_status.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +124 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/monitor_protocol.rb +17 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/profile.rb +172 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +55 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/profile_monitor_status.rb +19 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/profile_status.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb +63 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/region.rb +79 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/resource.rb +82 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb +92 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb +76 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +93 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/traffic_routing_method.rb +18 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/traffic_view_enrollment_status.rb +16 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/module_definition.rb +9 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/profiles.rb +734 -0
- data/lib/2018-02-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +141 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager.rb +58 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/endpoints.rb +501 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +112 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/heat_map.rb +139 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +58 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb +47 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb +76 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb +206 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb +20 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/endpoint_properties_custom_headers_item.rb +57 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/endpoint_status.rb +16 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/heat_map_endpoint.rb +58 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/heat_map_model.rb +125 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +165 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/monitor_config_custom_headers_item.rb +57 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/monitor_config_expected_status_code_ranges_item.rb +58 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/monitor_protocol.rb +17 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/profile.rb +169 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +55 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/profile_monitor_status.rb +19 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/profile_status.rb +16 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb +60 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/query_experience.rb +70 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/region.rb +79 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/resource.rb +79 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb +89 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb +92 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb +73 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +93 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/traffic_routing_method.rb +18 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/traffic_view_enrollment_status.rb +16 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/module_definition.rb +9 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/profiles.rb +734 -0
- data/lib/2018-03-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +145 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager.rb +61 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/endpoints.rb +501 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +112 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/heat_map.rb +139 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb +76 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb +229 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb +20 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint_properties_custom_headers_item.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint_properties_subnets_item.rb +69 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/endpoint_status.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/heat_map_endpoint.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/heat_map_model.rb +125 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +165 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/monitor_config_custom_headers_item.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/monitor_config_expected_status_code_ranges_item.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/monitor_protocol.rb +17 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/profile.rb +181 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +55 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/profile_monitor_status.rb +19 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/profile_status.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb +60 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/query_experience.rb +70 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/region.rb +79 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/resource.rb +79 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb +89 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb +92 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb +73 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +93 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_routing_method.rb +20 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/traffic_view_enrollment_status.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/models/user_metrics_model.rb +70 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/module_definition.rb +9 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/profiles.rb +734 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +149 -0
- data/lib/2018-04-01/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb +286 -0
- data/lib/azure_mgmt_traffic_manager.rb +4 -1
- data/lib/profiles/latest/modules/trafficmanager_profile_module.rb +98 -86
- data/lib/version.rb +1 -1
- metadata +102 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f74c824e4147068c0acc460362e34419019802f863e55be89823e17ec11d5bb4
|
4
|
+
data.tar.gz: a8916a9624dc5a6260354708acf6851bf7f511cdd343edcca53dfd5a8e8069c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73d23bbd66fdb6b318d818c57a58922344ae357bc208756934d2981b525cc4eeedccfd81722b63942212f10c6283c613617ccd84caeb6312a5e1da7c4e660810
|
7
|
+
data.tar.gz: 360d6f6217a0d6213469a8a85f2b3b501388b9d89eb4293d85b52f6d94f97d75bad0b26b50c13b47c18742b6156307e845e4ff18ad1201d97925a2a7859a9597
|
@@ -127,6 +127,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
127
127
|
end
|
128
128
|
|
129
129
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
130
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
131
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
130
132
|
# Deserialize Response
|
131
133
|
if status_code == 200
|
132
134
|
begin
|
@@ -230,6 +232,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
230
232
|
end
|
231
233
|
|
232
234
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
235
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
236
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
233
237
|
# Deserialize Response
|
234
238
|
if status_code == 200
|
235
239
|
begin
|
@@ -353,6 +357,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
353
357
|
end
|
354
358
|
|
355
359
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
360
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
361
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
356
362
|
# Deserialize Response
|
357
363
|
if status_code == 200
|
358
364
|
begin
|
@@ -471,6 +477,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
471
477
|
end
|
472
478
|
|
473
479
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
480
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
481
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
474
482
|
|
475
483
|
result
|
476
484
|
end
|
@@ -23,7 +23,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
23
23
|
# the RelativeName with the DNS domain used by Azure Traffic Manager.
|
24
24
|
attr_accessor :fqdn
|
25
25
|
|
26
|
-
# @return [Integer] Gets or sets the DNS
|
26
|
+
# @return [Integer] Gets or sets the DNS Time-To-Live (TTL), in seconds.
|
27
27
|
# This informs the local DNS resolvers and DNS clients how long to cache
|
28
28
|
# DNS responses provided by this Traffic Manager profile.
|
29
29
|
attr_accessor :ttl
|
@@ -29,6 +29,15 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
29
29
|
attr_accessor :tags
|
30
30
|
|
31
31
|
|
32
|
+
# @return [String] the name of the resource group of the resource.
|
33
|
+
def resource_group
|
34
|
+
unless self.id.nil?
|
35
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
36
|
+
groups.captures[0].strip if groups
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
|
32
41
|
#
|
33
42
|
# Mapper for Resource class as Ruby Hash.
|
34
43
|
# This will be used for serialization/deserialization.
|
@@ -103,6 +103,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
103
103
|
end
|
104
104
|
|
105
105
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
106
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
107
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
106
108
|
# Deserialize Response
|
107
109
|
if status_code == 200
|
108
110
|
begin
|
@@ -194,6 +196,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
194
196
|
end
|
195
197
|
|
196
198
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
199
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
200
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
197
201
|
# Deserialize Response
|
198
202
|
if status_code == 200
|
199
203
|
begin
|
@@ -278,6 +282,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
278
282
|
end
|
279
283
|
|
280
284
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
285
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
286
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
281
287
|
# Deserialize Response
|
282
288
|
if status_code == 200
|
283
289
|
begin
|
@@ -373,6 +379,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
373
379
|
end
|
374
380
|
|
375
381
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
382
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
383
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
376
384
|
# Deserialize Response
|
377
385
|
if status_code == 200
|
378
386
|
begin
|
@@ -482,6 +490,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
482
490
|
end
|
483
491
|
|
484
492
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
493
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
494
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
485
495
|
# Deserialize Response
|
486
496
|
if status_code == 200
|
487
497
|
begin
|
@@ -589,6 +599,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
589
599
|
end
|
590
600
|
|
591
601
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
602
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
603
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
592
604
|
|
593
605
|
result
|
594
606
|
end
|
@@ -688,6 +700,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
688
700
|
end
|
689
701
|
|
690
702
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
703
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
704
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
691
705
|
# Deserialize Response
|
692
706
|
if status_code == 200
|
693
707
|
begin
|
data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb
CHANGED
@@ -25,15 +25,16 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
25
25
|
# @return [String] Client Api Version.
|
26
26
|
attr_reader :api_version
|
27
27
|
|
28
|
-
# @return [String]
|
28
|
+
# @return [String] The preferred language for the response.
|
29
29
|
attr_accessor :accept_language
|
30
30
|
|
31
|
-
# @return [Integer]
|
32
|
-
#
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
33
33
|
attr_accessor :long_running_operation_retry_timeout
|
34
34
|
|
35
|
-
# @return [Boolean]
|
36
|
-
#
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
37
38
|
attr_accessor :generate_client_request_id
|
38
39
|
|
39
40
|
# @return [Endpoints] endpoints
|
@@ -127,6 +127,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
127
127
|
end
|
128
128
|
|
129
129
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
130
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
131
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
130
132
|
# Deserialize Response
|
131
133
|
if status_code == 200
|
132
134
|
begin
|
@@ -230,6 +232,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
230
232
|
end
|
231
233
|
|
232
234
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
235
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
236
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
233
237
|
# Deserialize Response
|
234
238
|
if status_code == 200
|
235
239
|
begin
|
@@ -353,6 +357,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
353
357
|
end
|
354
358
|
|
355
359
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
360
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
361
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
356
362
|
# Deserialize Response
|
357
363
|
if status_code == 200
|
358
364
|
begin
|
@@ -472,6 +478,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
472
478
|
end
|
473
479
|
|
474
480
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
481
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
482
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
475
483
|
# Deserialize Response
|
476
484
|
if status_code == 200
|
477
485
|
begin
|
@@ -89,6 +89,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
89
89
|
end
|
90
90
|
|
91
91
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
92
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
93
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
92
94
|
# Deserialize Response
|
93
95
|
if status_code == 200
|
94
96
|
begin
|
@@ -23,7 +23,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
23
23
|
# the RelativeName with the DNS domain used by Azure Traffic Manager.
|
24
24
|
attr_accessor :fqdn
|
25
25
|
|
26
|
-
# @return [Integer] Gets or sets the DNS
|
26
|
+
# @return [Integer] Gets or sets the DNS Time-To-Live (TTL), in seconds.
|
27
27
|
# This informs the local DNS resolvers and DNS clients how long to cache
|
28
28
|
# DNS responses provided by this Traffic Manager profile.
|
29
29
|
attr_accessor :ttl
|
@@ -28,6 +28,15 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
28
28
|
attr_accessor :tags
|
29
29
|
|
30
30
|
|
31
|
+
# @return [String] the name of the resource group of the resource.
|
32
|
+
def resource_group
|
33
|
+
unless self.id.nil?
|
34
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
35
|
+
groups.captures[0].strip if groups
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
31
40
|
#
|
32
41
|
# Mapper for Resource class as Ruby Hash.
|
33
42
|
# This will be used for serialization/deserialization.
|
@@ -103,6 +103,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
103
103
|
end
|
104
104
|
|
105
105
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
106
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
107
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
106
108
|
# Deserialize Response
|
107
109
|
if status_code == 200
|
108
110
|
begin
|
@@ -194,6 +196,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
194
196
|
end
|
195
197
|
|
196
198
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
199
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
200
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
197
201
|
# Deserialize Response
|
198
202
|
if status_code == 200
|
199
203
|
begin
|
@@ -278,6 +282,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
278
282
|
end
|
279
283
|
|
280
284
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
285
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
286
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
281
287
|
# Deserialize Response
|
282
288
|
if status_code == 200
|
283
289
|
begin
|
@@ -373,6 +379,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
373
379
|
end
|
374
380
|
|
375
381
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
382
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
383
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
376
384
|
# Deserialize Response
|
377
385
|
if status_code == 200
|
378
386
|
begin
|
@@ -482,6 +490,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
482
490
|
end
|
483
491
|
|
484
492
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
493
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
494
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
485
495
|
# Deserialize Response
|
486
496
|
if status_code == 200
|
487
497
|
begin
|
@@ -590,6 +600,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
590
600
|
end
|
591
601
|
|
592
602
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
603
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
604
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
593
605
|
# Deserialize Response
|
594
606
|
if status_code == 200
|
595
607
|
begin
|
@@ -709,6 +721,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
709
721
|
end
|
710
722
|
|
711
723
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
724
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
725
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
712
726
|
# Deserialize Response
|
713
727
|
if status_code == 200
|
714
728
|
begin
|
data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb
CHANGED
@@ -25,15 +25,16 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
|
|
25
25
|
# @return [String] Client Api Version.
|
26
26
|
attr_reader :api_version
|
27
27
|
|
28
|
-
# @return [String]
|
28
|
+
# @return [String] The preferred language for the response.
|
29
29
|
attr_accessor :accept_language
|
30
30
|
|
31
|
-
# @return [Integer]
|
32
|
-
#
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
33
33
|
attr_accessor :long_running_operation_retry_timeout
|
34
34
|
|
35
|
-
# @return [Boolean]
|
36
|
-
#
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
37
38
|
attr_accessor :generate_client_request_id
|
38
39
|
|
39
40
|
# @return [Endpoints] endpoints
|
@@ -127,6 +127,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
127
127
|
end
|
128
128
|
|
129
129
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
130
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
131
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
130
132
|
# Deserialize Response
|
131
133
|
if status_code == 200
|
132
134
|
begin
|
@@ -230,6 +232,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
230
232
|
end
|
231
233
|
|
232
234
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
235
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
236
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
233
237
|
# Deserialize Response
|
234
238
|
if status_code == 200
|
235
239
|
begin
|
@@ -353,6 +357,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
353
357
|
end
|
354
358
|
|
355
359
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
360
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
361
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
356
362
|
# Deserialize Response
|
357
363
|
if status_code == 200
|
358
364
|
begin
|
@@ -472,6 +478,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
472
478
|
end
|
473
479
|
|
474
480
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
481
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
482
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
475
483
|
# Deserialize Response
|
476
484
|
if status_code == 200
|
477
485
|
begin
|
@@ -89,6 +89,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
89
89
|
end
|
90
90
|
|
91
91
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
92
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
93
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
92
94
|
# Deserialize Response
|
93
95
|
if status_code == 200
|
94
96
|
begin
|
@@ -20,10 +20,19 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
20
20
|
attr_accessor :name
|
21
21
|
|
22
22
|
# @return [String] The type of the resource. Ex-
|
23
|
-
# Microsoft.Network/
|
23
|
+
# Microsoft.Network/trafficManagerProfiles.
|
24
24
|
attr_accessor :type
|
25
25
|
|
26
26
|
|
27
|
+
# @return [String] the name of the resource group of the resource.
|
28
|
+
def resource_group
|
29
|
+
unless self.id.nil?
|
30
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
31
|
+
groups.captures[0].strip if groups
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
|
27
36
|
#
|
28
37
|
# Mapper for Resource class as Ruby Hash.
|
29
38
|
# This will be used for serialization/deserialization.
|
@@ -103,6 +103,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
103
103
|
end
|
104
104
|
|
105
105
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
106
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
107
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
106
108
|
# Deserialize Response
|
107
109
|
if status_code == 200
|
108
110
|
begin
|
@@ -194,6 +196,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
194
196
|
end
|
195
197
|
|
196
198
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
199
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
200
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
197
201
|
# Deserialize Response
|
198
202
|
if status_code == 200
|
199
203
|
begin
|
@@ -278,6 +282,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
278
282
|
end
|
279
283
|
|
280
284
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
285
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
286
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
281
287
|
# Deserialize Response
|
282
288
|
if status_code == 200
|
283
289
|
begin
|
@@ -373,6 +379,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
373
379
|
end
|
374
380
|
|
375
381
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
382
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
383
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
376
384
|
# Deserialize Response
|
377
385
|
if status_code == 200
|
378
386
|
begin
|
@@ -482,6 +490,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
482
490
|
end
|
483
491
|
|
484
492
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
493
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
494
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
485
495
|
# Deserialize Response
|
486
496
|
if status_code == 200
|
487
497
|
begin
|
@@ -590,6 +600,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
590
600
|
end
|
591
601
|
|
592
602
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
603
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
604
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
593
605
|
# Deserialize Response
|
594
606
|
if status_code == 200
|
595
607
|
begin
|
@@ -699,6 +711,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
699
711
|
end
|
700
712
|
|
701
713
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
714
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
715
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
702
716
|
# Deserialize Response
|
703
717
|
if status_code == 200
|
704
718
|
begin
|
data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb
CHANGED
@@ -25,15 +25,16 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
|
|
25
25
|
# @return [String] Client Api Version.
|
26
26
|
attr_reader :api_version
|
27
27
|
|
28
|
-
# @return [String]
|
28
|
+
# @return [String] The preferred language for the response.
|
29
29
|
attr_accessor :accept_language
|
30
30
|
|
31
|
-
# @return [Integer]
|
32
|
-
#
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
33
33
|
attr_accessor :long_running_operation_retry_timeout
|
34
34
|
|
35
|
-
# @return [Boolean]
|
36
|
-
#
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
37
38
|
attr_accessor :generate_client_request_id
|
38
39
|
|
39
40
|
# @return [Endpoints] endpoints
|