azure_mgmt_compute 0.18.2 → 0.18.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_compute/models/boot_diagnostics.rb +3 -4
  4. data/lib/2015-06-15/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +2 -0
  5. data/lib/2015-06-15/generated/azure_mgmt_compute/models/diagnostics_profile.rb +1 -2
  6. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +3 -4
  7. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +3 -4
  8. data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  9. data/lib/2016-03-30/generated/azure_mgmt_compute/models/boot_diagnostics.rb +3 -4
  10. data/lib/2016-03-30/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +2 -0
  11. data/lib/2016-03-30/generated/azure_mgmt_compute/models/diagnostics_profile.rb +1 -2
  12. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +3 -4
  13. data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +3 -4
  14. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  15. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics.rb +3 -4
  16. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +2 -0
  17. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/diagnostics_profile.rb +1 -2
  18. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/image_disk_reference.rb +1 -1
  19. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +3 -4
  20. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +3 -4
  21. data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  22. data/lib/2017-03-30/generated/azure_mgmt_compute/models/boot_diagnostics.rb +3 -4
  23. data/lib/2017-03-30/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +2 -0
  24. data/lib/2017-03-30/generated/azure_mgmt_compute/models/diagnostics_profile.rb +1 -2
  25. data/lib/2017-03-30/generated/azure_mgmt_compute/models/image_disk_reference.rb +1 -1
  26. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +3 -4
  27. data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +3 -4
  28. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb +209 -0
  29. data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  30. data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
  31. data/lib/2017-12-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +3 -4
  32. data/lib/2017-12-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +2 -0
  33. data/lib/2017-12-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +1 -2
  34. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +3 -4
  35. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +3 -4
  36. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +209 -0
  37. data/lib/2018-04-01/generated/azure_mgmt_compute.rb +1 -1
  38. data/lib/2018-04-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -5
  39. data/lib/2018-04-01/generated/azure_mgmt_compute/disks.rb +2 -2
  40. data/lib/2018-04-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +3 -4
  41. data/lib/2018-04-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +17 -0
  42. data/lib/2018-04-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +1 -2
  43. data/lib/2018-04-01/generated/azure_mgmt_compute/models/image_disk_reference.rb +1 -1
  44. data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +3 -4
  45. data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +3 -4
  46. data/lib/2018-04-01/generated/azure_mgmt_compute/snapshots.rb +2 -2
  47. data/lib/2018-04-01/generated/azure_mgmt_compute/virtual_machines.rb +209 -0
  48. data/lib/2018-06-01/generated/azure_mgmt_compute.rb +43 -40
  49. data/lib/2018-06-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -5
  50. data/lib/2018-06-01/generated/azure_mgmt_compute/disks.rb +2 -2
  51. data/lib/2018-06-01/generated/azure_mgmt_compute/galleries.rb +49 -34
  52. data/lib/2018-06-01/generated/azure_mgmt_compute/gallery_image_versions.rb +127 -93
  53. data/lib/2018-06-01/generated/azure_mgmt_compute/gallery_images.rb +84 -44
  54. data/lib/2018-06-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +6 -6
  55. data/lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set.rb +4 -1
  56. data/lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
  57. data/lib/2018-06-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +3 -4
  58. data/lib/2018-06-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +17 -0
  59. data/lib/2018-06-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +1 -2
  60. data/lib/2018-06-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
  61. data/lib/2018-06-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +49 -0
  62. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery.rb +4 -3
  63. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +2 -2
  64. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_artifact_source.rb +1 -1
  65. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb +4 -3
  66. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb +2 -1
  67. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_identifier.rb +2 -1
  68. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb +17 -14
  69. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_identifier.rb +4 -4
  70. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_list.rb +4 -3
  71. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version.rb +2 -2
  72. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_list.rb +4 -4
  73. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +10 -6
  74. data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb +1 -1
  75. data/lib/2018-06-01/generated/azure_mgmt_compute/models/image_data_disk.rb +3 -3
  76. data/lib/2018-06-01/generated/azure_mgmt_compute/models/image_disk_reference.rb +1 -1
  77. data/lib/2018-06-01/generated/azure_mgmt_compute/models/image_osdisk.rb +3 -3
  78. data/lib/2018-06-01/generated/azure_mgmt_compute/models/image_purchase_plan.rb +2 -2
  79. data/lib/2018-06-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +3 -3
  80. data/lib/2018-06-01/generated/azure_mgmt_compute/models/osdisk.rb +13 -0
  81. data/lib/2018-06-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +2 -1
  82. data/lib/2018-06-01/generated/azure_mgmt_compute/models/regional_replication_status.rb +2 -2
  83. data/lib/2018-06-01/generated/azure_mgmt_compute/models/replication_status.rb +3 -3
  84. data/lib/2018-06-01/generated/azure_mgmt_compute/models/target_region.rb +3 -3
  85. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -3
  86. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +3 -4
  87. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +3 -3
  88. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +13 -0
  89. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +3 -4
  90. data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +1 -3
  91. data/lib/2018-06-01/generated/azure_mgmt_compute/snapshots.rb +2 -2
  92. data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machines.rb +209 -0
  93. data/lib/azure_mgmt_compute.rb +1 -0
  94. data/lib/profiles/latest/modules/compute_profile_module.rb +140 -128
  95. data/lib/profiles/v2018_03_01/compute_module_definition.rb +8 -0
  96. data/lib/profiles/v2018_03_01/compute_v2018_03_01_profile_client.rb +40 -0
  97. data/lib/profiles/v2018_03_01/modules/compute_profile_module.rb +767 -0
  98. data/lib/version.rb +1 -1
  99. metadata +8 -2
