azure_mgmt_compute 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +1 -27
  3. data/azure_mgmt_compute.gemspec +1 -1
  4. data/lib/azure_mgmt_compute/availability_sets.rb +184 -141
  5. data/lib/azure_mgmt_compute/compute_management_client.rb +2 -2
  6. data/lib/azure_mgmt_compute/models/additional_unattend_content.rb +1 -1
  7. data/lib/azure_mgmt_compute/models/api_entity_reference.rb +2 -3
  8. data/lib/azure_mgmt_compute/models/api_error.rb +1 -1
  9. data/lib/azure_mgmt_compute/models/api_error_base.rb +1 -1
  10. data/lib/azure_mgmt_compute/models/availability_set.rb +1 -1
  11. data/lib/azure_mgmt_compute/models/availability_set_list_result.rb +1 -1
  12. data/lib/azure_mgmt_compute/models/availability_set_properties.rb +2 -2
  13. data/lib/azure_mgmt_compute/models/boot_diagnostics.rb +3 -3
  14. data/lib/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +1 -1
  15. data/lib/azure_mgmt_compute/models/caching_types.rb +1 -1
  16. data/lib/azure_mgmt_compute/models/component_names.rb +1 -1
  17. data/lib/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -1
  18. data/lib/azure_mgmt_compute/models/data_disk.rb +1 -1
  19. data/lib/azure_mgmt_compute/models/data_disk_image.rb +1 -1
  20. data/lib/azure_mgmt_compute/models/diagnostics_profile.rb +1 -1
  21. data/lib/azure_mgmt_compute/models/disk_create_option_types.rb +1 -1
  22. data/lib/azure_mgmt_compute/models/disk_encryption_settings.rb +11 -2
  23. data/lib/azure_mgmt_compute/models/disk_instance_view.rb +1 -1
  24. data/lib/azure_mgmt_compute/models/hardware_profile.rb +9 -6
  25. data/lib/azure_mgmt_compute/models/image_reference.rb +1 -1
  26. data/lib/azure_mgmt_compute/models/inner_error.rb +1 -1
  27. data/lib/azure_mgmt_compute/models/instance_view_status.rb +4 -4
  28. data/lib/azure_mgmt_compute/models/instance_view_types.rb +15 -0
  29. data/lib/azure_mgmt_compute/models/key_vault_key_reference.rb +1 -1
  30. data/lib/azure_mgmt_compute/models/key_vault_secret_reference.rb +1 -1
  31. data/lib/azure_mgmt_compute/models/linux_configuration.rb +1 -1
  32. data/lib/azure_mgmt_compute/models/list_usages_result.rb +1 -1
  33. data/lib/azure_mgmt_compute/models/network_interface_reference.rb +1 -1
  34. data/lib/azure_mgmt_compute/models/network_interface_reference_properties.rb +1 -1
  35. data/lib/azure_mgmt_compute/models/network_profile.rb +1 -1
  36. data/lib/azure_mgmt_compute/models/operating_system_types.rb +1 -1
  37. data/lib/azure_mgmt_compute/models/osdisk.rb +1 -1
  38. data/lib/azure_mgmt_compute/models/osdisk_image.rb +1 -1
  39. data/lib/azure_mgmt_compute/models/osprofile.rb +1 -1
  40. data/lib/azure_mgmt_compute/models/pass_names.rb +1 -1
  41. data/lib/azure_mgmt_compute/models/plan.rb +1 -1
  42. data/lib/azure_mgmt_compute/models/protocol_types.rb +1 -1
  43. data/lib/azure_mgmt_compute/models/purchase_plan.rb +1 -1
  44. data/lib/azure_mgmt_compute/models/setting_names.rb +1 -1
  45. data/lib/azure_mgmt_compute/models/sku.rb +1 -1
  46. data/lib/azure_mgmt_compute/models/ssh_configuration.rb +1 -1
  47. data/lib/azure_mgmt_compute/models/ssh_public_key.rb +1 -1
  48. data/lib/azure_mgmt_compute/models/status_level_types.rb +1 -1
  49. data/lib/azure_mgmt_compute/models/storage_profile.rb +1 -1
  50. data/lib/azure_mgmt_compute/models/upgrade_mode.rb +1 -1
  51. data/lib/azure_mgmt_compute/models/upgrade_policy.rb +1 -1
  52. data/lib/azure_mgmt_compute/models/usage.rb +1 -1
  53. data/lib/azure_mgmt_compute/models/usage_name.rb +1 -1
  54. data/lib/azure_mgmt_compute/models/vault_certificate.rb +1 -1
  55. data/lib/azure_mgmt_compute/models/vault_secret_group.rb +1 -1
  56. data/lib/azure_mgmt_compute/models/virtual_hard_disk.rb +1 -1
  57. data/lib/azure_mgmt_compute/models/virtual_machine.rb +1 -1
  58. data/lib/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +1 -1
  59. data/lib/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +1 -1
  60. data/lib/azure_mgmt_compute/models/virtual_machine_capture_result.rb +1 -1
  61. data/lib/azure_mgmt_compute/models/virtual_machine_capture_result_properties.rb +1 -1
  62. data/lib/azure_mgmt_compute/models/virtual_machine_extension.rb +1 -1
  63. data/lib/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +1 -1
  64. data/lib/azure_mgmt_compute/models/virtual_machine_extension_image.rb +20 -27
  65. data/lib/azure_mgmt_compute/models/virtual_machine_extension_image_properties.rb +1 -1
  66. data/lib/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +1 -1
  67. data/lib/azure_mgmt_compute/models/virtual_machine_extension_properties.rb +11 -11
  68. data/lib/azure_mgmt_compute/models/virtual_machine_image.rb +8 -21
  69. data/lib/azure_mgmt_compute/models/virtual_machine_image_properties.rb +1 -1
  70. data/lib/azure_mgmt_compute/models/virtual_machine_image_resource.rb +1 -1
  71. data/lib/azure_mgmt_compute/models/virtual_machine_instance_view.rb +1 -1
  72. data/lib/azure_mgmt_compute/models/virtual_machine_list_result.rb +1 -1
  73. data/lib/azure_mgmt_compute/models/virtual_machine_properties.rb +10 -1
  74. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
  75. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +1 -1
  76. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
  77. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_extension_properties.rb +1 -1
  78. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +1 -1
  79. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
  80. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +1 -1
  81. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration_properties.rb +43 -12
  82. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +1 -1
  83. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +1 -1
  84. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +1 -1
  85. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +1 -1
  86. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_properties.rb +1 -1
  87. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +1 -1
  88. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -1
  89. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +1 -1
  90. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_properties.rb +11 -1
  91. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +1 -1
  92. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +1 -1
  93. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +1 -1
  94. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +1 -1
  95. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
  96. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +1 -1
  97. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +1 -1
  98. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +1 -1
  99. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +1 -1
  100. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +1 -1
  101. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +1 -1
  102. data/lib/azure_mgmt_compute/models/virtual_machine_scale_set_vmproperties.rb +1 -1
  103. data/lib/azure_mgmt_compute/models/virtual_machine_size.rb +1 -1
  104. data/lib/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +1 -1
  105. data/lib/azure_mgmt_compute/models/virtual_machine_size_types.rb +12 -1
  106. data/lib/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +1 -1
  107. data/lib/azure_mgmt_compute/models/win_rmconfiguration.rb +1 -1
  108. data/lib/azure_mgmt_compute/models/win_rmlistener.rb +1 -1
  109. data/lib/azure_mgmt_compute/models/windows_configuration.rb +1 -1
  110. data/lib/azure_mgmt_compute/module_definition.rb +1 -1
  111. data/lib/azure_mgmt_compute/usage_operations.rb +71 -11
  112. data/lib/azure_mgmt_compute/version.rb +2 -2
  113. data/lib/azure_mgmt_compute/virtual_machine_extension_images.rb +123 -18
  114. data/lib/azure_mgmt_compute/virtual_machine_extensions.rb +132 -22
  115. data/lib/azure_mgmt_compute/virtual_machine_images.rb +197 -26
  116. data/lib/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +419 -79
  117. data/lib/azure_mgmt_compute/virtual_machine_scale_sets.rb +736 -147
  118. data/lib/azure_mgmt_compute/virtual_machine_sizes.rb +36 -64
  119. data/lib/azure_mgmt_compute/virtual_machines.rb +531 -200
  120. data/lib/azure_mgmt_compute.rb +3 -6
  121. metadata +26 -24
  122. data/lib/azure_mgmt_compute/models/compute_long_running_operation_result.rb +0 -123
  123. data/lib/azure_mgmt_compute/models/compute_operation_status.rb +0 -18
  124. data/lib/azure_mgmt_compute/models/delete_operation_result.rb +0 -110
  125. data/lib/azure_mgmt_compute/models/operation_status.rb +0 -17
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -23,7 +23,8 @@ module Azure::ARM::Compute
23
23
  attr_reader :client
