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 [OperationStatusResponse] operation results.
35
35
  #
36
- def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
37
- response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
36
+ def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
37
+ response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -48,9 +48,9 @@ module Azure::Compute::Mgmt::V2017_03_30
48
48
  # @return [Concurrent::Promise] promise which provides async access to http
49
49
  # response.
50
50
  #
51
- def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
51
+ def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
52
52
  # Send request
53
- promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
53
+ promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
54
54
 
55
55
  promise = promise.then do |response|
56
56
  # Defining deserialization method.
@@ -78,8 +78,8 @@ module Azure::Compute::Mgmt::V2017_03_30
78
78
  #
79
79
  # @return [OperationStatusResponse] operation results.
80
80
  #
81
- def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
82
- response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
81
+ def reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
82
+ response = reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
83
83
  response.body unless response.nil?
84
84
  end
85
85
 
@@ -93,9 +93,9 @@ module Azure::Compute::Mgmt::V2017_03_30
93
93
  # @return [Concurrent::Promise] promise which provides async access to http
94
94
  # response.
95
95
  #
96
- def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
96
+ def reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
97
97
  # Send request
98
- promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
98
+ promise = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
99
99
 
100
100
  promise = promise.then do |response|
101
101
  # Defining deserialization method.
@@ -125,8 +125,8 @@ module Azure::Compute::Mgmt::V2017_03_30
125
125
  #
126
126
  # @return [OperationStatusResponse] operation results.
127
127
  #
128
- def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
129
- response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
128
+ def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
129
+ response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
130
130
  response.body unless response.nil?
131
131
  end
132
132
 
@@ -140,9 +140,9 @@ module Azure::Compute::Mgmt::V2017_03_30
140
140
  # @return [Concurrent::Promise] promise which provides async access to http
141
141
  # response.
142
142
  #
143
- def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
143
+ def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
144
144
  # Send request
145
- promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
145
+ promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
146
146
 
147
147
  promise = promise.then do |response|
148
148
  # Defining deserialization method.
@@ -169,8 +169,8 @@ module Azure::Compute::Mgmt::V2017_03_30
169
169
  #
170
170
  # @return [OperationStatusResponse] operation results.
171
171
  #
172
- def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
173
- response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
172
+ def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
173
+ response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
174
174
  response.body unless response.nil?
175
175
  end
176
176
 
@@ -184,9 +184,9 @@ module Azure::Compute::Mgmt::V2017_03_30
184
184
  # @return [Concurrent::Promise] promise which provides async access to http
185
185
  # response.
186
186
  #
187
- def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
187
+ def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
188
188
  # Send request
189
- promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
189
+ promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
190
190
 
191
191
  promise = promise.then do |response|
192
192
  # Defining deserialization method.
@@ -213,8 +213,8 @@ module Azure::Compute::Mgmt::V2017_03_30
213
213
  #
214
214
  # @return [VirtualMachineScaleSetVM] operation results.
215
215
  #
216
- def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
217
- response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
216
+ def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
217
+ response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
218
218
  response.body unless response.nil?
219
219
  end
220
220
 
@@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2017_03_30
229
229
  #
230
230
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
231
231
  #
232
- def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
233
- get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
232
+ def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
233
+ get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
234
234
  end
235
235
 
236
236
  #
@@ -244,7 +244,7 @@ module Azure::Compute::Mgmt::V2017_03_30
244
244
  #
245
245
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
246
246
  #
247
- def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
247
+ def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
248
248
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
249
249
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
250
250
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -253,6 +253,7 @@ module Azure::Compute::Mgmt::V2017_03_30
253
253
 
254
254
 
255
255
  request_headers = {}
256
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
256
257
 
257
258
  # Set Headers
258
259
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -308,8 +309,8 @@ module Azure::Compute::Mgmt::V2017_03_30
308
309
  #
309
310
  # @return [VirtualMachineScaleSetVMInstanceView] operation results.
310
311
  #
311
- def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
312
- response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
312
+ def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
313
+ response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
313
314
  response.body unless response.nil?
314
315
  end
315
316
 
@@ -324,8 +325,8 @@ module Azure::Compute::Mgmt::V2017_03_30
324
325
  #
325
326
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
326
327
  #
327
- def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
328
- get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
328
+ def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
329
+ get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
329
330
  end
