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
@@ -110,6 +110,9 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
110
110
  fail ArgumentError, 'path is nil' if path.nil?
111
111
 
112
112
  request_url = options[:base_url] || @base_url
113
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
114
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
115
+ end
113
116
 
114
117
  request_headers = @request_headers
115
118
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -126,7 +129,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
126
129
  #
127
130
  def add_telemetry
128
131
  sdk_information = 'azure_mgmt_traffic_manager'
129
- sdk_information = "#{sdk_information}/0.15.2"
132
+ sdk_information = "#{sdk_information}/0.16.0"
130
133
  add_user_agent_information(sdk_information)
131
134
  end
132
135
  end
@@ -38,8 +38,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_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_03_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_03_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_03_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_03_01::Models::Endpoint.mapper()
104
103
  request_content = @client.serialize(request_mapper, parameters)
@@ -158,8 +157,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_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_03_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_03_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_03_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_03_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_03_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_03_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_03_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_03_01::Models::Endpoint.mapper()
330
329
  request_content = @client.serialize(request_mapper, parameters)
@@ -396,8 +395,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_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_03_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_03_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_03_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_03_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_03_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_03_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_03_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_03_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_03_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_03_01::Models::CheckTrafficManagerRelativeDnsNameAvailabilityParameters.mapper()
81
80
  request_content = @client.serialize(request_mapper, parameters)
@@ -131,8 +130,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
131
130
  #
132
131
  # @return [ProfileListResult] operation results.
133
132
  #
134
- def list_all_in_resource_group(resource_group_name, custom_headers = nil)
135
- response = list_all_in_resource_group_async(resource_group_name, custom_headers).value!
133
+ def list_all_in_resource_group(resource_group_name, custom_headers:nil)
134
+ response = list_all_in_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_03_01
146
145
  #
147
146
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
147
  #
149
- def list_all_in_resource_group_with_http_info(resource_group_name, custom_headers = nil)
150
- list_all_in_resource_group_async(resource_group_name, custom_headers).value!
148
+ def list_all_in_resource_group_with_http_info(resource_group_name, custom_headers:nil)
149
+ list_all_in_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_03_01
160
159
  #
161
160
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
161
  #
163
- def list_all_in_resource_group_async(resource_group_name, custom_headers = nil)
162
+ def list_all_in_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_03_01
219
219
  #
220
220
  # @return [ProfileListResult] operation results.
221
221
  #
222
- def list_all(custom_headers = nil)
223
- response = list_all_async(custom_headers).value!
222
+ def list_all(custom_headers:nil)
223
+ response = list_all_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_03_01
232
232
  #
233
233
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
234
234
  #
235
- def list_all_with_http_info(custom_headers = nil)
236
- list_all_async(custom_headers).value!
235
+ def list_all_with_http_info(custom_headers:nil)
236
+ list_all_async(custom_headers:custom_headers).value!
237
237
  end
238
238
 
239
239
  #
@@ -244,12 +244,13 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
244
244
  #
245
245
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
246
246
  #
247
- def list_all_async(custom_headers = nil)
247
+ def list_all_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_03_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_03_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_03_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_03_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_03_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_03_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_03_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_03_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_03_01::Models::Profile.mapper()
457
458
  request_content = @client.serialize(request_mapper, parameters)
@@ -520,8 +521,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_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_03_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_03_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_03_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
@@ -628,8 +630,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
628
630
  #
629
631
  # @return [Profile] operation results.
630
632
  #
631
- def update(resource_group_name, profile_name, parameters, custom_headers = nil)
632
- response = update_async(resource_group_name, profile_name, parameters, custom_headers).value!
633
+ def update(resource_group_name, profile_name, parameters, custom_headers:nil)
634
+ response = update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value!
633
635
  response.body unless response.nil?
634
636
  end
635
637
 
@@ -646,8 +648,8 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
646
648
  #
647
649
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
648
650
  #
649
- def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers = nil)
650
- update_async(resource_group_name, profile_name, parameters, custom_headers).value!
651
+ def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil)
652
+ update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value!
651
653
  end
652
654
 
653
655
  #
@@ -663,7 +665,7 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
663
665
  #
664
666
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
665
667
  #
666
- def update_async(resource_group_name, profile_name, parameters, custom_headers = nil)
668
+ def update_async(resource_group_name, profile_name, parameters, custom_headers:nil)
667
669
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
668
670
  fail ArgumentError, 'profile_name is nil' if profile_name.nil?
669
671
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -672,13 +674,12 @@ module Azure::TrafficManager::Mgmt::V2017_03_01
672
674
 
673
675
 
674
676
  request_headers = {}
677
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
675
678
 
676
679
  # Set Headers
677
680
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
678
681
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
679
682
 
680
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
681
-
682
683
  # Serialize Request
683
684
  request_mapper = Azure::TrafficManager::Mgmt::V2017_03_01::Models::Profile.mapper()
684
685
  request_content = @client.serialize(request_mapper, parameters)