Class: Azure::ARM::Compute::VirtualMachineScaleSetVMs
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::VirtualMachineScaleSetVMs
- Includes:
- Models, MsRestAzure
- Defined in:
- lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb
Overview
The Compute Management Client.
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Reference to the ComputeManagementClient.
Instance Method Summary collapse
-
#begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to deallocate a virtual machine virtual machine scale set.Shuts down the virtual machine and releases the compute resources.
-
#begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to deallocate a virtual machine virtual machine scale set.Shuts down the virtual machine and releases the compute resources.
-
#begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to deallocate a virtual machine virtual machine scale set.Shuts down the virtual machine and releases the compute resources.
-
#begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to delete a virtual machine scale set.
-
#begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to delete a virtual machine scale set.
-
#begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to delete a virtual machine scale set.
-
#begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to power off (stop) a virtual machine in a VM scale set.
-
#begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to power off (stop) a virtual machine in a VM scale set.
-
#begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to power off (stop) a virtual machine in a VM scale set.
-
#begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to re-image(update the version of the installed operating system) a virtual machine scale set instance.
-
#begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to re-image(update the version of the installed operating system) a virtual machine scale set instance.
-
#begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to re-image(update the version of the installed operating system) a virtual machine scale set instance.
-
#begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to restart a virtual machine in a VM scale set.
-
#begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to restart a virtual machine in a VM scale set.
-
#begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to restart a virtual machine in a VM scale set.
-
#begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to start a virtual machine in a VM scale set.
-
#begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to start a virtual machine in a VM scale set.
-
#begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to start a virtual machine in a VM scale set.
-
#deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to deallocate a virtual machine virtual machine scale set.Shuts down the virtual machine and releases the compute resources.
-
#delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to delete a virtual machine scale set.
-
#get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ VirtualMachineScaleSetVM
Displays information about a virtual machine scale set virtual machine.
-
#get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Displays information about a virtual machine scale set virtual machine.
-
#get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ VirtualMachineScaleSetVMInstanceView
Displays the status of a virtual machine scale set virtual machine.
-
#get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Displays the status of a virtual machine scale set virtual machine.
-
#get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Displays the status of a virtual machine scale set virtual machine.
-
#get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Displays information about a virtual machine scale set virtual machine.
-
#initialize(client) ⇒ VirtualMachineScaleSetVMs
constructor
Creates and initializes a new instance of the VirtualMachineScaleSetVMs class.
-
#list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) ⇒ VirtualMachineScaleSetVMListResult
Lists all virtual machines in a VM scale sets.
-
#list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) ⇒ Concurrent::Promise
Lists all virtual machines in a VM scale sets.
-
#list_next(next_page_link, custom_headers = nil) ⇒ VirtualMachineScaleSetVMListResult
Lists all virtual machines in a VM scale sets.
-
#list_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
Lists all virtual machines in a VM scale sets.
-
#list_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all virtual machines in a VM scale sets.
-
#list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all virtual machines in a VM scale sets.
-
#power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to power off (stop) a virtual machine in a VM scale set.
-
#reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to re-image(update the version of the installed operating system) a virtual machine scale set instance.
-
#restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to restart a virtual machine in a VM scale set.
-
#start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to start a virtual machine in a VM scale set.
Constructor Details
#initialize(client) ⇒ VirtualMachineScaleSetVMs
Creates and initializes a new instance of the VirtualMachineScaleSetVMs class.
18 19 20 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 18 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns reference to the ComputeManagementClient.
23 24 25 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 23 def client @client end |
Instance Method Details
#begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to deallocate a virtual machine virtual machine scale set.Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
will be added to the HTTP request.
178 179 180 181 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 178 def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! nil end |
#begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to deallocate a virtual machine virtual machine scale set.Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
to the HTTP request.
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 213 def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to deallocate a virtual machine virtual machine scale set.Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
will be added to the HTTP request.
196 197 198 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 196 def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! end |
#begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to delete a virtual machine scale set.
will be added to the HTTP request.
292 293 294 295 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 292 def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! nil end |
#begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to delete a virtual machine scale set.
to the HTTP request.
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 323 def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 || status_code == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to delete a virtual machine scale set.
will be added to the HTTP request.
308 309 310 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 308 def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! end |
#begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to power off (stop) a virtual machine in a VM scale set.
will be added to the HTTP request.
704 705 706 707 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 704 def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! nil end |
#begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to power off (stop) a virtual machine in a VM scale set.
to the HTTP request.
735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 735 def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to power off (stop) a virtual machine in a VM scale set.
will be added to the HTTP request.
720 721 722 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 720 def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! end |
#begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to re-image(update the version of the installed operating system) a virtual machine scale set instance.
will be added to the HTTP request.
62 63 64 65 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 62 def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! nil end |
#begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to re-image(update the version of the installed operating system) a virtual machine scale set instance.
to the HTTP request.
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 95 def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to re-image(update the version of the installed operating system) a virtual machine scale set instance.
will be added to the HTTP request.
79 80 81 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 79 def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! end |
#begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to restart a virtual machine in a VM scale set.
will be added to the HTTP request.
814 815 816 817 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 814 def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! nil end |
#begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to restart a virtual machine in a VM scale set.
to the HTTP request.
845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 845 def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to restart a virtual machine in a VM scale set.
will be added to the HTTP request.
830 831 832 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 830 def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! end |
#begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Object
Allows you to start a virtual machine in a VM scale set.
will be added to the HTTP request.
924 925 926 927 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 924 def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! nil end |
#begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to start a virtual machine in a VM scale set.
to the HTTP request.
955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 955 def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result end promise.execute end |
#begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Allows you to start a virtual machine in a VM scale set.
will be added to the HTTP request.
940 941 942 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 940 def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! end |
#deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to deallocate a virtual machine virtual machine scale set.Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.
response.
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 150 def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) # Send request promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to delete a virtual machine scale set.
response.
266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 266 def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) # Send request promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ VirtualMachineScaleSetVM
Displays information about a virtual machine scale set virtual machine.
will be added to the HTTP request.
378 379 380 381 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 378 def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Displays information about a virtual machine scale set virtual machine.
to the HTTP request.
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 409 def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) unless parsed_response.nil? parsed_response = VirtualMachineScaleSetVM.deserialize_object(parsed_response) end result.body = parsed_response rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ VirtualMachineScaleSetVMInstanceView
Displays the status of a virtual machine scale set virtual machine.
will be added to the HTTP request.
476 477 478 479 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 476 def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! response.body unless response.nil? end |
#get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Displays the status of a virtual machine scale set virtual machine.
to the HTTP request.
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 507 def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil? fail ArgumentError, 'instance_id is nil' if instance_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) unless parsed_response.nil? parsed_response = VirtualMachineScaleSetVMInstanceView.deserialize_object(parsed_response) end result.body = parsed_response rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Displays the status of a virtual machine scale set virtual machine.
will be added to the HTTP request.
492 493 494 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 492 def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! end |
#get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Displays information about a virtual machine scale set virtual machine.
will be added to the HTTP request.
394 395 396 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 394 def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value! end |
#list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) ⇒ VirtualMachineScaleSetVMListResult
Lists all virtual machines in a VM scale sets.
machine scale set. will be added to the HTTP request.
577 578 579 580 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 577 def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, = nil, custom_headers = nil) response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, , custom_headers).value! response.body unless response.nil? end |
#list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) ⇒ Concurrent::Promise
Lists all virtual machines in a VM scale sets.
machine scale set. to the HTTP request.
614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 614 def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'$select' => select,'$expand' => ,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) unless parsed_response.nil? parsed_response = VirtualMachineScaleSetVMListResult.deserialize_object(parsed_response) end result.body = parsed_response rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_next(next_page_link, custom_headers = nil) ⇒ VirtualMachineScaleSetVMListResult
Lists all virtual machines in a VM scale sets.
call to List operation. will be added to the HTTP request.
1009 1010 1011 1012 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 1009 def list_next(next_page_link, custom_headers = nil) response = list_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end |
#list_next_async(next_page_link, custom_headers = nil) ⇒ Concurrent::Promise
Lists all virtual machines in a VM scale sets.
call to List operation. to the HTTP request.
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 1038 def list_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}) } request_url = @base_url || @client.base_url request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, ) promise = request.run_promise do |req| @client.credentials.sign_request(req) unless @client.credentials.nil? end promise = promise.then do |http_response| status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.new(request, http_response, error_model) end # Create Result result = MsRestAzure::AzureOperationResponse.new(request, http_response) result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) unless parsed_response.nil? parsed_response = VirtualMachineScaleSetVMListResult.deserialize_object(parsed_response) end result.body = parsed_response rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_next_with_http_info(next_page_link, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all virtual machines in a VM scale sets.
call to List operation. will be added to the HTTP request.
1024 1025 1026 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 1024 def list_next_with_http_info(next_page_link, custom_headers = nil) list_next_async(next_page_link, custom_headers).value! end |
#list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil) ⇒ MsRestAzure::AzureOperationResponse
Lists all virtual machines in a VM scale sets.
machine scale set. will be added to the HTTP request.
596 597 598 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 596 def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, = nil, custom_headers = nil) list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, , custom_headers).value! end |
#power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to power off (stop) a virtual machine in a VM scale set.
response.
678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 678 def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) # Send request promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to re-image(update the version of the installed operating system) a virtual machine scale set instance.
response.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 35 def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) # Send request promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to restart a virtual machine in a VM scale set.
response.
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 788 def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) # Send request promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) ⇒ Concurrent::Promise
Allows you to start a virtual machine in a VM scale set.
response.
898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 |
# File 'lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb', line 898 def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil) # Send request promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |