azure_mgmt_compute 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  3. data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  4. data/lib/2015-06-15/generated/azure_mgmt_compute/models/list_usages_result.rb +13 -0
  5. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +13 -0
  6. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +13 -0
  7. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +13 -0
  8. data/lib/2015-06-15/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  9. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  10. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  11. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  12. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +87 -77
  13. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +147 -144
  14. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  15. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb +128 -117
  16. data/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  17. data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  18. data/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  19. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  20. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  21. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  22. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +87 -77
  23. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +147 -144
  24. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  25. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +128 -117
  26. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  27. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  28. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb +170 -138
  29. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/images.rb +56 -51
  30. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb +86 -82
  31. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  32. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  33. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  34. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  35. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +97 -86
  36. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +157 -153
  37. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  38. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +138 -126
  39. data/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  40. data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  41. data/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb +170 -138
  42. data/lib/2017-03-30/generated/azure_mgmt_compute/images.rb +56 -51
  43. data/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb +15 -13
  44. data/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb +170 -138
  45. data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  46. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  47. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  48. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  49. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +21 -18
  50. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +41 -38
  51. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +26 -23
  52. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +97 -86
  53. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +167 -168
  54. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  55. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb +164 -151
  56. data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  57. data/lib/2017-09-01/generated/azure_mgmt_compute/resource_skus.rb +15 -13
  58. data/lib/2017-12-01/generated/azure_mgmt_compute.rb +77 -60
  59. data/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  60. data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +12 -1
  61. data/lib/2017-12-01/generated/azure_mgmt_compute/images.rb +56 -51
  62. data/lib/2017-12-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
  63. data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +12 -0
  64. data/lib/2017-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb +35 -13
  65. data/lib/2017-12-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
  66. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
  67. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +94 -0
  68. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
  69. data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +12 -0
  70. data/lib/2017-12-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
  71. data/lib/2017-12-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
  72. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
  73. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
  74. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
  75. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
  76. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
  77. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
  78. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_result.rb +92 -0
  79. data/lib/2017-12-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
  80. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +34 -0
  81. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
  82. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +12 -0
  83. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +12 -0
  84. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +12 -0
  85. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +13 -0
  86. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +69 -0
  87. data/lib/2017-12-01/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  88. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  89. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  90. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  91. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
  92. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +41 -38
  93. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +26 -23
  94. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +270 -86
  95. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +269 -168
  96. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  97. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +306 -140
  98. data/lib/profiles/latest/compute_latest_profile_client.rb +28 -9
  99. data/lib/profiles/latest/compute_module_definition.rb +0 -1
  100. data/lib/profiles/latest/modules/compute_profile_module.rb +665 -606
  101. data/lib/profiles/v2017_03_09/compute_module_definition.rb +0 -1
  102. data/lib/profiles/v2017_03_09/compute_v2017_03_09_profile_client.rb +28 -9
  103. data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +330 -311
  104. data/lib/version.rb +1 -1
  105. metadata +19 -2
@@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2016_03_30
32
32
  #
33
33
  # @return [VirtualMachineScaleSet] operation results.
34
34
  #
35
- def create_or_update(resource_group_name, name, parameters, custom_headers = nil)
36
- response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value!
35
+ def create_or_update(resource_group_name, name, parameters, custom_headers:nil)
36
+ response = create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
@@ -47,9 +47,9 @@ module Azure::Compute::Mgmt::V2016_03_30
47
47
  # @return [Concurrent::Promise] promise which provides async access to http
48
48
  # response.
49
49
  #
50
- def create_or_update_async(resource_group_name, name, parameters, custom_headers = nil)
50
+ def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil)
51
51
  # Send request
52
- promise = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers)
52
+ promise = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers)
53
53
 
54
54
  promise = promise.then do |response|
55
55
  # Defining deserialization method.
@@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2016_03_30
75
75
  #
76
76
  # @return [OperationStatusResponse] operation results.
77
77
  #
78
- def delete(resource_group_name, vm_scale_set_name, custom_headers = nil)
79
- response = delete_async(resource_group_name, vm_scale_set_name, custom_headers).value!
78
+ def delete(resource_group_name, vm_scale_set_name, custom_headers:nil)
79
+ response = delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
80
80
  response.body unless response.nil?
81
81
  end
82
82
 
@@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2016_03_30
89
89
  # @return [Concurrent::Promise] promise which provides async access to http
