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
 
@@ -30,13 +30,47 @@ module Azure::ARM::Compute
30
30
  # @param offer [String]
31
31
  # @param skus [String]
32
32
  # @param version [String]
33
- # @param [Hash{String => String}] The hash of custom headers need to be
34
- # applied to HTTP request.
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
35
  #
36
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
37
- # response.
36
+ # @return [VirtualMachineImage] operation results.
38
37
  #
39
38
  def get(location, publisher_name, offer, skus, version, custom_headers = nil)
39
+ response = get_async(location, publisher_name, offer, skus, version, custom_headers).value!
40
+ response.body unless response.nil?
41
+ end
42
+
43
+ #
44
+ # Gets a virtual machine image.
45
+ #
46
+ # @param location [String]
47
+ # @param publisher_name [String]
48
+ # @param offer [String]
49
+ # @param skus [String]
50
+ # @param version [String]
51
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
52
+ # will be added to the HTTP request.
53
+ #
54
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
55
+ #
56
+ def get_with_http_info(location, publisher_name, offer, skus, version, custom_headers = nil)
57
+ get_async(location, publisher_name, offer, skus, version, custom_headers).value!
58
+ end
59
+
60
+ #
61
+ # Gets a virtual machine image.
62
+ #
63
+ # @param location [String]
64
+ # @param publisher_name [String]
65
+ # @param offer [String]
66
+ # @param skus [String]
67
+ # @param version [String]
68
+ # @param [Hash{String => String}] A hash of custom headers that will be added
69
+ # to the HTTP request.
70
+ #
71
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
72
+ #
73
+ def get_async(location, publisher_name, offer, skus, version, custom_headers = nil)
40
74
  fail ArgumentError, 'location is nil' if location.nil?
41
75
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
42
76
  fail ArgumentError, 'offer is nil' if offer.nil?
@@ -56,7 +90,10 @@ module Azure::ARM::Compute
56
90
  query_params: {'api-version' => @client.api_version},
57
91
  headers: request_headers.merge(custom_headers || {})
58
92
  }
59
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
93
+
94
+ request_url = @base_url || @client.base_url
95
+
96
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
60
97
  promise = request.run_promise do |req|
61
98
  @client.credentials.sign_request(req) unless @client.credentials.nil?
62
99
  end
@@ -101,13 +138,51 @@ module Azure::ARM::Compute
101
138
  # @param filter [String] The filter to apply on the operation.
102
139
  # @param top [Integer]
103
140
  # @param orderby [String]
104
- # @param [Hash{String => String}] The hash of custom headers need to be
105
- # applied to HTTP request.
141
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
142
+ # will be added to the HTTP request.
106
143
  #
107
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
108
- # response.
144
+ # @return [Array] operation results.
109
145
  #
110
146
  def list(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil)
147
+ response = list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value!
148
+ response.body unless response.nil?
149
+ end
150
+
151
+ #
152
+ # Gets a list of virtual machine images.
153
+ #
154
+ # @param location [String]
155
+ # @param publisher_name [String]
156
+ # @param offer [String]
157
+ # @param skus [String]
158
+ # @param filter [String] The filter to apply on the operation.
159
+ # @param top [Integer]
160
+ # @param orderby [String]
161
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
162
+ # will be added to the HTTP request.
163
+ #
164
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
165
+ #
166
+ def list_with_http_info(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil)
167
+ list_async(location, publisher_name, offer, skus, filter, top, orderby, custom_headers).value!
168
+ end
169
+
170
+ #
171
+ # Gets a list of virtual machine images.
172
+ #
173
+ # @param location [String]
174
+ # @param publisher_name [String]
175
+ # @param offer [String]
176
+ # @param skus [String]
177
+ # @param filter [String] The filter to apply on the operation.
178
+ # @param top [Integer]
179
+ # @param orderby [String]
180
+ # @param [Hash{String => String}] A hash of custom headers that will be added
181
+ # to the HTTP request.
182
+ #
183
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
184
+ #
185
+ def list_async(location, publisher_name, offer, skus, filter = nil, top = nil, orderby = nil, custom_headers = nil)
111
186
  fail ArgumentError, 'location is nil' if location.nil?
112
187
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
113
188
  fail ArgumentError, 'offer is nil' if offer.nil?
@@ -126,7 +201,10 @@ module Azure::ARM::Compute
126
201
  query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
127
202
  headers: request_headers.merge(custom_headers || {})
128
203
  }
129
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
204
+
205
+ request_url = @base_url || @client.base_url
206
+
207
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
130
208
  promise = request.run_promise do |req|
131
209
  @client.credentials.sign_request(req) unless @client.credentials.nil?
132
210
  end
@@ -173,13 +251,41 @@ module Azure::ARM::Compute
173
251
  #
174
252
  # @param location [String]
175
253
  # @param publisher_name [String]
176
- # @param [Hash{String => String}] The hash of custom headers need to be
177
- # applied to HTTP request.
254
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
255
+ # will be added to the HTTP request.
178
256
  #
179
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
180
- # response.
257
+ # @return [Array] operation results.
181
258
  #
182
259
  def list_offers(location, publisher_name, custom_headers = nil)