330
331
 
331
332
  #
@@ -339,7 +340,7 @@ module Azure::Compute::Mgmt::V2017_03_30
339
340
  #
340
341
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
341
342
  #
342
- def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
343
+ def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
343
344
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
344
345
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
345
346
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -348,6 +349,7 @@ module Azure::Compute::Mgmt::V2017_03_30
348
349
 
349
350
 
350
351
  request_headers = {}
352
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
351
353
 
352
354
  # Set Headers
353
355
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -405,8 +407,8 @@ module Azure::Compute::Mgmt::V2017_03_30
405
407
  #
406
408
  # @return [Array<VirtualMachineScaleSetVM>] operation results.
407
409
  #
408
- def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
409
- first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers)
410
+ def list(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
411
+ first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers)
410
412
  first_page.get_all_items
411
413
  end
412
414
 
@@ -423,8 +425,8 @@ module Azure::Compute::Mgmt::V2017_03_30
423
425
  #
424
426
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
425
427
  #
426
- def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
427
- list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
428
+ def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
429
+ list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value!
428
430
  end
429
431
 
430
432
  #
@@ -440,7 +442,7 @@ module Azure::Compute::Mgmt::V2017_03_30
440
442
  #
441
443
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
442
444
  #
443
- def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
445
+ def list_async(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
444
446
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
445
447
  fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
446
448
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -448,6 +450,7 @@ module Azure::Compute::Mgmt::V2017_03_30
448
450
 
449
451
 
450
452
  request_headers = {}
453
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
451
454
 
452
455
  # Set Headers
453
456
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -505,8 +508,8 @@ module Azure::Compute::Mgmt::V2017_03_30
505
508
  #
506
509
  # @return [OperationStatusResponse] operation results.
507
510
  #
508
- def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
509
- response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
511
+ def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
512
+ response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
510
513
  response.body unless response.nil?
511
514
  end
512
515
 
@@ -520,9 +523,9 @@ module Azure::Compute::Mgmt::V2017_03_30
520
523
  # @return [Concurrent::Promise] promise which provides async access to http
521
524
  # response.
522
525
  #
523
- def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
526
+ def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
524
527
  # Send request
525
- promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
528
+ promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
526
529
 
527
530
  promise = promise.then do |response|
528
531
  # Defining deserialization method.
@@ -549,8 +552,8 @@ module Azure::Compute::Mgmt::V2017_03_30
549
552
  #
550
553
  # @return [OperationStatusResponse] operation results.
551
554
  #
552
- def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
553
- response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
555
+ def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
556
+ response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
554
557
  response.body unless response.nil?
555
558
  end
556
559
 
@@ -564,9 +567,9 @@ module Azure::Compute::Mgmt::V2017_03_30
564
567
  # @return [Concurrent::Promise] promise which provides async access to http
565
568
  # response.
566
569
  #
567
- def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
570
+ def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
568
571
  # Send request
569
- promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
572
+ promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
570
573
 
571
574
  promise = promise.then do |response|
572
575
  # Defining deserialization method.
@@ -593,8 +596,8 @@ module Azure::Compute::Mgmt::V2017_03_30
593
596
  #
594
597
  # @return [OperationStatusResponse] operation results.
595
598
  #
596
- def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
597
- response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
599
+ def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
600
+ response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
598
601
  response.body unless response.nil?
599
602
  end
600
603
 
@@ -608,9 +611,9 @@ module Azure::Compute::Mgmt::V2017_03_30
608
611
  # @return [Concurrent::Promise] promise which provides async access to http
609
612
  # response.
610
613
  #
611
- def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
614
+ def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
612
615
  # Send request
613
- promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
616
+ promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers)
614
617
 
615
618
  promise = promise.then do |response|
616
619
  # Defining deserialization method.
@@ -638,8 +641,8 @@ module Azure::Compute::Mgmt::V2017_03_30
638
641
  #
639
642
  # @return [OperationStatusResponse] operation results.
640
643
  #
641
- def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
642
- response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
644
+ def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
645
+ response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
643
646
  response.body unless response.nil?
644
647
  end
645
648
 
@@ -655,8 +658,8 @@ module Azure::Compute::Mgmt::V2017_03_30
655
658
  #
656
659
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
657
660
  #
