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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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_03_30
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.
@@ -997,8 +1002,8 @@ module Azure::Compute::Mgmt::V2017_03_30
997
1002
  #
998
1003
  # @return [VirtualMachineScaleSet] operation results.
999
1004
  #
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!
1005
+ def begin_create_or_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1006
+ response = begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
1002
1007
  response.body unless response.nil?
1003
1008
  end
1004
1009
 
@@ -1014,8 +1019,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1014
1019
  #
1015
1020
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1016
1021
  #
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!
1022
+ def begin_create_or_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1023
+ begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
1019
1024
  end
1020
1025
 
1021
1026
  #
@@ -1030,7 +1035,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1030
1035
  #
1031
1036
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1032
1037
  #
1033
- def begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1038
+ def begin_create_or_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1034
1039
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1035
1040
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1036
1041
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -1039,13 +1044,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1039
1044
 
1040
1045
 
1041
1046
  request_headers = {}
1047
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1042
1048
 
1043
1049
  # Set Headers
1044
1050
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1045
1051
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1046
1052
 
1047
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1048
-
1049
1053
  # Serialize Request
1050
1054
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSet.mapper()
1051
1055
  request_content = @client.serialize(request_mapper, parameters)
@@ -1114,8 +1118,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1114
1118
  #
1115
1119
  # @return [VirtualMachineScaleSet] operation results.
1116
1120
  #
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!
1121
+ def begin_update(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1122
+ response = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
1119
1123
  response.body unless response.nil?
1120
1124
  end
1121
1125
 
@@ -1131,8 +1135,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1131
1135
  #
1132
1136
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1133
1137
  #
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!
1138
+ def begin_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1139
+ begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:custom_headers).value!
1136
1140
  end
1137
1141
 
1138
1142
  #
@@ -1147,7 +1151,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1147
1151
  #
1148
1152
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1149
1153
  #
1150
- def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
1154
+ def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers:nil)
1151
1155
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1152
1156
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1153
1157
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -1156,13 +1160,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1156
1160
 
1157
1161
 
1158
1162
  request_headers = {}
1163
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1159
1164
 
1160
1165
  # Set Headers
1161
1166
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1162
1167
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1163
1168
 
1164
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1165
-
1166
1169
  # Serialize Request
1167
1170
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetUpdate.mapper()
1168
1171
  request_content = @client.serialize(request_mapper, parameters)
@@ -1219,8 +1222,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1219
1222
  #
1220
1223
  # @return [OperationStatusResponse] operation results.
1221
1224
  #
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!
1225
+ def begin_delete(resource_group_name, vm_scale_set_name, custom_headers:nil)
1226
+ response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
1224
1227
  response.body unless response.nil?
1225
1228
  end
1226
1229
 
@@ -1234,8 +1237,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1234
1237
  #
1235
1238
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1236
1239
  #
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!
1240
+ def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
1241
+ begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
1239
1242
  end
1240
1243
 
1241
1244
  #
@@ -1248,7 +1251,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1248
1251
  #
1249
1252
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1250
1253
  #
1251
- def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
1254
+ def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
1252
1255
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1253
1256
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1254
1257
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1256,6 +1259,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1256
1259
 
1257
1260
 
1258
1261
  request_headers = {}
1262
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1259
1263
 
1260
1264
  # Set Headers
1261
1265
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1314,8 +1318,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1314
1318
  #
1315
1319
  # @return [OperationStatusResponse] operation results.
1316
1320
  #
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!
1321
+ def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1322
+ response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1319
1323
  response.body unless response.nil?
1320
1324
  end
1321
1325
 
@@ -1333,8 +1337,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1333
1337
  #
1334
1338
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1335
1339
  #
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!
1340
+ def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1341
+ begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1338
1342
  end
1339
1343
 
1340
1344
  #
@@ -1351,7 +1355,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1351
1355
  #
1352
1356
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1353
1357
  #
1354
- def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1358
+ def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1355
1359
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1356
1360
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1357
1361
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1359,13 +1363,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1359
1363
 
1360
1364
 
1361
1365
  request_headers = {}
1366
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1362
1367
 
1363
1368
  # Set Headers
1364
1369
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1365
1370
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1366
1371
 
1367
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1368
-
1369
1372
  # Serialize Request
1370
1373
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1371
1374
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1424,8 +1427,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1424
1427
  #
1425
1428
  # @return [OperationStatusResponse] operation results.
1426
1429
  #
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!
1430
+ def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1431
+ response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1429
1432
  response.body unless response.nil?
1430
1433
  end
1431
1434
 
@@ -1441,8 +1444,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1441
1444
  #