24
24
 
25
25
  #
26
- # The operation to re-image a virtual machine scale set instance.
26
+ # Allows you to re-image(update the version of the installed operating system)
27
+ # a virtual machine scale set instance.
27
28
  #
28
29
  # @param resource_group_name [String] The name of the resource group.
29
30
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
@@ -33,7 +34,7 @@ module Azure::ARM::Compute
33
34
  #
34
35
  def reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
35
36
  # Send request
36
- promise = begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
37
+ promise = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
37
38
 
38
39
  promise = promise.then do |response|
39
40
  # Defining deserialization method.
@@ -41,25 +42,57 @@ module Azure::ARM::Compute
41
42
  end
42
43
 
43
44
  # Waiting for response.
44
- @client.get_post_or_delete_operation_result(response, deserialize_method)
45
+ @client.get_long_running_operation_result(response, deserialize_method)
45
46
  end
46
47
 
47
48
  promise
48
49
  end
49
50
 
50
51
  #
51
- # The operation to re-image a virtual machine scale set instance.
52
+ # Allows you to re-image(update the version of the installed operating system)
53
+ # a virtual machine scale set instance.
52
54
  #
53
55
  # @param resource_group_name [String] The name of the resource group.
54
56
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
55
57
  # @param instance_id [String] The instance id of the virtual machine.