658
- def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
659
- begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
661
+ def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
662
+ begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
660
663
  end
661
664
 
662
665
  #
@@ -671,7 +674,7 @@ module Azure::Compute::Mgmt::V2017_03_30
671
674
  #
672
675
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
673
676
  #
674
- def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
677
+ def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
675
678
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
676
679
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
677
680
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -680,6 +683,7 @@ module Azure::Compute::Mgmt::V2017_03_30
680
683
 
681
684
 
682
685
  request_headers = {}
686
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
683
687
 
684
688
  # Set Headers
685
689
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -736,8 +740,8 @@ module Azure::Compute::Mgmt::V2017_03_30
736
740
  #
737
741
  # @return [OperationStatusResponse] operation results.
738
742
  #
739
- def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
740
- response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
743
+ def begin_reimage_all(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
744
+ response = begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
741
745
  response.body unless response.nil?
742
746
  end
743
747
 
@@ -753,8 +757,8 @@ module Azure::Compute::Mgmt::V2017_03_30
753
757
  #
754
758
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
755
759
  #
756
- def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
757
- begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
760
+ def begin_reimage_all_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
761
+ begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
758
762
  end
759
763
 
760
764
  #
@@ -769,7 +773,7 @@ module Azure::Compute::Mgmt::V2017_03_30
769
773
  #
770
774
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
771
775
  #
772
- def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
776
+ def begin_reimage_all_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
773
777
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
774
778
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
775
779
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -778,6 +782,7 @@ module Azure::Compute::Mgmt::V2017_03_30
778
782
 
779
783
 
780
784
  request_headers = {}
785
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
781
786
 
782
787
  # Set Headers
783
788
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -836,8 +841,8 @@ module Azure::Compute::Mgmt::V2017_03_30
836
841
  #
837
842
  # @return [OperationStatusResponse] operation results.
838
843
  #
839
- def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
840
- response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
844
+ def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
845
+ response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
841
846
  response.body unless response.nil?
842
847
  end
843
848
 
@@ -855,8 +860,8 @@ module Azure::Compute::Mgmt::V2017_03_30
855
860
  #
856
861
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
857
862
  #
858
- def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
859
- begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
863
+ def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
864
+ begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
860
865
  end
861
866
 
862
867
  #
@@ -873,7 +878,7 @@ module Azure::Compute::Mgmt::V2017_03_30
873
878
  #
874
879
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
875
880
  #
876
- def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
881
+ def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
877
882
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
878
883
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
879
884
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -882,6 +887,7 @@ module Azure::Compute::Mgmt::V2017_03_30
882
887
 
883
888
 
884
889
  request_headers = {}
890
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
885
891
 
886
892
  # Set Headers
887
893
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -937,8 +943,8 @@ module Azure::Compute::Mgmt::V2017_03_30
937
943
  #
938
944
  # @return [OperationStatusResponse] operation results.
939
945
  #
940
- def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
941
- response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
946
+ def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
947
+ response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
942
948
  response.body unless response.nil?
943
949
  end
944
950
 
@@ -953,8 +959,8 @@ module Azure::Compute::Mgmt::V2017_03_30
953
959
  #
954
960
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
955
961
  #
956
- def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
957
- begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
962
+ def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
963
+ begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
958
964
  end
959
965
 
960
966
  #
@@ -968,7 +974,7 @@ module Azure::Compute::Mgmt::V2017_03_30
968
974
  #
969
975
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
970
976
  #
971
- def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
977
+ def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
972
978
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
973
979
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
974
980
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -977,6 +983,7 @@ module Azure::Compute::Mgmt::V2017_03_30
977
983
 
978
984
 
979
985
  request_headers = {}
986
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
980
987
 
981
988
  # Set Headers
982
989
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1034,8 +1041,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1034
1041
  #
1035
1042
  # @return [OperationStatusResponse] operation results.
1036
1043
  #
1037
- def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1038
- response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1044
+ def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1045
+ response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1039
1046
  response.body unless response.nil?
1040
1047
  end
1041
1048
 
@@ -1052,8 +1059,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1052
1059
  #
1053
1060
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1054
1061
  #
1055
- def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1056
- begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1062
+ def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1063
+ begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1057
1064
  end
1058
1065
 
1059
1066
  #
@@ -1069,7 +1076,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1069
1076
  #
1070
1077
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1071
1078
  #
1072
- def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1079
+ def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1073
1080
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1074
1081
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1075
1082
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -1078,6 +1085,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1078
1085
 
1079
1086
 
1080
1087
  request_headers = {}
1088
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1081
1089
 
1082
1090
  # Set Headers
1083
1091
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1133,8 +1141,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1133
1141
  #
1134
1142
  # @return [OperationStatusResponse] operation results.
1135
1143
  #
1136
- def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1137
- response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1144
+ def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1145
+ response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1138
1146
  response.body unless response.nil?
1139
1147
  end
1140
1148
 
@@ -1149,8 +1157,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1149
1157
  #
1150
1158
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1151
1159
  #
1152
- def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1153
- begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1160
+ def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1161
+ begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1154
1162
  end
1155
1163
 
1156
1164
  #
@@ -1164,7 +1172,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1164
1172
  #
1165
1173
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1166
1174
  #
1167
- def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1175
+ def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1168
1176
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1169
1177
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1170
1178
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -1173,6 +1181,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1173
1181
 
1174
1182
 
1175
1183
  request_headers = {}
1184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1176
1185
 
1177
1186
  # Set Headers
1178
1187
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1228,8 +1237,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1228
1237
  #
1229
1238
  # @return [OperationStatusResponse] operation results.
1230
1239
  #
1231
- def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1232
- response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1240
+ def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1241
+ response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1233
1242
  response.body unless response.nil?
1234
1243
  end
1235
1244
 
@@ -1244,8 +1253,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1244
1253
  #
1245
1254
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1246
1255
  #
1247
- def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1248
- begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
1256
+ def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1257
+ begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:custom_headers).value!
1249
1258
  end