1442
1445
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1443
1446
  #
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!
1447
+ def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1448
+ begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1446
1449
  end
1447
1450
 
1448
1451
  #
@@ -1457,7 +1460,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1457
1460
  #
1458
1461
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1459
1462
  #
1460
- def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1463
+ def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1461
1464
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1462
1465
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1463
1466
  fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil?
@@ -1466,13 +1469,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1466
1469
 
1467
1470
 
1468
1471
  request_headers = {}
1472
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1469
1473
 
1470
1474
  # Set Headers
1471
1475
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1472
1476
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1473
1477
 
1474
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1475
-
1476
1478
  # Serialize Request
1477
1479
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetVMInstanceRequiredIDs.mapper()
1478
1480
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1533,8 +1535,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1533
1535
  #
1534
1536
  # @return [OperationStatusResponse] operation results.
1535
1537
  #
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!
1538
+ def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1539
+ response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1538
1540
  response.body unless response.nil?
1539
1541
  end
1540
1542
 
@@ -1552,8 +1554,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1552
1554
  #
1553
1555
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1554
1556
  #
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!
1557
+ def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1558
+ begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1557
1559
  end
1558
1560
 
1559
1561
  #
@@ -1570,7 +1572,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1570
1572
  #
1571
1573
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1572
1574
  #
1573
- def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1575
+ def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1574
1576
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1575
1577
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1576
1578
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1578,13 +1580,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1578
1580
 
1579
1581
 
1580
1582
  request_headers = {}
1583
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1581
1584
 
1582
1585
  # Set Headers
1583
1586
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1584
1587
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1585
1588
 
1586
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1587
-
1588
1589
  # Serialize Request
1589
1590
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1590
1591
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1643,8 +1644,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1643
1644
  #
1644
1645
  # @return [OperationStatusResponse] operation results.
1645
1646
  #
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!
1647
+ def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1648
+ response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1648
1649
  response.body unless response.nil?
1649
1650
  end
1650
1651
 
@@ -1660,8 +1661,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1660
1661
  #
1661
1662
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1662
1663
  #
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!
1664
+ def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1665
+ begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1665
1666
  end
1666
1667
 
1667
1668
  #
@@ -1676,7 +1677,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1676
1677
  #
1677
1678
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1678
1679
  #
1679
- def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1680
+ def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1680
1681
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1681
1682
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1682
1683
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1684,13 +1685,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1684
1685
 
1685
1686
 
1686
1687
  request_headers = {}
1688
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1687
1689
 
1688
1690
  # Set Headers
1689
1691
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1690
1692
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1691
1693
 
1692
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1693
-
1694
1694
  # Serialize Request
1695
1695
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1696
1696
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1749,8 +1749,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1749
1749
  #
1750
1750
  # @return [OperationStatusResponse] operation results.
1751
1751
  #
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!
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:vm_instance_ids, custom_headers:custom_headers).value!
1754
1754
  response.body unless response.nil?
1755
1755
  end
1756
1756
 
@@ -1766,8 +1766,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1766
1766
  #
1767
1767
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1768
1768
  #
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!
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:vm_instance_ids, custom_headers:custom_headers).value!
1771
1771
  end
1772
1772
 
1773
1773
  #
@@ -1782,7 +1782,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1782
1782
  #
1783
1783
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1784
1784
  #
1785
- def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1785
+ def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1786
1786
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1787
1787
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1788
1788
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1790,13 +1790,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1790
1790
 
1791
1791
 
1792
1792
  request_headers = {}
1793
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1793
1794
 
1794
1795
  # Set Headers
1795
1796
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1796
1797
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1797
1798
 
1798
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1799
-
1800
1799
  # Serialize Request
1801
1800
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1802
1801
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1856,8 +1855,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1856
1855
  #
1857
1856
  # @return [OperationStatusResponse] operation results.
1858
1857
  #
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!
1858
+ def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1859
+ response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1861
1860
  response.body unless response.nil?
1862
1861
  end
1863
1862
 
@@ -1874,8 +1873,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1874
1873
  #
1875
1874
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1876
1875
  #
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!
1876
+ def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1877
+ begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1879
1878
  end
1880
1879
 
1881
1880
  #
@@ -1891,7 +1890,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1891
1890
  #
1892
1891
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1893
1892
  #
1894
- def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1893
+ def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1895
1894
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1896
1895
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1897
1896
  fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil?
@@ -1900,13 +1899,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1900
1899
 
1901
1900
 
1902
1901
  request_headers = {}
1902
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1903
1903
 
1904
1904
  # Set Headers
1905
1905
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1906
1906
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1907
1907
 