@@ -126,7 +126,7 @@ module Azure::Compute::Mgmt::V2017_09_01
126
126
  #
127
127
  def add_telemetry
128
128
  sdk_information = 'azure_mgmt_compute'
129
- sdk_information = "#{sdk_information}/0.18.2"
129
+ sdk_information = "#{sdk_information}/0.18.3"
130
130
  add_user_agent_information(sdk_information)
131
131
  end
132
132
  end
@@ -184,7 +184,7 @@ module Azure::Compute::Mgmt::V2017_12_01
184
184
  #
185
185
  def add_telemetry
186
186
  sdk_information = 'azure_mgmt_compute'
187
- sdk_information = "#{sdk_information}/0.18.2"
187
+ sdk_information = "#{sdk_information}/0.18.3"
188
188
  add_user_agent_information(sdk_information)
189
189
  end
190
190
  end
@@ -7,10 +7,9 @@ module Azure::Compute::Mgmt::V2017_12_01
7
7
  module Models
8
8
  #
9
9
  # Boot Diagnostics is a debugging feature which allows you to view Console
10
- # Output and Screenshot to diagnose VM status. <br><br> For Linux Virtual
11
- # Machines, you can easily view the output of your console log. <br><br>
12
- # For both Windows and Linux virtual machines, Azure also enables you to
13
- # see a screenshot of the VM from the hypervisor.
10
+ # Output and Screenshot to diagnose VM status. <br><br> You can easily view
11
+ # the output of your console log. <br><br> Azure also enables you to see a
12
+ # screenshot of the VM from the hypervisor.
14
13
  #
15
14
  class BootDiagnostics
16
15
 
