azure_mgmt_compute 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_compute.gemspec +4 -4
- data/lib/azure_mgmt_compute.rb +3 -138
- data/lib/generated/azure_mgmt_compute.rb +128 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/availability_sets.rb +24 -22
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/compute_management_client.rb +12 -12
- data/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb +88 -0
- data/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb +45 -0
- data/lib/generated/azure_mgmt_compute/models/api_error.rb +93 -0
- data/lib/generated/azure_mgmt_compute/models/api_error_base.rb +64 -0
- data/lib/generated/azure_mgmt_compute/models/availability_set.rb +136 -0
- data/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +54 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/caching_types.rb +0 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/component_names.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +44 -0
- data/lib/generated/azure_mgmt_compute/models/data_disk.rb +114 -0
- data/lib/generated/azure_mgmt_compute/models/data_disk_image.rb +48 -0
- data/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb +45 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/disk_create_option_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +69 -0
- data/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb +62 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/hardware_profile.rb +20 -35
- data/lib/generated/azure_mgmt_compute/models/image_reference.rb +76 -0
- data/lib/generated/azure_mgmt_compute/models/inner_error.rb +54 -0
- data/lib/generated/azure_mgmt_compute/models/instance_view_status.rb +87 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/instance_view_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/linux_configuration.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/list_usages_result.rb +95 -0
- data/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/network_profile.rb +52 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/operating_system_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/osdisk.rb +127 -0
- data/lib/generated/azure_mgmt_compute/models/osdisk_image.rb +46 -0
- data/lib/generated/azure_mgmt_compute/models/osprofile.rb +116 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/pass_names.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/plan.rb +74 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/protocol_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/purchase_plan.rb +65 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/setting_names.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/sku.rb +64 -0
- data/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb +59 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/status_level_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/storage_profile.rb +74 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/upgrade_mode.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb +46 -0
- data/lib/generated/azure_mgmt_compute/models/usage.rb +78 -0
- data/lib/generated/azure_mgmt_compute/models/usage_name.rb +54 -0
- data/lib/generated/azure_mgmt_compute/models/vault_certificate.rb +57 -0
- data/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb +65 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +45 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine.rb +224 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +81 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +65 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +175 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +67 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +134 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +101 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb +109 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +78 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +142 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +135 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +124 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +85 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +117 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +97 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +97 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +82 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +111 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +116 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +70 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +80 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/virtual_machine_scale_set_sku_scale_type.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +248 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +66 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +51 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +52 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +142 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +96 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +82 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb +95 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +52 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/models/virtual_machine_size_types.rb +0 -0
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +58 -0
- data/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +53 -0
- data/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb +58 -0
- data/lib/generated/azure_mgmt_compute/models/windows_configuration.rb +98 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/usage_operations.rb +32 -11
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/version.rb +1 -1
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_extension_images.rb +40 -26
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_extensions.rb +59 -31
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_images.rb +76 -48
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_scale_set_vms.rb +169 -41
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_scale_sets.rb +341 -125
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_sizes.rb +4 -4
- data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machines.rb +340 -84
- metadata +126 -142
- data/lib/azure_mgmt_compute/models/additional_unattend_content.rb +0 -105
- data/lib/azure_mgmt_compute/models/api_entity_reference.rb +0 -57
- data/lib/azure_mgmt_compute/models/api_error.rb +0 -119
- data/lib/azure_mgmt_compute/models/api_error_base.rb +0 -74
- data/lib/azure_mgmt_compute/models/availability_set.rb +0 -92
- data/lib/azure_mgmt_compute/models/availability_set_list_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/availability_set_properties.rb +0 -128
- data/lib/azure_mgmt_compute/models/boot_diagnostics.rb +0 -67
- data/lib/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +0 -65
- data/lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +0 -56
- data/lib/azure_mgmt_compute/models/data_disk.rb +0 -143
- data/lib/azure_mgmt_compute/models/data_disk_image.rb +0 -60
- data/lib/azure_mgmt_compute/models/diagnostics_profile.rb +0 -62
- data/lib/azure_mgmt_compute/models/disk_encryption_settings.rb +0 -90
- data/lib/azure_mgmt_compute/models/disk_instance_view.rb +0 -86
- data/lib/azure_mgmt_compute/models/image_reference.rb +0 -85
- data/lib/azure_mgmt_compute/models/inner_error.rb +0 -66
- data/lib/azure_mgmt_compute/models/instance_view_status.rb +0 -100
- data/lib/azure_mgmt_compute/models/key_vault_key_reference.rb +0 -74
- data/lib/azure_mgmt_compute/models/key_vault_secret_reference.rb +0 -75
- data/lib/azure_mgmt_compute/models/linux_configuration.rb +0 -73
- data/lib/azure_mgmt_compute/models/list_usages_result.rb +0 -76
- data/lib/azure_mgmt_compute/models/network_interface_reference.rb +0 -68
- data/lib/azure_mgmt_compute/models/network_interface_reference_properties.rb +0 -57
- data/lib/azure_mgmt_compute/models/network_profile.rb +0 -77
- data/lib/azure_mgmt_compute/models/osdisk.rb +0 -163
- data/lib/azure_mgmt_compute/models/osdisk_image.rb +0 -61
- data/lib/azure_mgmt_compute/models/osprofile.rb +0 -147
- data/lib/azure_mgmt_compute/models/plan.rb +0 -83
- data/lib/azure_mgmt_compute/models/purchase_plan.rb +0 -77
- data/lib/azure_mgmt_compute/models/sku.rb +0 -75
- data/lib/azure_mgmt_compute/models/ssh_configuration.rb +0 -77
- data/lib/azure_mgmt_compute/models/ssh_public_key.rb +0 -70
- data/lib/azure_mgmt_compute/models/storage_profile.rb +0 -108
- data/lib/azure_mgmt_compute/models/upgrade_policy.rb +0 -60
- data/lib/azure_mgmt_compute/models/usage.rb +0 -96
- data/lib/azure_mgmt_compute/models/usage_name.rb +0 -66
- data/lib/azure_mgmt_compute/models/vault_certificate.rb +0 -68
- data/lib/azure_mgmt_compute/models/vault_secret_group.rb +0 -94
- data/lib/azure_mgmt_compute/models/virtual_hard_disk.rb +0 -57
- data/lib/azure_mgmt_compute/models/virtual_machine.rb +0 -140
- data/lib/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +0 -117
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +0 -78
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result.rb +0 -68
- data/lib/azure_mgmt_compute/models/virtual_machine_capture_result_properties.rb +0 -56
- data/lib/azure_mgmt_compute/models/virtual_machine_extension.rb +0 -92
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +0 -83
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image.rb +0 -92
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb +0 -102
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +0 -137
- data/lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb +0 -141
- data/lib/azure_mgmt_compute/models/virtual_machine_image.rb +0 -86
- data/lib/azure_mgmt_compute/models/virtual_machine_image_properties.rb +0 -108
- data/lib/azure_mgmt_compute/models/virtual_machine_image_resource.rb +0 -83
- data/lib/azure_mgmt_compute/models/virtual_machine_instance_view.rb +0 -202
- data/lib/azure_mgmt_compute/models/virtual_machine_list_result.rb +0 -87
- data/lib/azure_mgmt_compute/models/virtual_machine_properties.rb +0 -189
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set.rb +0 -108
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_properties.rb +0 -116
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +0 -125
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +0 -79
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +0 -78
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration_properties.rb +0 -158
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +0 -88
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +0 -80
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb +0 -89
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +0 -129
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +0 -147
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_properties.rb +0 -99
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +0 -88
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +0 -90
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +0 -78
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +0 -165
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +0 -87
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +0 -57
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +0 -59
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +0 -202
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +0 -114
- data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmproperties.rb +0 -190
- data/lib/azure_mgmt_compute/models/virtual_machine_size.rb +0 -109
- data/lib/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +0 -77
- data/lib/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +0 -68
- data/lib/azure_mgmt_compute/models/win_rmconfiguration.rb +0 -77
- data/lib/azure_mgmt_compute/models/win_rmlistener.rb +0 -71
- data/lib/azure_mgmt_compute/models/windows_configuration.rb +0 -124
@@ -78,6 +78,8 @@ module Azure::ARM::Compute
|
|
78
78
|
fail ArgumentError, 'version is nil' if version.nil?
|
79
79
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
80
80
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
81
|
+
|
82
|
+
|
81
83
|
request_headers = {}
|
82
84
|
|
83
85
|
# Set Headers
|
@@ -113,10 +115,8 @@ module Azure::ARM::Compute
|
|
113
115
|
if status_code == 200
|
114
116
|
begin
|
115
117
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
116
|
-
|
117
|
-
|
118
|
-
end
|
119
|
-
result.body = parsed_response
|
118
|
+
result_mapper = VirtualMachineImage.mapper()
|
119
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
120
120
|
rescue Exception => e
|
121
121
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
122
122
|
end
|
@@ -189,6 +189,8 @@ module Azure::ARM::Compute
|
|
189
189
|
fail ArgumentError, 'skus is nil' if skus.nil?
|
190
190
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
191
191
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
192
|
+
|
193
|
+
|
192
194
|
request_headers = {}
|
193
195
|
|
194
196
|
# Set Headers
|
@@ -224,17 +226,22 @@ module Azure::ARM::Compute
|
|
224
226
|
if status_code == 200
|
225
227
|
begin
|
226
228
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
227
|
-
|
228
|
-
|
229
|
-
parsed_response
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
229
|
+
result_mapper = {
|
230
|
+
required: false,
|
231
|
+
serialized_name: 'parsed_response',
|
232
|
+
type: {
|
233
|
+
name: 'Sequence',
|
234
|
+
element: {
|
235
|
+
required: false,
|
236
|
+
serialized_name: 'VirtualMachineImageResourceElementType',
|
237
|
+
type: {
|
238
|
+
name: 'Composite',
|
239
|
+
class_name: 'VirtualMachineImageResource'
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
238
245
|
rescue Exception => e
|
239
246
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
240
247
|
end
|
@@ -290,6 +297,8 @@ module Azure::ARM::Compute
|
|
290
297
|
fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
|
291
298
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
292
299
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
300
|
+
|
301
|
+
|
293
302
|
request_headers = {}
|
294
303
|
|
295
304
|
# Set Headers
|
@@ -325,17 +334,22 @@ module Azure::ARM::Compute
|
|
325
334
|
if status_code == 200
|
326
335
|
begin
|
327
336
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
328
|
-
|
329
|
-
|
330
|
-
parsed_response
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
337
|
+
result_mapper = {
|
338
|
+
required: false,
|
339
|
+
serialized_name: 'parsed_response',
|
340
|
+
type: {
|
341
|
+
name: 'Sequence',
|
342
|
+
element: {
|
343
|
+
required: false,
|
344
|
+
serialized_name: 'VirtualMachineImageResourceElementType',
|
345
|
+
type: {
|
346
|
+
name: 'Composite',
|
347
|
+
class_name: 'VirtualMachineImageResource'
|
348
|
+
}
|
349
|
+
}
|
350
|
+
}
|
351
|
+
}
|
352
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
339
353
|
rescue Exception => e
|
340
354
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
341
355
|
end
|
@@ -387,6 +401,8 @@ module Azure::ARM::Compute
|
|
387
401
|
fail ArgumentError, 'location is nil' if location.nil?
|
388
402
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
389
403
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
404
|
+
|
405
|
+
|
390
406
|
request_headers = {}
|
391
407
|
|
392
408
|
# Set Headers
|
@@ -422,17 +438,22 @@ module Azure::ARM::Compute
|
|
422
438
|
if status_code == 200
|
423
439
|
begin
|
424
440
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
425
|
-
|
426
|
-
|
427
|
-
parsed_response
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
441
|
+
result_mapper = {
|
442
|
+
required: false,
|
443
|
+
serialized_name: 'parsed_response',
|
444
|
+
type: {
|
445
|
+
name: 'Sequence',
|
446
|
+
element: {
|
447
|
+
required: false,
|
448
|
+
serialized_name: 'VirtualMachineImageResourceElementType',
|
449
|
+
type: {
|
450
|
+
name: 'Composite',
|
451
|
+
class_name: 'VirtualMachineImageResource'
|
452
|
+
}
|
453
|
+
}
|
454
|
+
}
|
455
|
+
}
|
456
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
436
457
|
rescue Exception => e
|
437
458
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
438
459
|
end
|
@@ -492,6 +513,8 @@ module Azure::ARM::Compute
|
|
492
513
|
fail ArgumentError, 'offer is nil' if offer.nil?
|
493
514
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
494
515
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
516
|
+
|
517
|
+
|
495
518
|
request_headers = {}
|
496
519
|
|
497
520
|
# Set Headers
|
@@ -527,17 +550,22 @@ module Azure::ARM::Compute
|
|
527
550
|
if status_code == 200
|
528
551
|
begin
|
529
552
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
530
|
-
|
531
|
-
|
532
|
-
parsed_response
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
553
|
+
result_mapper = {
|
554
|
+
required: false,
|
555
|
+
serialized_name: 'parsed_response',
|
556
|
+
type: {
|
557
|
+
name: 'Sequence',
|
558
|
+
element: {
|
559
|
+
required: false,
|
560
|
+
serialized_name: 'VirtualMachineImageResourceElementType',
|
561
|
+
type: {
|
562
|
+
name: 'Composite',
|
563
|
+
class_name: 'VirtualMachineImageResource'
|
564
|
+
}
|
565
|
+
}
|
566
|
+
}
|
567
|
+
}
|
568
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
541
569
|
rescue Exception => e
|
542
570
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
543
571
|
end
|
data/lib/{azure_mgmt_compute → generated/azure_mgmt_compute}/virtual_machine_scale_set_vms.rb
RENAMED
@@ -29,10 +29,25 @@ module Azure::ARM::Compute
|
|
29
29
|
# @param resource_group_name [String] The name of the resource group.
|
30
30
|
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
31
31
|
# @param instance_id [String] The instance id of the virtual machine.
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
36
|
+
response = reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
37
|
+
nil
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# @param resource_group_name [String] The name of the resource group.
|
42
|
+
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
43
|
+
# @param instance_id [String] The instance id of the virtual machine.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
32
47
|
# @return [Concurrent::Promise] promise which provides async access to http
|
33
48
|
# response.
|
34
49
|
#
|
35
|
-
def
|
50
|
+
def reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
36
51
|
# Send request
|
37
52
|
promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
38
53
|
|
@@ -41,8 +56,8 @@ module Azure::ARM::Compute
|
|
41
56
|
deserialize_method = lambda do |parsed_response|
|
42
57
|
end
|
43
58
|
|
44
|
-
|
45
|
-
|
59
|
+
# Waiting for response.
|
60
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
46
61
|
end
|
47
62
|
|
48
63
|
promise
|
@@ -98,6 +113,8 @@ module Azure::ARM::Compute
|
|
98
113
|
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
99
114
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
100
115
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
116
|
+
|
117
|
+
|
101
118
|
request_headers = {}
|
102
119
|
|
103
120
|
# Set Headers
|
@@ -137,17 +154,32 @@ module Azure::ARM::Compute
|
|
137
154
|
end
|
138
155
|
|
139
156
|
#
|
140
|
-
# Allows you to deallocate a virtual machine virtual machine
|
157
|
+
# Allows you to deallocate a virtual machine scale set virtual machine. Shuts
|
141
158
|
# down the virtual machine and releases the compute resources. You are not
|
142
159
|
# billed for the compute resources that this virtual machine uses.
|
143
160
|
#
|
144
161
|
# @param resource_group_name [String] The name of the resource group.
|
145
162
|
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
146
163
|
# @param instance_id [String] The instance id of the virtual machine.
|
164
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
165
|
+
# will be added to the HTTP request.
|
166
|
+
#
|
167
|
+
def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
168
|
+
response = deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
169
|
+
nil
|
170
|
+
end
|
171
|
+
|
172
|
+
#
|
173
|
+
# @param resource_group_name [String] The name of the resource group.
|
174
|
+
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
175
|
+
# @param instance_id [String] The instance id of the virtual machine.
|
176
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
177
|
+
# will be added to the HTTP request.
|
178
|
+
#
|
147
179
|
# @return [Concurrent::Promise] promise which provides async access to http
|
148
180
|
# response.
|
149
181
|
#
|
150
|
-
def
|
182
|
+
def deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
151
183
|
# Send request
|
152
184
|
promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
153
185
|
|
@@ -156,15 +188,15 @@ module Azure::ARM::Compute
|
|
156
188
|
deserialize_method = lambda do |parsed_response|
|
157
189
|
end
|
158
190
|
|
159
|
-
|
160
|
-
|
191
|
+
# Waiting for response.
|
192
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
161
193
|
end
|
162
194
|
|
163
195
|
promise
|
164
196
|
end
|
165
197
|
|
166
198
|
#
|
167
|
-
# Allows you to deallocate a virtual machine virtual machine
|
199
|
+
# Allows you to deallocate a virtual machine scale set virtual machine. Shuts
|
168
200
|
# down the virtual machine and releases the compute resources. You are not
|
169
201
|
# billed for the compute resources that this virtual machine uses.
|
170
202
|
#
|
@@ -181,7 +213,7 @@ module Azure::ARM::Compute
|
|
181
213
|
end
|
182
214
|
|
183
215
|
#
|
184
|
-
# Allows you to deallocate a virtual machine virtual machine
|
216
|
+
# Allows you to deallocate a virtual machine scale set virtual machine. Shuts
|
185
217
|
# down the virtual machine and releases the compute resources. You are not
|
186
218
|
# billed for the compute resources that this virtual machine uses.
|
187
219
|
#
|
@@ -198,7 +230,7 @@ module Azure::ARM::Compute
|
|
198
230
|
end
|
199
231
|
|
200
232
|
#
|
201
|
-
# Allows you to deallocate a virtual machine virtual machine
|
233
|
+
# Allows you to deallocate a virtual machine scale set virtual machine. Shuts
|
202
234
|
# down the virtual machine and releases the compute resources. You are not
|
203
235
|
# billed for the compute resources that this virtual machine uses.
|
204
236
|
#
|
@@ -216,6 +248,8 @@ module Azure::ARM::Compute
|
|
216
248
|
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
217
249
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
218
250
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
251
|
+
|
252
|
+
|
219
253
|
request_headers = {}
|
220
254
|
|
221
255
|
# Set Headers
|
@@ -260,10 +294,25 @@ module Azure::ARM::Compute
|
|
260
294
|
# @param resource_group_name [String] The name of the resource group.
|
261
295
|
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
262
296
|
# @param instance_id [String] The instance id of the virtual machine.
|
297
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
298
|
+
# will be added to the HTTP request.
|
299
|
+
#
|
300
|
+
def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
301
|
+
response = delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
302
|
+
nil
|
303
|
+
end
|
304
|
+
|
305
|
+
#
|
306
|
+
# @param resource_group_name [String] The name of the resource group.
|
307
|
+
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
308
|
+
# @param instance_id [String] The instance id of the virtual machine.
|
309
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
310
|
+
# will be added to the HTTP request.
|
311
|
+
#
|
263
312
|
# @return [Concurrent::Promise] promise which provides async access to http
|
264
313
|
# response.
|
265
314
|
#
|
266
|
-
def
|
315
|
+
def delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
267
316
|
# Send request
|
268
317
|
promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
269
318
|
|
@@ -272,8 +321,8 @@ module Azure::ARM::Compute
|
|
272
321
|
deserialize_method = lambda do |parsed_response|
|
273
322
|
end
|
274
323
|
|
275
|
-
|
276
|
-
|
324
|
+
# Waiting for response.
|
325
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
277
326
|
end
|
278
327
|
|
279
328
|
promise
|
@@ -326,6 +375,8 @@ module Azure::ARM::Compute
|
|
326
375
|
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
327
376
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
328
377
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
378
|
+
|
379
|
+
|
329
380
|
request_headers = {}
|
330
381
|
|
331
382
|
# Set Headers
|
@@ -412,6 +463,8 @@ module Azure::ARM::Compute
|
|
412
463
|
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
413
464
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
414
465
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
466
|
+
|
467
|
+
|
415
468
|
request_headers = {}
|
416
469
|
|
417
470
|
# Set Headers
|
@@ -447,10 +500,8 @@ module Azure::ARM::Compute
|
|
447
500
|
if status_code == 200
|
448
501
|
begin
|
449
502
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
450
|
-
|
451
|
-
|
452
|
-
end
|
453
|
-
result.body = parsed_response
|
503
|
+
result_mapper = VirtualMachineScaleSetVM.mapper()
|
504
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
454
505
|
rescue Exception => e
|
455
506
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
456
507
|
end
|
@@ -510,6 +561,8 @@ module Azure::ARM::Compute
|
|
510
561
|
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
511
562
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
512
563
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
564
|
+
|
565
|
+
|
513
566
|
request_headers = {}
|
514
567
|
|
515
568
|
# Set Headers
|
@@ -545,10 +598,8 @@ module Azure::ARM::Compute
|
|
545
598
|
if status_code == 200
|
546
599
|
begin
|
547
600
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
548
|
-
|
549
|
-
|
550
|
-
end
|
551
|
-
result.body = parsed_response
|
601
|
+
result_mapper = VirtualMachineScaleSetVMInstanceView.mapper()
|
602
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
552
603
|
rescue Exception => e
|
553
604
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
554
605
|
end
|
@@ -572,11 +623,37 @@ module Azure::ARM::Compute
|
|
572
623
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
573
624
|
# will be added to the HTTP request.
|
574
625
|
#
|
575
|
-
# @return [VirtualMachineScaleSetVMListResult]
|
626
|
+
# @return [VirtualMachineScaleSetVMListResult] which provide lazy access to
|
627
|
+
# pages of the response.
|
576
628
|
#
|
577
|
-
def
|
629
|
+
def list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
|
578
630
|
response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
|
579
|
-
|
631
|
+
unless response.nil?
|
632
|
+
page = response.body
|
633
|
+
page.next_method = Proc.new do |next_link|
|
634
|
+
list_next_async(next_link, custom_headers)
|
635
|
+
end
|
636
|
+
page
|
637
|
+
end
|
638
|
+
end
|
639
|
+
|
640
|
+
#
|
641
|
+
# Lists all virtual machines in a VM scale sets.
|
642
|
+
#
|
643
|
+
# @param resource_group_name [String] The name of the resource group.
|
644
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
645
|
+
# machine scale set.
|
646
|
+
# @param filter [String] The filter to apply on the operation.
|
647
|
+
# @param select [String] The list parameters.
|
648
|
+
# @param expand [String] The expand expression to apply on the operation.
|
649
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
650
|
+
# will be added to the HTTP request.
|
651
|
+
#
|
652
|
+
# @return [Array<VirtualMachineScaleSetVM>] operation results.
|
653
|
+
#
|
654
|
+
def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
|
655
|
+
first_page = list_as_lazy(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers)
|
656
|
+
first_page.get_all_items
|
580
657
|
end
|
581
658
|
|
582
659
|
#
|
@@ -616,6 +693,8 @@ module Azure::ARM::Compute
|
|
616
693
|
fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
|
617
694
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
618
695
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
696
|
+
|
697
|
+
|
619
698
|
request_headers = {}
|
620
699
|
|
621
700
|
# Set Headers
|
@@ -651,10 +730,8 @@ module Azure::ARM::Compute
|
|
651
730
|
if status_code == 200
|
652
731
|
begin
|
653
732
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
654
|
-
|
655
|
-
|
656
|
-
end
|
657
|
-
result.body = parsed_response
|
733
|
+
result_mapper = VirtualMachineScaleSetVMListResult.mapper()
|
734
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
658
735
|
rescue Exception => e
|
659
736
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
660
737
|
end
|
@@ -672,10 +749,25 @@ module Azure::ARM::Compute
|
|
672
749
|
# @param resource_group_name [String] The name of the resource group.
|
673
750
|
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
674
751
|
# @param instance_id [String] The instance id of the virtual machine.
|
752
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
753
|
+
# will be added to the HTTP request.
|
754
|
+
#
|
755
|
+
def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
756
|
+
response = power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
757
|
+
nil
|
758
|
+
end
|
759
|
+
|
760
|
+
#
|
761
|
+
# @param resource_group_name [String] The name of the resource group.
|
762
|
+
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
763
|
+
# @param instance_id [String] The instance id of the virtual machine.
|
764
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
765
|
+
# will be added to the HTTP request.
|
766
|
+
#
|
675
767
|
# @return [Concurrent::Promise] promise which provides async access to http
|
676
768
|
# response.
|
677
769
|
#
|
678
|
-
def
|
770
|
+
def power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
679
771
|
# Send request
|
680
772
|
promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
681
773
|
|
@@ -684,8 +776,8 @@ module Azure::ARM::Compute
|
|
684
776
|
deserialize_method = lambda do |parsed_response|
|
685
777
|
end
|
686
778
|
|
687
|
-
|
688
|
-
|
779
|
+
# Waiting for response.
|
780
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
689
781
|
end
|
690
782
|
|
691
783
|
promise
|
@@ -738,6 +830,8 @@ module Azure::ARM::Compute
|
|
738
830
|
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
739
831
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
740
832
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
833
|
+
|
834
|
+
|
741
835
|
request_headers = {}
|
742
836
|
|
743
837
|
# Set Headers
|
@@ -782,10 +876,25 @@ module Azure::ARM::Compute
|
|
782
876
|
# @param resource_group_name [String] The name of the resource group.
|
783
877
|
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
784
878
|
# @param instance_id [String] The instance id of the virtual machine.
|
879
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
880
|
+
# will be added to the HTTP request.
|
881
|
+
#
|
882
|
+
def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
883
|
+
response = restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
884
|
+
nil
|
885
|
+
end
|
886
|
+
|
887
|
+
#
|
888
|
+
# @param resource_group_name [String] The name of the resource group.
|
889
|
+
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
890
|
+
# @param instance_id [String] The instance id of the virtual machine.
|
891
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
892
|
+
# will be added to the HTTP request.
|
893
|
+
#
|
785
894
|
# @return [Concurrent::Promise] promise which provides async access to http
|
786
895
|
# response.
|
787
896
|
#
|
788
|
-
def
|
897
|
+
def restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
789
898
|
# Send request
|
790
899
|
promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
791
900
|
|
@@ -794,8 +903,8 @@ module Azure::ARM::Compute
|
|
794
903
|
deserialize_method = lambda do |parsed_response|
|
795
904
|
end
|
796
905
|
|
797
|
-
|
798
|
-
|
906
|
+
# Waiting for response.
|
907
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
799
908
|
end
|
800
909
|
|
801
910
|
promise
|
@@ -848,6 +957,8 @@ module Azure::ARM::Compute
|
|
848
957
|
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
849
958
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
850
959
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
960
|
+
|
961
|
+
|
851
962
|
request_headers = {}
|
852
963
|
|
853
964
|
# Set Headers
|
@@ -892,10 +1003,25 @@ module Azure::ARM::Compute
|
|
892
1003
|
# @param resource_group_name [String] The name of the resource group.
|
893
1004
|
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
894
1005
|
# @param instance_id [String] The instance id of the virtual machine.
|
1006
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1007
|
+
# will be added to the HTTP request.
|
1008
|
+
#
|
1009
|
+
def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
1010
|
+
response = start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
|
1011
|
+
nil
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
#
|
1015
|
+
# @param resource_group_name [String] The name of the resource group.
|
1016
|
+
# @param vm_scale_set_name [String] The name of the virtual machine scale set.
|
1017
|
+
# @param instance_id [String] The instance id of the virtual machine.
|
1018
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1019
|
+
# will be added to the HTTP request.
|
1020
|
+
#
|
895
1021
|
# @return [Concurrent::Promise] promise which provides async access to http
|
896
1022
|
# response.
|
897
1023
|
#
|
898
|
-
def
|
1024
|
+
def start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
|
899
1025
|
# Send request
|
900
1026
|
promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
|
901
1027
|
|
@@ -904,8 +1030,8 @@ module Azure::ARM::Compute
|
|
904
1030
|
deserialize_method = lambda do |parsed_response|
|
905
1031
|
end
|
906
1032
|
|
907
|
-
|
908
|
-
|
1033
|
+
# Waiting for response.
|
1034
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
909
1035
|
end
|
910
1036
|
|
911
1037
|
promise
|
@@ -958,6 +1084,8 @@ module Azure::ARM::Compute
|
|
958
1084
|
fail ArgumentError, 'instance_id is nil' if instance_id.nil?
|
959
1085
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
960
1086
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1087
|
+
|
1088
|
+
|
961
1089
|
request_headers = {}
|
962
1090
|
|
963
1091
|
# Set Headers
|
@@ -1037,6 +1165,8 @@ module Azure::ARM::Compute
|
|
1037
1165
|
#
|
1038
1166
|
def list_next_async(next_page_link, custom_headers = nil)
|
1039
1167
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1168
|
+
|
1169
|
+
|
1040
1170
|
request_headers = {}
|
1041
1171
|
|
1042
1172
|
# Set Headers
|
@@ -1071,10 +1201,8 @@ module Azure::ARM::Compute
|
|
1071
1201
|
if status_code == 200
|
1072
1202
|
begin
|
1073
1203
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1074
|
-
|
1075
|
-
|
1076
|
-
end
|
1077
|
-
result.body = parsed_response
|
1204
|
+
result_mapper = VirtualMachineScaleSetVMListResult.mapper()
|
1205
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1078
1206
|
rescue Exception => e
|
1079
1207
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1080
1208
|
end
|