azure_mgmt_compute 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  3. data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  4. data/lib/2015-06-15/generated/azure_mgmt_compute/models/list_usages_result.rb +13 -0
  5. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +13 -0
  6. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +13 -0
  7. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +13 -0
  8. data/lib/2015-06-15/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  9. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  10. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  11. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  12. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +87 -77
  13. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +147 -144
  14. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  15. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb +128 -117
  16. data/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  17. data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  18. data/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  19. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  20. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  21. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  22. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +87 -77
  23. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +147 -144
  24. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  25. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +128 -117
  26. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  27. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  28. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb +170 -138
  29. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/images.rb +56 -51
  30. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb +86 -82
  31. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  32. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  33. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  34. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  35. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +97 -86
  36. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +157 -153
  37. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  38. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +138 -126
  39. data/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  40. data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  41. data/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb +170 -138
  42. data/lib/2017-03-30/generated/azure_mgmt_compute/images.rb +56 -51
  43. data/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb +15 -13
  44. data/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb +170 -138
  45. data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  46. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  47. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  48. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  49. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +21 -18
  50. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +41 -38
  51. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +26 -23
  52. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +97 -86
  53. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +167 -168
  54. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  55. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb +164 -151
  56. data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  57. data/lib/2017-09-01/generated/azure_mgmt_compute/resource_skus.rb +15 -13
  58. data/lib/2017-12-01/generated/azure_mgmt_compute.rb +77 -60
  59. data/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  60. data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +12 -1
  61. data/lib/2017-12-01/generated/azure_mgmt_compute/images.rb +56 -51
  62. data/lib/2017-12-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
  63. data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +12 -0
  64. data/lib/2017-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb +35 -13
  65. data/lib/2017-12-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
  66. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
  67. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +94 -0
  68. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
  69. data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +12 -0
  70. data/lib/2017-12-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
  71. data/lib/2017-12-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
  72. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
  73. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
  74. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
  75. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
  76. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
  77. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
  78. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_result.rb +92 -0
  79. data/lib/2017-12-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
  80. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +34 -0
  81. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
  82. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +12 -0
  83. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +12 -0
  84. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +12 -0
  85. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +13 -0
  86. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +69 -0
  87. data/lib/2017-12-01/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  88. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  89. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  90. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  91. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
  92. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +41 -38
  93. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +26 -23
  94. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +270 -86
  95. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +269 -168
  96. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  97. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +306 -140
  98. data/lib/profiles/latest/compute_latest_profile_client.rb +28 -9
  99. data/lib/profiles/latest/compute_module_definition.rb +0 -1
  100. data/lib/profiles/latest/modules/compute_profile_module.rb +665 -606
  101. data/lib/profiles/v2017_03_09/compute_module_definition.rb +0 -1
  102. data/lib/profiles/v2017_03_09/compute_v2017_03_09_profile_client.rb +28 -9
  103. data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +330 -311
  104. data/lib/version.rb +1 -1
  105. metadata +19 -2
@@ -34,8 +34,8 @@ module Azure::Compute::Mgmt::V2016_03_30
34
34
  #
35
35
  # @return [VirtualMachineImage] operation results.
36
36
  #
37
- def get(location, publisher_name, offer, skus, version, custom_headers = nil)
38
- response = get_async(location, publisher_name, offer, skus, version, custom_headers).value!
37
+ def get(location, publisher_name, offer, skus, version, custom_headers:nil)
38
+ response = get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value!
39
39
  response.body unless response.nil?
40
40
  end
41
41
 
@@ -52,8 +52,8 @@ module Azure::Compute::Mgmt::V2016_03_30
52
52
  #
53
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
54
  #
55
- def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers = nil)
56
- get_async(location, publisher_name, offer, skus, version, custom_headers).value!
55
+ def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers:nil)
56
+ get_async(location, publisher_name, offer, skus, version, custom_headers:custom_headers).value!
57
57
  end
58
58
 
59
59
  #
@@ -69,7 +69,7 @@ module Azure::Compute::Mgmt::V2016_03_30
69
69
  #
70
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
71
  #
72
- def get_async(location, publisher_name, offer, skus, version, custom_headers = nil)
72
+ def get_async(location, publisher_name, offer, skus, version, custom_headers:nil)
73
73
  fail ArgumentError, 'location is nil' if location.nil?
