azure_mgmt_compute 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 (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
@@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_12_01
33
33
  #
34
34
  # @return [VirtualMachineScaleSet] operation results.
35
35
  #
36
- def create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
37
- response = create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
36
+ def create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
37
+ response = create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -49,9 +49,9 @@ module Azure::Compute::Mgmt::V2017_12_01
49
49
  # @return [Concurrent::Promise] promise which provides async access to http
50
50
  # response.
51
51
  #
52
- def create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
52
+ def create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
53
53
  # Send request
54
- promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers)
54
+ promise = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers)
55
55
 
56
56
  promise = promise.then do |response|
57
57
  # Defining deserialization method.
@@ -79,8 +79,8 @@ module Azure::Compute::Mgmt::V2017_12_01
79
79
  #
80
80
  # @return [VirtualMachineScaleSet] operation results.
81
81
  #
82
- def update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
83
- response = update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
82
+ def update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
83
+ response = update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
84
84
  response.body unless response.nil?
85
85
  end
86
86
 
@@ -95,9 +95,9 @@ module Azure::Compute::Mgmt::V2017_12_01
95
95
  # @return [Concurrent::Promise] promise which provides async access to http
96
96
  # response.
97
97
  #
98
- def update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
98
+ def update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
99
99
  # Send request
100
- promise = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers)
100
+ promise = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers)
101
101
 
102
102
  promise = promise.then do |response|
103
103
  # Defining deserialization method.
@@ -123,8 +123,8 @@ module Azure::Compute::Mgmt::V2017_12_01
123
123
  #
124
124
  # @return [OperationStatusResponse] operation results.
125
125
  #
126
- def delete(resource_group_name, vm_scale_set_name, custom_headers = nil)
127
- response = delete_async(resource_group_name, vm_scale_set_name, custom_headers).value!
126
+ def delete(resource_group_name, vm_scale_set_name, custom_headers:nil)
127
+ response = delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
128
128
  response.body unless response.nil?
129
129
  end
130
130
 
@@ -137,9 +137,9 @@ module Azure::Compute::Mgmt::V2017_12_01
137
137
  # @return [Concurrent::Promise] promise which provides async access to http
138
138
  # response.
139
139
  #
140
- def delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
140
+ def delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
141
141
  # Send request
142
- promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers)
142
+ promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers)
143
143
 
144
144
  promise = promise.then do |response|
145
145
  # Defining deserialization method.
@@ -165,8 +165,8 @@ module Azure::Compute::Mgmt::V2017_12_01
165
165
  #
166
166
  # @return [VirtualMachineScaleSet] operation results.
167
167
  #
168
- def get(resource_group_name, vm_scale_set_name, custom_headers = nil)
169
- response = get_async(resource_group_name, vm_scale_set_name, custom_headers).value!
168
+ def get(resource_group_name, vm_scale_set_name, custom_headers:nil)
169
+ response = get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
170
170
  response.body unless response.nil?
171
171
  end
172
172
 
@@ -180,8 +180,8 @@ module Azure::Compute::Mgmt::V2017_12_01
180
180
  #
181
181
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
182
182
  #
183
- def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
184
- get_async(resource_group_name, vm_scale_set_name, custom_headers).value!
183
+ def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
184
+ get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
185
185
  end
186
186
 
187
187
  #
@@ -194,7 +194,7 @@ module Azure::Compute::Mgmt::V2017_12_01
194
194
  #
195
195
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
196
196
  #
197
- def get_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
197
+ def get_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
198
198
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
199
199
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
200
200
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -202,6 +202,7 @@ module Azure::Compute::Mgmt::V2017_12_01
202
202
 
203
203
 
204
204
  request_headers = {}
205
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
205
206
 
206
207
  # Set Headers
207
208
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -260,8 +261,8 @@ module Azure::Compute::Mgmt::V2017_12_01
260
261
  #
261
262
  # @return [OperationStatusResponse] operation results.
262
263
  #
263
- def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
264
- response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
264
+ def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
265
+ response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
265
266
  response.body unless response.nil?
266
267
  end
267
268
 
@@ -276,9 +277,9 @@ module Azure::Compute::Mgmt::V2017_12_01
276
277
  # @return [Concurrent::Promise] promise which provides async access to http
277
278
  # response.
278
279
  #
279
- def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
280
+ def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
280
281
  # Send request
281
- promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
282
+ promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
282
283
 
283
284
  promise = promise.then do |response|
284
285
  # Defining deserialization method.
@@ -306,8 +307,8 @@ module Azure::Compute::Mgmt::V2017_12_01
306
307
  #
307
308
  # @return [OperationStatusResponse] operation results.
308
309
  #
309
- def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
310
- response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
310
+ def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
311
+ response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
311
312
  response.body unless response.nil?
312
313
  end
313
314
 