260
+ response = list_offers_async(location, publisher_name, custom_headers).value!
261
+ response.body unless response.nil?
262
+ end
263
+
264
+ #
265
+ # Gets a list of virtual machine image offers.
266
+ #
267
+ # @param location [String]
268
+ # @param publisher_name [String]
269
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
270
+ # will be added to the HTTP request.
271
+ #
272
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
273
+ #
274
+ def list_offers_with_http_info(location, publisher_name, custom_headers = nil)
275
+ list_offers_async(location, publisher_name, custom_headers).value!
276
+ end
277
+
278
+ #
279
+ # Gets a list of virtual machine image offers.
280
+ #
281
+ # @param location [String]
282
+ # @param publisher_name [String]
283
+ # @param [Hash{String => String}] A hash of custom headers that will be added
284
+ # to the HTTP request.
285
+ #
286
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
287
+ #
288
+ def list_offers_async(location, publisher_name, custom_headers = nil)
183
289
  fail ArgumentError, 'location is nil' if location.nil?
184
290
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
185
291
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -196,7 +302,10 @@ module Azure::ARM::Compute
196
302
  query_params: {'api-version' => @client.api_version},
197
303
  headers: request_headers.merge(custom_headers || {})
198
304
  }
199
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
305
+
306
+ request_url = @base_url || @client.base_url
307
+
308
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
200
309
  promise = request.run_promise do |req|
201
310
  @client.credentials.sign_request(req) unless @client.credentials.nil?
202
311
  end
@@ -242,13 +351,39 @@ module Azure::ARM::Compute
242
351
  # Gets a list of virtual machine image publishers.
243
352
  #
244
353
  # @param location [String]
245
- # @param [Hash{String => String}] The hash of custom headers need to be
246
- # applied to HTTP request.
354
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
355
+ # will be added to the HTTP request.
247
356
  #
248
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
249
- # response.
357
+ # @return [Array] operation results.
250
358
  #
251
359
  def list_publishers(location, custom_headers = nil)
360
+ response = list_publishers_async(location, custom_headers).value!
361
+ response.body unless response.nil?
362
+ end
363
+
364
+ #
365
+ # Gets a list of virtual machine image publishers.
366
+ #
367
+ # @param location [String]
368
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
369
+ # will be added to the HTTP request.
370
+ #
371
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
372
+ #
373
+ def list_publishers_with_http_info(location, custom_headers = nil)
374
+ list_publishers_async(location, custom_headers).value!
375
+ end
376
+
377
+ #
378
+ # Gets a list of virtual machine image publishers.
379
+ #
380
+ # @param location [String]
381
+ # @param [Hash{String => String}] A hash of custom headers that will be added
382
+ # to the HTTP request.
383
+ #
384
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
385
+ #
386
+ def list_publishers_async(location, custom_headers = nil)
252
387
  fail ArgumentError, 'location is nil' if location.nil?
253
388
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
254
389
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -264,7 +399,10 @@ module Azure::ARM::Compute
264
399
  query_params: {'api-version' => @client.api_version},
265
400
  headers: request_headers.merge(custom_headers || {})
266
401
  }
267
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
402
+
403
+ request_url = @base_url || @client.base_url
404
+
405
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
268
406
  promise = request.run_promise do |req|
269
407
  @client.credentials.sign_request(req) unless @client.credentials.nil?
270
408
  end
@@ -312,13 +450,43 @@ module Azure::ARM::Compute
312
450
  # @param location [String]
313
451
  # @param publisher_name [String]
314
452
  # @param offer [String]
315
- # @param [Hash{String => String}] The hash of custom headers need to be
316
- # applied to HTTP request.
453
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
454
+ # will be added to the HTTP request.
317
455
  #
318
- # @return [Concurrent::Promise] Promise object which allows to get HTTP
319
- # response.
456
+ # @return [Array] operation results.
320
457
  #
321
458
  def list_skus(location, publisher_name, offer, custom_headers = nil)
459
+ response = list_skus_async(location, publisher_name, offer, custom_headers).value!
460
+ response.body unless response.nil?
461
+ end
462
+
463
+ #
464
+ # Gets a list of virtual machine image skus.
465
+ #
466
+ # @param location [String]
467
+ # @param publisher_name [String]
468
+ # @param offer [String]
469
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
470
+ # will be added to the HTTP request.
471
+ #
472
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
473
+ #
474
+ def list_skus_with_http_info(location, publisher_name, offer, custom_headers = nil)
475
+ list_skus_async(location, publisher_name, offer, custom_headers).value!
476
+ end
477
+
478
+ #
479
+ # Gets a list of virtual machine image skus.
480
+ #
481
+ # @param location [String]
482
+ # @param publisher_name [String]
483
+ # @param offer [String]
484
+ # @param [Hash{String => String}] A hash of custom headers that will be added
485
+ # to the HTTP request.
486
+ #
487
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
488
+ #
489
+ def list_skus_async(location, publisher_name, offer, custom_headers = nil)
322
490
  fail ArgumentError, 'location is nil' if location.nil?
323
491
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
324
492
  fail ArgumentError, 'offer is nil' if offer.nil?
@@ -336,7 +504,10 @@ module Azure::ARM::Compute
336
504
  query_params: {'api-version' => @client.api_version},
337
505
  headers: request_headers.merge(custom_headers || {})
338
506
  }
339
- request = MsRest::HttpOperationRequest.new(@base_url || @client.base_url, path_template, :get, options)
507
+
508
+ request_url = @base_url || @client.base_url
509
+
510
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
340
511
  promise = request.run_promise do |req|
341
512
  @client.credentials.sign_request(req) unless @client.credentials.nil?
342
513
  end