azure_mgmt_resources 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/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
- data/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb +65 -60
- data/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb +33 -28
- data/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb +70 -66
- data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
- data/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb +233 -46
- data/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb +39 -33
- data/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
- data/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb +65 -60
- data/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb +33 -28
- data/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb +70 -66
- data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
- data/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb +233 -46
- data/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb +39 -33
- data/lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
- data/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb +65 -60
- data/lib/2016-09-01/generated/azure_mgmt_resources/providers.rb +33 -28
- data/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb +70 -66
- data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
- data/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb +428 -84
- data/lib/2016-09-01/generated/azure_mgmt_resources/tags.rb +39 -33
- data/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
- data/lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb +65 -60
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/plan.rb +11 -0
- data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group.rb +1 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb +33 -28
- data/lib/2017-05-10/generated/azure_mgmt_resources/resource_groups.rb +55 -53
- data/lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
- data/lib/2017-05-10/generated/azure_mgmt_resources/resources.rb +453 -108
- data/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb +39 -33
- data/lib/profiles/latest/modules/resources_profile_module.rb +174 -155
- data/lib/profiles/latest/resources_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/resources_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/modules/resources_profile_module.rb +171 -152
- data/lib/profiles/v2017_03_09/resources_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/resources_v2017_03_09_profile_client.rb +28 -9
- data/lib/version.rb +1 -1
- metadata +3 -3
@@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
30
30
|
# will be added to the HTTP request.
|
31
31
|
#
|
32
32
|
#
|
33
|
-
def delete_value(tag_name, tag_value, custom_headers
|
34
|
-
response = delete_value_async(tag_name, tag_value, custom_headers).value!
|
33
|
+
def delete_value(tag_name, tag_value, custom_headers:nil)
|
34
|
+
response = delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value!
|
35
35
|
nil
|
36
36
|
end
|
37
37
|
|
@@ -45,8 +45,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
45
45
|
#
|
46
46
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
47
47
|
#
|
48
|
-
def delete_value_with_http_info(tag_name, tag_value, custom_headers
|
49
|
-
delete_value_async(tag_name, tag_value, custom_headers).value!
|
48
|
+
def delete_value_with_http_info(tag_name, tag_value, custom_headers:nil)
|
49
|
+
delete_value_async(tag_name, tag_value, custom_headers:custom_headers).value!
|
50
50
|
end
|
51
51
|
|
52
52
|
#
|
@@ -59,7 +59,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
59
59
|
#
|
60
60
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
61
61
|
#
|
62
|
-
def delete_value_async(tag_name, tag_value, custom_headers
|
62
|
+
def delete_value_async(tag_name, tag_value, custom_headers:nil)
|
63
63
|
fail ArgumentError, 'tag_name is nil' if tag_name.nil?
|
64
64
|
fail ArgumentError, 'tag_value is nil' if tag_value.nil?
|
65
65
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -67,6 +67,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
67
67
|
|
68
68
|
|
69
69
|
request_headers = {}
|
70
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
70
71
|
|
71
72
|
# Set Headers
|
72
73
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -111,8 +112,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
111
112
|
#
|
112
113
|
# @return [TagValue] operation results.
|
113
114
|
#
|
114
|
-
def create_or_update_value(tag_name, tag_value, custom_headers
|
115
|
-
response = create_or_update_value_async(tag_name, tag_value, custom_headers).value!
|
115
|
+
def create_or_update_value(tag_name, tag_value, custom_headers:nil)
|
116
|
+
response = create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value!
|
116
117
|
response.body unless response.nil?
|
117
118
|
end
|
118
119
|
|
@@ -126,8 +127,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
126
127
|
#
|
127
128
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
128
129
|
#
|
129
|
-
def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers
|
130
|
-
create_or_update_value_async(tag_name, tag_value, custom_headers).value!
|
130
|
+
def create_or_update_value_with_http_info(tag_name, tag_value, custom_headers:nil)
|
131
|
+
create_or_update_value_async(tag_name, tag_value, custom_headers:custom_headers).value!
|
131
132
|
end
|
132
133
|
|
133
134
|
#
|
@@ -140,7 +141,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
140
141
|
#
|
141
142
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
142
143
|
#
|
143
|
-
def create_or_update_value_async(tag_name, tag_value, custom_headers
|
144
|
+
def create_or_update_value_async(tag_name, tag_value, custom_headers:nil)
|
144
145
|
fail ArgumentError, 'tag_name is nil' if tag_name.nil?
|
145
146
|
fail ArgumentError, 'tag_value is nil' if tag_value.nil?
|
146
147
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -148,6 +149,7 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
148
149
|
|
149
150
|
|
150
151
|
request_headers = {}
|
152
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
151
153
|
|
152
154
|
# Set Headers
|
153
155
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -211,8 +213,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
211
213
|
#
|
212
214
|
# @return [TagDetails] operation results.
|
213
215
|
#
|
214
|
-
def create_or_update(tag_name, custom_headers
|
215
|
-
response = create_or_update_async(tag_name, custom_headers).value!
|
216
|
+
def create_or_update(tag_name, custom_headers:nil)
|
217
|
+
response = create_or_update_async(tag_name, custom_headers:custom_headers).value!
|
216
218
|
response.body unless response.nil?
|
217
219
|
end
|
218
220
|
|
@@ -225,8 +227,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
225
227
|
#
|
226
228
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
227
229
|
#
|
228
|
-
def create_or_update_with_http_info(tag_name, custom_headers
|
229
|
-
create_or_update_async(tag_name, custom_headers).value!
|
230
|
+
def create_or_update_with_http_info(tag_name, custom_headers:nil)
|
231
|
+
create_or_update_async(tag_name, custom_headers:custom_headers).value!
|
230
232
|
end
|
231
233
|
|
232
234
|
#
|
@@ -238,13 +240,14 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
238
240
|
#
|
239
241
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
240
242
|
#
|
241
|
-
def create_or_update_async(tag_name, custom_headers
|
243
|
+
def create_or_update_async(tag_name, custom_headers:nil)
|
242
244
|
fail ArgumentError, 'tag_name is nil' if tag_name.nil?
|
243
245
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
244
246
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
245
247
|
|
246
248
|
|
247
249
|
request_headers = {}
|
250
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
248
251
|
|
249
252
|
# Set Headers
|
250
253
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -307,8 +310,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
307
310
|
# will be added to the HTTP request.
|
308
311
|
#
|
309
312
|
#
|
310
|
-
def delete(tag_name, custom_headers
|
311
|
-
response = delete_async(tag_name, custom_headers).value!
|
313
|
+
def delete(tag_name, custom_headers:nil)
|
314
|
+
response = delete_async(tag_name, custom_headers:custom_headers).value!
|
312
315
|
nil
|
313
316
|
end
|
314
317
|
|
@@ -321,8 +324,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
321
324
|
#
|
322
325
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
323
326
|
#
|
324
|
-
def delete_with_http_info(tag_name, custom_headers
|
325
|
-
delete_async(tag_name, custom_headers).value!
|
327
|
+
def delete_with_http_info(tag_name, custom_headers:nil)
|
328
|
+
delete_async(tag_name, custom_headers:custom_headers).value!
|
326
329
|
end
|
327
330
|
|
328
331
|
#
|
@@ -334,13 +337,14 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
334
337
|
#
|
335
338
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
336
339
|
#
|
337
|
-
def delete_async(tag_name, custom_headers
|
340
|
+
def delete_async(tag_name, custom_headers:nil)
|
338
341
|
fail ArgumentError, 'tag_name is nil' if tag_name.nil?
|
339
342
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
340
343
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
341
344
|
|
342
345
|
|
343
346
|
request_headers = {}
|
347
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
344
348
|
|
345
349
|
# Set Headers
|
346
350
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -383,8 +387,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
383
387
|
#
|
384
388
|
# @return [Array<TagDetails>] operation results.
|
385
389
|
#
|
386
|
-
def list(custom_headers
|
387
|
-
first_page = list_as_lazy(custom_headers)
|
390
|
+
def list(custom_headers:nil)
|
391
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
388
392
|
first_page.get_all_items
|
389
393
|
end
|
390
394
|
|
@@ -396,8 +400,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
396
400
|
#
|
397
401
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
398
402
|
#
|
399
|
-
def list_with_http_info(custom_headers
|
400
|
-
list_async(custom_headers).value!
|
403
|
+
def list_with_http_info(custom_headers:nil)
|
404
|
+
list_async(custom_headers:custom_headers).value!
|
401
405
|
end
|
402
406
|
|
403
407
|
#
|
@@ -408,12 +412,13 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
408
412
|
#
|
409
413
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
410
414
|
#
|
411
|
-
def list_async(custom_headers
|
415
|
+
def list_async(custom_headers:nil)
|
412
416
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
413
417
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
414
418
|
|
415
419
|
|
416
420
|
request_headers = {}
|
421
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
417
422
|
|
418
423
|
# Set Headers
|
419
424
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -468,8 +473,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
468
473
|
#
|
469
474
|
# @return [TagsListResult] operation results.
|
470
475
|
#
|
471
|
-
def list_next(next_page_link, custom_headers
|
472
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
476
|
+
def list_next(next_page_link, custom_headers:nil)
|
477
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
473
478
|
response.body unless response.nil?
|
474
479
|
end
|
475
480
|
|
@@ -483,8 +488,8 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
483
488
|
#
|
484
489
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
485
490
|
#
|
486
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
487
|
-
list_next_async(next_page_link, custom_headers).value!
|
491
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
492
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
488
493
|
end
|
489
494
|
|
490
495
|
#
|
@@ -497,11 +502,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
497
502
|
#
|
498
503
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
499
504
|
#
|
500
|
-
def list_next_async(next_page_link, custom_headers
|
505
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
501
506
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
502
507
|
|
503
508
|
|
504
509
|
request_headers = {}
|
510
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
505
511
|
|
506
512
|
# Set Headers
|
507
513
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -553,12 +559,12 @@ module Azure::Resources::Mgmt::V2016_02_01
|
|
553
559
|
#
|
554
560
|
# @return [TagsListResult] which provide lazy access to pages of the response.
|
555
561
|
#
|
556
|
-
def list_as_lazy(custom_headers
|
557
|
-
response = list_async(custom_headers).value!
|
562
|
+
def list_as_lazy(custom_headers:nil)
|
563
|
+
response = list_async(custom_headers:custom_headers).value!
|
558
564
|
unless response.nil?
|
559
565
|
page = response.body
|
560
566
|
page.next_method = Proc.new do |next_page_link|
|
561
|
-
list_next_async(next_page_link, custom_headers)
|
567
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
562
568
|
end
|
563
569
|
page
|
564
570
|
end
|
@@ -33,8 +33,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
33
33
|
#
|
34
34
|
# @return [DeploymentOperation] operation results.
|
35
35
|
#
|
36
|
-
def get(resource_group_name, deployment_name, operation_id, custom_headers
|
37
|
-
response = get_async(resource_group_name, deployment_name, operation_id, custom_headers).value!
|
36
|
+
def get(resource_group_name, deployment_name, operation_id, custom_headers:nil)
|
37
|
+
response = get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value!
|
38
38
|
response.body unless response.nil?
|
39
39
|
end
|
40
40
|
|
@@ -50,8 +50,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
50
50
|
#
|
51
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
52
|
#
|
53
|
-
def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers
|
54
|
-
get_async(resource_group_name, deployment_name, operation_id, custom_headers).value!
|
53
|
+
def get_with_http_info(resource_group_name, deployment_name, operation_id, custom_headers:nil)
|
54
|
+
get_async(resource_group_name, deployment_name, operation_id, custom_headers:custom_headers).value!
|
55
55
|
end
|
56
56
|
|
57
57
|
#
|
@@ -66,7 +66,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
66
66
|
#
|
67
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
68
|
#
|
69
|
-
def get_async(resource_group_name, deployment_name, operation_id, custom_headers
|
69
|
+
def get_async(resource_group_name, deployment_name, operation_id, custom_headers:nil)
|
70
70
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
71
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
72
72
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -78,6 +78,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
78
78
|
|
79
79
|
|
80
80
|
request_headers = {}
|
81
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
81
82
|
|
82
83
|
# Set Headers
|
83
84
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -134,8 +135,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
134
135
|
#
|
135
136
|
# @return [Array<DeploymentOperation>] operation results.
|
136
137
|
#
|
137
|
-
def list(resource_group_name, deployment_name, top
|
138
|
-
first_page = list_as_lazy(resource_group_name, deployment_name, top, custom_headers)
|
138
|
+
def list(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
139
|
+
first_page = list_as_lazy(resource_group_name, deployment_name, top:top, custom_headers:custom_headers)
|
139
140
|
first_page.get_all_items
|
140
141
|
end
|
141
142
|
|
@@ -151,8 +152,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
151
152
|
#
|
152
153
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
153
154
|
#
|
154
|
-
def list_with_http_info(resource_group_name, deployment_name, top
|
155
|
-
list_async(resource_group_name, deployment_name, top, custom_headers).value!
|
155
|
+
def list_with_http_info(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
156
|
+
list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value!
|
156
157
|
end
|
157
158
|
|
158
159
|
#
|
@@ -167,7 +168,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
167
168
|
#
|
168
169
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
169
170
|
#
|
170
|
-
def list_async(resource_group_name, deployment_name, top
|
171
|
+
def list_async(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
171
172
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
172
173
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
173
174
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -178,6 +179,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
178
179
|
|
179
180
|
|
180
181
|
request_headers = {}
|
182
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
181
183
|
|
182
184
|
# Set Headers
|
183
185
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -232,8 +234,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
232
234
|
#
|
233
235
|
# @return [DeploymentOperationsListResult] operation results.
|
234
236
|
#
|
235
|
-
def list_next(next_page_link, custom_headers
|
236
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
237
|
+
def list_next(next_page_link, custom_headers:nil)
|
238
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
237
239
|
response.body unless response.nil?
|
238
240
|
end
|
239
241
|
|
@@ -247,8 +249,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
247
249
|
#
|
248
250
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
249
251
|
#
|
250
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
251
|
-
list_next_async(next_page_link, custom_headers).value!
|
252
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
253
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
252
254
|
end
|
253
255
|
|
254
256
|
#
|
@@ -261,11 +263,12 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
261
263
|
#
|
262
264
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
263
265
|
#
|
264
|
-
def list_next_async(next_page_link, custom_headers
|
266
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
265
267
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
266
268
|
|
267
269
|
|
268
270
|
request_headers = {}
|
271
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
269
272
|
|
270
273
|
# Set Headers
|
271
274
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -322,12 +325,12 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
322
325
|
# @return [DeploymentOperationsListResult] which provide lazy access to pages
|
323
326
|
# of the response.
|
324
327
|
#
|
325
|
-
def list_as_lazy(resource_group_name, deployment_name, top
|
326
|
-
response = list_async(resource_group_name, deployment_name, top, custom_headers).value!
|
328
|
+
def list_as_lazy(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
329
|
+
response = list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value!
|
327
330
|
unless response.nil?
|
328
331
|
page = response.body
|
329
332
|
page.next_method = Proc.new do |next_page_link|
|
330
|
-
list_next_async(next_page_link, custom_headers)
|
333
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
331
334
|
end
|
332
335
|
page
|
333
336
|
end
|
@@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
30
30
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
31
|
# will be added to the HTTP request.
|
32
32
|
#
|
33
|
-
def delete(resource_group_name, deployment_name, custom_headers
|
34
|
-
response = delete_async(resource_group_name, deployment_name, custom_headers).value!
|
33
|
+
def delete(resource_group_name, deployment_name, custom_headers:nil)
|
34
|
+
response = delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
35
35
|
nil
|
36
36
|
end
|
37
37
|
|
@@ -45,9 +45,9 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
45
45
|
# @return [Concurrent::Promise] promise which provides async access to http
|
46
46
|
# response.
|
47
47
|
#
|
48
|
-
def delete_async(resource_group_name, deployment_name, custom_headers
|
48
|
+
def delete_async(resource_group_name, deployment_name, custom_headers:nil)
|
49
49
|
# Send request
|
50
|
-
promise = begin_delete_async(resource_group_name, deployment_name, custom_headers)
|
50
|
+
promise = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers)
|
51
51
|
|
52
52
|
promise = promise.then do |response|
|
53
53
|
# Defining deserialization method.
|
@@ -72,8 +72,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
72
72
|
#
|
73
73
|
# @return [Boolean] operation results.
|
74
74
|
#
|
75
|
-
def check_existence(resource_group_name, deployment_name, custom_headers
|
76
|
-
response = check_existence_async(resource_group_name, deployment_name, custom_headers).value!
|
75
|
+
def check_existence(resource_group_name, deployment_name, custom_headers:nil)
|
76
|
+
response = check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
77
77
|
response.body unless response.nil?
|
78
78
|
end
|
79
79
|
|
@@ -88,8 +88,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
88
88
|
#
|
89
89
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
90
90
|
#
|
91
|
-
def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers
|
92
|
-
check_existence_async(resource_group_name, deployment_name, custom_headers).value!
|
91
|
+
def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
92
|
+
check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
93
93
|
end
|
94
94
|
|
95
95
|
#
|
@@ -103,7 +103,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
103
103
|
#
|
104
104
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
105
105
|
#
|
106
|
-
def check_existence_async(resource_group_name, deployment_name, custom_headers
|
106
|
+
def check_existence_async(resource_group_name, deployment_name, custom_headers:nil)
|
107
107
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
108
108
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
109
109
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -114,6 +114,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
114
114
|
|
115
115
|
|
116
116
|
request_headers = {}
|
117
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
117
118
|
|
118
119
|
# Set Headers
|
119
120
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -162,8 +163,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
162
163
|
#
|
163
164
|
# @return [DeploymentExtended] operation results.
|
164
165
|
#
|
165
|
-
def create_or_update(resource_group_name, deployment_name, parameters, custom_headers
|
166
|
-
response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
166
|
+
def create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
167
|
+
response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
167
168
|
response.body unless response.nil?
|
168
169
|
end
|
169
170
|
|
@@ -179,9 +180,9 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
179
180
|
# @return [Concurrent::Promise] promise which provides async access to http
|
180
181
|
# response.
|
181
182
|
#
|
182
|
-
def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers
|
183
|
+
def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
183
184
|
# Send request
|
184
|
-
promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers)
|
185
|
+
promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers)
|
185
186
|
|
186
187
|
promise = promise.then do |response|
|
187
188
|
# Defining deserialization method.
|
@@ -208,8 +209,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
208
209
|
#
|
209
210
|
# @return [DeploymentExtended] operation results.
|
210
211
|
#
|
211
|
-
def get(resource_group_name, deployment_name, custom_headers
|
212
|
-
response = get_async(resource_group_name, deployment_name, custom_headers).value!
|
212
|
+
def get(resource_group_name, deployment_name, custom_headers:nil)
|
213
|
+
response = get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
213
214
|
response.body unless response.nil?
|
214
215
|
end
|
215
216
|
|
@@ -224,8 +225,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
224
225
|
#
|
225
226
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
226
227
|
#
|
227
|
-
def get_with_http_info(resource_group_name, deployment_name, custom_headers
|
228
|
-
get_async(resource_group_name, deployment_name, custom_headers).value!
|
228
|
+
def get_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
229
|
+
get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
229
230
|
end
|
230
231
|
|
231
232
|
#
|
@@ -239,7 +240,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
239
240
|
#
|
240
241
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
241
242
|
#
|
242
|
-
def get_async(resource_group_name, deployment_name, custom_headers
|
243
|
+
def get_async(resource_group_name, deployment_name, custom_headers:nil)
|
243
244
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
244
245
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
245
246
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -250,6 +251,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
250
251
|
|
251
252
|
|
252
253
|
request_headers = {}
|
254
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
253
255
|
|
254
256
|
# Set Headers
|
255
257
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -304,8 +306,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
304
306
|
# will be added to the HTTP request.
|
305
307
|
#
|
306
308
|
#
|
307
|
-
def cancel(resource_group_name, deployment_name, custom_headers
|
308
|
-
response = cancel_async(resource_group_name, deployment_name, custom_headers).value!
|
309
|
+
def cancel(resource_group_name, deployment_name, custom_headers:nil)
|
310
|
+
response = cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
309
311
|
nil
|
310
312
|
end
|
311
313
|
|
@@ -320,8 +322,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
320
322
|
#
|
321
323
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
322
324
|
#
|
323
|
-
def cancel_with_http_info(resource_group_name, deployment_name, custom_headers
|
324
|
-
cancel_async(resource_group_name, deployment_name, custom_headers).value!
|
325
|
+
def cancel_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
326
|
+
cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
325
327
|
end
|
326
328
|
|
327
329
|
#
|
@@ -335,7 +337,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
335
337
|
#
|
336
338
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
337
339
|
#
|
338
|
-
def cancel_async(resource_group_name, deployment_name, custom_headers
|
340
|
+
def cancel_async(resource_group_name, deployment_name, custom_headers:nil)
|
339
341
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
340
342
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
341
343
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -346,6 +348,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
346
348
|
|
347
349
|
|
348
350
|
request_headers = {}
|
351
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
349
352
|
|
350
353
|
# Set Headers
|
351
354
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -392,8 +395,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
392
395
|
#
|
393
396
|
# @return [DeploymentValidateResult] operation results.
|
394
397
|
#
|
395
|
-
def validate(resource_group_name, deployment_name, parameters, custom_headers
|
396
|
-
response = validate_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
398
|
+
def validate(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
399
|
+
response = validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
397
400
|
response.body unless response.nil?
|
398
401
|
end
|
399
402
|
|
@@ -409,8 +412,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
409
412
|
#
|
410
413
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
411
414
|
#
|
412
|
-
def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers
|
413
|
-
validate_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
415
|
+
def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
416
|
+
validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
414
417
|
end
|
415
418
|
|
416
419
|
#
|
@@ -425,7 +428,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
425
428
|
#
|
426
429
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
427
430
|
#
|
428
|
-
def validate_async(resource_group_name, deployment_name, parameters, custom_headers
|
431
|
+
def validate_async(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
429
432
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
430
433
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
431
434
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -437,13 +440,12 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
437
440
|
|
438
441
|
|
439
442
|
request_headers = {}
|
443
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
440
444
|
|
441
445
|
# Set Headers
|
442
446
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
443
447
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
444
448
|
|
445
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
446
|
-
|
447
449
|
# Serialize Request
|
448
450
|
request_mapper = Azure::Resources::Mgmt::V2016_07_01::Models::Deployment.mapper()
|
449
451
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -511,8 +513,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
511
513
|
#
|
512
514
|
# @return [DeploymentExportResult] operation results.
|
513
515
|
#
|
514
|
-
def export_template(resource_group_name, deployment_name, custom_headers
|
515
|
-
response = export_template_async(resource_group_name, deployment_name, custom_headers).value!
|
516
|
+
def export_template(resource_group_name, deployment_name, custom_headers:nil)
|
517
|
+
response = export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
516
518
|
response.body unless response.nil?
|
517
519
|
end
|
518
520
|
|
@@ -527,8 +529,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
527
529
|
#
|
528
530
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
529
531
|
#
|
530
|
-
def export_template_with_http_info(resource_group_name, deployment_name, custom_headers
|
531
|
-
export_template_async(resource_group_name, deployment_name, custom_headers).value!
|
532
|
+
def export_template_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
533
|
+
export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
532
534
|
end
|
533
535
|
|
534
536
|
#
|
@@ -542,7 +544,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
542
544
|
#
|
543
545
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
544
546
|
#
|
545
|
-
def export_template_async(resource_group_name, deployment_name, custom_headers
|
547
|
+
def export_template_async(resource_group_name, deployment_name, custom_headers:nil)
|
546
548
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
547
549
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
548
550
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -553,6 +555,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
553
555
|
|
554
556
|
|
555
557
|
request_headers = {}
|
558
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
556
559
|
|
557
560
|
# Set Headers
|
558
561
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -610,8 +613,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
610
613
|
#
|
611
614
|
# @return [Array<DeploymentExtended>] operation results.
|
612
615
|
#
|
613
|
-
def list(resource_group_name, filter
|
614
|
-
first_page = list_as_lazy(resource_group_name, filter, top, custom_headers)
|
616
|
+
def list(resource_group_name, filter:nil, top:nil, custom_headers:nil)
|
617
|
+
first_page = list_as_lazy(resource_group_name, filter:filter, top:top, custom_headers:custom_headers)
|
615
618
|
first_page.get_all_items
|
616
619
|
end
|
617
620
|
|
@@ -628,8 +631,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
628
631
|
#
|
629
632
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
630
633
|
#
|
631
|
-
def list_with_http_info(resource_group_name, filter
|
632
|
-
list_async(resource_group_name, filter, top, custom_headers).value!
|
634
|
+
def list_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil)
|
635
|
+
list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
|
633
636
|
end
|
634
637
|
|
635
638
|
#
|
@@ -645,7 +648,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
645
648
|
#
|
646
649
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
647
650
|
#
|
648
|
-
def list_async(resource_group_name, filter
|
651
|
+
def list_async(resource_group_name, filter:nil, top:nil, custom_headers:nil)
|
649
652
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
650
653
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
651
654
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -655,6 +658,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
655
658
|
|
656
659
|
|
657
660
|
request_headers = {}
|
661
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
658
662
|
|
659
663
|
# Set Headers
|
660
664
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -709,8 +713,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
709
713
|
# will be added to the HTTP request.
|
710
714
|
#
|
711
715
|
#
|
712
|
-
def begin_delete(resource_group_name, deployment_name, custom_headers
|
713
|
-
response = begin_delete_async(resource_group_name, deployment_name, custom_headers).value!
|
716
|
+
def begin_delete(resource_group_name, deployment_name, custom_headers:nil)
|
717
|
+
response = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
714
718
|
nil
|
715
719
|
end
|
716
720
|
|
@@ -725,8 +729,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
725
729
|
#
|
726
730
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
727
731
|
#
|
728
|
-
def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers
|
729
|
-
begin_delete_async(resource_group_name, deployment_name, custom_headers).value!
|
732
|
+
def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
733
|
+
begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
730
734
|
end
|
731
735
|
|
732
736
|
#
|
@@ -740,7 +744,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
740
744
|
#
|
741
745
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
742
746
|
#
|
743
|
-
def begin_delete_async(resource_group_name, deployment_name, custom_headers
|
747
|
+
def begin_delete_async(resource_group_name, deployment_name, custom_headers:nil)
|
744
748
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
745
749
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
746
750
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -751,6 +755,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
751
755
|
|
752
756
|
|
753
757
|
request_headers = {}
|
758
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
754
759
|
|
755
760
|
# Set Headers
|
756
761
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -798,8 +803,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
798
803
|
#
|
799
804
|
# @return [DeploymentExtended] operation results.
|
800
805
|
#
|
801
|
-
def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers
|
802
|
-
response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
806
|
+
def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
807
|
+
response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
803
808
|
response.body unless response.nil?
|
804
809
|
end
|
805
810
|
|
@@ -816,8 +821,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
816
821
|
#
|
817
822
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
818
823
|
#
|
819
|
-
def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers
|
820
|
-
begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
824
|
+
def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
825
|
+
begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
821
826
|
end
|
822
827
|
|
823
828
|
#
|
@@ -833,7 +838,7 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
833
838
|
#
|
834
839
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
835
840
|
#
|
836
|
-
def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers
|
841
|
+
def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
837
842
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
838
843
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
839
844
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -845,13 +850,12 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
845
850
|
|
846
851
|
|
847
852
|
request_headers = {}
|
853
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
848
854
|
|
849
855
|
# Set Headers
|
850
856
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
851
857
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
852
858
|
|
853
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
854
|
-
|
855
859
|
# Serialize Request
|
856
860
|
request_mapper = Azure::Resources::Mgmt::V2016_07_01::Models::Deployment.mapper()
|
857
861
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -918,8 +922,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
918
922
|
#
|
919
923
|
# @return [DeploymentListResult] operation results.
|
920
924
|
#
|
921
|
-
def list_next(next_page_link, custom_headers
|
922
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
925
|
+
def list_next(next_page_link, custom_headers:nil)
|
926
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
923
927
|
response.body unless response.nil?
|
924
928
|
end
|
925
929
|
|
@@ -933,8 +937,8 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
933
937
|
#
|
934
938
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
935
939
|
#
|
936
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
937
|
-
list_next_async(next_page_link, custom_headers).value!
|
940
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
941
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
938
942
|
end
|
939
943
|
|
940
944
|
#
|
@@ -947,11 +951,12 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
947
951
|
#
|
948
952
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
949
953
|
#
|
950
|
-
def list_next_async(next_page_link, custom_headers
|
954
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
951
955
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
952
956
|
|
953
957
|
|
954
958
|
request_headers = {}
|
959
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
955
960
|
|
956
961
|
# Set Headers
|
957
962
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1009,12 +1014,12 @@ module Azure::Resources::Mgmt::V2016_07_01
|
|
1009
1014
|
# @return [DeploymentListResult] which provide lazy access to pages of the
|
1010
1015
|
# response.
|
1011
1016
|
#
|
1012
|
-
def list_as_lazy(resource_group_name, filter
|
1013
|
-
response = list_async(resource_group_name, filter, top, custom_headers).value!
|
1017
|
+
def list_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil)
|
1018
|
+
response = list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
|
1014
1019
|
unless response.nil?
|
1015
1020
|
page = response.body
|
1016
1021
|
page.next_method = Proc.new do |next_page_link|
|
1017
|
-
list_next_async(next_page_link, custom_headers)
|
1022
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1018
1023
|
end
|
1019
1024
|
page
|
1020
1025
|
end
|