56
- # @param [Hash{String => String}] The hash of custom headers need to be
57
- # applied to HTTP request.
58
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
59
+ # will be added to the HTTP request.
58
60
  #
59
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
60
- # response.
61
61
  #
62
62
  def begin_reimage(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
63
+ response = begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
64
+ nil
65
+ end
66
+
67
+ #
68
+ # Allows you to re-image(update the version of the installed operating system)
69
+ # a virtual machine scale set instance.
70
+ #
71
+ # @param resource_group_name [String] The name of the resource group.
72
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
73
+ # @param instance_id [String] The instance id of the virtual machine.
74
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
75
+ # will be added to the HTTP request.
76
+ #
77
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
78
+ #
79
+ def begin_reimage_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
80
+ begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
81
+ end
82
+
83
+ #
84
+ # Allows you to re-image(update the version of the installed operating system)
85
+ # a virtual machine scale set instance.
86
+ #
87
+ # @param resource_group_name [String] The name of the resource group.
88
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
89
+ # @param instance_id [String] The instance id of the virtual machine.
90
+ # @param [Hash{String => String}] A hash of custom headers that will be added
91
+ # to the HTTP request.
92
+ #
93
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
94
+ #
95
+ def begin_reimage_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
63
96
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
64
97
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
65
98
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -77,7 +110,10 @@ module Azure::ARM::Compute
77
110
  query_params: {'api-version' => @client.api_version},
78
111
  headers: request_headers.merge(custom_headers || {})
79
112
  }
80
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
113
+
114
+ request_url = @base_url || @client.base_url
115
+
116
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
81
117
  promise = request.run_promise do |req|
82
118
  @client.credentials.sign_request(req) unless @client.credentials.nil?
83
119
  end
@@ -101,7 +137,9 @@ module Azure::ARM::Compute
101
137
  end
102
138
 
103
139
  #
104
- # The operation to deallocate a virtual machine scale set.
140
+ # Allows you to deallocate a virtual machine virtual machine scale set.Shuts
141
+ # down the virtual machine and releases the compute resources. You are not
142
+ # billed for the compute resources that this virtual machine uses.
105
143
  #
106
144
  # @param resource_group_name [String] The name of the resource group.
107
145
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
@@ -111,7 +149,7 @@ module Azure::ARM::Compute
111
149
  #
112
150
  def deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
113
151
  # Send request
114
- promise = begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
152
+ promise = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
115
153
 
116
154
  promise = promise.then do |response|
117
155
  # Defining deserialization method.
@@ -119,25 +157,60 @@ module Azure::ARM::Compute
119
157
  end
120
158
 
121
159
  # Waiting for response.
122
- @client.get_post_or_delete_operation_result(response, deserialize_method)
160
+ @client.get_long_running_operation_result(response, deserialize_method)
123
161
  end
124
162
 
125
163
  promise
126
164
  end
127
165
 
128
166
  #
129
- # The operation to deallocate a virtual machine scale set.
167
+ # Allows you to deallocate a virtual machine virtual machine scale set.Shuts
168
+ # down the virtual machine and releases the compute resources. You are not
169
+ # billed for the compute resources that this virtual machine uses.
130
170
  #
131
171
  # @param resource_group_name [String] The name of the resource group.
132
172
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
133
173
  # @param instance_id [String] The instance id of the virtual machine.
134
- # @param [Hash{String => String}] The hash of custom headers need to be
135
- # applied to HTTP request.
174
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
175
+ # will be added to the HTTP request.
136
176
  #