@@ -322,9 +323,9 @@ module Azure::Compute::Mgmt::V2017_12_01
322
323
  # @return [Concurrent::Promise] promise which provides async access to http
323
324
  # response.
324
325
  #
325
- def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
326
+ def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
326
327
  # Send request
327
- promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
328
+ promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers)
328
329
 
329
330
  promise = promise.then do |response|
330
331
  # Defining deserialization method.
@@ -350,8 +351,8 @@ module Azure::Compute::Mgmt::V2017_12_01
350
351
  #
351
352
  # @return [VirtualMachineScaleSetInstanceView] operation results.
352
353
  #
353
- def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers = nil)
354
- response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value!
354
+ def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers:nil)
355
+ response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
355
356
  response.body unless response.nil?
356
357
  end
357
358
 
@@ -365,8 +366,8 @@ module Azure::Compute::Mgmt::V2017_12_01
365
366
  #
366
367
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
367
368
  #
368
- def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
369
- get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value!
369
+ def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
370
+ get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
370
371
  end
371
372
 
372
373
  #
@@ -379,7 +380,7 @@ module Azure::Compute::Mgmt::V2017_12_01
379
380
  #
380
381
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
381
382
  #
382
- def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
383
+ def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
383
384
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
384
385
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
385
386
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -387,6 +388,7 @@ module Azure::Compute::Mgmt::V2017_12_01
387
388
 
388
389
 
389
390
  request_headers = {}
391
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
390
392
 
391
393
  # Set Headers
392
394
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -440,8 +442,8 @@ module Azure::Compute::Mgmt::V2017_12_01
440
442
  #
441
443
  # @return [Array<VirtualMachineScaleSet>] operation results.
442
444
  #
443
- def list(resource_group_name, custom_headers = nil)
444
- first_page = list_as_lazy(resource_group_name, custom_headers)
445
+ def list(resource_group_name, custom_headers:nil)
446
+ first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers)
445
447
  first_page.get_all_items
446
448
  end
447
449
 
@@ -454,8 +456,8 @@ module Azure::Compute::Mgmt::V2017_12_01
454
456
  #
455
457
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
456
458
  #
457
- def list_with_http_info(resource_group_name, custom_headers = nil)
458
- list_async(resource_group_name, custom_headers).value!
459
+ def list_with_http_info(resource_group_name, custom_headers:nil)
460
+ list_async(resource_group_name, custom_headers:custom_headers).value!
459
461
  end
460
462
 
461
463
  #
@@ -467,13 +469,14 @@ module Azure::Compute::Mgmt::V2017_12_01
467
469
  #
468
470
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
469
471
  #
470
- def list_async(resource_group_name, custom_headers = nil)
472
+ def list_async(resource_group_name, custom_headers:nil)
471
473
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
472
474
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
473
475
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
474
476
 
475
477
 
476
478
  request_headers = {}
479
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
477
480
 
478
481
  # Set Headers
479
482
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -529,8 +532,8 @@ module Azure::Compute::Mgmt::V2017_12_01
529
532
  #
530
533
  # @return [Array<VirtualMachineScaleSet>] operation results.
531
534
  #
532
- def list_all(custom_headers = nil)
533
- first_page = list_all_as_lazy(custom_headers)
535
+ def list_all(custom_headers:nil)
536
+ first_page = list_all_as_lazy(custom_headers:custom_headers)
534
537
  first_page.get_all_items
535
538
  end
536
539
 
@@ -545,8 +548,8 @@ module Azure::Compute::Mgmt::V2017_12_01
545
548
  #
546
549
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
547
550
  #
548
- def list_all_with_http_info(custom_headers = nil)
549
- list_all_async(custom_headers).value!
551
+ def list_all_with_http_info(custom_headers:nil)
552
+ list_all_async(custom_headers:custom_headers).value!
550
553
  end
551
554
 
552
555
  #
@@ -560,12 +563,13 @@ module Azure::Compute::Mgmt::V2017_12_01
560
563
  #
561
564
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
562
565
  #
563
- def list_all_async(custom_headers = nil)
566
+ def list_all_async(custom_headers:nil)
564
567
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
565
568
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
566
569
 
567
570
 
568
571
  request_headers = {}
572
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
569
573
 
570
574
  # Set Headers
571
575
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -621,8 +625,8 @@ module Azure::Compute::Mgmt::V2017_12_01
621
625
  #
622
626
  # @return [Array<VirtualMachineScaleSetSku>] operation results.
623
627
  #
624
- def list_skus(resource_group_name, vm_scale_set_name, custom_headers = nil)
625
- first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers)
628
+ def list_skus(resource_group_name, vm_scale_set_name, custom_headers:nil)
629
+ first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers)
626
630
  first_page.get_all_items
627
631
  end
628
632
 
@@ -637,8 +641,8 @@ module Azure::Compute::Mgmt::V2017_12_01
637
641
  #
638
642
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
639
643
  #
640
- def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
641
- list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value!
644
+ def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
645
+ list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
642
646
  end
643
647
 
644
648
  #
@@ -652,7 +656,7 @@ module Azure::Compute::Mgmt::V2017_12_01
652
656
  #
653
657
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
654
658
  #
655
- def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
659
+ def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
656
660
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
657
661
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
658
662
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -660,6 +664,7 @@ module Azure::Compute::Mgmt::V2017_12_01
660
664
 
661
665
 
662
666
  request_headers = {}
667
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
663
668
 
664
669
  # Set Headers
665
670
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -718,8 +723,8 @@ module Azure::Compute::Mgmt::V2017_12_01
718
723
  #
719
724
  # @return [OperationStatusResponse] operation results.
720
725
  #
721
- def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
722
- response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
726
+ def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
727
+ response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
723
728
  response.body unless response.nil?
724
729
  end
725
730
 
@@ -734,9 +739,9 @@ module Azure::Compute::Mgmt::V2017_12_01
734
739
  # @return [Concurrent::Promise] promise which provides async access to http
735
740
  # response.
736
741
  #
737
- def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
742
+ def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
738
743
  # Send request
739
- promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
744
+ promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
740
745
 
741
746
  promise = promise.then do |response|
742
747
  # Defining deserialization method.
@@ -764,8 +769,8 @@ module Azure::Compute::Mgmt::V2017_12_01
764
769
  #
765
770
  # @return [OperationStatusResponse] operation results.
766
771
  #
767
- def restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
768
- response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
772
+ def restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
773
+ response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
769
774
  response.body unless response.nil?
770
775
  end
771
776
 
@@ -780,9 +785,9 @@ module Azure::Compute::Mgmt::V2017_12_01
780
785
  # @return [Concurrent::Promise] promise which provides async access to http
781
786
  # response.
782
787
  #
783
- def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
788
+ def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
784
789
  # Send request
785
- promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
790
+ promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
786
791
 
787
792
  promise = promise.then do |response|
788
793
  # Defining deserialization method.
@@ -810,8 +815,8 @@ module Azure::Compute::Mgmt::V2017_12_01
810
815
  #
811
816
  # @return [OperationStatusResponse] operation results.
812
817
  #
813
- def start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
814
- response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
818
+ def start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
819
+ response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
815
820
  response.body unless response.nil?
816
821
  end
817
822
 
@@ -826,9 +831,9 @@ module Azure::Compute::Mgmt::V2017_12_01
826
831
  # @return [Concurrent::Promise] promise which provides async access to http
827
832
  # response.
828
833
  #
829
- def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
834
+ def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
830
835
  # Send request
831
- promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
836
+ promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
832
837
 
833
838
  promise = promise.then do |response|
834
839
  # Defining deserialization method.
@@ -857,8 +862,8 @@ module Azure::Compute::Mgmt::V2017_12_01
857
862
  #
858
863
  # @return [OperationStatusResponse] operation results.
859
864
  #
860
- def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
861
- response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
865
+ def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
866
+ response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
862
867
  response.body unless response.nil?
863
868
  end
864
869
 
@@ -873,9 +878,9 @@ module Azure::Compute::Mgmt::V2017_12_01
873
878
  # @return [Concurrent::Promise] promise which provides async access to http
874
879
  # response.
875
880
  #
876
- def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
881
+ def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
877
882
  # Send request
878
- promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
883
+ promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers)
879
884
 
880
885
  promise = promise.then do |response|
881
886
  # Defining deserialization method.
@@ -904,8 +909,8 @@ module Azure::Compute::Mgmt::V2017_12_01
904
909
  #
905
910
  # @return [OperationStatusResponse] operation results.
906
911
  #
907
- def reimage(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
908
- response = reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
912
+ def reimage(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
913
+ response = reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
909
914
  response.body unless response.nil?
910
915
  end
911
916
 
@@ -920,9 +925,9 @@ module Azure::Compute::Mgmt::V2017_12_01
920
925
  # @return [Concurrent::Promise] promise which provides async access to http
921
926
  # response.
922
927
  #
923
- def reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
928
+ def reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
924
929
  # Send request
925
- promise = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
930
+ promise = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
926
931
 
927
932
  promise = promise.then do |response|
928
933
  # Defining deserialization method.
@@ -951,8 +956,8 @@ module Azure::Compute::Mgmt::V2017_12_01
951
956
  #
952
957
  # @return [OperationStatusResponse] operation results.
953
958
  #
954
- def reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
955
- response = reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
959
+ def reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
960
+ response = reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
956
961
  response.body unless response.nil?
957
962
  end
958
963
 
@@ -967,9 +972,9 @@ module Azure::Compute::Mgmt::V2017_12_01
967
972
  # @return [Concurrent::Promise] promise which provides async access to http
968
973
  # response.
969
974
  #
970
- def reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
975
+ def reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
971
976
  # Send request
972
- promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
977
+ promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
973
978
 
974
979
  promise = promise.then do |response|
975
980
  # Defining deserialization method.
@@ -985,6 +990,108 @@ module Azure::Compute::Mgmt::V2017_12_01
985
990
  promise
986
991
  end
987
992
 
993
+ #
994
+ # Manual platform update domain walk to update virtual machines in a service
995
+ # fabric virtual machine scale set.
996
+ #
997
+ # @param resource_group_name [String] The name of the resource group.
998
+ # @param vm_scale_set_name [String] The name of the VM scale set.
999
+ # @param platform_update_domain [Integer] The platform update domain for which
1000
+ # a manual recovery walk is requested
1001
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1002
+ # will be added to the HTTP request.
1003
+ #
1004
+ # @return [RecoveryWalkResponse] operation results.
1005
+ #
1006
+ def force_recovery_service_fabric_platform_update_domain_walk(resource_group_name, vm_scale_set_name, platform_update_domain, custom_headers:nil)
1007
+ response = force_recovery_service_fabric_platform_update_domain_walk_async(resource_group_name, vm_scale_set_name, platform_update_domain, custom_headers:custom_headers).value!
1008
+ response.body unless response.nil?
1009
+ end
1010
+
1011
+ #
1012
+ # Manual platform update domain walk to update virtual machines in a service
1013
+ # fabric virtual machine scale set.
1014
+ #
1015
+ # @param resource_group_name [String] The name of the resource group.
1016
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1017
+ # @param platform_update_domain [Integer] The platform update domain for which
1018
+ # a manual recovery walk is requested
1019
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1020
+ # will be added to the HTTP request.
1021
+ #
1022
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1023
+ #
1024
+ def force_recovery_service_fabric_platform_update_domain_walk_with_http_info(resource_group_name, vm_scale_set_name, platform_update_domain, custom_headers:nil)
1025
+ force_recovery_service_fabric_platform_update_domain_walk_async(resource_group_name, vm_scale_set_name, platform_update_domain, custom_headers:custom_headers).value!
1026
+ end
1027
+
1028
+ #
1029
+ # Manual platform update domain walk to update virtual machines in a service
1030
+ # fabric virtual machine scale set.
1031
+ #
1032
+ # @param resource_group_name [String] The name of the resource group.
1033
+ # @param vm_scale_set_name [String] The name of the VM scale set.
1034
+ # @param platform_update_domain [Integer] The platform update domain for which
1035
+ # a manual recovery walk is requested
1036
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1037
+ # to the HTTP request.
1038
+ #
1039
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1040
+ #
1041
+ def force_recovery_service_fabric_platform_update_domain_walk_async(resource_group_name, vm_scale_set_name, platform_update_domain, custom_headers:nil)
1042
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1043
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1044
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1045
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1046
+ fail ArgumentError, 'platform_update_domain is nil' if platform_update_domain.nil?
1047
+
1048
+
1049
+ request_headers = {}
1050
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1051
+
1052
+ # Set Headers
1053
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1054
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1055
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk'
1056
+
1057
+ request_url = @base_url || @client.base_url
1058
+
1059
+ options = {
1060
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1061
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
1062
+ query_params: {'api-version' => @client.api_version,'platformUpdateDomain' => platform_update_domain},
1063
+ headers: request_headers.merge(custom_headers || {}),
1064
+ base_url: request_url
1065
+ }
1066
+ promise = @client.make_request_async(:post, path_template, options)
1067
+
1068
+ promise = promise.then do |result|
1069
+ http_response = result.response
1070
+ status_code = http_response.status
1071
+ response_content = http_response.body
1072
+ unless status_code == 200
1073
+ error_model = JSON.load(response_content)
1074
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1075
+ end
1076
+
1077
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1078
+ # Deserialize Response
1079
+ if status_code == 200
1080
+ begin
1081
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1082
+ result_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::RecoveryWalkResponse.mapper()
1083
+ result.body = @client.deserialize(result_mapper, parsed_response)
1084
+ rescue Exception => e
1085
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1086
+ end
1087
+ end
1088
+
1089
+ result
1090
+ end
1091
+
1092
+ promise.execute
1093
+ end
1094
+
988
1095
  #
989
1096
  # Create or update a VM scale set.
990
1097
  #
@@ -997,8 +1104,8 @@ module Azure::Compute::Mgmt::V2017_12_01
997
1104
  #
998
1105
  # @return [VirtualMachineScaleSet] operation results.
999
1106
  #
1000
- def begin_create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1001
- response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
1107
+ def begin_create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1108
+ response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
1002
1109
  response.body unless response.nil?
1003
1110
  end
1004
1111
 
@@ -1014,8 +1121,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1014
1121
  #
1015
1122
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1016
1123
  #
1017
- def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1018
- begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
1124
+ def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1125
+ begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
1019
1126
  end
1020
1127
 
1021
1128
  #
@@ -1030,7 +1137,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1030
1137
  #
1031
1138
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1032
1139
  #
1033
- def begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1140
+ def begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1034
1141
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1035
1142
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1036
1143
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -1039,13 +1146,12 @@ module Azure::Compute::Mgmt::V2017_12_01
1039
1146
 
1040
1147
 
1041
1148
  request_headers = {}
1149
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1042
1150
 
1043
1151
  # Set Headers
1044
1152
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1045
1153
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1046
1154
 
1047
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1048
-
1049
1155
  # Serialize Request
1050
1156
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSet.mapper()
1051
1157
  request_content = @client.serialize(request_mapper, parameters)
@@ -1114,8 +1220,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1114
1220
  #
1115
1221
  # @return [VirtualMachineScaleSet] operation results.
1116
1222
  #
1117
- def begin_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1118
- response = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
1223
+ def begin_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1224
+ response = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
1119
1225
  response.body unless response.nil?
1120
1226
  end
1121
1227
 
@@ -1131,8 +1237,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1131
1237
  #
1132
1238
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1133
1239
  #
1134
- def begin_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1135
- begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
1240
+ def begin_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1241
+ begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
1136
1242
  end
1137
1243
 
1138
1244
  #
@@ -1147,7 +1253,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1147
1253
  #
1148
1254
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1149
1255
  #
1150
- def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1256
+ def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1151
1257
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1152
1258
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1153
1259
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -1156,13 +1262,12 @@ module Azure::Compute::Mgmt::V2017_12_01
1156
1262
 
1157
1263
 
1158
1264
  request_headers = {}
1265
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1159
1266
 
1160
1267
  # Set Headers
1161
1268
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1162
1269
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1163
1270
 
1164
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1165
-
1166
1271
  # Serialize Request
1167
1272
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSetUpdate.mapper()
1168
1273
  request_content = @client.serialize(request_mapper, parameters)
@@ -1219,8 +1324,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1219
1324
  #
1220
1325
  # @return [OperationStatusResponse] operation results.
1221
1326
  #
1222
- def begin_delete(resource_group_name, vm_scale_set_name, custom_headers = nil)
1223
- response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value!
1327
+ def begin_delete(resource_group_name, vm_scale_set_name, custom_headers:nil)
1328
+ response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
1224
1329
  response.body unless response.nil?
1225
1330
  end
1226
1331
 
@@ -1234,8 +1339,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1234
1339
  #
1235
1340
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1236
1341
  #
1237
- def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
1238
- begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value!
1342
+ def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
1343
+ begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
1239
1344
  end
1240
1345
 
1241
1346
  #
@@ -1248,7 +1353,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1248
1353
  #
1249
1354
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1250
1355
  #
1251
- def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
1356
+ def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
1252
1357
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1253
1358
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1254
1359
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1256,6 +1361,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1256
1361
 
1257
1362
 
1258
1363
  request_headers = {}
1364
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1259
1365
 
1260
1366
  # Set Headers
1261
1367
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1314,8 +1420,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1314
1420
  #
1315
1421
  # @return [OperationStatusResponse] operation results.
1316
1422
  #
1317
- def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1318
- response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1423
+ def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1424
+ response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1319
1425
  response.body unless response.nil?
1320
1426
  end
1321
1427
 
@@ -1333,8 +1439,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1333
1439
  #
1334
1440
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1335
1441
  #
1336
- def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1337
- begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1442
+ def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1443
+ begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1338
1444
  end
1339
1445
 
1340
1446
  #
@@ -1351,7 +1457,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1351
1457
  #
1352
1458
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1353
1459
  #
1354
- def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1460
+ def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1355
1461
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1356
1462
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1357
1463
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1359,13 +1465,12 @@ module Azure::Compute::Mgmt::V2017_12_01
1359
1465
 
1360
1466
 
1361
1467
  request_headers = {}
1468
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1362
1469
 
1363
1470
  # Set Headers
1364
1471
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1365
1472
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1366
1473
 
1367
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1368
-
1369
1474
  # Serialize Request
1370
1475
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1371
1476
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1424,8 +1529,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1424
1529
  #
1425
1530
  # @return [OperationStatusResponse] operation results.
1426
1531
  #
1427
- def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1428
- response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1532
+ def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1533
+ response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1429
1534
  response.body unless response.nil?
1430
1535
  end
1431
1536
 
@@ -1441,8 +1546,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1441
1546
  #
1442
1547
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1443
1548
  #
1444
- def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1445
- begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1549
+ def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1550
+ begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1446
1551
  end
1447
1552
 
1448
1553
  #
@@ -1457,7 +1562,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1457
1562
  #
1458
1563
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1459
1564
  #
1460
- def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1565
+ def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1461
1566
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1462
1567
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1463
1568
  fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil?
@@ -1466,13 +1571,12 @@ module Azure::Compute::Mgmt::V2017_12_01
1466
1571
 
1467
1572
 
1468
1573
  request_headers = {}
1574
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1469
1575
 
1470
1576
  # Set Headers
1471
1577
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1472
1578
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1473
1579
 
1474
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1475
-
1476
1580
  # Serialize Request
1477
1581
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSetVMInstanceRequiredIDs.mapper()
1478
1582
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1533,8 +1637,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1533
1637
  #
1534
1638
  # @return [OperationStatusResponse] operation results.
1535
1639
  #
1536
- def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1537
- response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1640
+ def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1641
+ response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1538
1642
  response.body unless response.nil?
1539
1643
  end
1540
1644
 
@@ -1552,8 +1656,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1552
1656
  #
1553
1657
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1554
1658
  #
1555
- def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1556
- begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1659
+ def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1660
+ begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1557
1661
  end
1558
1662
 
1559
1663
  #
@@ -1570,7 +1674,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1570
1674
  #
1571
1675
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1572
1676
  #
1573
- def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1677
+ def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1574
1678
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1575
1679
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1576
1680
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1578,13 +1682,12 @@ module Azure::Compute::Mgmt::V2017_12_01
1578
1682
 
1579
1683
 
1580
1684
  request_headers = {}
1685
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1581
1686
 
1582
1687
  # Set Headers
1583
1688
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1584
1689
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1585
1690
 
1586
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1587
-
1588
1691
  # Serialize Request
1589
1692
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1590
1693
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1643,8 +1746,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1643
1746
  #
1644
1747
  # @return [OperationStatusResponse] operation results.
1645
1748
  #
1646
- def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1647
- response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1749
+ def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1750
+ response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1648
1751
  response.body unless response.nil?
1649
1752
  end
1650
1753
 
@@ -1660,8 +1763,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1660
1763
  #
1661
1764
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1662
1765
  #
1663
- def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1664
- begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1766
+ def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1767
+ begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1665
1768
  end
1666
1769
 
1667
1770
  #
@@ -1676,7 +1779,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1676
1779
  #
1677
1780
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1678
1781
  #
1679
- def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1782
+ def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1680
1783
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1681
1784
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1682
1785
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1684,13 +1787,12 @@ module Azure::Compute::Mgmt::V2017_12_01
1684
1787
 
1685
1788
 
1686
1789
  request_headers = {}
1790
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1687
1791
 
1688
1792
  # Set Headers
1689
1793
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1690
1794
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1691
1795
 
1692
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1693
-
1694
1796
  # Serialize Request
1695
1797
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1696
1798
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1749,8 +1851,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1749
1851
  #
1750
1852
  # @return [OperationStatusResponse] operation results.
1751
1853
  #
1752
- def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1753
- response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1854
+ def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1855
+ response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1754
1856
  response.body unless response.nil?
1755
1857
  end
1756
1858
 
@@ -1766,8 +1868,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1766
1868
  #
1767
1869
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1768
1870
  #
1769
- def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1770
- begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1871
+ def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1872
+ begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1771
1873
  end
1772
1874
 
1773
1875
  #
@@ -1782,7 +1884,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1782
1884
  #
1783
1885
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1784
1886
  #
1785
- def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1887
+ def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1786
1888
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1787
1889
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1788
1890
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1790,13 +1892,12 @@ module Azure::Compute::Mgmt::V2017_12_01
1790
1892
 
1791
1893
 
1792
1894
  request_headers = {}
1895
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1793
1896
 
1794
1897
  # Set Headers
1795
1898
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1796
1899
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1797
1900
 
1798
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1799
-
1800
1901
  # Serialize Request
1801
1902
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1802
1903
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1856,8 +1957,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1856
1957
  #
1857
1958
  # @return [OperationStatusResponse] operation results.
1858
1959
  #
1859
- def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1860
- response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1960
+ def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1961
+ response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1861
1962
  response.body unless response.nil?
1862
1963
  end
1863
1964
 
@@ -1874,8 +1975,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1874
1975
  #
1875
1976
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1876
1977
  #
1877
- def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1878
- begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1978
+ def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1979
+ begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1879
1980
  end
1880
1981
 
1881
1982
  #
@@ -1891,7 +1992,7 @@ module Azure::Compute::Mgmt::V2017_12_01
1891
1992
  #
1892
1993
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1893
1994
  #
1894
- def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1995
+ def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1895
1996
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1896
1997
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1897
1998
  fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil?
@@ -1900,13 +2001,12 @@ module Azure::Compute::Mgmt::V2017_12_01
1900
2001
 
1901
2002
 
1902
2003
  request_headers = {}
2004
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1903
2005
 
1904
2006
  # Set Headers
1905
2007
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1906
2008
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1907
2009
 
1908
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1909
-
1910
2010
  # Serialize Request
1911
2011
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSetVMInstanceRequiredIDs.mapper()
1912
2012
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1966,8 +2066,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1966
2066
  #
1967
2067
  # @return [OperationStatusResponse] operation results.
1968
2068
  #
1969
- def begin_reimage(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1970
- response = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
2069
+ def begin_reimage(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2070
+ response = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1971
2071
  response.body unless response.nil?
1972
2072
  end
1973
2073
 
@@ -1984,8 +2084,8 @@ module Azure::Compute::Mgmt::V2017_12_01
1984
2084
  #
1985
2085
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1986
2086
  #
1987
- def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1988
- begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
2087
+ def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2088
+ begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1989
2089
  end
1990
2090
 
1991
2091
  #
@@ -2001,7 +2101,7 @@ module Azure::Compute::Mgmt::V2017_12_01
2001
2101
  #
2002
2102
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2003
2103
  #
2004
- def begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
2104
+ def begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2005
2105
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2006
2106
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
2007
2107
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -2009,13 +2109,12 @@ module Azure::Compute::Mgmt::V2017_12_01
2009
2109
 
2010
2110
 
2011
2111
  request_headers = {}
2112
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2012
2113
 
2013
2114
  # Set Headers
2014
2115
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2015
2116
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2016
2117
 
2017
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
2018
-
2019
2118
  # Serialize Request
2020
2119
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
2021
2120
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -2075,8 +2174,8 @@ module Azure::Compute::Mgmt::V2017_12_01
2075
2174
  #
2076
2175
  # @return [OperationStatusResponse] operation results.
2077
2176
  #
2078
- def begin_reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
2079
- response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
2177
+ def begin_reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2178
+ response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
2080
2179
  response.body unless response.nil?
2081
2180
  end
2082
2181
 
@@ -2093,8 +2192,8 @@ module Azure::Compute::Mgmt::V2017_12_01
2093
2192
  #
2094
2193
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2095
2194
  #
2096
- def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
2097
- begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
2195
+ def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2196
+ begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
2098
2197
  end
2099
2198
 
2100
2199
  #
@@ -2110,7 +2209,7 @@ module Azure::Compute::Mgmt::V2017_12_01
2110
2209
  #
2111
2210
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2112
2211
  #
2113
- def begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
2212
+ def begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2114
2213
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2115
2214
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
2116
2215
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -2118,13 +2217,12 @@ module Azure::Compute::Mgmt::V2017_12_01
2118
2217
 
2119
2218
 
2120
2219
  request_headers = {}
2220
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2121
2221
 
2122
2222
  # Set Headers
2123
2223
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2124
2224
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2125
2225
 
2126
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
2127
-
2128
2226
  # Serialize Request
2129
2227
  request_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
2130
2228
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -2181,8 +2279,8 @@ module Azure::Compute::Mgmt::V2017_12_01
2181
2279
  #
2182
2280
  # @return [VirtualMachineScaleSetListResult] operation results.
2183
2281
  #
2184
- def list_next(next_page_link, custom_headers = nil)
2185
- response = list_next_async(next_page_link, custom_headers).value!
2282
+ def list_next(next_page_link, custom_headers:nil)
2283
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
2186
2284
  response.body unless response.nil?
2187
2285
  end
2188
2286
 
@@ -2196,8 +2294,8 @@ module Azure::Compute::Mgmt::V2017_12_01
2196
2294
  #
2197
2295
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2198
2296
  #
2199
- def list_next_with_http_info(next_page_link, custom_headers = nil)
2200
- list_next_async(next_page_link, custom_headers).value!
2297
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
2298
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
2201
2299
  end
2202
2300
 
2203
2301
  #
@@ -2210,11 +2308,12 @@ module Azure::Compute::Mgmt::V2017_12_01
2210
2308
  #
2211
2309
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2212
2310
  #
2213
- def list_next_async(next_page_link, custom_headers = nil)
2311
+ def list_next_async(next_page_link, custom_headers:nil)
2214
2312
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2215
2313
 
2216
2314
 
2217
2315
  request_headers = {}
2316
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2218
2317
 
2219
2318
  # Set Headers
2220
2319
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2271,8 +2370,8 @@ module Azure::Compute::Mgmt::V2017_12_01
2271
2370
  #
2272
2371
  # @return [VirtualMachineScaleSetListWithLinkResult] operation results.
2273
2372
  #
2274
- def list_all_next(next_page_link, custom_headers = nil)
2275
- response = list_all_next_async(next_page_link, custom_headers).value!
2373
+ def list_all_next(next_page_link, custom_headers:nil)
2374
+ response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
2276
2375
  response.body unless response.nil?
2277
2376
  end
2278
2377
 
@@ -2289,8 +2388,8 @@ module Azure::Compute::Mgmt::V2017_12_01
2289
2388
  #
2290
2389
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2291
2390
  #
2292
- def list_all_next_with_http_info(next_page_link, custom_headers = nil)
2293
- list_all_next_async(next_page_link, custom_headers).value!
2391
+ def list_all_next_with_http_info(next_page_link, custom_headers:nil)
2392
+ list_all_next_async(next_page_link, custom_headers:custom_headers).value!
2294
2393
  end
2295
2394
 
2296
2395
  #
@@ -2306,11 +2405,12 @@ module Azure::Compute::Mgmt::V2017_12_01
2306
2405
  #
2307
2406
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2308
2407
  #
2309
- def list_all_next_async(next_page_link, custom_headers = nil)
2408
+ def list_all_next_async(next_page_link, custom_headers:nil)
2310
2409
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2311
2410
 
2312
2411
 
2313
2412
  request_headers = {}
2413
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2314
2414
 
2315
2415
  # Set Headers
2316
2416
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2365,8 +2465,8 @@ module Azure::Compute::Mgmt::V2017_12_01
2365
2465
  #
2366
2466
  # @return [VirtualMachineScaleSetListSkusResult] operation results.
2367
2467
  #
2368
- def list_skus_next(next_page_link, custom_headers = nil)
2369
- response = list_skus_next_async(next_page_link, custom_headers).value!
2468
+ def list_skus_next(next_page_link, custom_headers:nil)
2469
+ response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
2370
2470
  response.body unless response.nil?
2371
2471
  end
2372
2472
 
@@ -2381,8 +2481,8 @@ module Azure::Compute::Mgmt::V2017_12_01
2381
2481
  #
2382
2482
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2383
2483
  #
2384
- def list_skus_next_with_http_info(next_page_link, custom_headers = nil)
2385
- list_skus_next_async(next_page_link, custom_headers).value!
2484
+ def list_skus_next_with_http_info(next_page_link, custom_headers:nil)
2485
+ list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
2386
2486
  end
2387
2487
 
2388
2488
  #
@@ -2396,11 +2496,12 @@ module Azure::Compute::Mgmt::V2017_12_01
2396
2496
  #
2397
2497
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2398
2498
  #
2399
- def list_skus_next_async(next_page_link, custom_headers = nil)
2499
+ def list_skus_next_async(next_page_link, custom_headers:nil)
2400
2500
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2401
2501
 
2402
2502
 
2403
2503
  request_headers = {}
2504
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2404
2505
 
2405
2506
  # Set Headers
2406
2507
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2454,12 +2555,12 @@ module Azure::Compute::Mgmt::V2017_12_01
2454
2555
  # @return [VirtualMachineScaleSetListResult] which provide lazy access to pages
2455
2556
  # of the response.
2456
2557
  #
2457
- def list_as_lazy(resource_group_name, custom_headers = nil)
2458
- response = list_async(resource_group_name, custom_headers).value!
2558
+ def list_as_lazy(resource_group_name, custom_headers:nil)
2559
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
2459
2560
  unless response.nil?
2460
2561
  page = response.body
2461
2562
  page.next_method = Proc.new do |next_page_link|
2462
- list_next_async(next_page_link, custom_headers)
2563
+ list_next_async(next_page_link, custom_headers:custom_headers)
2463
2564
  end
2464
2565
  page
2465
2566
  end
@@ -2477,12 +2578,12 @@ module Azure::Compute::Mgmt::V2017_12_01
2477
2578
  # @return [VirtualMachineScaleSetListWithLinkResult] which provide lazy access
2478
2579
  # to pages of the response.
2479
2580
  #
2480
- def list_all_as_lazy(custom_headers = nil)
2481
- response = list_all_async(custom_headers).value!
2581
+ def list_all_as_lazy(custom_headers:nil)
2582
+ response = list_all_async(custom_headers:custom_headers).value!
2482
2583
  unless response.nil?
2483
2584
  page = response.body
2484
2585
  page.next_method = Proc.new do |next_page_link|
2485
- list_all_next_async(next_page_link, custom_headers)
2586
+ list_all_next_async(next_page_link, custom_headers:custom_headers)
2486
2587
  end
2487
2588
  page
2488
2589
  end
@@ -2500,12 +2601,12 @@ module Azure::Compute::Mgmt::V2017_12_01
2500
2601
  # @return [VirtualMachineScaleSetListSkusResult] which provide lazy access to
2501
2602
  # pages of the response.
2502
2603
  #
2503
- def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers = nil)
2504
- response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value!
2604
+ def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil)
2605
+ response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
2505
2606
  unless response.nil?
2506
2607
  page = response.body
2507
2608
  page.next_method = Proc.new do |next_page_link|
2508
- list_skus_next_async(next_page_link, custom_headers)
2609
+ list_skus_next_async(next_page_link, custom_headers:custom_headers)
2509
2610
  end
2510
2611
  page
2511
2612
  end