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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-01/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
  3. data/lib/2016-02-01/generated/azure_mgmt_resources/deployments.rb +65 -60
  4. data/lib/2016-02-01/generated/azure_mgmt_resources/providers.rb +33 -28
  5. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_groups.rb +70 -66
  6. data/lib/2016-02-01/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
  7. data/lib/2016-02-01/generated/azure_mgmt_resources/resources.rb +233 -46
  8. data/lib/2016-02-01/generated/azure_mgmt_resources/tags.rb +39 -33
  9. data/lib/2016-07-01/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
  10. data/lib/2016-07-01/generated/azure_mgmt_resources/deployments.rb +65 -60
  11. data/lib/2016-07-01/generated/azure_mgmt_resources/providers.rb +33 -28
  12. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_groups.rb +70 -66
  13. data/lib/2016-07-01/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
  14. data/lib/2016-07-01/generated/azure_mgmt_resources/resources.rb +233 -46
  15. data/lib/2016-07-01/generated/azure_mgmt_resources/tags.rb +39 -33
  16. data/lib/2016-09-01/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
  17. data/lib/2016-09-01/generated/azure_mgmt_resources/deployments.rb +65 -60
  18. data/lib/2016-09-01/generated/azure_mgmt_resources/providers.rb +33 -28
  19. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_groups.rb +70 -66
  20. data/lib/2016-09-01/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
  21. data/lib/2016-09-01/generated/azure_mgmt_resources/resources.rb +428 -84
  22. data/lib/2016-09-01/generated/azure_mgmt_resources/tags.rb +39 -33
  23. data/lib/2017-05-10/generated/azure_mgmt_resources/deployment_operations.rb +21 -18
  24. data/lib/2017-05-10/generated/azure_mgmt_resources/deployments.rb +65 -60
  25. data/lib/2017-05-10/generated/azure_mgmt_resources/models/plan.rb +11 -0
  26. data/lib/2017-05-10/generated/azure_mgmt_resources/models/resource_group.rb +1 -1
  27. data/lib/2017-05-10/generated/azure_mgmt_resources/providers.rb +33 -28
  28. data/lib/2017-05-10/generated/azure_mgmt_resources/resource_groups.rb +55 -53
  29. data/lib/2017-05-10/generated/azure_mgmt_resources/resource_management_client.rb +4 -1
  30. data/lib/2017-05-10/generated/azure_mgmt_resources/resources.rb +453 -108
  31. data/lib/2017-05-10/generated/azure_mgmt_resources/tags.rb +39 -33
  32. data/lib/profiles/latest/modules/resources_profile_module.rb +174 -155
  33. data/lib/profiles/latest/resources_latest_profile_client.rb +28 -9
  34. data/lib/profiles/latest/resources_module_definition.rb +0 -1
  35. data/lib/profiles/v2017_03_09/modules/resources_profile_module.rb +171 -152
  36. data/lib/profiles/v2017_03_09/resources_module_definition.rb +0 -1
  37. data/lib/profiles/v2017_03_09/resources_v2017_03_09_profile_client.rb +28 -9
  38. data/lib/version.rb +1 -1
  39. metadata +3 -3
@@ -30,8 +30,8 @@ module Azure::Resources::Mgmt::V2016_09_01
30
30
  # will be added to the HTTP request.
31
31
  #
32
32
  #
33
- def delete_value(tag_name, tag_value, custom_headers = nil)
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_09_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 = nil)
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_09_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 = nil)
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_09_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_09_01
111
112
  #
112
113
  # @return [TagValue] operation results.
113
114
  #
114
- def create_or_update_value(tag_name, tag_value, custom_headers = nil)
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_09_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 = nil)
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_09_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 = nil)
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_09_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
@@ -215,8 +217,8 @@ module Azure::Resources::Mgmt::V2016_09_01
215
217
  #
216
218
  # @return [TagDetails] operation results.
217
219
  #
218
- def create_or_update(tag_name, custom_headers = nil)
219
- response = create_or_update_async(tag_name, custom_headers).value!
220
+ def create_or_update(tag_name, custom_headers:nil)
221
+ response = create_or_update_async(tag_name, custom_headers:custom_headers).value!
220
222
  response.body unless response.nil?
221
223
  end
222
224
 
@@ -233,8 +235,8 @@ module Azure::Resources::Mgmt::V2016_09_01
233
235
  #
234
236
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
235
237
  #
236
- def create_or_update_with_http_info(tag_name, custom_headers = nil)
237
- create_or_update_async(tag_name, custom_headers).value!
238
+ def create_or_update_with_http_info(tag_name, custom_headers:nil)
239
+ create_or_update_async(tag_name, custom_headers:custom_headers).value!
238
240
  end
239
241
 
240
242
  #
@@ -250,13 +252,14 @@ module Azure::Resources::Mgmt::V2016_09_01
250
252
  #
251
253
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
252
254
  #