90
90
  # response.
91
91
  #
92
- def delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
92
+ def delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
93
93
  # Send request
94
- promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers)
94
+ promise = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers)
95
95
 
96
96
  promise = promise.then do |response|
97
97
  # Defining deserialization method.
@@ -117,8 +117,8 @@ module Azure::Compute::Mgmt::V2016_03_30
117
117
  #
118
118
  # @return [VirtualMachineScaleSet] operation results.
119
119
  #
120
- def get(resource_group_name, vm_scale_set_name, custom_headers = nil)
121
- response = get_async(resource_group_name, vm_scale_set_name, custom_headers).value!
120
+ def get(resource_group_name, vm_scale_set_name, custom_headers:nil)
121
+ response = get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
122
122
  response.body unless response.nil?
123
123
  end
124
124
 
@@ -132,8 +132,8 @@ module Azure::Compute::Mgmt::V2016_03_30
132
132
  #
133
133
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
134
134
  #
135
- def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
136
- get_async(resource_group_name, vm_scale_set_name, custom_headers).value!
135
+ def get_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
136
+ get_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
137
137
  end
138
138
 
139
139
  #
@@ -146,7 +146,7 @@ module Azure::Compute::Mgmt::V2016_03_30
146
146
  #
147
147
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
148
148
  #
149
- def get_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
149
+ def get_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
150
150
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
151
151
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
152
152
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -154,6 +154,7 @@ module Azure::Compute::Mgmt::V2016_03_30
154
154
 
155
155
 
156
156
  request_headers = {}
157
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
157
158
 
158
159
  # Set Headers
159
160
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -212,8 +213,8 @@ module Azure::Compute::Mgmt::V2016_03_30
212
213
  #
213
214
  # @return [OperationStatusResponse] operation results.
214
215
  #
215
- def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
216
- response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
216
+ def deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
217
+ response = deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
217
218
  response.body unless response.nil?
218
219
  end
219
220
 
@@ -228,9 +229,9 @@ module Azure::Compute::Mgmt::V2016_03_30
228
229
  # @return [Concurrent::Promise] promise which provides async access to http
229
230
  # response.
230
231
  #
231
- def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
232
+ def deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
232
233
  # Send request
233
- promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
234
+ promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
234
235
 
235
236
  promise = promise.then do |response|
236
237
  # Defining deserialization method.
@@ -258,8 +259,8 @@ module Azure::Compute::Mgmt::V2016_03_30
258
259
  #
259
260
  # @return [OperationStatusResponse] operation results.
260
261
  #
261
- def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
262
- response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
262
+ def delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
263
+ response = delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
263
264
  response.body unless response.nil?
264
265
  end
265
266
 
@@ -274,9 +275,9 @@ module Azure::Compute::Mgmt::V2016_03_30
274
275
  # @return [Concurrent::Promise] promise which provides async access to http
275
276
  # response.
276
277
  #
277
- def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
278
+ def delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
278
279
  # Send request
279
- promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
280
+ promise = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers)
280
281
 
281
282
  promise = promise.then do |response|
282
283
  # Defining deserialization method.
@@ -302,8 +303,8 @@ module Azure::Compute::Mgmt::V2016_03_30
302
303
  #
303
304
  # @return [VirtualMachineScaleSetInstanceView] operation results.
304
305
  #
305
- def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers = nil)
306
- response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value!
306
+ def get_instance_view(resource_group_name, vm_scale_set_name, custom_headers:nil)
307
+ response = get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
307
308
  response.body unless response.nil?
308
309
  end
309
310
 
@@ -317,8 +318,8 @@ module Azure::Compute::Mgmt::V2016_03_30
317
318
  #
318
319
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
319
320
  #
320
- def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
321
- get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers).value!
321
+ def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
322
+ get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
322
323
  end
323
324
 
324
325
  #
@@ -331,7 +332,7 @@ module Azure::Compute::Mgmt::V2016_03_30
331
332
  #
332
333
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
333
334
  #
334
- def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
335
+ def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
335
336
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
336
337
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
337
338
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -339,6 +340,7 @@ module Azure::Compute::Mgmt::V2016_03_30
339
340
 
340
341
 
341
342
  request_headers = {}
343
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
342
344
 
343
345
  # Set Headers
