azure_mgmt_compute 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb +30 -27
- data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/list_usages_result.rb +13 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +13 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +13 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +13 -0
- data/lib/2015-06-15/generated/azure_mgmt_compute/usage_operations.rb +15 -13
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +87 -77
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +147 -144
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
- data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb +128 -117
- data/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb +30 -27
- data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb +15 -13
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +87 -77
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +147 -144
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
- data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +128 -117
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb +30 -27
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb +170 -138
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/images.rb +56 -51
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb +86 -82
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb +15 -13
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +97 -86
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +157 -153
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +138 -126
- data/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb +30 -27
- data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb +170 -138
- data/lib/2017-03-30/generated/azure_mgmt_compute/images.rb +56 -51
- data/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb +15 -13
- data/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb +170 -138
- data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +15 -13
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +21 -18
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +41 -38
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +26 -23
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +97 -86
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +167 -168
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
- data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb +164 -151
- data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
- data/lib/2017-09-01/generated/azure_mgmt_compute/resource_skus.rb +15 -13
- data/lib/2017-12-01/generated/azure_mgmt_compute.rb +77 -60
- data/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb +30 -27
- data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +12 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/images.rb +56 -51
- data/lib/2017-12-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +12 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb +35 -13
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +94 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +12 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_result.rb +92 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +34 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +12 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +12 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +12 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +13 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +69 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/usage_operations.rb +15 -13
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +41 -38
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +26 -23
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +270 -86
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +269 -168
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
- data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +306 -140
- data/lib/profiles/latest/compute_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/compute_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/compute_profile_module.rb +665 -606
- data/lib/profiles/v2017_03_09/compute_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/compute_v2017_03_09_profile_client.rb +28 -9
- data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +330 -311
- data/lib/version.rb +1 -1
- metadata +19 -2
@@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
33
33
|
#
|
34
34
|
# @return [AvailabilitySet] operation results.
|
35
35
|
#
|
36
|
-
def create_or_update(resource_group_name, availability_set_name, parameters, custom_headers
|
37
|
-
response = create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers).value!
|
36
|
+
def create_or_update(resource_group_name, availability_set_name, parameters, custom_headers:nil)
|
37
|
+
response = create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value!
|
38
38
|
response.body unless response.nil?
|
39
39
|
end
|
40
40
|
|
@@ -50,8 +50,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
50
50
|
#
|
51
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
52
|
#
|
53
|
-
def create_or_update_with_http_info(resource_group_name, availability_set_name, parameters, custom_headers
|
54
|
-
create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers).value!
|
53
|
+
def create_or_update_with_http_info(resource_group_name, availability_set_name, parameters, custom_headers:nil)
|
54
|
+
create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:custom_headers).value!
|
55
55
|
end
|
56
56
|
|
57
57
|
#
|
@@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
66
66
|
#
|
67
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
68
|
#
|
69
|
-
def create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers
|
69
|
+
def create_or_update_async(resource_group_name, availability_set_name, parameters, custom_headers:nil)
|
70
70
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
71
|
fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
|
72
72
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
@@ -75,13 +75,12 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
75
75
|
|
76
76
|
|
77
77
|
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
78
79
|
|
79
80
|
# Set Headers
|
80
81
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
81
82
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
82
83
|
|
83
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
84
|
-
|
85
84
|
# Serialize Request
|
86
85
|
request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::AvailabilitySet.mapper()
|
87
86
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -138,8 +137,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
138
137
|
#
|
139
138
|
# @return [OperationStatusResponse] operation results.
|
140
139
|
#
|
141
|
-
def delete(resource_group_name, availability_set_name, custom_headers
|
142
|
-
response = delete_async(resource_group_name, availability_set_name, custom_headers).value!
|
140
|
+
def delete(resource_group_name, availability_set_name, custom_headers:nil)
|
141
|
+
response = delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
|
143
142
|
response.body unless response.nil?
|
144
143
|
end
|
145
144
|
|
@@ -153,8 +152,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
153
152
|
#
|
154
153
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
155
154
|
#
|
156
|
-
def delete_with_http_info(resource_group_name, availability_set_name, custom_headers
|
157
|
-
delete_async(resource_group_name, availability_set_name, custom_headers).value!
|
155
|
+
def delete_with_http_info(resource_group_name, availability_set_name, custom_headers:nil)
|
156
|
+
delete_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
|
158
157
|
end
|
159
158
|
|
160
159
|
#
|
@@ -167,7 +166,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
167
166
|
#
|
168
167
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
169
168
|
#
|
170
|
-
def delete_async(resource_group_name, availability_set_name, custom_headers
|
169
|
+
def delete_async(resource_group_name, availability_set_name, custom_headers:nil)
|
171
170
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
172
171
|
fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
|
173
172
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -175,6 +174,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
175
174
|
|
176
175
|
|
177
176
|
request_headers = {}
|
177
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
178
178
|
|
179
179
|
# Set Headers
|
180
180
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -229,8 +229,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
229
229
|
#
|
230
230
|
# @return [AvailabilitySet] operation results.
|
231
231
|
#
|
232
|
-
def get(resource_group_name, availability_set_name, custom_headers
|
233
|
-
response = get_async(resource_group_name, availability_set_name, custom_headers).value!
|
232
|
+
def get(resource_group_name, availability_set_name, custom_headers:nil)
|
233
|
+
response = get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
|
234
234
|
response.body unless response.nil?
|
235
235
|
end
|
236
236
|
|
@@ -244,8 +244,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
244
244
|
#
|
245
245
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
246
246
|
#
|
247
|
-
def get_with_http_info(resource_group_name, availability_set_name, custom_headers
|
248
|
-
get_async(resource_group_name, availability_set_name, custom_headers).value!
|
247
|
+
def get_with_http_info(resource_group_name, availability_set_name, custom_headers:nil)
|
248
|
+
get_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
|
249
249
|
end
|
250
250
|
|
251
251
|
#
|
@@ -258,7 +258,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
258
258
|
#
|
259
259
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
260
260
|
#
|
261
|
-
def get_async(resource_group_name, availability_set_name, custom_headers
|
261
|
+
def get_async(resource_group_name, availability_set_name, custom_headers:nil)
|
262
262
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
263
263
|
fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
|
264
264
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -266,6 +266,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
266
266
|
|
267
267
|
|
268
268
|
request_headers = {}
|
269
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
269
270
|
|
270
271
|
# Set Headers
|
271
272
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -319,8 +320,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
319
320
|
#
|
320
321
|
# @return [AvailabilitySetListResult] operation results.
|
321
322
|
#
|
322
|
-
def list(resource_group_name, custom_headers
|
323
|
-
response = list_async(resource_group_name, custom_headers).value!
|
323
|
+
def list(resource_group_name, custom_headers:nil)
|
324
|
+
response = list_async(resource_group_name, custom_headers:custom_headers).value!
|
324
325
|
response.body unless response.nil?
|
325
326
|
end
|
326
327
|
|
@@ -333,8 +334,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
333
334
|
#
|
334
335
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
335
336
|
#
|
336
|
-
def list_with_http_info(resource_group_name, custom_headers
|
337
|
-
list_async(resource_group_name, custom_headers).value!
|
337
|
+
def list_with_http_info(resource_group_name, custom_headers:nil)
|
338
|
+
list_async(resource_group_name, custom_headers:custom_headers).value!
|
338
339
|
end
|
339
340
|
|
340
341
|
#
|
@@ -346,13 +347,14 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
346
347
|
#
|
347
348
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
348
349
|
#
|
349
|
-
def list_async(resource_group_name, custom_headers
|
350
|
+
def list_async(resource_group_name, custom_headers:nil)
|
350
351
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
351
352
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
352
353
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
353
354
|
|
354
355
|
|
355
356
|
request_headers = {}
|
357
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
356
358
|
|
357
359
|
# Set Headers
|
358
360
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -408,8 +410,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
408
410
|
#
|
409
411
|
# @return [VirtualMachineSizeListResult] operation results.
|
410
412
|
#
|
411
|
-
def list_available_sizes(resource_group_name, availability_set_name, custom_headers
|
412
|
-
response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value!
|
413
|
+
def list_available_sizes(resource_group_name, availability_set_name, custom_headers:nil)
|
414
|
+
response = list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
|
413
415
|
response.body unless response.nil?
|
414
416
|
end
|
415
417
|
|
@@ -424,8 +426,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
424
426
|
#
|
425
427
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
426
428
|
#
|
427
|
-
def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers
|
428
|
-
list_available_sizes_async(resource_group_name, availability_set_name, custom_headers).value!
|
429
|
+
def list_available_sizes_with_http_info(resource_group_name, availability_set_name, custom_headers:nil)
|
430
|
+
list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:custom_headers).value!
|
429
431
|
end
|
430
432
|
|
431
433
|
#
|
@@ -439,7 +441,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
439
441
|
#
|
440
442
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
441
443
|
#
|
442
|
-
def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers
|
444
|
+
def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers:nil)
|
443
445
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
444
446
|
fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
|
445
447
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
@@ -447,6 +449,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
447
449
|
|
448
450
|
|
449
451
|
request_headers = {}
|
452
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
450
453
|
|
451
454
|
# Set Headers
|
452
455
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -168,6 +168,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
168
168
|
fail ArgumentError, 'path is nil' if path.nil?
|
169
169
|
|
170
170
|
request_url = options[:base_url] || @base_url
|
171
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
172
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
173
|
+
end
|
171
174
|
|
172
175
|
request_headers = @request_headers
|
173
176
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -184,7 +187,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
184
187
|
#
|
185
188
|
def add_telemetry
|
186
189
|
sdk_information = 'azure_mgmt_compute'
|
187
|
-
sdk_information = "#{sdk_information}/0.
|
190
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
188
191
|
add_user_agent_information(sdk_information)
|
189
192
|
end
|
190
193
|
end
|
@@ -25,8 +25,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
25
25
|
# Creates or updates a disk.
|
26
26
|
#
|
27
27
|
# @param resource_group_name [String] The name of the resource group.
|
28
|
-
# @param disk_name [String] The name of the disk
|
29
|
-
#
|
28
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
29
|
+
# The name can't be changed after the disk is created. Supported characters for
|
30
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
30
31
|
# @param disk [Disk] Disk object supplied in the body of the Put disk
|
31
32
|
# operation.
|
32
33
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -34,15 +35,16 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
34
35
|
#
|
35
36
|
# @return [Disk] operation results.
|
36
37
|
#
|
37
|
-
def create_or_update(resource_group_name, disk_name, disk, custom_headers
|
38
|
-
response = create_or_update_async(resource_group_name, disk_name, disk, custom_headers).value!
|
38
|
+
def create_or_update(resource_group_name, disk_name, disk, custom_headers:nil)
|
39
|
+
response = create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value!
|
39
40
|
response.body unless response.nil?
|
40
41
|
end
|
41
42
|
|
42
43
|
#
|
43
44
|
# @param resource_group_name [String] The name of the resource group.
|
44
|
-
# @param disk_name [String] The name of the disk
|
45
|
-
#
|
45
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
46
|
+
# The name can't be changed after the disk is created. Supported characters for
|
47
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
46
48
|
# @param disk [Disk] Disk object supplied in the body of the Put disk
|
47
49
|
# operation.
|
48
50
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -51,9 +53,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
51
53
|
# @return [Concurrent::Promise] promise which provides async access to http
|
52
54
|
# response.
|
53
55
|
#
|
54
|
-
def create_or_update_async(resource_group_name, disk_name, disk, custom_headers
|
56
|
+
def create_or_update_async(resource_group_name, disk_name, disk, custom_headers:nil)
|
55
57
|
# Send request
|
56
|
-
promise = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers)
|
58
|
+
promise = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers)
|
57
59
|
|
58
60
|
promise = promise.then do |response|
|
59
61
|
# Defining deserialization method.
|
@@ -73,8 +75,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
73
75
|
# Updates (patches) a disk.
|
74
76
|
#
|
75
77
|
# @param resource_group_name [String] The name of the resource group.
|
76
|
-
# @param disk_name [String] The name of the disk
|
77
|
-
#
|
78
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
79
|
+
# The name can't be changed after the disk is created. Supported characters for
|
80
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
78
81
|
# @param disk [DiskUpdate] Disk object supplied in the body of the Patch disk
|
79
82
|
# operation.
|
80
83
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -82,15 +85,16 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
82
85
|
#
|
83
86
|
# @return [Disk] operation results.
|
84
87
|
#
|
85
|
-
def update(resource_group_name, disk_name, disk, custom_headers
|
86
|
-
response = update_async(resource_group_name, disk_name, disk, custom_headers).value!
|
88
|
+
def update(resource_group_name, disk_name, disk, custom_headers:nil)
|
89
|
+
response = update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value!
|
87
90
|
response.body unless response.nil?
|
88
91
|
end
|
89
92
|
|
90
93
|
#
|
91
94
|
# @param resource_group_name [String] The name of the resource group.
|
92
|
-
# @param disk_name [String] The name of the disk
|
93
|
-
#
|
95
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
96
|
+
# The name can't be changed after the disk is created. Supported characters for
|
97
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
94
98
|
# @param disk [DiskUpdate] Disk object supplied in the body of the Patch disk
|
95
99
|
# operation.
|
96
100
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -99,9 +103,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
99
103
|
# @return [Concurrent::Promise] promise which provides async access to http
|
100
104
|
# response.
|
101
105
|
#
|
102
|
-
def update_async(resource_group_name, disk_name, disk, custom_headers
|
106
|
+
def update_async(resource_group_name, disk_name, disk, custom_headers:nil)
|
103
107
|
# Send request
|
104
|
-
promise = begin_update_async(resource_group_name, disk_name, disk, custom_headers)
|
108
|
+
promise = begin_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers)
|
105
109
|
|
106
110
|
promise = promise.then do |response|
|
107
111
|
# Defining deserialization method.
|
@@ -121,15 +125,16 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
121
125
|
# Gets information about a disk.
|
122
126
|
#
|
123
127
|
# @param resource_group_name [String] The name of the resource group.
|
124
|
-
# @param disk_name [String] The name of the disk
|
125
|
-
#
|
128
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
129
|
+
# The name can't be changed after the disk is created. Supported characters for
|
130
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
126
131
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
127
132
|
# will be added to the HTTP request.
|
128
133
|
#
|
129
134
|
# @return [Disk] operation results.
|
130
135
|
#
|
131
|
-
def get(resource_group_name, disk_name, custom_headers
|
132
|
-
response = get_async(resource_group_name, disk_name, custom_headers).value!
|
136
|
+
def get(resource_group_name, disk_name, custom_headers:nil)
|
137
|
+
response = get_async(resource_group_name, disk_name, custom_headers:custom_headers).value!
|
133
138
|
response.body unless response.nil?
|
134
139
|
end
|
135
140
|
|
@@ -137,29 +142,31 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
137
142
|
# Gets information about a disk.
|
138
143
|
#
|
139
144
|
# @param resource_group_name [String] The name of the resource group.
|
140
|
-
# @param disk_name [String] The name of the disk
|
141
|
-
#
|
145
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
146
|
+
# The name can't be changed after the disk is created. Supported characters for
|
147
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
142
148
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
149
|
# will be added to the HTTP request.
|
144
150
|
#
|
145
151
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
146
152
|
#
|
147
|
-
def get_with_http_info(resource_group_name, disk_name, custom_headers
|
148
|
-
get_async(resource_group_name, disk_name, custom_headers).value!
|
153
|
+
def get_with_http_info(resource_group_name, disk_name, custom_headers:nil)
|
154
|
+
get_async(resource_group_name, disk_name, custom_headers:custom_headers).value!
|
149
155
|
end
|
150
156
|
|
151
157
|
#
|
152
158
|
# Gets information about a disk.
|
153
159
|
#
|
154
160
|
# @param resource_group_name [String] The name of the resource group.
|
155
|
-
# @param disk_name [String] The name of the disk
|
156
|
-
#
|
161
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
162
|
+
# The name can't be changed after the disk is created. Supported characters for
|
163
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
157
164
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
158
165
|
# to the HTTP request.
|
159
166
|
#
|
160
167
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
161
168
|
#
|
162
|
-
def get_async(resource_group_name, disk_name, custom_headers
|
169
|
+
def get_async(resource_group_name, disk_name, custom_headers:nil)
|
163
170
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
164
171
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
165
172
|
fail ArgumentError, 'disk_name is nil' if disk_name.nil?
|
@@ -167,6 +174,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
167
174
|
|
168
175
|
|
169
176
|
request_headers = {}
|
177
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
170
178
|
|
171
179
|
# Set Headers
|
172
180
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -215,31 +223,33 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
215
223
|
# Deletes a disk.
|
216
224
|
#
|
217
225
|
# @param resource_group_name [String] The name of the resource group.
|
218
|
-
# @param disk_name [String] The name of the disk
|
219
|
-
#
|
226
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
227
|
+
# The name can't be changed after the disk is created. Supported characters for
|
228
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
220
229
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
221
230
|
# will be added to the HTTP request.
|
222
231
|
#
|
223
232
|
# @return [OperationStatusResponse] operation results.
|
224
233
|
#
|
225
|
-
def delete(resource_group_name, disk_name, custom_headers
|
226
|
-
response = delete_async(resource_group_name, disk_name, custom_headers).value!
|
234
|
+
def delete(resource_group_name, disk_name, custom_headers:nil)
|
235
|
+
response = delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value!
|
227
236
|
response.body unless response.nil?
|
228
237
|
end
|
229
238
|
|
230
239
|
#
|
231
240
|
# @param resource_group_name [String] The name of the resource group.
|
232
|
-
# @param disk_name [String] The name of the disk
|
233
|
-
#
|
241
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
242
|
+
# The name can't be changed after the disk is created. Supported characters for
|
243
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
234
244
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
235
245
|
# will be added to the HTTP request.
|
236
246
|
#
|
237
247
|
# @return [Concurrent::Promise] promise which provides async access to http
|
238
248
|
# response.
|
239
249
|
#
|
240
|
-
def delete_async(resource_group_name, disk_name, custom_headers
|
250
|
+
def delete_async(resource_group_name, disk_name, custom_headers:nil)
|
241
251
|
# Send request
|
242
|
-
promise = begin_delete_async(resource_group_name, disk_name, custom_headers)
|
252
|
+
promise = begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers)
|
243
253
|
|
244
254
|
promise = promise.then do |response|
|
245
255
|
# Defining deserialization method.
|
@@ -264,8 +274,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
264
274
|
#
|
265
275
|
# @return [Array<Disk>] operation results.
|
266
276
|
#
|
267
|
-
def list_by_resource_group(resource_group_name, custom_headers
|
268
|
-
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
277
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
278
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
269
279
|
first_page.get_all_items
|
270
280
|
end
|
271
281
|
|
@@ -278,8 +288,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
278
288
|
#
|
279
289
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
280
290
|
#
|
281
|
-
def list_by_resource_group_with_http_info(resource_group_name, custom_headers
|
282
|
-
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
291
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
292
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
283
293
|
end
|
284
294
|
|
285
295
|
#
|
@@ -291,13 +301,14 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
291
301
|
#
|
292
302
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
293
303
|
#
|
294
|
-
def list_by_resource_group_async(resource_group_name, custom_headers
|
304
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
295
305
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
296
306
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
297
307
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
298
308
|
|
299
309
|
|
300
310
|
request_headers = {}
|
311
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
301
312
|
|
302
313
|
# Set Headers
|
303
314
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -350,8 +361,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
350
361
|
#
|
351
362
|
# @return [Array<Disk>] operation results.
|
352
363
|
#
|
353
|
-
def list(custom_headers
|
354
|
-
first_page = list_as_lazy(custom_headers)
|
364
|
+
def list(custom_headers:nil)
|
365
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
355
366
|
first_page.get_all_items
|
356
367
|
end
|
357
368
|
|
@@ -363,8 +374,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
363
374
|
#
|
364
375
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
365
376
|
#
|
366
|
-
def list_with_http_info(custom_headers
|
367
|
-
list_async(custom_headers).value!
|
377
|
+
def list_with_http_info(custom_headers:nil)
|
378
|
+
list_async(custom_headers:custom_headers).value!
|
368
379
|
end
|
369
380
|
|
370
381
|
#
|
@@ -375,12 +386,13 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
375
386
|
#
|
376
387
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
377
388
|
#
|
378
|
-
def list_async(custom_headers
|
389
|
+
def list_async(custom_headers:nil)
|
379
390
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
380
391
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
381
392
|
|
382
393
|
|
383
394
|
request_headers = {}
|
395
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
384
396
|
|
385
397
|
# Set Headers
|
386
398
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -429,8 +441,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
429
441
|
# Grants access to a disk.
|
430
442
|
#
|
431
443
|
# @param resource_group_name [String] The name of the resource group.
|
432
|
-
# @param disk_name [String] The name of the disk
|
433
|
-
#
|
444
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
445
|
+
# The name can't be changed after the disk is created. Supported characters for
|
446
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
434
447
|
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
435
448
|
# body of the get disk access operation.
|
436
449
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -438,15 +451,16 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
438
451
|
#
|
439
452
|
# @return [AccessUri] operation results.
|
440
453
|
#
|
441
|
-
def grant_access(resource_group_name, disk_name, grant_access_data, custom_headers
|
442
|
-
response = grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers).value!
|
454
|
+
def grant_access(resource_group_name, disk_name, grant_access_data, custom_headers:nil)
|
455
|
+
response = grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers).value!
|
443
456
|
response.body unless response.nil?
|
444
457
|
end
|
445
458
|
|
446
459
|
#
|
447
460
|
# @param resource_group_name [String] The name of the resource group.
|
448
|
-
# @param disk_name [String] The name of the disk
|
449
|
-
#
|
461
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
462
|
+
# The name can't be changed after the disk is created. Supported characters for
|
463
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
450
464
|
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
451
465
|
# body of the get disk access operation.
|
452
466
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -455,9 +469,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
455
469
|
# @return [Concurrent::Promise] promise which provides async access to http
|
456
470
|
# response.
|
457
471
|
#
|
458
|
-
def grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers
|
472
|
+
def grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:nil)
|
459
473
|
# Send request
|
460
|
-
promise = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers)
|
474
|
+
promise = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers)
|
461
475
|
|
462
476
|
promise = promise.then do |response|
|
463
477
|
# Defining deserialization method.
|
@@ -477,31 +491,33 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
477
491
|
# Revokes access to a disk.
|
478
492
|
#
|
479
493
|
# @param resource_group_name [String] The name of the resource group.
|
480
|
-
# @param disk_name [String] The name of the disk
|
481
|
-
#
|
494
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
495
|
+
# The name can't be changed after the disk is created. Supported characters for
|
496
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
482
497
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
483
498
|
# will be added to the HTTP request.
|
484
499
|
#
|
485
500
|
# @return [OperationStatusResponse] operation results.
|
486
501
|
#
|
487
|
-
def revoke_access(resource_group_name, disk_name, custom_headers
|
488
|
-
response = revoke_access_async(resource_group_name, disk_name, custom_headers).value!
|
502
|
+
def revoke_access(resource_group_name, disk_name, custom_headers:nil)
|
503
|
+
response = revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value!
|
489
504
|
response.body unless response.nil?
|
490
505
|
end
|
491
506
|
|
492
507
|
#
|
493
508
|
# @param resource_group_name [String] The name of the resource group.
|
494
|
-
# @param disk_name [String] The name of the disk
|
495
|
-
#
|
509
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
510
|
+
# The name can't be changed after the disk is created. Supported characters for
|
511
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
496
512
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
497
513
|
# will be added to the HTTP request.
|
498
514
|
#
|
499
515
|
# @return [Concurrent::Promise] promise which provides async access to http
|
500
516
|
# response.
|
501
517
|
#
|
502
|
-
def revoke_access_async(resource_group_name, disk_name, custom_headers
|
518
|
+
def revoke_access_async(resource_group_name, disk_name, custom_headers:nil)
|
503
519
|
# Send request
|
504
|
-
promise = begin_revoke_access_async(resource_group_name, disk_name, custom_headers)
|
520
|
+
promise = begin_revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers)
|
505
521
|
|
506
522
|
promise = promise.then do |response|
|
507
523
|
# Defining deserialization method.
|
@@ -521,8 +537,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
521
537
|
# Creates or updates a disk.
|
522
538
|
#
|
523
539
|
# @param resource_group_name [String] The name of the resource group.
|
524
|
-
# @param disk_name [String] The name of the disk
|
525
|
-
#
|
540
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
541
|
+
# The name can't be changed after the disk is created. Supported characters for
|
542
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
526
543
|
# @param disk [Disk] Disk object supplied in the body of the Put disk
|
527
544
|
# operation.
|
528
545
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -530,8 +547,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
530
547
|
#
|
531
548
|
# @return [Disk] operation results.
|
532
549
|
#
|
533
|
-
def begin_create_or_update(resource_group_name, disk_name, disk, custom_headers
|
534
|
-
response = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers).value!
|
550
|
+
def begin_create_or_update(resource_group_name, disk_name, disk, custom_headers:nil)
|
551
|
+
response = begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value!
|
535
552
|
response.body unless response.nil?
|
536
553
|
end
|
537
554
|
|
@@ -539,8 +556,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
539
556
|
# Creates or updates a disk.
|
540
557
|
#
|
541
558
|
# @param resource_group_name [String] The name of the resource group.
|
542
|
-
# @param disk_name [String] The name of the disk
|
543
|
-
#
|
559
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
560
|
+
# The name can't be changed after the disk is created. Supported characters for
|
561
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
544
562
|
# @param disk [Disk] Disk object supplied in the body of the Put disk
|
545
563
|
# operation.
|
546
564
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -548,16 +566,17 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
548
566
|
#
|
549
567
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
550
568
|
#
|
551
|
-
def begin_create_or_update_with_http_info(resource_group_name, disk_name, disk, custom_headers
|
552
|
-
begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers).value!
|
569
|
+
def begin_create_or_update_with_http_info(resource_group_name, disk_name, disk, custom_headers:nil)
|
570
|
+
begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value!
|
553
571
|
end
|
554
572
|
|
555
573
|
#
|
556
574
|
# Creates or updates a disk.
|
557
575
|
#
|
558
576
|
# @param resource_group_name [String] The name of the resource group.
|
559
|
-
# @param disk_name [String] The name of the disk
|
560
|
-
#
|
577
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
578
|
+
# The name can't be changed after the disk is created. Supported characters for
|
579
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
561
580
|
# @param disk [Disk] Disk object supplied in the body of the Put disk
|
562
581
|
# operation.
|
563
582
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -565,7 +584,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
565
584
|
#
|
566
585
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
567
586
|
#
|
568
|
-
def begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers
|
587
|
+
def begin_create_or_update_async(resource_group_name, disk_name, disk, custom_headers:nil)
|
569
588
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
570
589
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
571
590
|
fail ArgumentError, 'disk_name is nil' if disk_name.nil?
|
@@ -574,13 +593,12 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
574
593
|
|
575
594
|
|
576
595
|
request_headers = {}
|
596
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
577
597
|
|
578
598
|
# Set Headers
|
579
599
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
580
600
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
581
601
|
|
582
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
583
|
-
|
584
602
|
# Serialize Request
|
585
603
|
request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::Disk.mapper()
|
586
604
|
request_content = @client.serialize(request_mapper, disk)
|
@@ -641,8 +659,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
641
659
|
# Updates (patches) a disk.
|
642
660
|
#
|
643
661
|
# @param resource_group_name [String] The name of the resource group.
|
644
|
-
# @param disk_name [String] The name of the disk
|
645
|
-
#
|
662
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
663
|
+
# The name can't be changed after the disk is created. Supported characters for
|
664
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
646
665
|
# @param disk [DiskUpdate] Disk object supplied in the body of the Patch disk
|
647
666
|
# operation.
|
648
667
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -650,8 +669,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
650
669
|
#
|
651
670
|
# @return [Disk] operation results.
|
652
671
|
#
|
653
|
-
def begin_update(resource_group_name, disk_name, disk, custom_headers
|
654
|
-
response = begin_update_async(resource_group_name, disk_name, disk, custom_headers).value!
|
672
|
+
def begin_update(resource_group_name, disk_name, disk, custom_headers:nil)
|
673
|
+
response = begin_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value!
|
655
674
|
response.body unless response.nil?
|
656
675
|
end
|
657
676
|
|
@@ -659,8 +678,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
659
678
|
# Updates (patches) a disk.
|
660
679
|
#
|
661
680
|
# @param resource_group_name [String] The name of the resource group.
|
662
|
-
# @param disk_name [String] The name of the disk
|
663
|
-
#
|
681
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
682
|
+
# The name can't be changed after the disk is created. Supported characters for
|
683
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
664
684
|
# @param disk [DiskUpdate] Disk object supplied in the body of the Patch disk
|
665
685
|
# operation.
|
666
686
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -668,16 +688,17 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
668
688
|
#
|
669
689
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
670
690
|
#
|
671
|
-
def begin_update_with_http_info(resource_group_name, disk_name, disk, custom_headers
|
672
|
-
begin_update_async(resource_group_name, disk_name, disk, custom_headers).value!
|
691
|
+
def begin_update_with_http_info(resource_group_name, disk_name, disk, custom_headers:nil)
|
692
|
+
begin_update_async(resource_group_name, disk_name, disk, custom_headers:custom_headers).value!
|
673
693
|
end
|
674
694
|
|
675
695
|
#
|
676
696
|
# Updates (patches) a disk.
|
677
697
|
#
|
678
698
|
# @param resource_group_name [String] The name of the resource group.
|
679
|
-
# @param disk_name [String] The name of the disk
|
680
|
-
#
|
699
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
700
|
+
# The name can't be changed after the disk is created. Supported characters for
|
701
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
681
702
|
# @param disk [DiskUpdate] Disk object supplied in the body of the Patch disk
|
682
703
|
# operation.
|
683
704
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -685,7 +706,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
685
706
|
#
|
686
707
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
687
708
|
#
|
688
|
-
def begin_update_async(resource_group_name, disk_name, disk, custom_headers
|
709
|
+
def begin_update_async(resource_group_name, disk_name, disk, custom_headers:nil)
|
689
710
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
690
711
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
691
712
|
fail ArgumentError, 'disk_name is nil' if disk_name.nil?
|
@@ -694,13 +715,12 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
694
715
|
|
695
716
|
|
696
717
|
request_headers = {}
|
718
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
697
719
|
|
698
720
|
# Set Headers
|
699
721
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
700
722
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
701
723
|
|
702
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
703
|
-
|
704
724
|
# Serialize Request
|
705
725
|
request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::DiskUpdate.mapper()
|
706
726
|
request_content = @client.serialize(request_mapper, disk)
|
@@ -761,15 +781,16 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
761
781
|
# Deletes a disk.
|
762
782
|
#
|
763
783
|
# @param resource_group_name [String] The name of the resource group.
|
764
|
-
# @param disk_name [String] The name of the disk
|
765
|
-
#
|
784
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
785
|
+
# The name can't be changed after the disk is created. Supported characters for
|
786
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
766
787
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
767
788
|
# will be added to the HTTP request.
|
768
789
|
#
|
769
790
|
# @return [OperationStatusResponse] operation results.
|
770
791
|
#
|
771
|
-
def begin_delete(resource_group_name, disk_name, custom_headers
|
772
|
-
response = begin_delete_async(resource_group_name, disk_name, custom_headers).value!
|
792
|
+
def begin_delete(resource_group_name, disk_name, custom_headers:nil)
|
793
|
+
response = begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value!
|
773
794
|
response.body unless response.nil?
|
774
795
|
end
|
775
796
|
|
@@ -777,29 +798,31 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
777
798
|
# Deletes a disk.
|
778
799
|
#
|
779
800
|
# @param resource_group_name [String] The name of the resource group.
|
780
|
-
# @param disk_name [String] The name of the disk
|
781
|
-
#
|
801
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
802
|
+
# The name can't be changed after the disk is created. Supported characters for
|
803
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
782
804
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
783
805
|
# will be added to the HTTP request.
|
784
806
|
#
|
785
807
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
786
808
|
#
|
787
|
-
def begin_delete_with_http_info(resource_group_name, disk_name, custom_headers
|
788
|
-
begin_delete_async(resource_group_name, disk_name, custom_headers).value!
|
809
|
+
def begin_delete_with_http_info(resource_group_name, disk_name, custom_headers:nil)
|
810
|
+
begin_delete_async(resource_group_name, disk_name, custom_headers:custom_headers).value!
|
789
811
|
end
|
790
812
|
|
791
813
|
#
|
792
814
|
# Deletes a disk.
|
793
815
|
#
|
794
816
|
# @param resource_group_name [String] The name of the resource group.
|
795
|
-
# @param disk_name [String] The name of the disk
|
796
|
-
#
|
817
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
818
|
+
# The name can't be changed after the disk is created. Supported characters for
|
819
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
797
820
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
798
821
|
# to the HTTP request.
|
799
822
|
#
|
800
823
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
801
824
|
#
|
802
|
-
def begin_delete_async(resource_group_name, disk_name, custom_headers
|
825
|
+
def begin_delete_async(resource_group_name, disk_name, custom_headers:nil)
|
803
826
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
804
827
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
805
828
|
fail ArgumentError, 'disk_name is nil' if disk_name.nil?
|
@@ -807,6 +830,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
807
830
|
|
808
831
|
|
809
832
|
request_headers = {}
|
833
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
810
834
|
|
811
835
|
# Set Headers
|
812
836
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -855,8 +879,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
855
879
|
# Grants access to a disk.
|
856
880
|
#
|
857
881
|
# @param resource_group_name [String] The name of the resource group.
|
858
|
-
# @param disk_name [String] The name of the disk
|
859
|
-
#
|
882
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
883
|
+
# The name can't be changed after the disk is created. Supported characters for
|
884
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
860
885
|
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
861
886
|
# body of the get disk access operation.
|
862
887
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -864,8 +889,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
864
889
|
#
|
865
890
|
# @return [AccessUri] operation results.
|
866
891
|
#
|
867
|
-
def begin_grant_access(resource_group_name, disk_name, grant_access_data, custom_headers
|
868
|
-
response = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers).value!
|
892
|
+
def begin_grant_access(resource_group_name, disk_name, grant_access_data, custom_headers:nil)
|
893
|
+
response = begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers).value!
|
869
894
|
response.body unless response.nil?
|
870
895
|
end
|
871
896
|
|
@@ -873,8 +898,9 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
873
898
|
# Grants access to a disk.
|
874
899
|
#
|
875
900
|
# @param resource_group_name [String] The name of the resource group.
|
876
|
-
# @param disk_name [String] The name of the disk
|
877
|
-
#
|
901
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
902
|
+
# The name can't be changed after the disk is created. Supported characters for
|
903
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
878
904
|
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
879
905
|
# body of the get disk access operation.
|
880
906
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -882,16 +908,17 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
882
908
|
#
|
883
909
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
884
910
|
#
|
885
|
-
def begin_grant_access_with_http_info(resource_group_name, disk_name, grant_access_data, custom_headers
|
886
|
-
begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers).value!
|
911
|
+
def begin_grant_access_with_http_info(resource_group_name, disk_name, grant_access_data, custom_headers:nil)
|
912
|
+
begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:custom_headers).value!
|
887
913
|
end
|
888
914
|
|
889
915
|
#
|
890
916
|
# Grants access to a disk.
|
891
917
|
#
|
892
918
|
# @param resource_group_name [String] The name of the resource group.
|
893
|
-
# @param disk_name [String] The name of the disk
|
894
|
-
#
|
919
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
920
|
+
# The name can't be changed after the disk is created. Supported characters for
|
921
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
895
922
|
# @param grant_access_data [GrantAccessData] Access data object supplied in the
|
896
923
|
# body of the get disk access operation.
|
897
924
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -899,7 +926,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
899
926
|
#
|
900
927
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
901
928
|
#
|
902
|
-
def begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers
|
929
|
+
def begin_grant_access_async(resource_group_name, disk_name, grant_access_data, custom_headers:nil)
|
903
930
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
904
931
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
905
932
|
fail ArgumentError, 'disk_name is nil' if disk_name.nil?
|
@@ -908,13 +935,12 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
908
935
|
|
909
936
|
|
910
937
|
request_headers = {}
|
938
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
911
939
|
|
912
940
|
# Set Headers
|
913
941
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
914
942
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
915
943
|
|
916
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
917
|
-
|
918
944
|
# Serialize Request
|
919
945
|
request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::GrantAccessData.mapper()
|
920
946
|
request_content = @client.serialize(request_mapper, grant_access_data)
|
@@ -965,15 +991,16 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
965
991
|
# Revokes access to a disk.
|
966
992
|
#
|
967
993
|
# @param resource_group_name [String] The name of the resource group.
|
968
|
-
# @param disk_name [String] The name of the disk
|
969
|
-
#
|
994
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
995
|
+
# The name can't be changed after the disk is created. Supported characters for
|
996
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
970
997
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
971
998
|
# will be added to the HTTP request.
|
972
999
|
#
|
973
1000
|
# @return [OperationStatusResponse] operation results.
|
974
1001
|
#
|
975
|
-
def begin_revoke_access(resource_group_name, disk_name, custom_headers
|
976
|
-
response = begin_revoke_access_async(resource_group_name, disk_name, custom_headers).value!
|
1002
|
+
def begin_revoke_access(resource_group_name, disk_name, custom_headers:nil)
|
1003
|
+
response = begin_revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value!
|
977
1004
|
response.body unless response.nil?
|
978
1005
|
end
|
979
1006
|
|
@@ -981,29 +1008,31 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
981
1008
|
# Revokes access to a disk.
|
982
1009
|
#
|
983
1010
|
# @param resource_group_name [String] The name of the resource group.
|
984
|
-
# @param disk_name [String] The name of the disk
|
985
|
-
#
|
1011
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
1012
|
+
# The name can't be changed after the disk is created. Supported characters for
|
1013
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
986
1014
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
987
1015
|
# will be added to the HTTP request.
|
988
1016
|
#
|
989
1017
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
990
1018
|
#
|
991
|
-
def begin_revoke_access_with_http_info(resource_group_name, disk_name, custom_headers
|
992
|
-
begin_revoke_access_async(resource_group_name, disk_name, custom_headers).value!
|
1019
|
+
def begin_revoke_access_with_http_info(resource_group_name, disk_name, custom_headers:nil)
|
1020
|
+
begin_revoke_access_async(resource_group_name, disk_name, custom_headers:custom_headers).value!
|
993
1021
|
end
|
994
1022
|
|
995
1023
|
#
|
996
1024
|
# Revokes access to a disk.
|
997
1025
|
#
|
998
1026
|
# @param resource_group_name [String] The name of the resource group.
|
999
|
-
# @param disk_name [String] The name of the disk
|
1000
|
-
#
|
1027
|
+
# @param disk_name [String] The name of the managed disk that is being created.
|
1028
|
+
# The name can't be changed after the disk is created. Supported characters for
|
1029
|
+
# the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.
|
1001
1030
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1002
1031
|
# to the HTTP request.
|
1003
1032
|
#
|
1004
1033
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1005
1034
|
#
|
1006
|
-
def begin_revoke_access_async(resource_group_name, disk_name, custom_headers
|
1035
|
+
def begin_revoke_access_async(resource_group_name, disk_name, custom_headers:nil)
|
1007
1036
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1008
1037
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1009
1038
|
fail ArgumentError, 'disk_name is nil' if disk_name.nil?
|
@@ -1011,6 +1040,7 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
1011
1040
|
|
1012
1041
|
|
1013
1042
|
request_headers = {}
|
1043
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1014
1044
|
|
1015
1045
|
# Set Headers
|
1016
1046
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1065,8 +1095,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
1065
1095
|
#
|
1066
1096
|
# @return [DiskList] operation results.
|
1067
1097
|
#
|
1068
|
-
def list_by_resource_group_next(next_page_link, custom_headers
|
1069
|
-
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1098
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
1099
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1070
1100
|
response.body unless response.nil?
|
1071
1101
|
end
|
1072
1102
|
|
@@ -1080,8 +1110,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
1080
1110
|
#
|
1081
1111
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1082
1112
|
#
|
1083
|
-
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers
|
1084
|
-
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
1113
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
1114
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
1085
1115
|
end
|
1086
1116
|
|
1087
1117
|
#
|
@@ -1094,11 +1124,12 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
1094
1124
|
#
|
1095
1125
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1096
1126
|
#
|
1097
|
-
def list_by_resource_group_next_async(next_page_link, custom_headers
|
1127
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
1098
1128
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1099
1129
|
|
1100
1130
|
|
1101
1131
|
request_headers = {}
|
1132
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1102
1133
|
|
1103
1134
|
# Set Headers
|
1104
1135
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1152,8 +1183,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
1152
1183
|
#
|
1153
1184
|
# @return [DiskList] operation results.
|
1154
1185
|
#
|
1155
|
-
def list_next(next_page_link, custom_headers
|
1156
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
1186
|
+
def list_next(next_page_link, custom_headers:nil)
|
1187
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1157
1188
|
response.body unless response.nil?
|
1158
1189
|
end
|
1159
1190
|
|
@@ -1167,8 +1198,8 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
1167
1198
|
#
|
1168
1199
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1169
1200
|
#
|
1170
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
1171
|
-
list_next_async(next_page_link, custom_headers).value!
|
1201
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
1202
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
1172
1203
|
end
|
1173
1204
|
|
1174
1205
|
#
|
@@ -1181,11 +1212,12 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
1181
1212
|
#
|
1182
1213
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1183
1214
|
#
|
1184
|
-
def list_next_async(next_page_link, custom_headers
|
1215
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
1185
1216
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1186
1217
|
|
1187
1218
|
|
1188
1219
|
request_headers = {}
|
1220
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
1189
1221
|
|
1190
1222
|
# Set Headers
|
1191
1223
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -1238,12 +1270,12 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
1238
1270
|
#
|
1239
1271
|
# @return [DiskList] which provide lazy access to pages of the response.
|
1240
1272
|
#
|
1241
|
-
def list_by_resource_group_as_lazy(resource_group_name, custom_headers
|
1242
|
-
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
1273
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
1274
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
1243
1275
|
unless response.nil?
|
1244
1276
|
page = response.body
|
1245
1277
|
page.next_method = Proc.new do |next_page_link|
|
1246
|
-
list_by_resource_group_next_async(next_page_link, custom_headers)
|
1278
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
1247
1279
|
end
|
1248
1280
|
page
|
1249
1281
|
end
|
@@ -1257,12 +1289,12 @@ module Azure::Compute::Mgmt::V2017_03_30
|
|
1257
1289
|
#
|
1258
1290
|
# @return [DiskList] which provide lazy access to pages of the response.
|
1259
1291
|
#
|
1260
|
-
def list_as_lazy(custom_headers
|
1261
|
-
response = list_async(custom_headers).value!
|
1292
|
+
def list_as_lazy(custom_headers:nil)
|
1293
|
+
response = list_async(custom_headers:custom_headers).value!
|
1262
1294
|
unless response.nil?
|
1263
1295
|
page = response.body
|
1264
1296
|
page.next_method = Proc.new do |next_page_link|
|
1265
|
-
list_next_async(next_page_link, custom_headers)
|
1297
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1266
1298
|
end
|
1267
1299
|
page
|
1268
1300
|
end
|