253
- def create_or_update_async(tag_name, custom_headers = nil)
255
+ def create_or_update_async(tag_name, custom_headers:nil)
254
256
  fail ArgumentError, 'tag_name is nil' if tag_name.nil?
255
257
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
256
258
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
257
259
 
258
260
 
259
261
  request_headers = {}
262
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
260
263
 
261
264
  # Set Headers
262
265
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -321,8 +324,8 @@ module Azure::Resources::Mgmt::V2016_09_01
321
324
  # will be added to the HTTP request.
322
325
  #
323
326
  #
324
- def delete(tag_name, custom_headers = nil)
325
- response = delete_async(tag_name, custom_headers).value!
327
+ def delete(tag_name, custom_headers:nil)
328
+ response = delete_async(tag_name, custom_headers:custom_headers).value!
326
329
  nil
327
330
  end
328
331
 
@@ -337,8 +340,8 @@ module Azure::Resources::Mgmt::V2016_09_01
337
340
  #
338
341
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
339
342
  #
340
- def delete_with_http_info(tag_name, custom_headers = nil)
341
- delete_async(tag_name, custom_headers).value!
343
+ def delete_with_http_info(tag_name, custom_headers:nil)
344
+ delete_async(tag_name, custom_headers:custom_headers).value!
342
345
  end
343
346
 
344
347
  #
@@ -352,13 +355,14 @@ module Azure::Resources::Mgmt::V2016_09_01
352
355
  #
353
356
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
354
357
  #
355
- def delete_async(tag_name, custom_headers = nil)
358
+ def delete_async(tag_name, custom_headers:nil)
356
359
  fail ArgumentError, 'tag_name is nil' if tag_name.nil?
357
360
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
358
361
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
359
362
 
360
363
 
361
364
  request_headers = {}
365
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
362
366
 
363
367
  # Set Headers
364
368
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -402,8 +406,8 @@ module Azure::Resources::Mgmt::V2016_09_01
402
406
  #
403
407
  # @return [Array<TagDetails>] operation results.
404
408
  #
405
- def list(custom_headers = nil)
406
- first_page = list_as_lazy(custom_headers)
409
+ def list(custom_headers:nil)
410
+ first_page = list_as_lazy(custom_headers:custom_headers)
407
411
  first_page.get_all_items
408
412
  end
409
413
 
@@ -416,8 +420,8 @@ module Azure::Resources::Mgmt::V2016_09_01
416
420
  #
417
421
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
418
422
  #
419
- def list_with_http_info(custom_headers = nil)
420
- list_async(custom_headers).value!
423
+ def list_with_http_info(custom_headers:nil)
424
+ list_async(custom_headers:custom_headers).value!
421
425
  end
422
426
 
423
427
  #
@@ -429,12 +433,13 @@ module Azure::Resources::Mgmt::V2016_09_01
429
433
  #
430
434
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
431
435
  #
432
- def list_async(custom_headers = nil)
436
+ def list_async(custom_headers:nil)
433
437
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
434
438
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
435
439
 
436
440
 
437
441
  request_headers = {}
442
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
438
443
 
439
444
  # Set Headers
440
445
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -490,8 +495,8 @@ module Azure::Resources::Mgmt::V2016_09_01
490
495
  #
491
496
  # @return [TagsListResult] operation results.
492
497
  #
493
- def list_next(next_page_link, custom_headers = nil)
494
- response = list_next_async(next_page_link, custom_headers).value!
498
+ def list_next(next_page_link, custom_headers:nil)
499
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
495
500
  response.body unless response.nil?
496
501
  end
497
502
 
@@ -506,8 +511,8 @@ module Azure::Resources::Mgmt::V2016_09_01
506
511
  #
507
512
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
508
513
  #
509
- def list_next_with_http_info(next_page_link, custom_headers = nil)
510
- list_next_async(next_page_link, custom_headers).value!
514
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
515
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
511
516
  end
512
517
 
513
518
  #
@@ -521,11 +526,12 @@ module Azure::Resources::Mgmt::V2016_09_01
521
526
  #
522
527
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
523
528
  #
524
- def list_next_async(next_page_link, custom_headers = nil)
529
+ def list_next_async(next_page_link, custom_headers:nil)
525
530
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
526
531
 
527
532
 
528
533
  request_headers = {}
534
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
529
535
 
530
536
  # Set Headers
531
537
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -578,12 +584,12 @@ module Azure::Resources::Mgmt::V2016_09_01
578
584
  #
579
585
  # @return [TagsListResult] which provide lazy access to pages of the response.
580
586
  #
581
- def list_as_lazy(custom_headers = nil)
582
- response = list_async(custom_headers).value!
587
+ def list_as_lazy(custom_headers:nil)
588
+ response = list_async(custom_headers:custom_headers).value!
583
589
  unless response.nil?
584
590
  page = response.body
585
591
  page.next_method = Proc.new do |next_page_link|
586
- list_next_async(next_page_link, custom_headers)
592
+ list_next_async(next_page_link, custom_headers:custom_headers)
587
593
  end
588
594
  page