137
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
138
- # response.
139
177
  #
140
178
  def begin_deallocate(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
179
+ response = begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
180
+ nil
181
+ end
182
+
183
+ #
184
+ # Allows you to deallocate a virtual machine virtual machine scale set.Shuts
185
+ # down the virtual machine and releases the compute resources. You are not
186
+ # billed for the compute resources that this virtual machine uses.
187
+ #
188
+ # @param resource_group_name [String] The name of the resource group.
189
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
190
+ # @param instance_id [String] The instance id of the virtual machine.
191
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
192
+ # will be added to the HTTP request.
193
+ #
194
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
195
+ #
196
+ def begin_deallocate_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
197
+ begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
198
+ end
199
+
200
+ #
201
+ # Allows you to deallocate a virtual machine virtual machine scale set.Shuts
202
+ # down the virtual machine and releases the compute resources. You are not
203
+ # billed for the compute resources that this virtual machine uses.
204
+ #
205
+ # @param resource_group_name [String] The name of the resource group.
206
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
207
+ # @param instance_id [String] The instance id of the virtual machine.
208
+ # @param [Hash{String => String}] A hash of custom headers that will be added
209
+ # to the HTTP request.
210
+ #
211
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
212
+ #
213
+ def begin_deallocate_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
141
214
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
142
215
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
143
216
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -155,7 +228,10 @@ module Azure::ARM::Compute
155
228
  query_params: {'api-version' => @client.api_version},
156
229
  headers: request_headers.merge(custom_headers || {})
157
230
  }
158
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
231
+
232
+ request_url = @base_url || @client.base_url
233
+
234
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
159
235
  promise = request.run_promise do |req|
160
236
  @client.credentials.sign_request(req) unless @client.credentials.nil?
161
237
  end
@@ -179,7 +255,7 @@ module Azure::ARM::Compute
179
255
  end
180
256
 
181
257
  #
182
- # The operation to delete a virtual machine scale set.
258
+ # Allows you to delete a virtual machine scale set.
183
259
  #
184
260
  # @param resource_group_name [String] The name of the resource group.
185
261
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
@@ -189,7 +265,7 @@ module Azure::ARM::Compute
189
265
  #
190
266
  def delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
191
267
  # Send request
192
- promise = begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
268
+ promise = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
193
269
 
194
270
  promise = promise.then do |response|
195
271
  # Defining deserialization method.
@@ -197,25 +273,54 @@ module Azure::ARM::Compute
197
273
  end
198
274
 
199
275
  # Waiting for response.
200
- @client.get_post_or_delete_operation_result(response, deserialize_method)
276
+ @client.get_long_running_operation_result(response, deserialize_method)
201
277
  end
202
278
 
203
279
  promise
204
280
  end
205
281
 
206
282
  #
207
- # The operation to delete a virtual machine scale set.
283
+ # Allows you to delete a virtual machine scale set.
208
284
  #
209
285
  # @param resource_group_name [String] The name of the resource group.
210
286
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
211
287
  # @param instance_id [String] The instance id of the virtual machine.
212
- # @param [Hash{String => String}] The hash of custom headers need to be
213
- # applied to HTTP request.
288
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
289
+ # will be added to the HTTP request.
214
290
  #
215
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
216
- # response.
217
291
  #
218
292
  def begin_delete(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
293
+ response = begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
294
+ nil
295
+ end
296
+
297
+ #
298
+ # Allows you to delete a virtual machine scale set.
299
+ #
300
+ # @param resource_group_name [String] The name of the resource group.
301
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
302
+ # @param instance_id [String] The instance id of the virtual machine.
303
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
304
+ # will be added to the HTTP request.
305
+ #
306
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
307
+ #
308
+ def begin_delete_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
309
+ begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
310
+ end
311
+
312
+ #
313
+ # Allows you to delete a virtual machine scale set.
314
+ #
315
+ # @param resource_group_name [String] The name of the resource group.
316
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
317
+ # @param instance_id [String] The instance id of the virtual machine.
318
+ # @param [Hash{String => String}] A hash of custom headers that will be added
319
+ # to the HTTP request.
320
+ #
321
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
322
+ #
323
+ def begin_delete_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
219
324
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
220
325
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
221
326
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -233,7 +338,10 @@ module Azure::ARM::Compute
233
338
  query_params: {'api-version' => @client.api_version},
234
339
  headers: request_headers.merge(custom_headers || {})
235
340
  }
236
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :delete, options)
341
+
342
+ request_url = @base_url || @client.base_url
343
+
344
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
237
345
  promise = request.run_promise do |req|
238
346
  @client.credentials.sign_request(req) unless @client.credentials.nil?
