azure_mgmt_traffic_manager 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/endpoints.rb +24 -24
  3. data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/profiles.rb +42 -41
  4. data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +4 -1
  5. data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/endpoints.rb +24 -24
  6. data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +6 -5
  7. data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/profiles.rb +42 -41
  8. data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +4 -1
  9. data/lib/2017-05-01/generated/azure_mgmt_traffic_manager.rb +5 -6
  10. data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/endpoints.rb +24 -24
  11. data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +6 -5
  12. data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/profiles.rb +42 -41
  13. data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +4 -1
  14. data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/heat_map.rb +6 -5
  15. data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb +2 -3
  16. data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +4 -1
  17. data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb +31 -28
  18. data/lib/profiles/latest/modules/trafficmanager_profile_module.rb +113 -91
  19. data/lib/profiles/latest/trafficmanager_latest_profile_client.rb +28 -9
  20. data/lib/profiles/latest/trafficmanager_module_definition.rb +0 -1
  21. data/lib/version.rb +1 -1
  22. metadata +3 -4
  23. data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb +0 -74
@@ -114,6 +114,9 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
114
114
  fail ArgumentError, 'path is nil' if path.nil?
115
115
 
116
116
  request_url = options[:base_url] || @base_url
117
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
118
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
119
+ end
117
120
 
118
121
  request_headers = @request_headers
119
122
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -130,7 +133,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
130
133
  #
131
134
  def add_telemetry
132
135
  sdk_information = 'azure_mgmt_traffic_manager'
133
- sdk_information = "#{sdk_information}/0.15.2"
136
+ sdk_information = "#{sdk_information}/0.16.0"
134
137
  add_user_agent_information(sdk_information)
135
138
  end
136
139
  end
@@ -27,19 +27,18 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
27
27
 
28
28
  module Models
29
29
  autoload :TrafficManagerNameAvailability, '2017-05-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb'
30
+ autoload :DeleteOperationResult, '2017-05-01/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb'
30
31
  autoload :Region, '2017-05-01/generated/azure_mgmt_traffic_manager/models/region.rb'
31
- autoload :ProfileListResult, '2017-05-01/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb'
32
32
  autoload :CheckTrafficManagerRelativeDnsNameAvailabilityParameters, '2017-05-01/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb'
33
- autoload :DeleteOperationResult, '2017-05-01/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb'
34
- autoload :MonitorConfig, '2017-05-01/generated/azure_mgmt_traffic_manager/models/monitor_config.rb'
35
33
  autoload :DnsConfig, '2017-05-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb'
34
+ autoload :MonitorConfig, '2017-05-01/generated/azure_mgmt_traffic_manager/models/monitor_config.rb'
35
+ autoload :ProfileListResult, '2017-05-01/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb'
36
36
  autoload :Resource, '2017-05-01/generated/azure_mgmt_traffic_manager/models/resource.rb'
37
- autoload :ProxyResource, '2017-05-01/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb'
38
37
  autoload :Endpoint, '2017-05-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb'
38
+ autoload :Profile, '2017-05-01/generated/azure_mgmt_traffic_manager/models/profile.rb'
39
+ autoload :ProxyResource, '2017-05-01/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb'
39
40
  autoload :TrafficManagerGeographicHierarchy, '2017-05-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb'
40
41
  autoload :TrackedResource, '2017-05-01/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb'
41
- autoload :Profile, '2017-05-01/generated/azure_mgmt_traffic_manager/models/profile.rb'
42
- autoload :TrafficManagerUserMetricsKeyModel, '2017-05-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb'
43
42
  autoload :EndpointStatus, '2017-05-01/generated/azure_mgmt_traffic_manager/models/endpoint_status.rb'
44
43
  autoload :EndpointMonitorStatus, '2017-05-01/generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb'
45
44
  autoload :ProfileMonitorStatus, '2017-05-01/generated/azure_mgmt_traffic_manager/models/profile_monitor_status.rb'
@@ -38,8 +38,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
38
38
  #
39
39
  # @return [Endpoint] operation results.
40
40
  #
41
- def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
42
- response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value!
41
+ def update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
42
+ response = update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value!
43
43
  response.body unless response.nil?
44
44
  end
45
45
 
@@ -60,8 +60,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
60
60
  #
61
61
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
62
62
  #
63
- def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
64
- update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value!
63
+ def update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
64
+ update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value!
65
65
  end
66
66
 
67
67
  #
@@ -81,7 +81,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
81
81
  #
82
82
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
83
83
  #
84
- def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
84
+ def update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
85
85
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
86
86
  fail ArgumentError, 'profile_name is nil' if profile_name.nil?
87
87
  fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
@@ -92,13 +92,12 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
92
92
 
93
93
 
94
94
  request_headers = {}
95
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
95
96
 
96
97
  # Set Headers
97
98
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
98
99
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
99
100
 
100
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
101
-
102
101
  # Serialize Request
103
102
  request_mapper = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Endpoint.mapper()
104
103
  request_content = @client.serialize(request_mapper, parameters)
@@ -158,8 +157,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
158
157
  #
159
158
  # @return [Endpoint] operation results.
160
159
  #
161
- def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
162
- response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
160
+ def get(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
161
+ response = get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
163
162
  response.body unless response.nil?
164
163
  end
165
164
 
@@ -176,8 +175,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
176
175
  #
177
176
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
178
177
  #
179
- def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
180
- get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
178
+ def get_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
179
+ get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
181
180
  end
182
181
 
183
182
  #
@@ -193,7 +192,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
193
192
  #
194
193
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
195
194
  #
196
- def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
195
+ def get_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
197
196
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
198
197
  fail ArgumentError, 'profile_name is nil' if profile_name.nil?
199
198
  fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
@@ -203,6 +202,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
203
202
 
204
203
 
205
204
  request_headers = {}
205
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
206
206
 
207
207
  # Set Headers
208
208
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -264,8 +264,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
264
264
  #
265
265
  # @return [Endpoint] operation results.
266
266
  #
267
- def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
268
- response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value!
267
+ def create_or_update(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
268
+ response = create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value!
269
269
  response.body unless response.nil?
270
270
  end
271
271
 
@@ -286,8 +286,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
286
286
  #
287
287
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
288
288
  #
289
- def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
290
- create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers).value!
289
+ def create_or_update_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
290
+ create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:custom_headers).value!
291
291
  end
292
292
 
293
293
  #
@@ -307,7 +307,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
307
307
  #
308
308
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
309
309
  #
310
- def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers = nil)
310
+ def create_or_update_async(resource_group_name, profile_name, endpoint_type, endpoint_name, parameters, custom_headers:nil)
311
311
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
312
312
  fail ArgumentError, 'profile_name is nil' if profile_name.nil?
313
313
  fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
@@ -318,13 +318,12 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
318
318
 
319
319
 
320
320
  request_headers = {}
321
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
321
322
 
322
323
  # Set Headers
323
324
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
324
325
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
325
326
 
326
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
327
-
328
327
  # Serialize Request
329
328
  request_mapper = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Endpoint.mapper()
330
329
  request_content = @client.serialize(request_mapper, parameters)
@@ -396,8 +395,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
396
395
  #
397
396
  # @return [DeleteOperationResult] operation results.
398
397
  #
399
- def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
400
- response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
398
+ def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
399
+ response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
401
400
  response.body unless response.nil?
402
401
  end
403
402
 
@@ -416,8 +415,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
416
415
  #
417
416
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
418
417
  #
419
- def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
420
- delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
418
+ def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
419
+ delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
421
420
  end
422
421
 
423
422
  #
@@ -435,7 +434,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
435
434
  #
436
435
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
437
436
  #
438
- def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
437
+ def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
439
438
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
440
439
  fail ArgumentError, 'profile_name is nil' if profile_name.nil?
441
440
  fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
@@ -445,6 +444,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
445
444
 
446
445
 
447
446
  request_headers = {}
447
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
448
448
 
449
449
  # Set Headers
450
450
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -30,8 +30,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
30
30
  #
31
31
  # @return [TrafficManagerGeographicHierarchy] operation results.
32
32
  #
33
- def get_default(custom_headers = nil)
34
- response = get_default_async(custom_headers).value!
33
+ def get_default(custom_headers:nil)
34
+ response = get_default_async(custom_headers:custom_headers).value!
35
35
  response.body unless response.nil?
36
36
  end
37
37
 
@@ -44,8 +44,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
44
44
  #
45
45
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
46
46
  #
47
- def get_default_with_http_info(custom_headers = nil)
48
- get_default_async(custom_headers).value!
47
+ def get_default_with_http_info(custom_headers:nil)
48
+ get_default_async(custom_headers:custom_headers).value!
49
49
  end
50
50
 
51
51
  #
@@ -57,11 +57,12 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
57
57
  #
58
58
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
59
59
  #
60
- def get_default_async(custom_headers = nil)
60
+ def get_default_async(custom_headers:nil)
61
61
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
62
62
 
63
63
 
64
64
  request_headers = {}
65
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
65
66
 
66
67
  # Set Headers
