azure_mgmt_resources 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_07_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_09_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_09_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_09_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
|
@@ -81,6 +81,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
81
81
|
|
82
82
|
|
83
83
|
request_headers = {}
|
84
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
84
85
|
|
85
86
|
# Set Headers
|
86
87
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -138,8 +139,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
138
139
|
#
|
139
140
|
# @return [Array<DeploymentOperation>] operation results.
|
140
141
|
#
|
141
|
-
def list(resource_group_name, deployment_name, top
|
142
|
-
first_page = list_as_lazy(resource_group_name, deployment_name, top, custom_headers)
|
142
|
+
def list(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
143
|
+
first_page = list_as_lazy(resource_group_name, deployment_name, top:top, custom_headers:custom_headers)
|
143
144
|
first_page.get_all_items
|
144
145
|
end
|
145
146
|
|
@@ -156,8 +157,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
156
157
|
#
|
157
158
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
158
159
|
#
|
159
|
-
def list_with_http_info(resource_group_name, deployment_name, top
|
160
|
-
list_async(resource_group_name, deployment_name, top, custom_headers).value!
|
160
|
+
def list_with_http_info(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
161
|
+
list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value!
|
161
162
|
end
|
162
163
|
|
163
164
|
#
|
@@ -173,7 +174,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
173
174
|
#
|
174
175
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
175
176
|
#
|
176
|
-
def list_async(resource_group_name, deployment_name, top
|
177
|
+
def list_async(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
177
178
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
178
179
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
179
180
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -187,6 +188,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
187
188
|
|
188
189
|
|
189
190
|
request_headers = {}
|
191
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
190
192
|
|
191
193
|
# Set Headers
|
192
194
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -241,8 +243,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
241
243
|
#
|
242
244
|
# @return [DeploymentOperationsListResult] operation results.
|
243
245
|
#
|
244
|
-
def list_next(next_page_link, custom_headers
|
245
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
246
|
+
def list_next(next_page_link, custom_headers:nil)
|
247
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
246
248
|
response.body unless response.nil?
|
247
249
|
end
|
248
250
|
|
@@ -256,8 +258,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
256
258
|
#
|
257
259
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
258
260
|
#
|
259
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
260
|
-
list_next_async(next_page_link, custom_headers).value!
|
261
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
262
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
261
263
|
end
|
262
264
|
|
263
265
|
#
|
@@ -270,11 +272,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
270
272
|
#
|
271
273
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
272
274
|
#
|
273
|
-
def list_next_async(next_page_link, custom_headers
|
275
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
274
276
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
275
277
|
|
276
278
|
|
277
279
|
request_headers = {}
|
280
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
278
281
|
|
279
282
|
# Set Headers
|
280
283
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -332,12 +335,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
332
335
|
# @return [DeploymentOperationsListResult] which provide lazy access to pages
|
333
336
|
# of the response.
|
334
337
|
#
|
335
|
-
def list_as_lazy(resource_group_name, deployment_name, top
|
336
|
-
response = list_async(resource_group_name, deployment_name, top, custom_headers).value!
|
338
|
+
def list_as_lazy(resource_group_name, deployment_name, top:nil, custom_headers:nil)
|
339
|
+
response = list_async(resource_group_name, deployment_name, top:top, custom_headers:custom_headers).value!
|
337
340
|
unless response.nil?
|
338
341
|
page = response.body
|
339
342
|
page.next_method = Proc.new do |next_page_link|
|
340
|
-
list_next_async(next_page_link, custom_headers)
|
343
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
341
344
|
end
|
342
345
|
page
|
343
346
|
end
|
@@ -41,8 +41,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
41
41
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
42
42
|
# will be added to the HTTP request.
|
43
43
|
#
|
44
|
-
def delete(resource_group_name, deployment_name, custom_headers
|
45
|
-
response = delete_async(resource_group_name, deployment_name, custom_headers).value!
|
44
|
+
def delete(resource_group_name, deployment_name, custom_headers:nil)
|
45
|
+
response = delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
46
46
|
nil
|
47
47
|
end
|
48
48
|
|
@@ -56,9 +56,9 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
56
56
|
# @return [Concurrent::Promise] promise which provides async access to http
|
57
57
|
# response.
|
58
58
|
#
|
59
|
-
def delete_async(resource_group_name, deployment_name, custom_headers
|
59
|
+
def delete_async(resource_group_name, deployment_name, custom_headers:nil)
|
60
60
|
# Send request
|
61
|
-
promise = begin_delete_async(resource_group_name, deployment_name, custom_headers)
|
61
|
+
promise = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers)
|
62
62
|
|
63
63
|
promise = promise.then do |response|
|
64
64
|
# Defining deserialization method.
|
@@ -83,8 +83,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
83
83
|
#
|
84
84
|
# @return [Boolean] operation results.
|
85
85
|
#
|
86
|
-
def check_existence(resource_group_name, deployment_name, custom_headers
|
87
|
-
response = check_existence_async(resource_group_name, deployment_name, custom_headers).value!
|
86
|
+
def check_existence(resource_group_name, deployment_name, custom_headers:nil)
|
87
|
+
response = check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
88
88
|
response.body unless response.nil?
|
89
89
|
end
|
90
90
|
|
@@ -99,8 +99,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
99
99
|
#
|
100
100
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
101
101
|
#
|
102
|
-
def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers
|
103
|
-
check_existence_async(resource_group_name, deployment_name, custom_headers).value!
|
102
|
+
def check_existence_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
103
|
+
check_existence_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
104
104
|
end
|
105
105
|
|
106
106
|
#
|
@@ -114,7 +114,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
114
114
|
#
|
115
115
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
116
116
|
#
|
117
|
-
def check_existence_async(resource_group_name, deployment_name, custom_headers
|
117
|
+
def check_existence_async(resource_group_name, deployment_name, custom_headers:nil)
|
118
118
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
119
119
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
120
120
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -128,6 +128,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
128
128
|
|
129
129
|
|
130
130
|
request_headers = {}
|
131
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
131
132
|
|
132
133
|
# Set Headers
|
133
134
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -180,8 +181,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
180
181
|
#
|
181
182
|
# @return [DeploymentExtended] operation results.
|
182
183
|
#
|
183
|
-
def create_or_update(resource_group_name, deployment_name, parameters, custom_headers
|
184
|
-
response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
184
|
+
def create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
185
|
+
response = create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
185
186
|
response.body unless response.nil?
|
186
187
|
end
|
187
188
|
|
@@ -198,9 +199,9 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
198
199
|
# @return [Concurrent::Promise] promise which provides async access to http
|
199
200
|
# response.
|
200
201
|
#
|
201
|
-
def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers
|
202
|
+
def create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
202
203
|
# Send request
|
203
|
-
promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers)
|
204
|
+
promise = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers)
|
204
205
|
|
205
206
|
promise = promise.then do |response|
|
206
207
|
# Defining deserialization method.
|
@@ -227,8 +228,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
227
228
|
#
|
228
229
|
# @return [DeploymentExtended] operation results.
|
229
230
|
#
|
230
|
-
def get(resource_group_name, deployment_name, custom_headers
|
231
|
-
response = get_async(resource_group_name, deployment_name, custom_headers).value!
|
231
|
+
def get(resource_group_name, deployment_name, custom_headers:nil)
|
232
|
+
response = get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
232
233
|
response.body unless response.nil?
|
233
234
|
end
|
234
235
|
|
@@ -243,8 +244,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
243
244
|
#
|
244
245
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
245
246
|
#
|
246
|
-
def get_with_http_info(resource_group_name, deployment_name, custom_headers
|
247
|
-
get_async(resource_group_name, deployment_name, custom_headers).value!
|
247
|
+
def get_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
248
|
+
get_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
248
249
|
end
|
249
250
|
|
250
251
|
#
|
@@ -258,7 +259,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
258
259
|
#
|
259
260
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
260
261
|
#
|
261
|
-
def get_async(resource_group_name, deployment_name, custom_headers
|
262
|
+
def get_async(resource_group_name, deployment_name, custom_headers:nil)
|
262
263
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
263
264
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
264
265
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -272,6 +273,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
272
273
|
|
273
274
|
|
274
275
|
request_headers = {}
|
276
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
275
277
|
|
276
278
|
# Set Headers
|
277
279
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -331,8 +333,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
331
333
|
# will be added to the HTTP request.
|
332
334
|
#
|
333
335
|
#
|
334
|
-
def cancel(resource_group_name, deployment_name, custom_headers
|
335
|
-
response = cancel_async(resource_group_name, deployment_name, custom_headers).value!
|
336
|
+
def cancel(resource_group_name, deployment_name, custom_headers:nil)
|
337
|
+
response = cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
336
338
|
nil
|
337
339
|
end
|
338
340
|
|
@@ -352,8 +354,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
352
354
|
#
|
353
355
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
354
356
|
#
|
355
|
-
def cancel_with_http_info(resource_group_name, deployment_name, custom_headers
|
356
|
-
cancel_async(resource_group_name, deployment_name, custom_headers).value!
|
357
|
+
def cancel_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
358
|
+
cancel_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
357
359
|
end
|
358
360
|
|
359
361
|
#
|
@@ -372,7 +374,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
372
374
|
#
|
373
375
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
374
376
|
#
|
375
|
-
def cancel_async(resource_group_name, deployment_name, custom_headers
|
377
|
+
def cancel_async(resource_group_name, deployment_name, custom_headers:nil)
|
376
378
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
377
379
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
378
380
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -386,6 +388,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
386
388
|
|
387
389
|
|
388
390
|
request_headers = {}
|
391
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
389
392
|
|
390
393
|
# Set Headers
|
391
394
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -433,8 +436,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
433
436
|
#
|
434
437
|
# @return [DeploymentValidateResult] operation results.
|
435
438
|
#
|
436
|
-
def validate(resource_group_name, deployment_name, parameters, custom_headers
|
437
|
-
response = validate_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
439
|
+
def validate(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
440
|
+
response = validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
438
441
|
response.body unless response.nil?
|
439
442
|
end
|
440
443
|
|
@@ -451,8 +454,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
451
454
|
#
|
452
455
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
453
456
|
#
|
454
|
-
def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers
|
455
|
-
validate_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
457
|
+
def validate_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
458
|
+
validate_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
456
459
|
end
|
457
460
|
|
458
461
|
#
|
@@ -468,7 +471,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
468
471
|
#
|
469
472
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
470
473
|
#
|
471
|
-
def validate_async(resource_group_name, deployment_name, parameters, custom_headers
|
474
|
+
def validate_async(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
472
475
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
473
476
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
474
477
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -483,13 +486,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
483
486
|
|
484
487
|
|
485
488
|
request_headers = {}
|
489
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
486
490
|
|
487
491
|
# Set Headers
|
488
492
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
489
493
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
490
494
|
|
491
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
492
|
-
|
493
495
|
# Serialize Request
|
494
496
|
request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::Deployment.mapper()
|
495
497
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -558,8 +560,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
558
560
|
#
|
559
561
|
# @return [DeploymentExportResult] operation results.
|
560
562
|
#
|
561
|
-
def export_template(resource_group_name, deployment_name, custom_headers
|
562
|
-
response = export_template_async(resource_group_name, deployment_name, custom_headers).value!
|
563
|
+
def export_template(resource_group_name, deployment_name, custom_headers:nil)
|
564
|
+
response = export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
563
565
|
response.body unless response.nil?
|
564
566
|
end
|
565
567
|
|
@@ -575,8 +577,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
575
577
|
#
|
576
578
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
577
579
|
#
|
578
|
-
def export_template_with_http_info(resource_group_name, deployment_name, custom_headers
|
579
|
-
export_template_async(resource_group_name, deployment_name, custom_headers).value!
|
580
|
+
def export_template_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
581
|
+
export_template_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
580
582
|
end
|
581
583
|
|
582
584
|
#
|
@@ -591,7 +593,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
591
593
|
#
|
592
594
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
593
595
|
#
|
594
|
-
def export_template_async(resource_group_name, deployment_name, custom_headers
|
596
|
+
def export_template_async(resource_group_name, deployment_name, custom_headers:nil)
|
595
597
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
596
598
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
597
599
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -605,6 +607,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
605
607
|
|
606
608
|
|
607
609
|
request_headers = {}
|
610
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
608
611
|
|
609
612
|
# Set Headers
|
610
613
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -663,8 +666,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
663
666
|
#
|
664
667
|
# @return [Array<DeploymentExtended>] operation results.
|
665
668
|
#
|
666
|
-
def list(resource_group_name, filter
|
667
|
-
first_page = list_as_lazy(resource_group_name, filter, top, custom_headers)
|
669
|
+
def list(resource_group_name, filter:nil, top:nil, custom_headers:nil)
|
670
|
+
first_page = list_as_lazy(resource_group_name, filter:filter, top:top, custom_headers:custom_headers)
|
668
671
|
first_page.get_all_items
|
669
672
|
end
|
670
673
|
|
@@ -682,8 +685,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
682
685
|
#
|
683
686
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
684
687
|
#
|
685
|
-
def list_with_http_info(resource_group_name, filter
|
686
|
-
list_async(resource_group_name, filter, top, custom_headers).value!
|
688
|
+
def list_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil)
|
689
|
+
list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
|
687
690
|
end
|
688
691
|
|
689
692
|
#
|
@@ -700,7 +703,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
700
703
|
#
|
701
704
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
702
705
|
#
|
703
|
-
def list_async(resource_group_name, filter
|
706
|
+
def list_async(resource_group_name, filter:nil, top:nil, custom_headers:nil)
|
704
707
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
705
708
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
706
709
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -710,6 +713,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
710
713
|
|
711
714
|
|
712
715
|
request_headers = {}
|
716
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
713
717
|
|
714
718
|
# Set Headers
|
715
719
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -775,8 +779,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
775
779
|
# will be added to the HTTP request.
|
776
780
|
#
|
777
781
|
#
|
778
|
-
def begin_delete(resource_group_name, deployment_name, custom_headers
|
779
|
-
response = begin_delete_async(resource_group_name, deployment_name, custom_headers).value!
|
782
|
+
def begin_delete(resource_group_name, deployment_name, custom_headers:nil)
|
783
|
+
response = begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
780
784
|
nil
|
781
785
|
end
|
782
786
|
|
@@ -802,8 +806,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
802
806
|
#
|
803
807
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
804
808
|
#
|
805
|
-
def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers
|
806
|
-
begin_delete_async(resource_group_name, deployment_name, custom_headers).value!
|
809
|
+
def begin_delete_with_http_info(resource_group_name, deployment_name, custom_headers:nil)
|
810
|
+
begin_delete_async(resource_group_name, deployment_name, custom_headers:custom_headers).value!
|
807
811
|
end
|
808
812
|
|
809
813
|
#
|
@@ -828,7 +832,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
828
832
|
#
|
829
833
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
830
834
|
#
|
831
|
-
def begin_delete_async(resource_group_name, deployment_name, custom_headers
|
835
|
+
def begin_delete_async(resource_group_name, deployment_name, custom_headers:nil)
|
832
836
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
833
837
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
834
838
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -842,6 +846,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
842
846
|
|
843
847
|
|
844
848
|
request_headers = {}
|
849
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
845
850
|
|
846
851
|
# Set Headers
|
847
852
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -893,8 +898,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
893
898
|
#
|
894
899
|
# @return [DeploymentExtended] operation results.
|
895
900
|
#
|
896
|
-
def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers
|
897
|
-
response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
901
|
+
def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
902
|
+
response = begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
898
903
|
response.body unless response.nil?
|
899
904
|
end
|
900
905
|
|
@@ -915,8 +920,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
915
920
|
#
|
916
921
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
917
922
|
#
|
918
|
-
def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers
|
919
|
-
begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers).value!
|
923
|
+
def begin_create_or_update_with_http_info(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
924
|
+
begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:custom_headers).value!
|
920
925
|
end
|
921
926
|
|
922
927
|
#
|
@@ -936,7 +941,7 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
936
941
|
#
|
937
942
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
938
943
|
#
|
939
|
-
def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers
|
944
|
+
def begin_create_or_update_async(resource_group_name, deployment_name, parameters, custom_headers:nil)
|
940
945
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
941
946
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
942
947
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -951,13 +956,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
951
956
|
|
952
957
|
|
953
958
|
request_headers = {}
|
959
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
954
960
|
|
955
961
|
# Set Headers
|
956
962
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
957
963
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
958
964
|
|
959
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
960
|
-
|
961
965
|
# Serialize Request
|
962
966
|
request_mapper = Azure::Resources::Mgmt::V2016_09_01::Models::Deployment.mapper()
|
963
967
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -1024,8 +1028,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
1024
1028
|
#
|
1025
1029
|
# @return [DeploymentListResult] operation results.
|
1026
1030
|
#
|
1027
|
-
def list_next(next_page_link, custom_headers
|
1028
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
1031
|
+
def list_next(next_page_link, custom_headers:nil)
|
1032
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1029
1033
|
response.body unless response.nil?
|
1030
1034
|
end
|
1031
1035
|
|
@@ -1039,8 +1043,8 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
1039
1043
|
#
|
1040
1044
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1041
1045
|
#
|
1042
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
1043
|
-
list_next_async(next_page_link, custom_headers).value!
|
1046
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1047
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1044
1048
|
end
|
1045
1049
|
|
1046
1050
|
#
|
@@ -1053,11 +1057,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
1053
1057
|
#
|
1054
1058
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1055
1059
|
#
|
1056
|
-
def list_next_async(next_page_link, custom_headers
|
1060
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1057
1061
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1058
1062
|
|
1059
1063
|
|
1060
1064
|
request_headers = {}
|
1065
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1061
1066
|
|
1062
1067
|
# Set Headers
|
1063
1068
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1116,12 +1121,12 @@ module Azure::Resources::Mgmt::V2016_09_01
|
|
1116
1121
|
# @return [DeploymentListResult] which provide lazy access to pages of the
|
1117
1122
|
# response.
|
1118
1123
|
#
|
1119
|
-
def list_as_lazy(resource_group_name, filter
|
1120
|
-
response = list_async(resource_group_name, filter, top, custom_headers).value!
|
1124
|
+
def list_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil)
|
1125
|
+
response = list_async(resource_group_name, filter:filter, top:top, custom_headers:custom_headers).value!
|
1121
1126
|
unless response.nil?
|
1122
1127
|
page = response.body
|
1123
1128
|
page.next_method = Proc.new do |next_page_link|
|
1124
|
-
list_next_async(next_page_link, custom_headers)
|
1129
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1125
1130
|
end
|
1126
1131
|
page
|
1127
1132
|
end
|