239
347
  end
@@ -257,18 +365,48 @@ module Azure::ARM::Compute
257
365
  end
258
366
 
259
367
  #
260
- # The operation to get a virtual machine scale set virtual machine.
368
+ # Displays information about a virtual machine scale set virtual machine.
261
369
  #
262
370
  # @param resource_group_name [String] The name of the resource group.
263
371
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
264
372
  # @param instance_id [String] The instance id of the virtual machine.
265
- # @param [Hash{String => String}] The hash of custom headers need to be
266
- # applied to HTTP request.
373
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
374
+ # will be added to the HTTP request.
267
375
  #
268
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
269
- # response.
376
+ # @return [VirtualMachineScaleSetVM] operation results.
270
377
  #
271
378
  def get(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
379
+ response = get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
380
+ response.body unless response.nil?
381
+ end
382
+
383
+ #
384
+ # Displays information about a virtual machine scale set virtual machine.
385
+ #
386
+ # @param resource_group_name [String] The name of the resource group.
387
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
388
+ # @param instance_id [String] The instance id of the virtual machine.
389
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
390
+ # will be added to the HTTP request.
391
+ #
392
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
393
+ #
394
+ def get_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
395
+ get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
396
+ end
397
+
398
+ #
399
+ # Displays information about a virtual machine scale set virtual machine.
400
+ #
401
+ # @param resource_group_name [String] The name of the resource group.
402
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
403
+ # @param instance_id [String] The instance id of the virtual machine.
404
+ # @param [Hash{String => String}] A hash of custom headers that will be added
405
+ # to the HTTP request.
406
+ #
407
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
408
+ #
409
+ def get_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
272
410
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
273
411
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
274
412
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -286,7 +424,10 @@ module Azure::ARM::Compute
286
424
  query_params: {'api-version' => @client.api_version},
287
425
  headers: request_headers.merge(custom_headers || {})
288
426
  }
289
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
427
+
428
+ request_url = @base_url || @client.base_url
429
+
430
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
290
431
  promise = request.run_promise do |req|
291
432
  @client.credentials.sign_request(req) unless @client.credentials.nil?
292
433
  end
@@ -322,18 +463,48 @@ module Azure::ARM::Compute
322
463
  end
323
464
 
324
465
  #
325
- # The operation to get a virtual machine scale set virtual machine.
466
+ # Displays the status of a virtual machine scale set virtual machine.
326
467
  #
327
468
  # @param resource_group_name [String] The name of the resource group.
328
469
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
329
470
  # @param instance_id [String] The instance id of the virtual machine.
330
- # @param [Hash{String => String}] The hash of custom headers need to be
331
- # applied to HTTP request.
471
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
472
+ # will be added to the HTTP request.
332
473
  #
333
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
334
- # response.
474
+ # @return [VirtualMachineScaleSetVMInstanceView] operation results.
335
475
  #
336
476
  def get_instance_view(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
477
+ response = get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
478
+ response.body unless response.nil?
479
+ end
480
+
481
+ #
482
+ # Displays the status of a virtual machine scale set virtual machine.
483
+ #
484
+ # @param resource_group_name [String] The name of the resource group.
485
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
486
+ # @param instance_id [String] The instance id of the virtual machine.
487
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
488
+ # will be added to the HTTP request.
489
+ #
490
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
491
+ #
492
+ def get_instance_view_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
493
+ get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
494
+ end
495
+
496
+ #
497
+ # Displays the status of a virtual machine scale set virtual machine.
498
+ #
499
+ # @param resource_group_name [String] The name of the resource group.
500
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
501
+ # @param instance_id [String] The instance id of the virtual machine.
502
+ # @param [Hash{String => String}] A hash of custom headers that will be added
503
+ # to the HTTP request.
504
+ #
505
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
506
+ #
507
+ def get_instance_view_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
337
508
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
338
509
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
339
510
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -351,7 +522,10 @@ module Azure::ARM::Compute
351
522
  query_params: {'api-version' => @client.api_version},
352
523
  headers: request_headers.merge(custom_headers || {})
353
524
  }
354
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
525
+
526
+ request_url = @base_url || @client.base_url
527
+
528
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
355
529
  promise = request.run_promise do |req|
356
530
  @client.credentials.sign_request(req) unless @client.credentials.nil?
357
531
  end
@@ -387,7 +561,7 @@ module Azure::ARM::Compute
387
561
  end
388
562
 
389
563
  #
390
- # The operation to list virtual machine scale sets VMs.
564
+ # Lists all virtual machines in a VM scale sets.
391
565
  #
392
566
  # @param resource_group_name [String] The name of the resource group.