@@ -35,6 +35,7 @@ module Azure::Compute::Mgmt::V2017_12_01
35
35
  console_screenshot_blob_uri: {
36
36
  client_side_validation: true,
37
37
  required: false,
38
+ read_only: true,
38
39
  serialized_name: 'consoleScreenshotBlobUri',
39
40
  type: {
40
41
  name: 'String'
@@ -43,6 +44,7 @@ module Azure::Compute::Mgmt::V2017_12_01
43
44
  serial_console_log_blob_uri: {
44
45
  client_side_validation: true,
45
46
  required: false,
47
+ read_only: true,
46
48
  serialized_name: 'serialConsoleLogBlobUri',
47
49
  type: {
48
50
  name: 'String'
@@ -15,8 +15,7 @@ module Azure::Compute::Mgmt::V2017_12_01
15
15
 
16
16
  # @return [BootDiagnostics] Boot Diagnostics is a debugging feature which
17
17
  # allows you to view Console Output and Screenshot to diagnose VM status.
18
- # <br><br> For Linux Virtual Machines, you can easily view the output of
19
- # your console log. <br><br> For both Windows and Linux virtual machines,
18
+ # <br><br> You can easily view the output of your console log. <br><br>
20
19
  # Azure also enables you to see a screenshot of the VM from the
21
20
  # hypervisor.
22
21
  attr_accessor :boot_diagnostics
@@ -48,10 +48,9 @@ module Azure::Compute::Mgmt::V2017_12_01
48
48
 
49
49
  # @return [BootDiagnosticsInstanceView] Boot Diagnostics is a debugging
50
50
  # feature which allows you to view Console Output and Screenshot to
51
- # diagnose VM status. <br><br> For Linux Virtual Machines, you can easily
52
- # view the output of your console log. <br><br> For both Windows and
53
- # Linux virtual machines, Azure also enables you to see a screenshot of
54
- # the VM from the hypervisor.
51
+ # diagnose VM status. <br><br> You can easily view the output of your
52
+ # console log. <br><br> Azure also enables you to see a screenshot of the
53
+ # VM from the hypervisor.
55
54
  attr_accessor :boot_diagnostics
56
55
 
57
56
  # @return [Array<InstanceViewStatus>] The resource status information.
@@ -41,10 +41,9 @@ module Azure::Compute::Mgmt::V2017_12_01
41
41
 
42
42
  # @return [BootDiagnosticsInstanceView] Boot Diagnostics is a debugging
43
43
  # feature which allows you to view Console Output and Screenshot to
44
- # diagnose VM status. <br><br> For Linux Virtual Machines, you can easily
45
- # view the output of your console log. <br><br> For both Windows and
46
- # Linux virtual machines, Azure also enables you to see a screenshot of
47
- # the VM from the hypervisor.
44
+ # diagnose VM status. <br><br> You can easily view the output of your
45
+ # console log. <br><br> Azure also enables you to see a screenshot of the
46
+ # VM from the hypervisor.
48
47
  attr_accessor :boot_diagnostics
49
48
 
50
49
  # @return [Array<InstanceViewStatus>] The resource status information.
@@ -119,6 +119,101 @@ module Azure::Compute::Mgmt::V2017_12_01
119
119
  promise.execute
120
120
  end
121
121
 
122
+ #
123
+ # Gets all the virtual machines under the specified subscription for the
124
+ # specified location.
125
+ #
126
+ # @param location [String] The location for which virtual machines under the
127
+ # subscription are queried.
128
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
+ # will be added to the HTTP request.
130
+ #
131
+ # @return [Array<VirtualMachine>] operation results.
132
+ #
133
+ def list_by_location(location, custom_headers:nil)
134
+ first_page = list_by_location_as_lazy(location, custom_headers:custom_headers)
135
+ first_page.get_all_items
136
+ end
137
+
138
+ #
139
+ # Gets all the virtual machines under the specified subscription for the
140
+ # specified location.
141
+ #
142
+ # @param location [String] The location for which virtual machines under the
143
+ # subscription are queried.
144
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
145
+ # will be added to the HTTP request.
146
+ #
147
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
+ #
149
+ def list_by_location_with_http_info(location, custom_headers:nil)
150
+ list_by_location_async(location, custom_headers:custom_headers).value!
151
+ end
152
+
153
+ #
154
+ # Gets all the virtual machines under the specified subscription for the
155
+ # specified location.
156
+ #
157
+ # @param location [String] The location for which virtual machines under the
158
+ # subscription are queried.
159
+ # @param [Hash{String => String}] A hash of custom headers that will be added
160
+ # to the HTTP request.
161
+ #
162
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
163
+ #
164
+ def list_by_location_async(location, custom_headers:nil)
165
+ fail ArgumentError, 'location is nil' if location.nil?
166
+ fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil?
167
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
168
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
169
+
170
+
171
+ request_headers = {}
172
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
173
+
174
+ # Set Headers
175
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
176
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
177
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines'
178
+
179
+ request_url = @base_url || @client.base_url
180
+
181
+ options = {
182
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
183
+ path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
184
+ query_params: {'api-version' => @client.api_version},
185
+ headers: request_headers.merge(custom_headers || {}),
186
+ base_url: request_url
187
+ }
188
+ promise = @client.make_request_async(:get, path_template, options)
189
+
190
+ promise = promise.then do |result|
191
+ http_response = result.response
192
+ status_code = http_response.status
193
+ response_content = http_response.body
194
+ unless status_code == 200
195
+ error_model = JSON.load(response_content)
196
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
197
+ end
198
+
199
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
200
+ # Deserialize Response
201
+ if status_code == 200
202
+ begin
203
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
204
+ result_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineListResult.mapper()
205
+ result.body = @client.deserialize(result_mapper, parsed_response)
206
+ rescue Exception => e
207
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
208
+ end
209
+ end
210
+
211
+ result
212
+ end
213
+
214
+ promise.execute
215
+ end
216
+
122
217
  #
123
218
  # Captures the VM by copying virtual hard disks of the VM and outputs a
124
219
  # template that can be used to create similar VMs.
@@ -2397,6 +2492,97 @@ module Azure::Compute::Mgmt::V2017_12_01
2397
2492
  promise.execute
2398
2493
  end
2399
2494
 
2495
+ #
2496
+ # Gets all the virtual machines under the specified subscription for the
2497
+ # specified location.
2498
+ #
2499
+ # @param next_page_link [String] The NextLink from the previous successful call
2500
+ # to List operation.
2501
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2502
+ # will be added to the HTTP request.
2503
+ #
2504
+ # @return [VirtualMachineListResult] operation results.
2505
+ #
2506
+ def list_by_location_next(next_page_link, custom_headers:nil)
2507
+ response = list_by_location_next_async(next_page_link, custom_headers:custom_headers).value!
2508
+ response.body unless response.nil?
2509
+ end
2510
+
2511
+ #
2512
+ # Gets all the virtual machines under the specified subscription for the
2513
+ # specified location.
2514
+ #
2515
+ # @param next_page_link [String] The NextLink from the previous successful call
2516
+ # to List operation.
2517
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2518
+ # will be added to the HTTP request.
2519
+ #
2520
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2521
+ #
2522
+ def list_by_location_next_with_http_info(next_page_link, custom_headers:nil)
2523
+ list_by_location_next_async(next_page_link, custom_headers:custom_headers).value!
2524
+ end
2525
+
2526
+ #
2527
+ # Gets all the virtual machines under the specified subscription for the
2528
+ # specified location.
2529
+ #
2530
+ # @param next_page_link [String] The NextLink from the previous successful call
2531
+ # to List operation.
2532
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2533
+ # to the HTTP request.
2534
+ #
2535
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2536
+ #
2537
+ def list_by_location_next_async(next_page_link, custom_headers:nil)
2538
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2539
+
2540
+
2541
+ request_headers = {}
2542
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2543
+
2544
+ # Set Headers
2545
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2546
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2547
+ path_template = '{nextLink}'
2548
+
2549
+ request_url = @base_url || @client.base_url
2550
+
2551
+ options = {
2552
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2553
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2554
+ headers: request_headers.merge(custom_headers || {}),
2555
+ base_url: request_url
2556
+ }
2557
+ promise = @client.make_request_async(:get, path_template, options)
2558
+
2559
+ promise = promise.then do |result|
2560
+ http_response = result.response
2561
+ status_code = http_response.status
2562
+ response_content = http_response.body
2563
+ unless status_code == 200
2564
+ error_model = JSON.load(response_content)
2565
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2566
+ end
2567
+
2568
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2569
+ # Deserialize Response
2570
+ if status_code == 200
2571
+ begin
2572
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2573
+ result_mapper = Azure::Compute::Mgmt::V2017_12_01::Models::VirtualMachineListResult.mapper()
2574
+ result.body = @client.deserialize(result_mapper, parsed_response)
2575
+ rescue Exception => e
2576
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2577
+ end
2578
+ end
2579
+
2580
+ result
2581
+ end
2582
+
2583
+ promise.execute
2584
+ end
2585
+
2400
2586
  #
2401
2587
  # Lists all of the virtual machines in the specified resource group. Use the
2402
2588
  # nextLink property in the response to get the next page of virtual machines.
@@ -2579,6 +2765,29 @@ module Azure::Compute::Mgmt::V2017_12_01
2579
2765
  promise.execute
2580
2766
  end
2581
2767
 
2768
+ #
2769
+ # Gets all the virtual machines under the specified subscription for the
2770
+ # specified location.
2771
+ #
2772
+ # @param location [String] The location for which virtual machines under the
2773
+ # subscription are queried.
2774
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2775
+ # will be added to the HTTP request.
2776
+ #
2777
+ # @return [VirtualMachineListResult] which provide lazy access to pages of the
2778
+ # response.
2779
+ #
2780
+ def list_by_location_as_lazy(location, custom_headers:nil)
2781
+ response = list_by_location_async(location, custom_headers:custom_headers).value!
2782
+ unless response.nil?
2783
+ page = response.body
2784
+ page.next_method = Proc.new do |next_page_link|
2785
+ list_by_location_next_async(next_page_link, custom_headers:custom_headers)
2786
+ end
2787
+ page
2788
+ end
2789
+ end
2790
+
2582
2791
  #
2583
2792
  # Lists all of the virtual machines in the specified resource group. Use the
2584
2793
  # nextLink property in the response to get the next page of virtual machines.
@@ -26,9 +26,9 @@ module Azure::Compute::Mgmt::V2018_04_01
26
26
  autoload :VirtualMachineExtensions, '2018-04-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb'
27
27
  autoload :VirtualMachineImages, '2018-04-01/generated/azure_mgmt_compute/virtual_machine_images.rb'
28
28
  autoload :UsageOperations, '2018-04-01/generated/azure_mgmt_compute/usage_operations.rb'
29
+ autoload :VirtualMachines, '2018-04-01/generated/azure_mgmt_compute/virtual_machines.rb'
29
30
  autoload :VirtualMachineSizes, '2018-04-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb'
30
31
  autoload :Images, '2018-04-01/generated/azure_mgmt_compute/images.rb'
31
- autoload :VirtualMachines, '2018-04-01/generated/azure_mgmt_compute/virtual_machines.rb'
32
32
  autoload :VirtualMachineScaleSets, '2018-04-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb'
33
33
  autoload :VirtualMachineScaleSetExtensions, '2018-04-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb'
34
34
  autoload :VirtualMachineScaleSetRollingUpgrades, '2018-04-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb'
@@ -55,15 +55,15 @@ module Azure::Compute::Mgmt::V2018_04_01
55
55
  # @return [UsageOperations] usage_operations
56
56
  attr_reader :usage_operations
57
57
 
58
+ # @return [VirtualMachines] virtual_machines
59
+ attr_reader :virtual_machines
60
+
58
61
  # @return [VirtualMachineSizes] virtual_machine_sizes
59
62
  attr_reader :virtual_machine_sizes
60
63
 
61
64
  # @return [Images] images
62
65
  attr_reader :images
63
66
 
64
- # @return [VirtualMachines] virtual_machines
65
- attr_reader :virtual_machines
66
-
67
67
  # @return [VirtualMachineScaleSets] virtual_machine_scale_sets
68
68
  attr_reader :virtual_machine_scale_sets
69
69
 
@@ -109,9 +109,9 @@ module Azure::Compute::Mgmt::V2018_04_01
109
109
  @virtual_machine_extensions = VirtualMachineExtensions.new(self)
110
110
  @virtual_machine_images = VirtualMachineImages.new(self)
111
111
  @usage_operations = UsageOperations.new(self)
112
+ @virtual_machines = VirtualMachines.new(self)
112
113
  @virtual_machine_sizes = VirtualMachineSizes.new(self)
113
114
  @images = Images.new(self)
114
- @virtual_machines = VirtualMachines.new(self)
115
115
  @virtual_machine_scale_sets = VirtualMachineScaleSets.new(self)
116
116
  @virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensions.new(self)
117
117
  @virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgrades.new(self)
@@ -192,7 +192,7 @@ module Azure::Compute::Mgmt::V2018_04_01
192
192
  #
193
193
  def add_telemetry
194
194
  sdk_information = 'azure_mgmt_compute'
195
- sdk_information = "#{sdk_information}/0.18.2"
195
+ sdk_information = "#{sdk_information}/0.18.3"
196
196
  add_user_agent_information(sdk_information)
197
197
  end
198
198
  end
@@ -477,7 +477,7 @@ module Azure::Compute::Mgmt::V2018_04_01
477
477
  end
478
478
 
479
479
  # Waiting for response.
480
- @client.get_long_running_operation_result(response, deserialize_method)
480
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
481
481
  end
482
482
 
483
483
  promise
@@ -519,7 +519,7 @@ module Azure::Compute::Mgmt::V2018_04_01
519
519
  end
520
520
 
521
521
  # Waiting for response.
522
- @client.get_long_running_operation_result(response, deserialize_method)
522
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
523
523
  end
524
524
 
525
525
  promise
@@ -7,10 +7,9 @@ module Azure::Compute::Mgmt::V2018_04_01
7
7
  module Models
8
8
  #
9
9
  # Boot Diagnostics is a debugging feature which allows you to view Console
10
- # Output and Screenshot to diagnose VM status. <br><br> For Linux Virtual
11
- # Machines, you can easily view the output of your console log. <br><br>
12
- # For both Windows and Linux virtual machines, Azure also enables you to
13
- # see a screenshot of the VM from the hypervisor.
10
+ # Output and Screenshot to diagnose VM status. <br><br> You can easily view
11
+ # the output of your console log. <br><br> Azure also enables you to see a
12
+ # screenshot of the VM from the hypervisor.
14
13
  #
15
14
  class BootDiagnostics
16
15
 
@@ -18,6 +18,11 @@ module Azure::Compute::Mgmt::V2018_04_01
18
18
  # @return [String] The Linux serial console log blob Uri.
19
19
  attr_accessor :serial_console_log_blob_uri
20
20
 
21
+ # @return [InstanceViewStatus] The boot diagnostics status information
22
+ # for the VM. <br><br> NOTE: It will be set only if there are errors
23
+ # encountered in enabling boot diagnostics.
24
+ attr_accessor :status
25
+
21
26
 
22
27
  #
23
28
  # Mapper for BootDiagnosticsInstanceView class as Ruby Hash.
@@ -35,6 +40,7 @@ module Azure::Compute::Mgmt::V2018_04_01
35
40
  console_screenshot_blob_uri: {
36
41
  client_side_validation: true,
37
42
  required: false,
43
+ read_only: true,
38
44
  serialized_name: 'consoleScreenshotBlobUri',
39
45
  type: {
40
46
  name: 'String'
@@ -43,10 +49,21 @@ module Azure::Compute::Mgmt::V2018_04_01
43
49
  serial_console_log_blob_uri: {
44
50
  client_side_validation: true,
45
51
  required: false,
52
+ read_only: true,
46
53
  serialized_name: 'serialConsoleLogBlobUri',
47
54
  type: {
48
55
  name: 'String'
49
56
  }
57
+ },
58
+ status: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'status',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'InstanceViewStatus'
66
+ }
50
67
  }
51
68
  }
52
69
  }
@@ -15,8 +15,7 @@ module Azure::Compute::Mgmt::V2018_04_01
15
15
 
16
16
  # @return [BootDiagnostics] Boot Diagnostics is a debugging feature which
17
17
  # allows you to view Console Output and Screenshot to diagnose VM status.
18
- # <br><br> For Linux Virtual Machines, you can easily view the output of
19
- # your console log. <br><br> For both Windows and Linux virtual machines,
18
+ # <br><br> You can easily view the output of your console log. <br><br>
20
19
  # Azure also enables you to see a screenshot of the VM from the
21
20
  # hypervisor.
22
21
  attr_accessor :boot_diagnostics