344
346
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -392,8 +394,8 @@ module Azure::Compute::Mgmt::V2016_03_30
392
394
  #
393
395
  # @return [Array<VirtualMachineScaleSet>] operation results.
394
396
  #
395
- def list(resource_group_name, custom_headers = nil)
396
- first_page = list_as_lazy(resource_group_name, custom_headers)
397
+ def list(resource_group_name, custom_headers:nil)
398
+ first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers)
397
399
  first_page.get_all_items
398
400
  end
399
401
 
@@ -406,8 +408,8 @@ module Azure::Compute::Mgmt::V2016_03_30
406
408
  #
407
409
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
408
410
  #
409
- def list_with_http_info(resource_group_name, custom_headers = nil)
410
- list_async(resource_group_name, custom_headers).value!
411
+ def list_with_http_info(resource_group_name, custom_headers:nil)
412
+ list_async(resource_group_name, custom_headers:custom_headers).value!
411
413
  end
412
414
 
413
415
  #
@@ -419,13 +421,14 @@ module Azure::Compute::Mgmt::V2016_03_30
419
421
  #
420
422
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
421
423
  #
422
- def list_async(resource_group_name, custom_headers = nil)
424
+ def list_async(resource_group_name, custom_headers:nil)
423
425
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
424
426
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
425
427
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
426
428
 
427
429
 
428
430
  request_headers = {}
431
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
429
432
 
430
433
  # Set Headers
431
434
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -481,8 +484,8 @@ module Azure::Compute::Mgmt::V2016_03_30
481
484
  #
482
485
  # @return [Array<VirtualMachineScaleSet>] operation results.
483
486
  #
484
- def list_all(custom_headers = nil)
485
- first_page = list_all_as_lazy(custom_headers)
487
+ def list_all(custom_headers:nil)
488
+ first_page = list_all_as_lazy(custom_headers:custom_headers)
486
489
  first_page.get_all_items
487
490
  end
488
491
 
@@ -497,8 +500,8 @@ module Azure::Compute::Mgmt::V2016_03_30
497
500
  #
498
501
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
499
502
  #
500
- def list_all_with_http_info(custom_headers = nil)
501
- list_all_async(custom_headers).value!
503
+ def list_all_with_http_info(custom_headers:nil)
504
+ list_all_async(custom_headers:custom_headers).value!
502
505
  end
503
506
 
504
507
  #
@@ -512,12 +515,13 @@ module Azure::Compute::Mgmt::V2016_03_30
512
515
  #
513
516
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
514
517
  #
515
- def list_all_async(custom_headers = nil)
518
+ def list_all_async(custom_headers:nil)
516
519
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
517
520
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
518
521
 
519
522
 
520
523
  request_headers = {}
524
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
521
525
 
522
526
  # Set Headers
523
527
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -573,8 +577,8 @@ module Azure::Compute::Mgmt::V2016_03_30
573
577
  #
574
578
  # @return [Array<VirtualMachineScaleSetSku>] operation results.
575
579
  #
576
- def list_skus(resource_group_name, vm_scale_set_name, custom_headers = nil)
577
- first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers)
580
+ def list_skus(resource_group_name, vm_scale_set_name, custom_headers:nil)
581
+ first_page = list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:custom_headers)
578
582
  first_page.get_all_items
579
583
  end
580
584
 
@@ -589,8 +593,8 @@ module Azure::Compute::Mgmt::V2016_03_30
589
593
  #
590
594
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
591
595
  #
592
- def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
593
- list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value!
596
+ def list_skus_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
597
+ list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
594
598
  end
595
599
 
596
600
  #
@@ -604,7 +608,7 @@ module Azure::Compute::Mgmt::V2016_03_30
604
608
  #
605
609
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
606
610
  #
607
- def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
611
+ def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
608
612
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
609
613
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
610
614
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -612,6 +616,7 @@ module Azure::Compute::Mgmt::V2016_03_30
612
616
 
613
617
 
614
618
  request_headers = {}
619
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
615
620
 
616
621
  # Set Headers
617
622
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -670,8 +675,8 @@ module Azure::Compute::Mgmt::V2016_03_30
670
675
  #
671
676
  # @return [OperationStatusResponse] operation results.
672
677
  #
673
- def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
674
- response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
678
+ def power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
679
+ response = power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
675
680
  response.body unless response.nil?
676
681
  end
677
682
 