393
567
  # @param virtual_machine_scale_set_name [String] The name of the virtual
@@ -395,13 +569,49 @@ module Azure::ARM::Compute
395
569
  # @param filter [String] The filter to apply on the operation.
396
570
  # @param select [String] The list parameters.
397
571
  # @param expand [String] The expand expression to apply on the operation.
398
- # @param [Hash{String => String}] The hash of custom headers need to be
399
- # applied to HTTP request.
572
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
573
+ # will be added to the HTTP request.
400
574
  #
401
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
402
- # response.
575
+ # @return [VirtualMachineScaleSetVMListResult] operation results.
403
576
  #
404
577
  def list(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
578
+ response = list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
579
+ response.body unless response.nil?
580
+ end
581
+
582
+ #
583
+ # Lists all virtual machines in a VM scale sets.
584
+ #
585
+ # @param resource_group_name [String] The name of the resource group.
586
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
587
+ # machine scale set.
588
+ # @param filter [String] The filter to apply on the operation.
589
+ # @param select [String] The list parameters.
590
+ # @param expand [String] The expand expression to apply on the operation.
591
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
592
+ # will be added to the HTTP request.
593
+ #
594
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
595
+ #
596
+ def list_with_http_info(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
597
+ list_async(resource_group_name, virtual_machine_scale_set_name, filter, select, expand, custom_headers).value!
598
+ end
599
+
600
+ #
601
+ # Lists all virtual machines in a VM scale sets.
602
+ #
603
+ # @param resource_group_name [String] The name of the resource group.
604
+ # @param virtual_machine_scale_set_name [String] The name of the virtual
605
+ # machine scale set.
606
+ # @param filter [String] The filter to apply on the operation.
607
+ # @param select [String] The list parameters.
608
+ # @param expand [String] The expand expression to apply on the operation.
609
+ # @param [Hash{String => String}] A hash of custom headers that will be added
610
+ # to the HTTP request.
611
+ #
612
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
613
+ #
614
+ def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
405
615
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
406
616
  fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
407
617
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -418,7 +628,10 @@ module Azure::ARM::Compute
418
628
  query_params: {'$filter' => filter,'$select' => select,'$expand' => expand,'api-version' => @client.api_version},
419
629
  headers: request_headers.merge(custom_headers || {})
420
630
  }
421
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
631
+
632
+ request_url = @base_url || @client.base_url
633
+
634
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
422
635
  promise = request.run_promise do |req|
423
636
  @client.credentials.sign_request(req) unless @client.credentials.nil?
424
637
  end
@@ -454,7 +667,7 @@ module Azure::ARM::Compute
454
667
  end
455
668
 
456
669
  #
457
- # The operation to power off (stop) a virtual machine scale set.
670
+ # Allows you to power off (stop) a virtual machine in a VM scale set.
458
671
  #
459
672
  # @param resource_group_name [String] The name of the resource group.
460
673
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
@@ -464,7 +677,7 @@ module Azure::ARM::Compute
464
677
  #
465
678
  def power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
466
679
  # Send request
467
- promise = begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
680
+ promise = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
468
681
 
469
682
  promise = promise.then do |response|
470
683
  # Defining deserialization method.
@@ -472,25 +685,54 @@ module Azure::ARM::Compute
472
685
  end
473
686
 
474
687
  # Waiting for response.
475
- @client.get_post_or_delete_operation_result(response, deserialize_method)
688
+ @client.get_long_running_operation_result(response, deserialize_method)
476
689
  end
477
690
 
478
691
  promise
479
692
  end
480
693
 
481
694
  #
482
- # The operation to power off (stop) a virtual machine scale set.
695
+ # Allows you to power off (stop) a virtual machine in a VM scale set.
483
696
  #
484
697
  # @param resource_group_name [String] The name of the resource group.
485
698
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
486
699
  # @param instance_id [String] The instance id of the virtual machine.
487
- # @param [Hash{String => String}] The hash of custom headers need to be
488
- # applied to HTTP request.
700
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
701
+ # will be added to the HTTP request.
489
702
  #
490
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
491
- # response.
492
703
  #
493
704
  def begin_power_off(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
705
+ response = begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
706
+ nil
707
+ end
708
+
709
+ #
710
+ # Allows you to power off (stop) a virtual machine in a VM scale set.
711
+ #
712
+ # @param resource_group_name [String] The name of the resource group.
713
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
714
+ # @param instance_id [String] The instance id of the virtual machine.
715
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
716
+ # will be added to the HTTP request.
717
+ #
718
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
719
+ #
720
+ def begin_power_off_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
721
+ begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
722
+ end
723
+
724
+ #
725
+ # Allows you to power off (stop) a virtual machine in a VM scale set.
726
+ #
727
+ # @param resource_group_name [String] The name of the resource group.
728
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
729
+ # @param instance_id [String] The instance id of the virtual machine.
730
+ # @param [Hash{String => String}] A hash of custom headers that will be added
731
+ # to the HTTP request.
732
+ #
733
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
734
+ #
735
+ def begin_power_off_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
494
736
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
495
737
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
496
738
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -508,7 +750,10 @@ module Azure::ARM::Compute
508
750
  query_params: {'api-version' => @client.api_version},
509
751
  headers: request_headers.merge(custom_headers || {})
510
752
  }
511
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
753
+
754
+ request_url = @base_url || @client.base_url
755
+
756
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
512
757
  promise = request.run_promise do |req|
513
758
  @client.credentials.sign_request(req) unless @client.credentials.nil?
514
759
  end
@@ -532,7 +777,7 @@ module Azure::ARM::Compute
532
777
  end
533
778
 
534
779
  #
535
- # The operation to restart a virtual machine scale set.
780
+ # Allows you to restart a virtual machine in a VM scale set.
536
781
  #
537
782
  # @param resource_group_name [String] The name of the resource group.
538
783
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
@@ -542,7 +787,7 @@ module Azure::ARM::Compute
542
787
  #
543
788
  def restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
544
789
  # Send request
545
- promise = begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
790
+ promise = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
546
791
 
547
792
  promise = promise.then do |response|
548
793
  # Defining deserialization method.
@@ -550,25 +795,54 @@ module Azure::ARM::Compute
550
795
  end
551
796
 
552
797
  # Waiting for response.
553
- @client.get_post_or_delete_operation_result(response, deserialize_method)
798
+ @client.get_long_running_operation_result(response, deserialize_method)
554
799
  end
555
800
 
556
801
  promise
557
802
  end
558
803
 
559
804
  #
560
- # The operation to restart a virtual machine scale set.
805
+ # Allows you to restart a virtual machine in a VM scale set.
561
806
  #
562
807
  # @param resource_group_name [String] The name of the resource group.
563
808
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
564
809
  # @param instance_id [String] The instance id of the virtual machine.
565
- # @param [Hash{String => String}] The hash of custom headers need to be
566
- # applied to HTTP request.
810
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
811
+ # will be added to the HTTP request.
567
812
  #
568
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
569
- # response.
570
813
  #
571
814
  def begin_restart(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
815
+ response = begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
816
+ nil
817
+ end
818
+
819
+ #
820
+ # Allows you to restart a virtual machine in a VM scale set.
821
+ #
822
+ # @param resource_group_name [String] The name of the resource group.
823
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
824
+ # @param instance_id [String] The instance id of the virtual machine.
825
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
826
+ # will be added to the HTTP request.
827
+ #
828
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
829
+ #
830
+ def begin_restart_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
831
+ begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
832
+ end
833
+
834
+ #
835
+ # Allows you to restart a virtual machine in a VM scale set.
836
+ #
837
+ # @param resource_group_name [String] The name of the resource group.
838
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
839
+ # @param instance_id [String] The instance id of the virtual machine.
840
+ # @param [Hash{String => String}] A hash of custom headers that will be added
841
+ # to the HTTP request.
842
+ #
843
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
844
+ #
845
+ def begin_restart_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
572
846
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
573
847
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
574
848
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -586,7 +860,10 @@ module Azure::ARM::Compute
586
860
  query_params: {'api-version' => @client.api_version},
587
861
  headers: request_headers.merge(custom_headers || {})
588
862
  }
589
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
863
+
864
+ request_url = @base_url || @client.base_url
865
+
866
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
590
867
  promise = request.run_promise do |req|
591
868
  @client.credentials.sign_request(req) unless @client.credentials.nil?
592
869
  end
@@ -610,7 +887,7 @@ module Azure::ARM::Compute
610
887
  end
611
888
 
612
889
  #
613
- # The operation to start a virtual machine scale set.
890
+ # Allows you to start a virtual machine in a VM scale set.
614
891
  #
615
892
  # @param resource_group_name [String] The name of the resource group.
616
893
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
@@ -620,7 +897,7 @@ module Azure::ARM::Compute
620
897
  #
621
898
  def start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
622
899
  # Send request
623
- promise = begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
900
+ promise = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers)
624
901
 