74
74
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
75
75
  fail ArgumentError, 'offer is nil' if offer.nil?
@@ -80,6 +80,7 @@ module Azure::Compute::Mgmt::V2016_03_30
80
80
 
81
81
 
82
82
  request_headers = {}
83
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
83
84
 
84
85
  # Set Headers
85
86
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -140,8 +141,8 @@ module Azure::Compute::Mgmt::V2016_03_30
140
141
  #
141
142
  # @return [Array] operation results.
142
143
  #
143
- def list(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil)
144
- response = list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value!
144
+ def list(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil)
145
+ response = list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
145
146
  response.body unless response.nil?
146
147
  end
147
148
 
@@ -161,8 +162,8 @@ module Azure::Compute::Mgmt::V2016_03_30
161
162
  #
162
163
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
163
164
  #
164
- def list_with_http_info(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil)
165
- list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value!
165
+ def list_with_http_info(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil)
166
+ list_async(location, publisher_name, offer, skus, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
166
167
  end
167
168
 
168
169
  #
@@ -181,7 +182,7 @@ module Azure::Compute::Mgmt::V2016_03_30
181
182
  #
182
183
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
183
184
  #
184
- def list_async(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil)
185
+ def list_async(location, publisher_name, offer, skus, filter:nil, top:nil, orderby:nil, custom_headers:nil)
185
186
  fail ArgumentError, 'location is nil' if location.nil?
186
187
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
187
188
  fail ArgumentError, 'offer is nil' if offer.nil?
@@ -191,6 +192,7 @@ module Azure::Compute::Mgmt::V2016_03_30
191
192
 
192
193
 
193
194
  request_headers = {}
195
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
194
196
 
195
197
  # Set Headers
196
198
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -262,8 +264,8 @@ module Azure::Compute::Mgmt::V2016_03_30
262
264
  #
263
265
  # @return [Array] operation results.
264
266
  #
265
- def list_offers(location, publisher_name, custom_headers = nil)
266
- response = list_offers_async(location, publisher_name, custom_headers).value!
267
+ def list_offers(location, publisher_name, custom_headers:nil)
268
+ response = list_offers_async(location, publisher_name, custom_headers:custom_headers).value!
267
269
  response.body unless response.nil?
268
270
  end
269
271
 
@@ -278,8 +280,8 @@ module Azure::Compute::Mgmt::V2016_03_30
278
280
  #
279
281
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
280
282
  #
281
- def list_offers_with_http_info(location, publisher_name, custom_headers = nil)
282
- list_offers_async(location, publisher_name, custom_headers).value!
283
+ def list_offers_with_http_info(location, publisher_name, custom_headers:nil)
284
+ list_offers_async(location, publisher_name, custom_headers:custom_headers).value!
283
285
  end
284
286
 
285
287
  #
@@ -293,7 +295,7 @@ module Azure::Compute::Mgmt::V2016_03_30
293
295
  #
294
296
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
295
297
  #
296
- def list_offers_async(location, publisher_name, custom_headers = nil)
298
+ def list_offers_async(location, publisher_name, custom_headers:nil)
297
299
  fail ArgumentError, 'location is nil' if location.nil?
298
300
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
299
301
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -301,6 +303,7 @@ module Azure::Compute::Mgmt::V2016_03_30
301
303
 
302
304
 
303
305
  request_headers = {}
306
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
304
307
 
305
308
  # Set Headers
306
309
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -371,8 +374,8 @@ module Azure::Compute::Mgmt::V2016_03_30
371
374
  #
372
375
  # @return [Array] operation results.
373
376
  #
374
- def list_publishers(location, custom_headers = nil)
375
- response = list_publishers_async(location, custom_headers).value!
377
+ def list_publishers(location, custom_headers:nil)
378
+ response = list_publishers_async(location, custom_headers:custom_headers).value!
376
379
  response.body unless response.nil?
377
380
  end
378
381
 
@@ -386,8 +389,8 @@ module Azure::Compute::Mgmt::V2016_03_30
386
389
  #
387
390
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
388
391
  #
389
- def list_publishers_with_http_info(location, custom_headers = nil)
390
- list_publishers_async(location, custom_headers).value!
392
+ def list_publishers_with_http_info(location, custom_headers:nil)
393
+ list_publishers_async(location, custom_headers:custom_headers).value!
391
394
  end
392
395
 
393
396
  #
@@ -400,13 +403,14 @@ module Azure::Compute::Mgmt::V2016_03_30
400
403
  #
401
404
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
402
405
  #
403
- def list_publishers_async(location, custom_headers = nil)
406
+ def list_publishers_async(location, custom_headers:nil)
404
407
  fail ArgumentError, 'location is nil' if location.nil?
405
408
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
406
409
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
407
410
 
408
411
 
409
412
  request_headers = {}
413
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
410
414
 
411
415
  # Set Headers
412
416
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -479,8 +483,8 @@ module Azure::Compute::Mgmt::V2016_03_30
479
483
  #
480
484
  # @return [Array] operation results.
481
485
  #
482
- def list_skus(location, publisher_name, offer, custom_headers = nil)
483
- response = list_skus_async(location, publisher_name, offer, custom_headers).value!
486
+ def list_skus(location, publisher_name, offer, custom_headers:nil)
487
+ response = list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value!
484
488
  response.body unless response.nil?
485
489
  end
486
490
 
@@ -496,8 +500,8 @@ module Azure::Compute::Mgmt::V2016_03_30
496
500
  #
497
501
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
498
502
  #
499
- def list_skus_with_http_info(location, publisher_name, offer, custom_headers = nil)
500
- list_skus_async(location, publisher_name, offer, custom_headers).value!
503
+ def list_skus_with_http_info(location, publisher_name, offer, custom_headers:nil)
504
+ list_skus_async(location, publisher_name, offer, custom_headers:custom_headers).value!
501
505
  end
502
506
 
503
507
  #
@@ -512,7 +516,7 @@ module Azure::Compute::Mgmt::V2016_03_30
512
516
  #
513
517
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
514
518
  #
515
- def list_skus_async(location, publisher_name, offer, custom_headers = nil)
519
+ def list_skus_async(location, publisher_name, offer, custom_headers:nil)
516
520
  fail ArgumentError, 'location is nil' if location.nil?
517
521
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
518
522
  fail ArgumentError, 'offer is nil' if offer.nil?
@@ -521,6 +525,7 @@ module Azure::Compute::Mgmt::V2016_03_30
521
525
 
522
526
 
523
527
  request_headers = {}
528
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
524
529
 
525
530
  # Set Headers
526
531
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2016_03_30
33
33
  #
34
34
  # @return [OperationStatusResponse] operation results.
35
35
  #
36
- def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
37
- response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
36
+ def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
37
+ response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -48,9 +48,9 @@ module Azure::Compute::Mgmt::V2016_03_30
48
48
  # @return [Concurrent::Promise] promise which provides async access to http
49
49
  # response.
50
50
  #
51
- def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
51
+ def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
52
52
  # Send request
53
- promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
53
+ promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
54
54
 
55
55
  promise = promise.then do |response|
56
56
  # Defining deserialization method.
@@ -80,8 +80,8 @@ module Azure::Compute::Mgmt::V2016_03_30
80
80
  #
81
81
  # @return [OperationStatusResponse] operation results.
82
82
  #
83
- def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
84
- response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
83
+ def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
84
+ response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
85
85
  response.body unless response.nil?
86
86
  end
87
87
 
@@ -95,9 +95,9 @@ module Azure::Compute::Mgmt::V2016_03_30
95
95
  # @return [Concurrent::Promise] promise which provides async access to http
96
96
  # response.
97
97
  #
98
- def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
98
+ def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
99
99
  # Send request
100
- promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
100
+ promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
101
101
 
102
102
  promise = promise.then do |response|
103
103
  # Defining deserialization method.
@@ -124,8 +124,8 @@ module Azure::Compute::Mgmt::V2016_03_30
124
124
  #
125
125
  # @return [OperationStatusResponse] operation results.
126
126
  #
127
- def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
128
- response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
127
+ def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
128
+ response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
129
129
  response.body unless response.nil?
130
130
  end
131
131
 
@@ -139,9 +139,9 @@ module Azure::Compute::Mgmt::V2016_03_30
139
139
  # @return [Concurrent::Promise] promise which provides async access to http
140
140
  # response.
141
141
  #
142
- def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
142
+ def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
143
143
  # Send request
144
- promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
144
+ promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
145
145
 
146
146
  promise = promise.then do |response|
147
147
  # Defining deserialization method.
@@ -168,8 +168,8 @@ module Azure::Compute::Mgmt::V2016_03_30
168
168
  #
169
169
  # @return [VirtualMachineScaleSetVM] operation results.
170
170
  #
171
- def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
172
- response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
171
+ def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
172
+ response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
173
173
  response.body unless response.nil?
174
174
  end
175
175
 
@@ -184,8 +184,8 @@ module Azure::Compute::Mgmt::V2016_03_30
184
184
  #
185
185
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
186
186
  #
187
- def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
188
- get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
187
+ def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
188
+ get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
189
189
  end
190
190
 
191
191
  #
@@ -199,7 +199,7 @@ module Azure::Compute::Mgmt::V2016_03_30
199
199
  #
200
200
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
201
201
  #
202
- def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
202
+ def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
203
203
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
204
204
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
205
205
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -208,6 +208,7 @@ module Azure::Compute::Mgmt::V2016_03_30
208
208
 
209
209
 
210
210
  request_headers = {}
211
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
211
212
 
212
213
  # Set Headers
213
214
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -263,8 +264,8 @@ module Azure::Compute::Mgmt::V2016_03_30
263
264
  #
264
265
  # @return [VirtualMachineScaleSetVMInstanceView] operation results.
265
266
  #
266
- def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
267
- response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
267
+ def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
268
+ response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
268
269
  response.body unless response.nil?
269
270
  end
270
271
 
@@ -279,8 +280,8 @@ module Azure::Compute::Mgmt::V2016_03_30
279
280
  #
280
281
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
281
282
  #
282
- def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
283
- get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
283
+ def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
284
+ get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
284
285
  end
285
286
 
286
287
  #
@@ -294,7 +295,7 @@ module Azure::Compute::Mgmt::V2016_03_30
294
295
  #
295
296
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
296
297
  #
297
- def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
298
+ def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
298
299
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
299
300
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
300
301
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -303,6 +304,7 @@ module Azure::Compute::Mgmt::V2016_03_30
303
304
 
304
305
 
305
306
  request_headers = {}
307
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
306
308
 
307
309
  # Set Headers
308
310
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -360,8 +362,8 @@ module Azure::Compute::Mgmt::V2016_03_30
360
362
  #
361
363
  # @return [Array<VirtualMachineScaleSetVM>] operation results.
362
364
  #
363
- def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
364
- first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers)
365
+ def list(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
366
+ first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers)
365
367
  first_page.get_all_items