67
68
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -32,8 +32,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
32
32
  #
33
33
  # @return [TrafficManagerNameAvailability] operation results.
34
34
  #
35
- def check_traffic_manager_relative_dns_name_availability(parameters, custom_headers = nil)
36
- response = check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers).value!
35
+ def check_traffic_manager_relative_dns_name_availability(parameters, custom_headers:nil)
36
+ response = check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
@@ -48,8 +48,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def check_traffic_manager_relative_dns_name_availability_with_http_info(parameters, custom_headers = nil)
52
- check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers).value!
51
+ def check_traffic_manager_relative_dns_name_availability_with_http_info(parameters, custom_headers:nil)
52
+ check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
@@ -63,19 +63,18 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def check_traffic_manager_relative_dns_name_availability_async(parameters, custom_headers = nil)
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
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
69
69
 
70
70
 
71
71
  request_headers = {}
72
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
72
73
 
73
74
  # Set Headers
74
75
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
75
76
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
76
77
 
77
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
-
79
78
  # Serialize Request
80
79
  request_mapper = Azure::TrafficManager::Mgmt::V2017_05_01::Models::CheckTrafficManagerRelativeDnsNameAvailabilityParameters.mapper()
81
80
  request_content = @client.serialize(request_mapper, parameters)
@@ -131,8 +130,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
131
130
  #
132
131
  # @return [ProfileListResult] operation results.
133
132
  #
134
- def list_by_resource_group(resource_group_name, custom_headers = nil)
135
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
133
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
134
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
136
135
  response.body unless response.nil?
137
136
  end
138
137
 
@@ -146,8 +145,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
146
145
  #
147
146
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
147
  #
149
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
150
- list_by_resource_group_async(resource_group_name, custom_headers).value!
148
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
149
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
151
150
  end
152
151
 
153
152
  #
@@ -160,13 +159,14 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
160
159
  #
161
160
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
161
  #
163
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
162
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
164
163
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
165
164
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
166
165
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
167
166
 
168
167
 
169
168
  request_headers = {}
169
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
170
170
 
171
171
  # Set Headers
172
172
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -219,8 +219,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
219
219
  #
220
220
  # @return [ProfileListResult] operation results.
221
221
  #
222
- def list_by_subscription(custom_headers = nil)
223
- response = list_by_subscription_async(custom_headers).value!
222
+ def list_by_subscription(custom_headers:nil)
223
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
224
224
  response.body unless response.nil?
225
225
  end
226
226
 
@@ -232,8 +232,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
232
232
  #
233
233
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
234
234
  #
235
- def list_by_subscription_with_http_info(custom_headers = nil)
236
- list_by_subscription_async(custom_headers).value!
235
+ def list_by_subscription_with_http_info(custom_headers:nil)
236
+ list_by_subscription_async(custom_headers:custom_headers).value!
237
237
  end
238
238
 
239
239
  #
@@ -244,12 +244,13 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
244
244
  #
245
245
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
246
246
  #
247
- def list_by_subscription_async(custom_headers = nil)
247
+ def list_by_subscription_async(custom_headers:nil)
248
248
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
249
249
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
250
250
 
251
251
 
252
252
  request_headers = {}
253
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
253
254
 
254
255
  # Set Headers
255
256
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -305,8 +306,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
305
306
  #
306
307
  # @return [Profile] operation results.
307
308
  #
308
- def get(resource_group_name, profile_name, custom_headers = nil)
309
- response = get_async(resource_group_name, profile_name, custom_headers).value!
309
+ def get(resource_group_name, profile_name, custom_headers:nil)
310
+ response = get_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
310
311
  response.body unless response.nil?
311
312
  end
312
313
 
@@ -321,8 +322,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
321
322
  #
322
323
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
323
324
  #
324
- def get_with_http_info(resource_group_name, profile_name, custom_headers = nil)
325
- get_async(resource_group_name, profile_name, custom_headers).value!
325
+ def get_with_http_info(resource_group_name, profile_name, custom_headers:nil)
326
+ get_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
326
327
  end
327
328
 
328
329
  #
@@ -336,7 +337,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
336
337
  #
337
338
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
338
339
  #
339
- def get_async(resource_group_name, profile_name, custom_headers = nil)
340
+ def get_async(resource_group_name, profile_name, custom_headers:nil)
340
341
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
341
342
  fail ArgumentError, 'profile_name is nil' if profile_name.nil?
342
343
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -344,6 +345,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
344
345
 
345
346
 
346
347
  request_headers = {}
348
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
347
349
 
348
350
  # Set Headers
349
351
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -401,8 +403,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
401
403
  #