625
902
  promise = promise.then do |response|
626
903
  # Defining deserialization method.
@@ -628,25 +905,54 @@ module Azure::ARM::Compute
628
905
  end
629
906
 
630
907
  # Waiting for response.
631
- @client.get_post_or_delete_operation_result(response, deserialize_method)
908
+ @client.get_long_running_operation_result(response, deserialize_method)
632
909
  end
633
910
 
634
911
  promise
635
912
  end
636
913
 
637
914
  #
638
- # The operation to start a virtual machine scale set.
915
+ # Allows you to start a virtual machine in a VM scale set.
639
916
  #
640
917
  # @param resource_group_name [String] The name of the resource group.
641
918
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
642
919
  # @param instance_id [String] The instance id of the virtual machine.
643
- # @param [Hash{String => String}] The hash of custom headers need to be
644
- # applied to HTTP request.
920
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
921
+ # will be added to the HTTP request.
645
922
  #
646
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
647
- # response.
648
923
  #
649
924
  def begin_start(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
925
+ response = begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
926
+ nil
927
+ end
928
+
929
+ #
930
+ # Allows you to start a virtual machine in a VM scale set.
931
+ #
932
+ # @param resource_group_name [String] The name of the resource group.
933
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
934
+ # @param instance_id [String] The instance id of the virtual machine.
935
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
936
+ # will be added to the HTTP request.
937
+ #
938
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
939
+ #
940
+ def begin_start_with_http_info(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
941
+ begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers).value!
942
+ end
943
+
944
+ #
945
+ # Allows you to start a virtual machine in a VM scale set.
946
+ #
947
+ # @param resource_group_name [String] The name of the resource group.
948
+ # @param vm_scale_set_name [String] The name of the virtual machine scale set.
949
+ # @param instance_id [String] The instance id of the virtual machine.
950
+ # @param [Hash{String => String}] A hash of custom headers that will be added
951
+ # to the HTTP request.
952
+ #
953
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
954
+ #
955
+ def begin_start_async(resource_group_name, vm_scale_set_name, instance_id, custom_headers = nil)
650
956
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
651
957
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
652
958
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
@@ -664,7 +970,10 @@ module Azure::ARM::Compute
664
970
  query_params: {'api-version' => @client.api_version},
665
971
  headers: request_headers.merge(custom_headers || {})
666
972
  }