589
595
  end
@@ -33,8 +33,8 @@ module Azure::Resources::Mgmt::V2017_05_10
33
33
  #
34
34
  # @return [DeploymentOperation] operation results.
35
35
  #
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).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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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::V2017_05_10
138
139
  #
139
140
  # @return [Array<DeploymentOperation>] operation results.
140
141
  #
141
- def list(resource_group_name, deployment_name, top = nil, custom_headers = nil)
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::V2017_05_10
156
157
  #
157
158
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
158
159
  #
159
- def list_with_http_info(resource_group_name, deployment_name, top = nil, custom_headers = nil)
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::V2017_05_10
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 = nil, custom_headers = nil)
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::V2017_05_10
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::V2017_05_10
241
243
  #
242
244
  # @return [DeploymentOperationsListResult] operation results.
243
245
  #
244
- def list_next(next_page_link, custom_headers = nil)
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::V2017_05_10
256
258
  #
257
259
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
258
260
  #
259
- def list_next_with_http_info(next_page_link, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
83
83
  #
84
84
  # @return [Boolean] operation results.
85
85
  #
86
- def check_existence(resource_group_name, deployment_name, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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::V2017_05_10
180
181
  #
181
182
  # @return [DeploymentExtended] operation results.
182
183
  #
183
- def create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
227
228
  #
228
229
  # @return [DeploymentExtended] operation results.
229
230
  #
230
- def get(resource_group_name, deployment_name, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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::V2017_05_10
331
333
  # will be added to the HTTP request.
332
334
  #
333
335
  #
334
- def cancel(resource_group_name, deployment_name, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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::V2017_05_10
433
436
  #
434
437
  # @return [DeploymentValidateResult] operation results.
435
438
  #
436
- def validate(resource_group_name, deployment_name, parameters, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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::V2017_05_10::Models::Deployment.mapper()
495
497
  request_content = @client.serialize(request_mapper, parameters)
@@ -558,8 +560,8 @@ module Azure::Resources::Mgmt::V2017_05_10
558
560
  #
559
561
  # @return [DeploymentExportResult] operation results.
560
562
  #
561
- def export_template(resource_group_name, deployment_name, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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::V2017_05_10
663
666
  #
664
667
  # @return [Array<DeploymentExtended>] operation results.
665
668
  #
666
- def list_by_resource_group(resource_group_name, filter = nil, top = nil, custom_headers = nil)
667
- first_page = list_by_resource_group_as_lazy(resource_group_name, filter, top, custom_headers)
669
+ def list_by_resource_group(resource_group_name, filter:nil, top:nil, custom_headers:nil)
670
+ first_page = list_by_resource_group_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::V2017_05_10
682
685
  #
683
686
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
684
687
  #
685
- def list_by_resource_group_with_http_info(resource_group_name, filter = nil, top = nil, custom_headers = nil)
686
- list_by_resource_group_async(resource_group_name, filter, top, custom_headers).value!
688
+ def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, custom_headers:nil)
689
+ list_by_resource_group_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::V2017_05_10
700
703
  #
701
704
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
702
705
  #
703
- def list_by_resource_group_async(resource_group_name, filter = nil, top = nil, custom_headers = nil)
706
+ def list_by_resource_group_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::V2017_05_10
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::V2017_05_10
775
779
  # will be added to the HTTP request.
776
780
  #
777
781
  #
778
- def begin_delete(resource_group_name, deployment_name, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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::V2017_05_10
893
898
  #
894
899
  # @return [DeploymentExtended] operation results.
895
900
  #
896
- def begin_create_or_update(resource_group_name, deployment_name, parameters, custom_headers = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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 = nil)
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::V2017_05_10
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::V2017_05_10::Models::Deployment.mapper()
963
967
  request_content = @client.serialize(request_mapper, parameters)
@@ -1024,8 +1028,8 @@ module Azure::Resources::Mgmt::V2017_05_10
1024
1028
  #
1025
1029
  # @return [DeploymentListResult] operation results.
1026
1030
  #
1027
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
1028
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
1031
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1032
+ response = list_by_resource_group_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::V2017_05_10
1039
1043
  #
1040
1044
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1041
1045
  #
1042
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
1043
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
1046
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1047
+ list_by_resource_group_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::V2017_05_10
1053
1057
  #
1054
1058
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1055
1059
  #
1056
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
1060
+ def list_by_resource_group_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::V2017_05_10
1116
1121
  # @return [DeploymentListResult] which provide lazy access to pages of the
1117
1122
  # response.
1118
1123
  #
1119
- def list_by_resource_group_as_lazy(resource_group_name, filter = nil, top = nil, custom_headers = nil)
1120
- response = list_by_resource_group_async(resource_group_name, filter, top, custom_headers).value!
1124
+ def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, custom_headers:nil)
1125
+ response = list_by_resource_group_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_by_resource_group_next_async(next_page_link, custom_headers)
1129
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
1125
1130
  end
1126
1131
  page
1127
1132
  end