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.
- checksums.yaml +4 -4
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/endpoints.rb +24 -24
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/profiles.rb +42 -41
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +4 -1
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/endpoints.rb +24 -24
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +6 -5
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/profiles.rb +42 -41
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +4 -1
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager.rb +5 -6
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/endpoints.rb +24 -24
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +6 -5
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/profiles.rb +42 -41
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +4 -1
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/heat_map.rb +6 -5
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb +2 -3
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +4 -1
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb +31 -28
- data/lib/profiles/latest/modules/trafficmanager_profile_module.rb +113 -91
- data/lib/profiles/latest/trafficmanager_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/trafficmanager_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +3 -4
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb +0 -74
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2aa0714a4de6bce2a46840613244bd83facaf02
|
4
|
+
data.tar.gz: d0258f0c4465bab8475335007af1f6291ed2e61d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 409080c583a9706ac5b84f909ecf461dbdd50eb2d6a665cf36afc205ff1bd66c2fbec7f6563271a4c47666d19caae028045095ce11934aebc7dfb3badaf5a6e1
|
7
|
+
data.tar.gz: c6f65f4e8da8df0c284c31f79d401077efec51f011a38affe78fee1ddff3aee351b003d961aefce548f3b5d932e8ccdd91f79e45595f86501b4f920d2f927f6e
|
@@ -38,8 +38,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_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::V2015_11_01::Models::Endpoint.mapper()
|
104
103
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -158,8 +157,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_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::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_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::V2015_11_01::Models::Endpoint.mapper()
|
330
329
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -395,8 +394,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
395
394
|
# will be added to the HTTP request.
|
396
395
|
#
|
397
396
|
#
|
398
|
-
def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers
|
399
|
-
response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
|
397
|
+
def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
|
398
|
+
response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
|
400
399
|
nil
|
401
400
|
end
|
402
401
|
|
@@ -415,8 +414,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
415
414
|
#
|
416
415
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
417
416
|
#
|
418
|
-
def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers
|
419
|
-
delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
|
417
|
+
def delete_with_http_info(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
|
418
|
+
delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:custom_headers).value!
|
420
419
|
end
|
421
420
|
|
422
421
|
#
|
@@ -434,7 +433,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
434
433
|
#
|
435
434
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
436
435
|
#
|
437
|
-
def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers
|
436
|
+
def delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers:nil)
|
438
437
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
439
438
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
440
439
|
fail ArgumentError, 'endpoint_type is nil' if endpoint_type.nil?
|
@@ -444,6 +443,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
444
443
|
|
445
444
|
|
446
445
|
request_headers = {}
|
446
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
447
447
|
|
448
448
|
# Set Headers
|
449
449
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -32,8 +32,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
32
32
|
#
|
33
33
|
# @return [TrafficManagerNameAvailability] operation results.
|
34
34
|
#
|
35
|
-
def check_traffic_manager_relative_dns_name_availability(parameters, custom_headers
|
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::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_01::Models::CheckTrafficManagerRelativeDnsNameAvailabilityParameters.mapper()
|
81
80
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -131,8 +130,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
131
130
|
#
|
132
131
|
# @return [ProfileListResult] operation results.
|
133
132
|
#
|
134
|
-
def list_all_in_resource_group(resource_group_name, custom_headers
|
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::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_01
|
|
219
219
|
#
|
220
220
|
# @return [ProfileListResult] operation results.
|
221
221
|
#
|
222
|
-
def list_all(custom_headers
|
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::V2015_11_01
|
|
232
232
|
#
|
233
233
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
234
234
|
#
|
235
|
-
def list_all_with_http_info(custom_headers
|
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::V2015_11_01
|
|
244
244
|
#
|
245
245
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
246
246
|
#
|
247
|
-
def list_all_async(custom_headers
|
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::V2015_11_01
|
|
305
306
|
#
|
306
307
|
# @return [Profile] operation results.
|
307
308
|
#
|
308
|
-
def get(resource_group_name, profile_name, custom_headers
|
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::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_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::V2015_11_01
|
|
401
403
|
#
|
402
404
|
# @return [Profile] operation results.
|
403
405
|
#
|
404
|
-
def create_or_update(resource_group_name, profile_name, parameters, custom_headers
|
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::V2015_11_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
|
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::V2015_11_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
|
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::V2015_11_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::V2015_11_01::Models::Profile.mapper()
|
457
458
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -519,8 +520,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
519
520
|
# will be added to the HTTP request.
|
520
521
|
#
|
521
522
|
#
|
522
|
-
def delete(resource_group_name, profile_name, custom_headers
|
523
|
-
response = delete_async(resource_group_name, profile_name, custom_headers).value!
|
523
|
+
def delete(resource_group_name, profile_name, custom_headers:nil)
|
524
|
+
response = delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
|
524
525
|
nil
|
525
526
|
end
|
526
527
|
|
@@ -536,8 +537,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
536
537
|
#
|
537
538
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
538
539
|
#
|
539
|
-
def delete_with_http_info(resource_group_name, profile_name, custom_headers
|
540
|
-
delete_async(resource_group_name, profile_name, custom_headers).value!
|
540
|
+
def delete_with_http_info(resource_group_name, profile_name, custom_headers:nil)
|
541
|
+
delete_async(resource_group_name, profile_name, custom_headers:custom_headers).value!
|
541
542
|
end
|
542
543
|
|
543
544
|
#
|
@@ -552,7 +553,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
552
553
|
#
|
553
554
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
554
555
|
#
|
555
|
-
def delete_async(resource_group_name, profile_name, custom_headers
|
556
|
+
def delete_async(resource_group_name, profile_name, custom_headers:nil)
|
556
557
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
557
558
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
558
559
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -560,6 +561,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
560
561
|
|
561
562
|
|
562
563
|
request_headers = {}
|
564
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
563
565
|
|
564
566
|
# Set Headers
|
565
567
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -607,8 +609,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
607
609
|
#
|
608
610
|
# @return [Profile] operation results.
|
609
611
|
#
|
610
|
-
def update(resource_group_name, profile_name, parameters, custom_headers
|
611
|
-
response = update_async(resource_group_name, profile_name, parameters, custom_headers).value!
|
612
|
+
def update(resource_group_name, profile_name, parameters, custom_headers:nil)
|
613
|
+
response = update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value!
|
612
614
|
response.body unless response.nil?
|
613
615
|
end
|
614
616
|
|
@@ -625,8 +627,8 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
625
627
|
#
|
626
628
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
627
629
|
#
|
628
|
-
def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers
|
629
|
-
update_async(resource_group_name, profile_name, parameters, custom_headers).value!
|
630
|
+
def update_with_http_info(resource_group_name, profile_name, parameters, custom_headers:nil)
|
631
|
+
update_async(resource_group_name, profile_name, parameters, custom_headers:custom_headers).value!
|
630
632
|
end
|
631
633
|
|
632
634
|
#
|
@@ -642,7 +644,7 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
642
644
|
#
|
643
645
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
644
646
|
#
|
645
|
-
def update_async(resource_group_name, profile_name, parameters, custom_headers
|
647
|
+
def update_async(resource_group_name, profile_name, parameters, custom_headers:nil)
|
646
648
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
647
649
|
fail ArgumentError, 'profile_name is nil' if profile_name.nil?
|
648
650
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -651,13 +653,12 @@ module Azure::TrafficManager::Mgmt::V2015_11_01
|
|
651
653
|
|
652
654
|
|
653
655
|
request_headers = {}
|
656
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
654
657
|
|
655
658
|
# Set Headers
|
656
659
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
657
660
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
658
661
|
|
659
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
660
|
-
|
661
662
|
# Serialize Request
|
662
663
|
request_mapper = Azure::TrafficManager::Mgmt::V2015_11_01::Models::Profile.mapper()
|
663
664
|
request_content = @client.serialize(request_mapper, parameters)
|