1250
1259
 
1251
1260
  #
@@ -1259,7 +1268,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1259
1268
  #
1260
1269
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1261
1270
  #
1262
- def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
1271
+ def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers:nil)
1263
1272
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1264
1273
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1265
1274
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -1268,6 +1277,7 @@ module Azure::Compute::Mgmt::V2017_03_30
1268
1277
 
1269
1278
 
1270
1279
  request_headers = {}
1280
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1271
1281
 
1272
1282
  # Set Headers
1273
1283
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1322,8 +1332,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1322
1332
  #
1323
1333
  # @return [VirtualMachineScaleSetVMListResult] operation results.
1324
1334
  #
1325
- def list_next(next_page_link, custom_headers = nil)
1326
- response = list_next_async(next_page_link, custom_headers).value!
1335
+ def list_next(next_page_link, custom_headers:nil)
1336
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1327
1337
  response.body unless response.nil?
1328
1338
  end
1329
1339
 
@@ -1337,8 +1347,8 @@ module Azure::Compute::Mgmt::V2017_03_30
1337
1347
  #
1338
1348
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1339
1349
  #
1340
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1341
- list_next_async(next_page_link, custom_headers).value!
1350
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1351
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1342
1352
  end
1343
1353
 
1344
1354
  #
@@ -1351,11 +1361,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1351
1361
  #
1352
1362
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1353
1363
  #
1354
- def list_next_async(next_page_link, custom_headers = nil)
1364
+ def list_next_async(next_page_link, custom_headers:nil)
1355
1365
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1356
1366
 
1357
1367
 
1358
1368
  request_headers = {}
1369
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1359
1370
 
1360
1371
  # Set Headers
1361
1372
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1413,12 +1424,12 @@ module Azure::Compute::Mgmt::V2017_03_30
1413
1424
  # @return [VirtualMachineScaleSetVMListResult] which provide lazy access to
1414
1425
  # pages of the response.
1415
1426
  #
1416
- def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
1417
- response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
1427
+ def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter:nil, select:nil, expand:nil, custom_headers:nil)
1428
+ response = list_async(resource_group_name, virtual_machine_scale_set_name, filter:filter, select:select, expand:expand, custom_headers:custom_headers).value!
1418
1429
  unless response.nil?
1419
1430
  page = response.body
1420
1431
  page.next_method = Proc.new do |next_page_link|
1421
- list_next_async(next_page_link, custom_headers)
1432
+ list_next_async(next_page_link, custom_headers:custom_headers)
1422
1433
  end
1423
1434
  page
1424
1435
  end