402
404
  # @return [Profile] operation results.
403
405
  #
404
- def create_or_update(resource_group_name, profile_name, parameters, custom_headers = nil)
405
- response = create_or_update_async(resource_group_name, profile_name, parameters, custom_headers).value!
406
+ def create_or_update(resource_group_name, profile_name, parameters, custom_headers:nil)
407
+ response = create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value!
406
408
  response.body unless response.nil?
407
409
  end
408
410
 
@@ -419,8 +421,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
419
421
  #
420
422
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
421
423
  #
422
- def create_or_update_with_http_info(resource_group_name, profile_name, parameters, custom_headers = nil)
423
- create_or_update_async(resource_group_name, profile_name, parameters, custom_headers).value!
424
+ def create_or_update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil)
425
+ create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value!
424
426
  end
425
427
 
426
428
  #
@@ -436,7 +438,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
436
438
  #
437
439
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
438
440
  #
439
- def create_or_update_async(resource_group_name, profile_name, parameters, custom_headers = nil)
441
+ def create_or_update_async(resource_group_name, profile_name, parameters, custom_headers:nil)
440
442
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
441
443
  fail ArgumentError, 'profile_name is nil' if profile_name.nil?
442
444
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -445,13 +447,12 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
445
447
 
446
448
 
447
449
  request_headers = {}
450
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
448
451
 
449
452
  # Set Headers
450
453
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
451
454
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
452
455
 
453
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
454
-
455
456
  # Serialize Request
456
457
  request_mapper = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Profile.mapper()
457
458
  request_content = @client.serialize(request_mapper, parameters)
@@ -520,8 +521,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
520
521
  #
521
522
  # @return [DeleteOperationResult] operation results.
522
523
  #
523
- def delete(resource_group_name, profile_name, custom_headers = nil)
524
- response = delete_async(resource_group_name, profile_name, custom_headers).value!
524
+ def delete(resource_group_name, profile_name, custom_headers:nil)
525
+ response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
525
526
  response.body unless response.nil?
526
527
  end
527
528
 
@@ -537,8 +538,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
537
538
  #
538
539
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
539
540
  #
540
- def delete_with_http_info(resource_group_name, profile_name, custom_headers = nil)
541
- delete_async(resource_group_name, profile_name, custom_headers).value!
541
+ def delete_with_http_info(resource_group_name, profile_name, custom_headers:nil)
542
+ delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
542
543
  end
543
544
 
544
545
  #
@@ -553,7 +554,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
553
554
  #
554
555
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
555
556
  #
556
- def delete_async(resource_group_name, profile_name, custom_headers = nil)
557
+ def delete_async(resource_group_name, profile_name, custom_headers:nil)
557
558
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
558
559
  fail ArgumentError, 'profile_name is nil' if profile_name.nil?
559
560
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -561,6 +562,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
561
562
 
562
563
 
563
564
  request_headers = {}
565
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
564
566
 
565
567
  # Set Headers
566
568
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -618,8 +620,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
618
620
  #
619
621
  # @return [Profile] operation results.
620
622
  #
621
- def update(resource_group_name, profile_name, parameters, custom_headers = nil)
622
- response = update_async(resource_group_name, profile_name, parameters, custom_headers).value!
623
+ def update(resource_group_name, profile_name, parameters, custom_headers:nil)
624
+ response = update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value!
623
625
  response.body unless response.nil?
624
626
  end
625
627
 
@@ -636,8 +638,8 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
636
638
  #
637
639
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
638
640
  #
639
- def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers = nil)
640
- update_async(resource_group_name, profile_name, parameters, custom_headers).value!
641
+ def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil)
642
+ update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value!
641
643
  end
642
644
 
643
645
  #
@@ -653,7 +655,7 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
653
655
  #
654
656
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
655
657
  #
656
- def update_async(resource_group_name, profile_name, parameters, custom_headers = nil)
658
+ def update_async(resource_group_name, profile_name, parameters, custom_headers:nil)
657
659
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
658
660
  fail ArgumentError, 'profile_name is nil' if profile_name.nil?
659
661
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -662,13 +664,12 @@ module Azure::TrafficManager::Mgmt::V2017_05_01
662
664
 
663
665
 
664
666
  request_headers = {}
667
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
665
668
 
666
669
  # Set Headers
667
670
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
668
671
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
669
672
 
670
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
671
-
672
673
  # Serialize Request
673
674
  request_mapper = Azure::TrafficManager::Mgmt::V2017_05_01::Models::Profile.mapper()
674
675
  request_content = @client.serialize(request_mapper, parameters)