1908
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1909
-
1910
1908
  # Serialize Request
1911
1909
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetVMInstanceRequiredIDs.mapper()
1912
1910
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1966,8 +1964,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1966
1964
  #
1967
1965
  # @return [OperationStatusResponse] operation results.
1968
1966
  #
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!
1967
+ def begin_reimage(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1968
+ response = begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1971
1969
  response.body unless response.nil?
1972
1970
  end
1973
1971
 
@@ -1984,8 +1982,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1984
1982
  #
1985
1983
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1986
1984
  #
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!
1985
+ def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1986
+ begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1989
1987
  end
1990
1988
 
1991
1989
  #
@@ -2001,7 +1999,7 @@ module Azure::Compute::Mgmt::V2017_03_30
2001
1999
  #
2002
2000
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2003
2001
  #
2004
- def begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
2002
+ def begin_reimage_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2005
2003
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2006
2004
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
2007
2005
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -2009,13 +2007,12 @@ module Azure::Compute::Mgmt::V2017_03_30
2009
2007
 
2010
2008
 
2011
2009
  request_headers = {}
2010
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2012
2011
 
2013
2012
  # Set Headers
2014
2013
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2015
2014
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2016
2015
 
2017
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
2018
-
2019
2016
  # Serialize Request
2020
2017
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
2021
2018
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -2075,8 +2072,8 @@ module Azure::Compute::Mgmt::V2017_03_30
2075
2072
  #
2076
2073
  # @return [OperationStatusResponse] operation results.
2077
2074
  #
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!
2075
+ def begin_reimage_all(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2076
+ response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
2080
2077
  response.body unless response.nil?
2081
2078
  end
2082
2079
 
@@ -2093,8 +2090,8 @@ module Azure::Compute::Mgmt::V2017_03_30
2093
2090
  #
2094
2091
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2095
2092
  #
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!
2093
+ def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2094
+ begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
2098
2095
  end
2099
2096
 
2100
2097
  #
@@ -2110,7 +2107,7 @@ module Azure::Compute::Mgmt::V2017_03_30
2110
2107
  #
2111
2108
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2112
2109
  #
2113
- def begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
2110
+ def begin_reimage_all_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
2114
2111
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2115
2112
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
2116
2113
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -2118,13 +2115,12 @@ module Azure::Compute::Mgmt::V2017_03_30
2118
2115
 
2119
2116
 
2120
2117
  request_headers = {}
2118
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2121
2119
 
2122
2120
  # Set Headers
2123
2121
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2124
2122
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2125
2123
 
2126
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
2127
-
2128
2124
  # Serialize Request
2129
2125
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
2130
2126
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -2181,8 +2177,8 @@ module Azure::Compute::Mgmt::V2017_03_30
2181
2177
  #
2182
2178
  # @return [VirtualMachineScaleSetListResult] operation results.
2183
2179
  #
2184
- def list_next(next_page_link, custom_headers = nil)
2185
- response = list_next_async(next_page_link, custom_headers).value!
2180
+ def list_next(next_page_link, custom_headers:nil)
2181
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
2186
2182
  response.body unless response.nil?
2187
2183
  end
2188
2184
 
@@ -2196,8 +2192,8 @@ module Azure::Compute::Mgmt::V2017_03_30
2196
2192
  #
2197
2193
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2198
2194
  #
2199
- def list_next_with_http_info(next_page_link, custom_headers = nil)
2200
- list_next_async(next_page_link, custom_headers).value!
2195
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
2196
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
2201
2197
  end
2202
2198
 
2203
2199
  #
@@ -2210,11 +2206,12 @@ module Azure::Compute::Mgmt::V2017_03_30
2210
2206
  #
2211
2207
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2212
2208
  #
2213
- def list_next_async(next_page_link, custom_headers = nil)
2209
+ def list_next_async(next_page_link, custom_headers:nil)
2214
2210
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2215
2211
 
2216
2212
 
2217
2213
  request_headers = {}
2214
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2218
2215
 
2219
2216
  # Set Headers
2220
2217
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2271,8 +2268,8 @@ module Azure::Compute::Mgmt::V2017_03_30
2271
2268
  #
2272
2269
  # @return [VirtualMachineScaleSetListWithLinkResult] operation results.
2273
2270
  #
2274
- def list_all_next(next_page_link, custom_headers = nil)
2275
- response = list_all_next_async(next_page_link, custom_headers).value!
2271
+ def list_all_next(next_page_link, custom_headers:nil)
2272
+ response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
2276
2273
  response.body unless response.nil?
2277
2274
  end
2278
2275
 
@@ -2289,8 +2286,8 @@ module Azure::Compute::Mgmt::V2017_03_30
2289
2286
  #
2290
2287
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2291
2288
  #
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!
2289
+ def list_all_next_with_http_info(next_page_link, custom_headers:nil)
2290
+ list_all_next_async(next_page_link, custom_headers:custom_headers).value!
2294
2291
  end
2295
2292
 
2296
2293
  #
@@ -2306,11 +2303,12 @@ module Azure::Compute::Mgmt::V2017_03_30
2306
2303
  #
2307
2304
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2308
2305
  #
2309
- def list_all_next_async(next_page_link, custom_headers = nil)
2306
+ def list_all_next_async(next_page_link, custom_headers:nil)
2310
2307
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2311
2308
 
2312
2309
 
2313
2310
  request_headers = {}
2311
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2314
2312
 
2315
2313
  # Set Headers
2316
2314
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2365,8 +2363,8 @@ module Azure::Compute::Mgmt::V2017_03_30
2365
2363
  #
2366
2364
  # @return [VirtualMachineScaleSetListSkusResult] operation results.
2367
2365
  #
2368
- def list_skus_next(next_page_link, custom_headers = nil)
2369
- response = list_skus_next_async(next_page_link, custom_headers).value!
2366
+ def list_skus_next(next_page_link, custom_headers:nil)
2367
+ response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
2370
2368
  response.body unless response.nil?
2371
2369
  end
2372
2370
 
@@ -2381,8 +2379,8 @@ module Azure::Compute::Mgmt::V2017_03_30
2381
2379
  #
2382
2380
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2383
2381
  #
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!
2382
+ def list_skus_next_with_http_info(next_page_link, custom_headers:nil)
2383
+ list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
2386
2384
  end
2387
2385
 
2388
2386
  #
@@ -2396,11 +2394,12 @@ module Azure::Compute::Mgmt::V2017_03_30
2396
2394
  #
2397
2395
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2398
2396
  #
2399
- def list_skus_next_async(next_page_link, custom_headers = nil)
2397
+ def list_skus_next_async(next_page_link, custom_headers:nil)
2400
2398
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2401
2399
 
2402
2400
 
2403
2401
  request_headers = {}
2402
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2404
2403
 
2405
2404
  # Set Headers
2406
2405
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2454,12 +2453,12 @@ module Azure::Compute::Mgmt::V2017_03_30
2454
2453
  # @return [VirtualMachineScaleSetListResult] which provide lazy access to pages
2455
2454
  # of the response.
2456
2455
  #
2457
- def list_as_lazy(resource_group_name, custom_headers = nil)
2458
- response = list_async(resource_group_name, custom_headers).value!
2456
+ def list_as_lazy(resource_group_name, custom_headers:nil)
2457
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
2459
2458
  unless response.nil?
2460
2459
  page = response.body
2461
2460
  page.next_method = Proc.new do |next_page_link|
2462
- list_next_async(next_page_link, custom_headers)
2461
+ list_next_async(next_page_link, custom_headers:custom_headers)
2463
2462
  end
2464
2463
  page
2465
2464
  end
@@ -2477,12 +2476,12 @@ module Azure::Compute::Mgmt::V2017_03_30
2477
2476
  # @return [VirtualMachineScaleSetListWithLinkResult] which provide lazy access
2478
2477
  # to pages of the response.
2479
2478
  #
2480
- def list_all_as_lazy(custom_headers = nil)
2481
- response = list_all_async(custom_headers).value!
2479
+ def list_all_as_lazy(custom_headers:nil)
2480
+ response = list_all_async(custom_headers:custom_headers).value!
2482
2481
  unless response.nil?
2483
2482
  page = response.body
2484
2483
  page.next_method = Proc.new do |next_page_link|
2485
- list_all_next_async(next_page_link, custom_headers)
2484
+ list_all_next_async(next_page_link, custom_headers:custom_headers)
2486
2485
  end
2487
2486
  page
2488
2487
  end
@@ -2500,12 +2499,12 @@ module Azure::Compute::Mgmt::V2017_03_30
2500
2499
  # @return [VirtualMachineScaleSetListSkusResult] which provide lazy access to
2501
2500
  # pages of the response.
2502
2501
  #
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!
2502
+ def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil)
2503
+ response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
2505
2504
  unless response.nil?
2506
2505
  page = response.body
2507
2506
  page.next_method = Proc.new do |next_page_link|
2508
- list_skus_next_async(next_page_link, custom_headers)
2507
+ list_skus_next_async(next_page_link, custom_headers:custom_headers)
2509
2508
  end
2510
2509
  page
2511
2510
  end