@@ -686,9 +691,9 @@ module Azure::Compute::Mgmt::V2016_03_30
686
691
  # @return [Concurrent::Promise] promise which provides async access to http
687
692
  # response.
688
693
  #
689
- def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
694
+ def power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
690
695
  # Send request
691
- promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
696
+ promise = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
692
697
 
693
698
  promise = promise.then do |response|
694
699
  # Defining deserialization method.
@@ -716,8 +721,8 @@ module Azure::Compute::Mgmt::V2016_03_30
716
721
  #
717
722
  # @return [OperationStatusResponse] operation results.
718
723
  #
719
- def restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
720
- response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
724
+ def restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
725
+ response = restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
721
726
  response.body unless response.nil?
722
727
  end
723
728
 
@@ -732,9 +737,9 @@ module Azure::Compute::Mgmt::V2016_03_30
732
737
  # @return [Concurrent::Promise] promise which provides async access to http
733
738
  # response.
734
739
  #
735
- def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
740
+ def restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
736
741
  # Send request
737
- promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
742
+ promise = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
738
743
 
739
744
  promise = promise.then do |response|
740
745
  # Defining deserialization method.
@@ -762,8 +767,8 @@ module Azure::Compute::Mgmt::V2016_03_30
762
767
  #
763
768
  # @return [OperationStatusResponse] operation results.
764
769
  #
765
- def start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
766
- response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
770
+ def start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
771
+ response = start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
767
772
  response.body unless response.nil?
768
773
  end
769
774
 
@@ -778,9 +783,9 @@ module Azure::Compute::Mgmt::V2016_03_30
778
783
  # @return [Concurrent::Promise] promise which provides async access to http
779
784
  # response.
780
785
  #
781
- def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
786
+ def start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
782
787
  # Send request
783
- promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
788
+ promise = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers)
784
789
 
785
790
  promise = promise.then do |response|
786
791
  # Defining deserialization method.
@@ -809,8 +814,8 @@ module Azure::Compute::Mgmt::V2016_03_30
809
814
  #
810
815
  # @return [OperationStatusResponse] operation results.
811
816
  #
812
- def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
813
- response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
817
+ def update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
818
+ response = update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
814
819
  response.body unless response.nil?
815
820
  end
816
821
 
@@ -825,9 +830,9 @@ module Azure::Compute::Mgmt::V2016_03_30
825
830
  # @return [Concurrent::Promise] promise which provides async access to http
826
831
  # response.
827
832
  #
828
- def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
833
+ def update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
829
834
  # Send request
830
- promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers)
835
+ promise = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers)
831
836
 
832
837
  promise = promise.then do |response|
833
838
  # Defining deserialization method.
@@ -854,8 +859,8 @@ module Azure::Compute::Mgmt::V2016_03_30
854
859
  #
855
860
  # @return [OperationStatusResponse] operation results.
856
861
  #
857
- def reimage(resource_group_name, vm_scale_set_name, custom_headers = nil)
858
- response = reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value!
862
+ def reimage(resource_group_name, vm_scale_set_name, custom_headers:nil)
863
+ response = reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
859
864
  response.body unless response.nil?
860
865
  end
861
866
 
@@ -868,9 +873,9 @@ module Azure::Compute::Mgmt::V2016_03_30
868
873
  # @return [Concurrent::Promise] promise which provides async access to http
869
874
  # response.
870
875
  #
871
- def reimage_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
876
+ def reimage_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
872
877
  # Send request
873
- promise = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers)
878
+ promise = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers)
874
879
 
875
880
  promise = promise.then do |response|
876
881
  # Defining deserialization method.
@@ -897,8 +902,8 @@ module Azure::Compute::Mgmt::V2016_03_30
897
902
  #
898
903
  # @return [VirtualMachineScaleSet] operation results.
899
904
  #
900
- def begin_create_or_update(resource_group_name, name, parameters, custom_headers = nil)
901
- response = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers).value!
905
+ def begin_create_or_update(resource_group_name, name, parameters, custom_headers:nil)
906
+ response = begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
902
907
  response.body unless response.nil?
903
908
  end
904
909
 
@@ -913,8 +918,8 @@ module Azure::Compute::Mgmt::V2016_03_30
913
918
  #
914
919
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
915
920
  #