366
368
  end
367
369
 
@@ -378,8 +380,8 @@ module Azure::Compute::Mgmt::V2016_03_30
378
380
  #
379
381
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
380
382
  #
381
- def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
382
- list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
383
+ def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
384
+ list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value!
383
385
  end
384
386
 
385
387
  #
@@ -395,7 +397,7 @@ module Azure::Compute::Mgmt::V2016_03_30
395
397
  #
396
398
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
397
399
  #
398
- def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
400
+ def list_async(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
399
401
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
400
402
  fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
401
403
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -403,6 +405,7 @@ module Azure::Compute::Mgmt::V2016_03_30
403
405
 
404
406
 
405
407
  request_headers = {}
408
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
406
409
 
407
410
  # Set Headers
408
411
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -460,8 +463,8 @@ module Azure::Compute::Mgmt::V2016_03_30
460
463
  #
461
464
  # @return [OperationStatusResponse] operation results.
462
465
  #
463
- def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
464
- response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
466
+ def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
467
+ response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
465
468
  response.body unless response.nil?
466
469
  end
467
470
 
@@ -475,9 +478,9 @@ module Azure::Compute::Mgmt::V2016_03_30
475
478
  # @return [Concurrent::Promise] promise which provides async access to http
476
479
  # response.
477
480
  #
478
- def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
481
+ def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
479
482
  # Send request
480
- promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
483
+ promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
481
484
 
482
485
  promise = promise.then do |response|
483
486
  # Defining deserialization method.
@@ -504,8 +507,8 @@ module Azure::Compute::Mgmt::V2016_03_30
504
507
  #
505
508
  # @return [OperationStatusResponse] operation results.
506
509
  #
507
- def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
508
- response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
510
+ def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
511
+ response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
509
512
  response.body unless response.nil?
510
513
  end
511
514
 
@@ -519,9 +522,9 @@ module Azure::Compute::Mgmt::V2016_03_30
519
522
  # @return [Concurrent::Promise] promise which provides async access to http
520
523
  # response.
521
524
  #
522
- def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
525
+ def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
523
526
  # Send request
524
- promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
527
+ promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
525
528
 
526
529
  promise = promise.then do |response|
527
530
  # Defining deserialization method.
@@ -548,8 +551,8 @@ module Azure::Compute::Mgmt::V2016_03_30
548
551
  #
549
552
  # @return [OperationStatusResponse] operation results.
550
553
  #
551
- def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
552
- response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
554
+ def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
555
+ response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
553
556
  response.body unless response.nil?
554
557
  end
555
558
 
@@ -563,9 +566,9 @@ module Azure::Compute::Mgmt::V2016_03_30
563
566
  # @return [Concurrent::Promise] promise which provides async access to http
564
567
  # response.
565
568
  #
566
- def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
569
+ def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
567
570
  # Send request
568
- promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
571
+ promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
569
572
 
570
573
  promise = promise.then do |response|
571
574
  # Defining deserialization method.
@@ -593,8 +596,8 @@ module Azure::Compute::Mgmt::V2016_03_30
593
596
  #
594
597
  # @return [OperationStatusResponse] operation results.
595
598
  #
596
- def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
597
- response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
599
+ def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
600
+ response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
598
601
  response.body unless response.nil?
599
602
  end
600
603
 
@@ -610,8 +613,8 @@ module Azure::Compute::Mgmt::V2016_03_30
610
613
  #
611
614
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
612
615
  #
613
- def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
614
- begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
616
+ def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
617
+ begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
615
618
  end
616
619
 
617
620
  #
@@ -626,7 +629,7 @@ module Azure::Compute::Mgmt::V2016_03_30
626
629
  #
627
630
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
628
631
  #
629
- def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
632
+ def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
630
633
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
631
634
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
632
635
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -635,6 +638,7 @@ module Azure::Compute::Mgmt::V2016_03_30
635
638
 
636
639
 
637
640
  request_headers = {}
641
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
638
642
 
639
643
  # Set Headers
640
644
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -693,8 +697,8 @@ module Azure::Compute::Mgmt::V2016_03_30
693
697
  #
694
698
  # @return [OperationStatusResponse] operation results.
695
699
  #
696
- def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
697
- response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
700
+ def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
701
+ response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
698
702
  response.body unless response.nil?
699
703
  end
700
704
 
@@ -712,8 +716,8 @@ module Azure::Compute::Mgmt::V2016_03_30
712
716
  #
713
717
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
714
718
  #
715
- def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
716
- begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
719
+ def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
720
+ begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
717
721
  end
718
722
 
719
723
  #
@@ -730,7 +734,7 @@ module Azure::Compute::Mgmt::V2016_03_30
730
734
  #
731
735
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
732
736
  #
733
- def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
737
+ def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
734
738
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
735
739
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
736
740
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -739,6 +743,7 @@ module Azure::Compute::Mgmt::V2016_03_30
739
743
 
740
744
 
741
745
  request_headers = {}
746
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
742
747
 
743
748
  # Set Headers
744
749
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -794,8 +799,8 @@ module Azure::Compute::Mgmt::V2016_03_30
794
799
  #
795
800
  # @return [OperationStatusResponse] operation results.
796
801
  #
797
- def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
798
- response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
802
+ def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
803
+ response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
799
804
  response.body unless response.nil?
800
805
  end
801
806
 
@@ -810,8 +815,8 @@ module Azure::Compute::Mgmt::V2016_03_30
810
815
  #
811
816
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
817
  #
813
- def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
814
- begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
818
+ def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
819
+ begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
815
820
  end
816
821
 
817
822
  #
@@ -825,7 +830,7 @@ module Azure::Compute::Mgmt::V2016_03_30
825
830
  #
826
831
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
827
832
  #
828
- def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
833
+ def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
829
834
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
830
835
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
831
836
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -834,6 +839,7 @@ module Azure::Compute::Mgmt::V2016_03_30
834
839
 
835
840
 
836
841
  request_headers = {}
842
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
837
843
 
838
844
  # Set Headers
839
845
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -891,8 +897,8 @@ module Azure::Compute::Mgmt::V2016_03_30
891
897
  #
892
898
  # @return [OperationStatusResponse] operation results.
893
899
  #
894
- def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
895
- response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
900
+ def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
901
+ response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
896
902
  response.body unless response.nil?
897
903
  end
898
904
 
@@ -909,8 +915,8 @@ module Azure::Compute::Mgmt::V2016_03_30
909
915
  #
910
916
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
911
917
  #
912
- def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
913
- begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
918
+ def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
919
+ begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
914
920
  end
915
921
 
916
922
  #
@@ -926,7 +932,7 @@ module Azure::Compute::Mgmt::V2016_03_30
926
932
  #
927
933
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
928
934
  #
929
- def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
935
+ def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
930
936
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
931
937
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
932
938
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -935,6 +941,7 @@ module Azure::Compute::Mgmt::V2016_03_30
935
941
 
936
942
 
937
943
  request_headers = {}
944
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
938
945
 
939
946
  # Set Headers
940
947
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -990,8 +997,8 @@ module Azure::Compute::Mgmt::V2016_03_30
990
997
  #
991
998
  # @return [OperationStatusResponse] operation results.
992
999
  #
993
- def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
994
- response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1000
+ def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1001
+ response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
995
1002
  response.body unless response.nil?
996
1003
  end
997
1004
 
@@ -1006,8 +1013,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1006
1013
  #
1007
1014
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1008
1015
  #
1009
- def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1010
- begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1016
+ def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1017
+ begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1011
1018
  end
1012
1019
 
1013
1020
  #
@@ -1021,7 +1028,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1021
1028
  #
1022
1029
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1023
1030
  #
1024
- def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1031
+ def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1025
1032
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1026
1033
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1027
1034
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -1030,6 +1037,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1030
1037
 
1031
1038
 
1032
1039
  request_headers = {}
1040
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1033
1041
 
1034
1042
  # Set Headers
1035
1043
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1085,8 +1093,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1085
1093
  #
1086
1094
  # @return [OperationStatusResponse] operation results.
1087
1095
  #
1088
- def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1089
- response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1096
+ def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1097
+ response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1090
1098
  response.body unless response.nil?
1091
1099
  end
1092
1100
 
@@ -1101,8 +1109,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1101
1109
  #
1102
1110
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1103
1111
  #
1104
- def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1105
- begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1112
+ def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1113
+ begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1106
1114
  end
1107
1115
 
1108
1116
  #
@@ -1116,7 +1124,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1116
1124
  #
1117
1125
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1118
1126
  #
1119
- def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1127
+ def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1120
1128
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1121
1129
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1122
1130
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -1125,6 +1133,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1125
1133
 
1126
1134
 
1127
1135
  request_headers = {}
1136
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1128
1137
 
1129
1138
  # Set Headers
1130
1139
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1179,8 +1188,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1179
1188
  #
1180
1189
  # @return [VirtualMachineScaleSetVMListResult] operation results.
1181
1190
  #
1182
- def list_next(next_page_link, custom_headers = nil)
1183
- response = list_next_async(next_page_link, custom_headers).value!
1191
+ def list_next(next_page_link, custom_headers:nil)
1192
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1184
1193
  response.body unless response.nil?
1185
1194
  end
1186
1195
 
@@ -1194,8 +1203,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1194
1203
  #
1195
1204
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1196
1205
  #
1197
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1198
- list_next_async(next_page_link, custom_headers).value!
1206
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1207
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1199
1208
  end
1200
1209
 
1201
1210
  #
@@ -1208,11 +1217,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1208
1217
  #
1209
1218
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1210
1219
  #
1211
- def list_next_async(next_page_link, custom_headers = nil)
1220
+ def list_next_async(next_page_link, custom_headers:nil)
1212
1221
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1213
1222
 
1214
1223
 
1215
1224
  request_headers = {}
1225
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1216
1226
 
1217
1227
  # Set Headers
1218
1228
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1270,12 +1280,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1270
1280
  # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to
1271
1281
  # pages of the response.
1272
1282
  #
1273
- def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
1274
- response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
1283
+ def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
1284
+ response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value!
1275
1285
  unless response.nil?
1276
1286
  page = response.body
1277
1287
  page.next_method = Proc.new do |next_page_link|
1278
- list_next_async(next_page_link, custom_headers)
1288
+ list_next_async(next_page_link, custom_headers:custom_headers)
1279
1289
  end
1280
1290
  page
1281
1291
  end