667
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :post, options)
973
+
974
+ request_url = @base_url || @client.base_url
975
+
976
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :post, options)
668
977
  promise = request.run_promise do |req|
669
978
  @client.credentials.sign_request(req) unless @client.credentials.nil?
670
979
  end
@@ -688,17 +997,45 @@ module Azure::ARM::Compute
688
997
  end
689
998
 
690
999
  #
691
- # The operation to list virtual machine scale sets VMs.
1000
+ # Lists all virtual machines in a VM scale sets.
692
1001
  #
693
1002
  # @param next_page_link [String] The NextLink from the previous successful
694
1003
  # call to List operation.
695
- # @param [Hash{String => String}] The hash of custom headers need to be
696
- # applied to HTTP request.
1004
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1005
+ # will be added to the HTTP request.
697
1006
  #
698
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
699
- # response.
1007
+ # @return [VirtualMachineScaleSetVMListResult] operation results.
700
1008
  #
701
1009
  def list_next(next_page_link, custom_headers = nil)
1010
+ response = list_next_async(next_page_link, custom_headers).value!
1011
+ response.body unless response.nil?
1012
+ end
1013
+
1014
+ #
1015
+ # Lists all virtual machines in a VM scale sets.
1016
+ #
1017
+ # @param next_page_link [String] The NextLink from the previous successful
1018
+ # call to List operation.
1019
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1020
+ # will be added to the HTTP request.
1021
+ #
1022
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1023
+ #
1024
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
1025
+ list_next_async(next_page_link, custom_headers).value!
1026
+ end
1027
+
1028
+ #
1029
+ # Lists all virtual machines in a VM scale sets.
1030
+ #
1031
+ # @param next_page_link [String] The NextLink from the previous successful
1032
+ # call to List operation.
1033
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1034
+ # to the HTTP request.
1035
+ #
1036
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1037
+ #
1038
+ def list_next_async(next_page_link, custom_headers = nil)
702
1039
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
703
1040
  request_headers = {}
704
1041
 
@@ -711,7 +1048,10 @@ module Azure::ARM::Compute
711
1048
  skip_encoding_path_params: {'nextLink' => next_page_link},
712
1049
  headers: request_headers.merge(custom_headers || {})
713
1050
  }
714
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
1051
+
1052
+ request_url = @base_url || @client.base_url
1053
+
1054
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
715
1055
  promise = request.run_promise do |req|
716
1056
  @client.credentials.sign_request(req) unless @client.credentials.nil?
717
1057
  end