916
- def begin_create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
917
- begin_create_or_update_async(resource_group_name, name, parameters, custom_headers).value!
921
+ def begin_create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
922
+ begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
918
923
  end
919
924
 
920
925
  #
@@ -928,7 +933,7 @@ module Azure::Compute::Mgmt::V2016_03_30
928
933
  #
929
934
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
930
935
  #
931
- def begin_create_or_update_async(resource_group_name, name, parameters, custom_headers = nil)
936
+ def begin_create_or_update_async(resource_group_name, name, parameters, custom_headers:nil)
932
937
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
933
938
  fail ArgumentError, 'name is nil' if name.nil?
934
939
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -937,13 +942,12 @@ module Azure::Compute::Mgmt::V2016_03_30
937
942
 
938
943
 
939
944
  request_headers = {}
945
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
940
946
 
941
947
  # Set Headers
942
948
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
943
949
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
944
950
 
945
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
946
-
947
951
  # Serialize Request
948
952
  request_mapper = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSet.mapper()
949
953
  request_content = @client.serialize(request_mapper, parameters)
@@ -1010,8 +1014,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1010
1014
  #
1011
1015
  # @return [OperationStatusResponse] operation results.
1012
1016
  #
1013
- def begin_delete(resource_group_name, vm_scale_set_name, custom_headers = nil)
1014
- response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value!
1017
+ def begin_delete(resource_group_name, vm_scale_set_name, custom_headers:nil)
1018
+ response = begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
1015
1019
  response.body unless response.nil?
1016
1020
  end
1017
1021
 
@@ -1025,8 +1029,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1025
1029
  #
1026
1030
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1027
1031
  #
1028
- def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
1029
- begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers).value!
1032
+ def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
1033
+ begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
1030
1034
  end
1031
1035
 
1032
1036
  #
@@ -1039,7 +1043,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1039
1043
  #
1040
1044
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1041
1045
  #
1042
- def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
1046
+ def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
1043
1047
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1044
1048
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1045
1049
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1047,6 +1051,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1047
1051
 
1048
1052
 
1049
1053
  request_headers = {}
1054
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1050
1055
 
1051
1056
  # Set Headers
1052
1057
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1105,8 +1110,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1105
1110
  #
1106
1111
  # @return [OperationStatusResponse] operation results.
1107
1112
  #
1108
- def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1109
- response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1113
+ def begin_deallocate(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1114
+ response = begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1110
1115
  response.body unless response.nil?
1111
1116
  end
1112
1117
 
@@ -1124,8 +1129,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1124
1129
  #
1125
1130
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1126
1131
  #
1127
- def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1128
- begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1132
+ def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1133
+ begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1129
1134
  end
1130
1135
 
1131
1136
  #
@@ -1142,7 +1147,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1142
1147
  #
1143
1148
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1144
1149
  #
1145
- def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1150
+ def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1146
1151
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1147
1152
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1148
1153
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1150,13 +1155,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1150
1155
 
1151
1156
 
1152
1157
  request_headers = {}
1158
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1153
1159
 
1154
1160
  # Set Headers
1155
1161
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1156
1162
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1157
1163
 
1158
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1159
-
1160
1164
  # Serialize Request
1161
1165
  request_mapper = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1162
1166
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1215,8 +1219,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1215
1219
  #
1216
1220
  # @return [OperationStatusResponse] operation results.
1217
1221
  #
1218
- def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1219
- response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1222
+ def begin_delete_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1223
+ response = begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1220
1224
  response.body unless response.nil?
1221
1225
  end
1222
1226
 
@@ -1232,8 +1236,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1232
1236
  #
1233
1237
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1234
1238
  #
1235
- def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1236
- begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1239
+ def begin_delete_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1240
+ begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1237
1241
  end
1238
1242
 
1239
1243
  #
@@ -1248,7 +1252,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1248
1252
  #
1249
1253
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1250
1254
  #
1251
- def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1255
+ def begin_delete_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1252
1256
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1253
1257
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1254
1258
  fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil?
@@ -1257,13 +1261,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1257
1261
 
1258
1262
 
1259
1263
  request_headers = {}
1264
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1260
1265
 
1261
1266
  # Set Headers
1262
1267
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1263
1268
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1264
1269
 
1265
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1266
-
1267
1270
  # Serialize Request
1268
1271
  request_mapper = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceRequiredIDs.mapper()
1269
1272
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1324,8 +1327,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1324
1327
  #
1325
1328
  # @return [OperationStatusResponse] operation results.
1326
1329
  #
1327
- def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1328
- response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1330
+ def begin_power_off(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1331
+ response = begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1329
1332
  response.body unless response.nil?
1330
1333
  end
1331
1334
 
@@ -1343,8 +1346,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1343
1346
  #
1344
1347
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1345
1348
  #
1346
- def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1347
- begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1349
+ def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1350
+ begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1348
1351
  end
1349
1352
 
1350
1353
  #
@@ -1361,7 +1364,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1361
1364
  #
1362
1365
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1363
1366
  #
1364
- def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1367
+ def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1365
1368
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1366
1369
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1367
1370
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1369,13 +1372,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1369
1372
 
1370
1373
 
1371
1374
  request_headers = {}
1375
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1372
1376
 
1373
1377
  # Set Headers
1374
1378
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1375
1379
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1376
1380
 
1377
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1378
-
1379
1381
  # Serialize Request
1380
1382
  request_mapper = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1381
1383
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1434,8 +1436,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1434
1436
  #
1435
1437
  # @return [OperationStatusResponse] operation results.
1436
1438
  #
1437
- def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1438
- response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1439
+ def begin_restart(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1440
+ response = begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1439
1441
  response.body unless response.nil?
1440
1442
  end
1441
1443
 
@@ -1451,8 +1453,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1451
1453
  #
1452
1454
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1453
1455
  #
1454
- def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1455
- begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1456
+ def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1457
+ begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1456
1458
  end
1457
1459
 
1458
1460
  #
@@ -1467,7 +1469,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1467
1469
  #
1468
1470
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1469
1471
  #
1470
- def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1472
+ def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1471
1473
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1472
1474
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1473
1475
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1475,13 +1477,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1475
1477
 
1476
1478
 
1477
1479
  request_headers = {}
1480
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1478
1481
 
1479
1482
  # Set Headers
1480
1483
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1481
1484
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1482
1485
 
1483
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1484
-
1485
1486
  # Serialize Request
1486
1487
  request_mapper = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1487
1488
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1540,8 +1541,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1540
1541
  #
1541
1542
  # @return [OperationStatusResponse] operation results.
1542
1543
  #
1543
- def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1544
- response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1544
+ def begin_start(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1545
+ response = begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1545
1546
  response.body unless response.nil?
1546
1547
  end
1547
1548
 
@@ -1557,8 +1558,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1557
1558
  #
1558
1559
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1559
1560
  #
1560
- def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1561
- begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1561
+ def begin_start_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1562
+ begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:vm_instance_ids, custom_headers:custom_headers).value!
1562
1563
  end
1563
1564
 
1564
1565
  #
@@ -1573,7 +1574,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1573
1574
  #
1574
1575
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1575
1576
  #
1576
- def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1577
+ def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids:nil, custom_headers:nil)
1577
1578
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1578
1579
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1579
1580
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1581,13 +1582,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1581
1582
 
1582
1583
 
1583
1584
  request_headers = {}
1585
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1584
1586
 
1585
1587
  # Set Headers
1586
1588
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1587
1589
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1588
1590
 
1589
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1590
-
1591
1591
  # Serialize Request
1592
1592
  request_mapper = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceIDs.mapper()
1593
1593
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1647,8 +1647,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1647
1647
  #
1648
1648
  # @return [OperationStatusResponse] operation results.
1649
1649
  #
1650
- def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1651
- response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1650
+ def begin_update_instances(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1651
+ response = begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1652
1652
  response.body unless response.nil?
1653
1653
  end
1654
1654
 
@@ -1665,8 +1665,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1665
1665
  #
1666
1666
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1667
1667
  #
1668
- def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1669
- begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers).value!
1668
+ def begin_update_instances_with_http_info(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1669
+ begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:custom_headers).value!
1670
1670
  end
1671
1671
 
1672
1672
  #
@@ -1682,7 +1682,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1682
1682
  #
1683
1683
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1684
1684
  #
1685
- def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers = nil)
1685
+ def begin_update_instances_async(resource_group_name, vm_scale_set_name, vm_instance_ids, custom_headers:nil)
1686
1686
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1687
1687
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1688
1688
  fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil?
@@ -1691,13 +1691,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1691
1691
 
1692
1692
 
1693
1693
  request_headers = {}
1694
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1694
1695
 
1695
1696
  # Set Headers
1696
1697
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1697
1698
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1698
1699
 
1699
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
1700
-
1701
1700
  # Serialize Request
1702
1701
  request_mapper = Azure::Compute::Mgmt::V2016_03_30::Models::VirtualMachineScaleSetVMInstanceRequiredIDs.mapper()
1703
1702
  request_content = @client.serialize(request_mapper, vm_instance_ids)
@@ -1755,8 +1754,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1755
1754
  #
1756
1755
  # @return [OperationStatusResponse] operation results.
1757
1756
  #
1758
- def begin_reimage(resource_group_name, vm_scale_set_name, custom_headers = nil)
1759
- response = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value!
1757
+ def begin_reimage(resource_group_name, vm_scale_set_name, custom_headers:nil)
1758
+ response = begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
1760
1759
  response.body unless response.nil?
1761
1760
  end
1762
1761
 
@@ -1771,8 +1770,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1771
1770
  #
1772
1771
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1773
1772
  #
1774
- def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
1775
- begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers).value!
1773
+ def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, custom_headers:nil)
1774
+ begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
1776
1775
  end
1777
1776
 
1778
1777
  #
@@ -1786,7 +1785,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1786
1785
  #
1787
1786
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1788
1787
  #
1789
- def begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
1788
+ def begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers:nil)
1790
1789
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1791
1790
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1792
1791
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -1794,6 +1793,7 @@ module Azure::Compute::Mgmt::V2016_03_30
1794
1793
 
1795
1794
 
1796
1795
  request_headers = {}
1796
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1797
1797
 
1798
1798
  # Set Headers
1799
1799
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1848,8 +1848,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1848
1848
  #
1849
1849
  # @return [VirtualMachineScaleSetListResult] operation results.
1850
1850
  #
1851
- def list_next(next_page_link, custom_headers = nil)
1852
- response = list_next_async(next_page_link, custom_headers).value!
1851
+ def list_next(next_page_link, custom_headers:nil)
1852
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1853
1853
  response.body unless response.nil?
1854
1854
  end
1855
1855
 
@@ -1863,8 +1863,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1863
1863
  #
1864
1864
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1865
1865
  #
1866
- def list_next_with_http_info(next_page_link, custom_headers = nil)
1867
- list_next_async(next_page_link, custom_headers).value!
1866
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1867
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1868
1868
  end
1869
1869
 
1870
1870
  #
@@ -1877,11 +1877,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1877
1877
  #
1878
1878
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1879
1879
  #
1880
- def list_next_async(next_page_link, custom_headers = nil)
1880
+ def list_next_async(next_page_link, custom_headers:nil)
1881
1881
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1882
1882
 
1883
1883
 
1884
1884
  request_headers = {}
1885
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1885
1886
 
1886
1887
  # Set Headers
1887
1888
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -1938,8 +1939,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1938
1939
  #
1939
1940
  # @return [VirtualMachineScaleSetListWithLinkResult] operation results.
1940
1941
  #
1941
- def list_all_next(next_page_link, custom_headers = nil)
1942
- response = list_all_next_async(next_page_link, custom_headers).value!
1942
+ def list_all_next(next_page_link, custom_headers:nil)
1943
+ response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
1943
1944
  response.body unless response.nil?
1944
1945
  end
1945
1946
 
@@ -1956,8 +1957,8 @@ module Azure::Compute::Mgmt::V2016_03_30
1956
1957
  #
1957
1958
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1958
1959
  #
1959
- def list_all_next_with_http_info(next_page_link, custom_headers = nil)
1960
- list_all_next_async(next_page_link, custom_headers).value!
1960
+ def list_all_next_with_http_info(next_page_link, custom_headers:nil)
1961
+ list_all_next_async(next_page_link, custom_headers:custom_headers).value!
1961
1962
  end
1962
1963
 
1963
1964
  #
@@ -1973,11 +1974,12 @@ module Azure::Compute::Mgmt::V2016_03_30
1973
1974
  #
1974
1975
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1975
1976
  #
1976
- def list_all_next_async(next_page_link, custom_headers = nil)
1977
+ def list_all_next_async(next_page_link, custom_headers:nil)
1977
1978
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1978
1979
 
1979
1980
 
1980
1981
  request_headers = {}
1982
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1981
1983
 
1982
1984
  # Set Headers
1983
1985
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2032,8 +2034,8 @@ module Azure::Compute::Mgmt::V2016_03_30
2032
2034
  #
2033
2035
  # @return [VirtualMachineScaleSetListSkusResult] operation results.
2034
2036
  #
2035
- def list_skus_next(next_page_link, custom_headers = nil)
2036
- response = list_skus_next_async(next_page_link, custom_headers).value!
2037
+ def list_skus_next(next_page_link, custom_headers:nil)
2038
+ response = list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
2037
2039
  response.body unless response.nil?
2038
2040
  end
2039
2041
 
@@ -2048,8 +2050,8 @@ module Azure::Compute::Mgmt::V2016_03_30
2048
2050
  #
2049
2051
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2050
2052
  #
2051
- def list_skus_next_with_http_info(next_page_link, custom_headers = nil)
2052
- list_skus_next_async(next_page_link, custom_headers).value!
2053
+ def list_skus_next_with_http_info(next_page_link, custom_headers:nil)
2054
+ list_skus_next_async(next_page_link, custom_headers:custom_headers).value!
2053
2055
  end
2054
2056
 
2055
2057
  #
@@ -2063,11 +2065,12 @@ module Azure::Compute::Mgmt::V2016_03_30
2063
2065
  #
2064
2066
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2065
2067
  #
2066
- def list_skus_next_async(next_page_link, custom_headers = nil)
2068
+ def list_skus_next_async(next_page_link, custom_headers:nil)
2067
2069
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2068
2070
 
2069
2071
 
2070
2072
  request_headers = {}
2073
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2071
2074
 
2072
2075
  # Set Headers
2073
2076
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -2121,12 +2124,12 @@ module Azure::Compute::Mgmt::V2016_03_30
2121
2124
  # @return [VirtualMachineScaleSetListResult] which provide lazy access to pages
2122
2125
  # of the response.
2123
2126
  #
2124
- def list_as_lazy(resource_group_name, custom_headers = nil)
2125
- response = list_async(resource_group_name, custom_headers).value!
2127
+ def list_as_lazy(resource_group_name, custom_headers:nil)
2128
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
2126
2129
  unless response.nil?
2127
2130
  page = response.body
2128
2131
  page.next_method = Proc.new do |next_page_link|
2129
- list_next_async(next_page_link, custom_headers)
2132
+ list_next_async(next_page_link, custom_headers:custom_headers)
2130
2133
  end
2131
2134
  page
2132
2135
  end
@@ -2144,12 +2147,12 @@ module Azure::Compute::Mgmt::V2016_03_30
2144
2147
  # @return [VirtualMachineScaleSetListWithLinkResult] which provide lazy access
2145
2148
  # to pages of the response.
2146
2149
  #
2147
- def list_all_as_lazy(custom_headers = nil)
2148
- response = list_all_async(custom_headers).value!
2150
+ def list_all_as_lazy(custom_headers:nil)
2151
+ response = list_all_async(custom_headers:custom_headers).value!
2149
2152
  unless response.nil?
2150
2153
  page = response.body
2151
2154
  page.next_method = Proc.new do |next_page_link|
2152
- list_all_next_async(next_page_link, custom_headers)
2155
+ list_all_next_async(next_page_link, custom_headers:custom_headers)
2153
2156
  end
2154
2157
  page
2155
2158
  end
@@ -2167,12 +2170,12 @@ module Azure::Compute::Mgmt::V2016_03_30
2167
2170
  # @return [VirtualMachineScaleSetListSkusResult] which provide lazy access to
2168
2171
  # pages of the response.
2169
2172
  #
2170
- def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers = nil)
2171
- response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers).value!
2173
+ def list_skus_as_lazy(resource_group_name, vm_scale_set_name, custom_headers:nil)
2174
+ response = list_skus_async(resource_group_name, vm_scale_set_name, custom_headers:custom_headers).value!
2172
2175
  unless response.nil?
2173
2176
  page = response.body
2174
2177
  page.next_method = Proc.new do |next_page_link|
2175
- list_skus_next_async(next_page_link, custom_headers)
2178
+ list_skus_next_async(next_page_link, custom_headers:custom_headers)
2176
2179
  end
2177
2180
  page
2178
2181
  end