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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-06-15/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  3. data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  4. data/lib/2015-06-15/generated/azure_mgmt_compute/models/list_usages_result.rb +13 -0
  5. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +13 -0
  6. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +13 -0
  7. data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +13 -0
  8. data/lib/2015-06-15/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  9. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  10. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  11. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  12. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +87 -77
  13. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +147 -144
  14. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  15. data/lib/2015-06-15/generated/azure_mgmt_compute/virtual_machines.rb +128 -117
  16. data/lib/2016-03-30/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  17. data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  18. data/lib/2016-03-30/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  19. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  20. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  21. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  22. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +87 -77
  23. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +147 -144
  24. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  25. data/lib/2016-03-30/generated/azure_mgmt_compute/virtual_machines.rb +128 -117
  26. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  27. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  28. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/disks.rb +170 -138
  29. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/images.rb +56 -51
  30. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/snapshots.rb +86 -82
  31. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  32. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  33. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  34. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  35. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +97 -86
  36. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +157 -153
  37. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  38. data/lib/2016-04-30-preview/generated/azure_mgmt_compute/virtual_machines.rb +138 -126
  39. data/lib/2017-03-30/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  40. data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  41. data/lib/2017-03-30/generated/azure_mgmt_compute/disks.rb +170 -138
  42. data/lib/2017-03-30/generated/azure_mgmt_compute/images.rb +56 -51
  43. data/lib/2017-03-30/generated/azure_mgmt_compute/resource_skus.rb +15 -13
  44. data/lib/2017-03-30/generated/azure_mgmt_compute/snapshots.rb +170 -138
  45. data/lib/2017-03-30/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  46. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  47. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  48. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  49. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +21 -18
  50. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +41 -38
  51. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +26 -23
  52. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +97 -86
  53. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +167 -168
  54. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  55. data/lib/2017-03-30/generated/azure_mgmt_compute/virtual_machines.rb +164 -151
  56. data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +4 -1
  57. data/lib/2017-09-01/generated/azure_mgmt_compute/resource_skus.rb +15 -13
  58. data/lib/2017-12-01/generated/azure_mgmt_compute.rb +77 -60
  59. data/lib/2017-12-01/generated/azure_mgmt_compute/availability_sets.rb +30 -27
  60. data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +12 -1
  61. data/lib/2017-12-01/generated/azure_mgmt_compute/images.rb +56 -51
  62. data/lib/2017-12-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
  63. data/lib/2017-12-01/generated/azure_mgmt_compute/models/data_disk.rb +12 -0
  64. data/lib/2017-12-01/generated/azure_mgmt_compute/models/hardware_profile.rb +35 -13
  65. data/lib/2017-12-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
  66. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
  67. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +94 -0
  68. data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
  69. data/lib/2017-12-01/generated/azure_mgmt_compute/models/osdisk.rb +12 -0
  70. data/lib/2017-12-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
  71. data/lib/2017-12-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
  72. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
  73. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
  74. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
  75. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
  76. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
  77. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
  78. data/lib/2017-12-01/generated/azure_mgmt_compute/models/run_command_result.rb +92 -0
  79. data/lib/2017-12-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
  80. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +34 -0
  81. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
  82. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +12 -0
  83. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +12 -0
  84. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +12 -0
  85. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +13 -0
  86. data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +69 -0
  87. data/lib/2017-12-01/generated/azure_mgmt_compute/usage_operations.rb +15 -13
  88. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +18 -15
  89. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +26 -25
  90. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_images.rb +30 -25
  91. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
  92. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +41 -38
  93. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +26 -23
  94. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +270 -86
  95. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +269 -168
  96. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +6 -5
  97. data/lib/2017-12-01/generated/azure_mgmt_compute/virtual_machines.rb +306 -140
  98. data/lib/profiles/latest/compute_latest_profile_client.rb +28 -9
  99. data/lib/profiles/latest/compute_module_definition.rb +0 -1
  100. data/lib/profiles/latest/modules/compute_profile_module.rb +665 -606
  101. data/lib/profiles/v2017_03_09/compute_module_definition.rb +0 -1
  102. data/lib/profiles/v2017_03_09/compute_v2017_03_09_profile_client.rb +28 -9
  103. data/lib/profiles/v2017_03_09/modules/compute_profile_module.rb +330 -311
  104. data/lib/version.rb +1 -1
  105. metadata +19 -2
@@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2017_03_30
32
32
  #
33
33
  # @return [Image] operation results.
34
34
  #
35
- def create_or_update(resource_group_name, image_name, parameters, custom_headers = nil)
36
- response = create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value!
35
+ def create_or_update(resource_group_name, image_name, parameters, custom_headers:nil)
36
+ response = create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
@@ -47,9 +47,9 @@ module Azure::Compute::Mgmt::V2017_03_30
47
47
  # @return [Concurrent::Promise] promise which provides async access to http
48
48
  # response.
49
49
  #
50
- def create_or_update_async(resource_group_name, image_name, parameters, custom_headers = nil)
50
+ def create_or_update_async(resource_group_name, image_name, parameters, custom_headers:nil)
51
51
  # Send request
52
- promise = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers)
52
+ promise = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers)
53
53
 
54
54
  promise = promise.then do |response|
55
55
  # Defining deserialization method.
@@ -75,8 +75,8 @@ module Azure::Compute::Mgmt::V2017_03_30
75
75
  #
76
76
  # @return [OperationStatusResponse] operation results.
77
77
  #
78
- def delete(resource_group_name, image_name, custom_headers = nil)
79
- response = delete_async(resource_group_name, image_name, custom_headers).value!
78
+ def delete(resource_group_name, image_name, custom_headers:nil)
79
+ response = delete_async(resource_group_name, image_name, custom_headers:custom_headers).value!
80
80
  response.body unless response.nil?
81
81
  end
82
82
 
@@ -89,9 +89,9 @@ module Azure::Compute::Mgmt::V2017_03_30
89
89
  # @return [Concurrent::Promise] promise which provides async access to http
90
90
  # response.
91
91
  #
92
- def delete_async(resource_group_name, image_name, custom_headers = nil)
92
+ def delete_async(resource_group_name, image_name, custom_headers:nil)
93
93
  # Send request
94
- promise = begin_delete_async(resource_group_name, image_name, custom_headers)
94
+ promise = begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers)
95
95
 
96
96
  promise = promise.then do |response|
97
97
  # Defining deserialization method.
@@ -118,8 +118,8 @@ module Azure::Compute::Mgmt::V2017_03_30
118
118
  #
119
119
  # @return [Image] operation results.
120
120
  #
121
- def get(resource_group_name, image_name, expand = nil, custom_headers = nil)
122
- response = get_async(resource_group_name, image_name, expand, custom_headers).value!
121
+ def get(resource_group_name, image_name, expand:nil, custom_headers:nil)
122
+ response = get_async(resource_group_name, image_name, expand:expand, custom_headers:custom_headers).value!
123
123
  response.body unless response.nil?
124
124
  end
125
125
 
@@ -134,8 +134,8 @@ module Azure::Compute::Mgmt::V2017_03_30
134
134
  #
135
135
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
136
136
  #
137
- def get_with_http_info(resource_group_name, image_name, expand = nil, custom_headers = nil)
138
- get_async(resource_group_name, image_name, expand, custom_headers).value!
137
+ def get_with_http_info(resource_group_name, image_name, expand:nil, custom_headers:nil)
138
+ get_async(resource_group_name, image_name, expand:expand, custom_headers:custom_headers).value!
139
139
  end
140
140
 
141
141
  #
@@ -149,7 +149,7 @@ module Azure::Compute::Mgmt::V2017_03_30
149
149
  #
150
150
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
151
151
  #
152
- def get_async(resource_group_name, image_name, expand = nil, custom_headers = nil)
152
+ def get_async(resource_group_name, image_name, expand:nil, custom_headers:nil)
153
153
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
154
154
  fail ArgumentError, 'image_name is nil' if image_name.nil?
155
155
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -157,6 +157,7 @@ module Azure::Compute::Mgmt::V2017_03_30
157
157
 
158
158
 
159
159
  request_headers = {}
160
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
160
161
 
161
162
  # Set Headers
162
163
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -210,8 +211,8 @@ module Azure::Compute::Mgmt::V2017_03_30
210
211
  #
211
212
  # @return [Array<Image>] operation results.
212
213
  #
213
- def list_by_resource_group(resource_group_name, custom_headers = nil)
214
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
214
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
215
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
215
216
  first_page.get_all_items
216
217
  end
217
218
 
@@ -224,8 +225,8 @@ module Azure::Compute::Mgmt::V2017_03_30
224
225
  #
225
226
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
226
227
  #
227
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
228
- list_by_resource_group_async(resource_group_name, custom_headers).value!
228
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
229
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
229
230
  end
230
231
 
231
232
  #
@@ -237,13 +238,14 @@ module Azure::Compute::Mgmt::V2017_03_30
237
238
  #
238
239
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
239
240
  #
240
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
241
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
241
242
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
242
243
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
243
244
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
244
245
 
245
246
 
246
247
  request_headers = {}
248
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
247
249
 
248
250
  # Set Headers
249
251
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -298,8 +300,8 @@ module Azure::Compute::Mgmt::V2017_03_30
298
300
  #
299
301
  # @return [Array<Image>] operation results.
300
302
  #
301
- def list(custom_headers = nil)
302
- first_page = list_as_lazy(custom_headers)
303
+ def list(custom_headers:nil)
304
+ first_page = list_as_lazy(custom_headers:custom_headers)
303
305
  first_page.get_all_items
304
306
  end
305
307
 
@@ -313,8 +315,8 @@ module Azure::Compute::Mgmt::V2017_03_30
313
315
  #
314
316
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
315
317
  #
316
- def list_with_http_info(custom_headers = nil)
317
- list_async(custom_headers).value!
318
+ def list_with_http_info(custom_headers:nil)
319
+ list_async(custom_headers:custom_headers).value!
318
320
  end
319
321
 
320
322
  #
@@ -327,12 +329,13 @@ module Azure::Compute::Mgmt::V2017_03_30
327
329
  #
328
330
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
329
331
  #
330
- def list_async(custom_headers = nil)
332
+ def list_async(custom_headers:nil)
331
333
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
332
334
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
333
335
 
334
336
 
335
337
  request_headers = {}
338
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
336
339
 
337
340
  # Set Headers
338
341
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -388,8 +391,8 @@ module Azure::Compute::Mgmt::V2017_03_30
388
391
  #
389
392
  # @return [Image] operation results.
390
393
  #
391
- def begin_create_or_update(resource_group_name, image_name, parameters, custom_headers = nil)
392
- response = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value!
394
+ def begin_create_or_update(resource_group_name, image_name, parameters, custom_headers:nil)
395
+ response = begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value!
393
396
  response.body unless response.nil?
394
397
  end
395
398
 
@@ -404,8 +407,8 @@ module Azure::Compute::Mgmt::V2017_03_30
404
407
  #
405
408
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
406
409
  #
407
- def begin_create_or_update_with_http_info(resource_group_name, image_name, parameters, custom_headers = nil)
408
- begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers).value!
410
+ def begin_create_or_update_with_http_info(resource_group_name, image_name, parameters, custom_headers:nil)
411
+ begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:custom_headers).value!
409
412
  end
410
413
 
411
414
  #
@@ -419,7 +422,7 @@ module Azure::Compute::Mgmt::V2017_03_30
419
422
  #
420
423
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
421
424
  #
422
- def begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers = nil)
425
+ def begin_create_or_update_async(resource_group_name, image_name, parameters, custom_headers:nil)
423
426
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
424
427
  fail ArgumentError, 'image_name is nil' if image_name.nil?
425
428
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -428,13 +431,12 @@ module Azure::Compute::Mgmt::V2017_03_30
428
431
 
429
432
 
430
433
  request_headers = {}
434
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
431
435
 
432
436
  # Set Headers
433
437
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
434
438
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
435
439
 
436
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
437
-
438
440
  # Serialize Request
439
441
  request_mapper = Azure::Compute::Mgmt::V2017_03_30::Models::Image.mapper()
440
442
  request_content = @client.serialize(request_mapper, parameters)
@@ -501,8 +503,8 @@ module Azure::Compute::Mgmt::V2017_03_30
501
503
  #
502
504
  # @return [OperationStatusResponse] operation results.
503
505
  #
504
- def begin_delete(resource_group_name, image_name, custom_headers = nil)
505
- response = begin_delete_async(resource_group_name, image_name, custom_headers).value!
506
+ def begin_delete(resource_group_name, image_name, custom_headers:nil)
507
+ response = begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers).value!
506
508
  response.body unless response.nil?
507
509
  end
508
510
 
@@ -516,8 +518,8 @@ module Azure::Compute::Mgmt::V2017_03_30
516
518
  #
517
519
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
518
520
  #
519
- def begin_delete_with_http_info(resource_group_name, image_name, custom_headers = nil)
520
- begin_delete_async(resource_group_name, image_name, custom_headers).value!
521
+ def begin_delete_with_http_info(resource_group_name, image_name, custom_headers:nil)
522
+ begin_delete_async(resource_group_name, image_name, custom_headers:custom_headers).value!
521
523
  end
522
524
 
523
525
  #
@@ -530,7 +532,7 @@ module Azure::Compute::Mgmt::V2017_03_30
530
532
  #
531
533
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
532
534
  #
533
- def begin_delete_async(resource_group_name, image_name, custom_headers = nil)
535
+ def begin_delete_async(resource_group_name, image_name, custom_headers:nil)
534
536
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
535
537
  fail ArgumentError, 'image_name is nil' if image_name.nil?
536
538
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -538,6 +540,7 @@ module Azure::Compute::Mgmt::V2017_03_30
538
540
 
539
541
 
540
542
  request_headers = {}
543
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
541
544
 
542
545
  # Set Headers
543
546
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -592,8 +595,8 @@ module Azure::Compute::Mgmt::V2017_03_30
592
595
  #
593
596
  # @return [ImageListResult] operation results.
594
597
  #
595
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
596
- response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
598
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
599
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
597
600
  response.body unless response.nil?
598
601
  end
599
602
 
@@ -607,8 +610,8 @@ module Azure::Compute::Mgmt::V2017_03_30
607
610
  #
608
611
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
609
612
  #
610
- def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
611
- list_by_resource_group_next_async(next_page_link, custom_headers).value!
613
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
614
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
612
615
  end
613
616
 
614
617
  #
@@ -621,11 +624,12 @@ module Azure::Compute::Mgmt::V2017_03_30
621
624
  #
622
625
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
623
626
  #
624
- def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
627
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
625
628
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
626
629
 
627
630
 
628
631
  request_headers = {}
632
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
629
633
 
630
634
  # Set Headers
631
635
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -681,8 +685,8 @@ module Azure::Compute::Mgmt::V2017_03_30
681
685
  #
682
686
  # @return [ImageListResult] operation results.
683
687
  #
684
- def list_next(next_page_link, custom_headers = nil)
685
- response = list_next_async(next_page_link, custom_headers).value!
688
+ def list_next(next_page_link, custom_headers:nil)
689
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
686
690
  response.body unless response.nil?
687
691
  end
688
692
 
@@ -698,8 +702,8 @@ module Azure::Compute::Mgmt::V2017_03_30
698
702
  #
699
703
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
700
704
  #
701
- def list_next_with_http_info(next_page_link, custom_headers = nil)
702
- list_next_async(next_page_link, custom_headers).value!
705
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
706
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
703
707
  end
704
708
 
705
709
  #
@@ -714,11 +718,12 @@ module Azure::Compute::Mgmt::V2017_03_30
714
718
  #
715
719
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
716
720
  #
717
- def list_next_async(next_page_link, custom_headers = nil)
721
+ def list_next_async(next_page_link, custom_headers:nil)
718
722
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
719
723
 
720
724
 
721
725
  request_headers = {}
726
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
722
727
 
723
728
  # Set Headers
724
729
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -771,12 +776,12 @@ module Azure::Compute::Mgmt::V2017_03_30
771
776
  #
772
777
  # @return [ImageListResult] which provide lazy access to pages of the response.
773
778
  #
774
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
775
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
779
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
780
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
776
781
  unless response.nil?
777
782
  page = response.body
778
783
  page.next_method = Proc.new do |next_page_link|
779
- list_by_resource_group_next_async(next_page_link, custom_headers)
784
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
780
785
  end
781
786
  page
782
787
  end
@@ -792,12 +797,12 @@ module Azure::Compute::Mgmt::V2017_03_30
792
797
  #
793
798
  # @return [ImageListResult] which provide lazy access to pages of the response.
794
799
  #
795
- def list_as_lazy(custom_headers = nil)
796
- response = list_async(custom_headers).value!
800
+ def list_as_lazy(custom_headers:nil)
801
+ response = list_async(custom_headers:custom_headers).value!
797
802
  unless response.nil?
798
803
  page = response.body
799
804
  page.next_method = Proc.new do |next_page_link|
800
- list_next_async(next_page_link, custom_headers)
805
+ list_next_async(next_page_link, custom_headers:custom_headers)
801
806
  end
802
807
  page
803
808
  end
@@ -29,8 +29,8 @@ module Azure::Compute::Mgmt::V2017_03_30
29
29
  #
30
30
  # @return [Array<ResourceSku>] operation results.
31
31
  #
32
- def list(custom_headers = nil)
33
- first_page = list_as_lazy(custom_headers)
32
+ def list(custom_headers:nil)
33
+ first_page = list_as_lazy(custom_headers:custom_headers)
34
34
  first_page.get_all_items
35
35
  end
36
36
 
@@ -42,8 +42,8 @@ module Azure::Compute::Mgmt::V2017_03_30
42
42
  #
43
43
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
44
  #
45
- def list_with_http_info(custom_headers = nil)
46
- list_async(custom_headers).value!
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
47
  end
48
48
 
49
49
  #
@@ -54,12 +54,13 @@ module Azure::Compute::Mgmt::V2017_03_30
54
54
  #
55
55
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
56
  #
57
- def list_async(custom_headers = nil)
57
+ def list_async(custom_headers:nil)
58
58
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
59
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
60
60
 
61
61
 
62
62
  request_headers = {}
63
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
64
 
64
65
  # Set Headers
65
66
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -114,8 +115,8 @@ module Azure::Compute::Mgmt::V2017_03_30
114
115
  #
115
116
  # @return [ResourceSkusResult] operation results.
116
117
  #
117
- def list_next(next_page_link, custom_headers = nil)
118
- response = list_next_async(next_page_link, custom_headers).value!
118
+ def list_next(next_page_link, custom_headers:nil)
119
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
119
120
  response.body unless response.nil?
120
121
  end
121
122
 
@@ -129,8 +130,8 @@ module Azure::Compute::Mgmt::V2017_03_30
129
130
  #
130
131
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
131
132
  #
132
- def list_next_with_http_info(next_page_link, custom_headers = nil)
133
- list_next_async(next_page_link, custom_headers).value!
133
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
134
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
134
135
  end
135
136
 
136
137
  #
@@ -143,11 +144,12 @@ module Azure::Compute::Mgmt::V2017_03_30
143
144
  #
144
145
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
145
146
  #
146
- def list_next_async(next_page_link, custom_headers = nil)
147
+ def list_next_async(next_page_link, custom_headers:nil)
147
148
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
148
149
 
149
150
 
150
151
  request_headers = {}
152
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
151
153
 
152
154
  # Set Headers
153
155
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -200,12 +202,12 @@ module Azure::Compute::Mgmt::V2017_03_30
200
202
  # @return [ResourceSkusResult] which provide lazy access to pages of the
201
203
  # response.
202
204
  #
203
- def list_as_lazy(custom_headers = nil)
204
- response = list_async(custom_headers).value!
205
+ def list_as_lazy(custom_headers:nil)
206
+ response = list_async(custom_headers:custom_headers).value!
205
207
  unless response.nil?
206
208
  page = response.body
207
209
  page.next_method = Proc.new do |next_page_link|
208
- list_next_async(next_page_link, custom_headers)
210
+ list_next_async(next_page_link, custom_headers:custom_headers)
209
211
  end
210
212
  page
211
213
  end
@@ -25,8 +25,9 @@ module Azure::Compute::Mgmt::V2017_03_30
25
25
  # Creates or updates a snapshot.
26
26
  #
27
27
  # @param resource_group_name [String] The name of the resource group.
28
- # @param snapshot_name [String] The name of the snapshot within the given
29
- # subscription and resource group.
28
+ # @param snapshot_name [String] The name of the snapshot that is being created.
29
+ # The name can't be changed after the snapshot is created. Supported characters
30
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
30
31
  # @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
31
32
  # disk 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 [Snapshot] operation results.
36
37
  #
37
- def create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
38
- response = create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
38
+ def create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers:nil)
39
+ response = create_or_update_async(resource_group_name, snapshot_name, snapshot, 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 snapshot_name [String] The name of the snapshot within the given
45
- # subscription and resource group.
45
+ # @param snapshot_name [String] The name of the snapshot that is being created.
46
+ # The name can't be changed after the snapshot is created. Supported characters
47
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
46
48
  # @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
47
49
  # disk 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, snapshot_name, snapshot, custom_headers = nil)
56
+ def create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil)
55
57
  # Send request
56
- promise = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers)
58
+ promise = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, 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 snapshot.
74
76
  #
75
77
  # @param resource_group_name [String] The name of the resource group.
76
- # @param snapshot_name [String] The name of the snapshot within the given
77
- # subscription and resource group.
78
+ # @param snapshot_name [String] The name of the snapshot that is being created.
79
+ # The name can't be changed after the snapshot is created. Supported characters
80
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
78
81
  # @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
79
82
  # Patch snapshot 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 [Snapshot] operation results.
84
87
  #
85
- def update(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
86
- response = update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
88
+ def update(resource_group_name, snapshot_name, snapshot, custom_headers:nil)
89
+ response = update_async(resource_group_name, snapshot_name, snapshot, 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 snapshot_name [String] The name of the snapshot within the given
93
- # subscription and resource group.
95
+ # @param snapshot_name [String] The name of the snapshot that is being created.
96
+ # The name can't be changed after the snapshot is created. Supported characters
97
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
94
98
  # @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
95
99
  # Patch snapshot 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, snapshot_name, snapshot, custom_headers = nil)
106
+ def update_async(resource_group_name, snapshot_name, snapshot, custom_headers:nil)
103
107
  # Send request
104
- promise = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers)
108
+ promise = begin_update_async(resource_group_name, snapshot_name, snapshot, 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 snapshot.
122
126
  #
123
127
  # @param resource_group_name [String] The name of the resource group.
124
- # @param snapshot_name [String] The name of the snapshot within the given
125
- # subscription and resource group.
128
+ # @param snapshot_name [String] The name of the snapshot that is being created.
129
+ # The name can't be changed after the snapshot is created. Supported characters
130
+ # for the name are a-z, A-Z, 0-9 and _. The max 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 [Snapshot] operation results.
130
135
  #
131
- def get(resource_group_name, snapshot_name, custom_headers = nil)
132
- response = get_async(resource_group_name, snapshot_name, custom_headers).value!
136
+ def get(resource_group_name, snapshot_name, custom_headers:nil)
137
+ response = get_async(resource_group_name, snapshot_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 snapshot.
138
143
  #
139
144
  # @param resource_group_name [String] The name of the resource group.
140
- # @param snapshot_name [String] The name of the snapshot within the given
141
- # subscription and resource group.
145
+ # @param snapshot_name [String] The name of the snapshot that is being created.
146
+ # The name can't be changed after the snapshot is created. Supported characters
147
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
148
- get_async(resource_group_name, snapshot_name, custom_headers).value!
153
+ def get_with_http_info(resource_group_name, snapshot_name, custom_headers:nil)
154
+ get_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value!
149
155
  end
150
156
 
151
157
  #
152
158
  # Gets information about a snapshot.
153
159
  #
154
160
  # @param resource_group_name [String] The name of the resource group.
155
- # @param snapshot_name [String] The name of the snapshot within the given
156
- # subscription and resource group.
161
+ # @param snapshot_name [String] The name of the snapshot that is being created.
162
+ # The name can't be changed after the snapshot is created. Supported characters
163
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
169
+ def get_async(resource_group_name, snapshot_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, 'snapshot_name is nil' if snapshot_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 snapshot.
216
224
  #
217
225
  # @param resource_group_name [String] The name of the resource group.
218
- # @param snapshot_name [String] The name of the snapshot within the given
219
- # subscription and resource group.
226
+ # @param snapshot_name [String] The name of the snapshot that is being created.
227
+ # The name can't be changed after the snapshot is created. Supported characters
228
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
226
- response = delete_async(resource_group_name, snapshot_name, custom_headers).value!
234
+ def delete(resource_group_name, snapshot_name, custom_headers:nil)
235
+ response = delete_async(resource_group_name, snapshot_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 snapshot_name [String] The name of the snapshot within the given
233
- # subscription and resource group.
241
+ # @param snapshot_name [String] The name of the snapshot that is being created.
242
+ # The name can't be changed after the snapshot is created. Supported characters
243
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
250
+ def delete_async(resource_group_name, snapshot_name, custom_headers:nil)
241
251
  # Send request
242
- promise = begin_delete_async(resource_group_name, snapshot_name, custom_headers)
252
+ promise = begin_delete_async(resource_group_name, snapshot_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<Snapshot>] operation results.
266
276
  #
267
- def list_by_resource_group(resource_group_name, custom_headers = nil)
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 = nil)
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 = nil)
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<Snapshot>] operation results.
352
363
  #
353
- def list(custom_headers = nil)
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 = nil)
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 = nil)
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 snapshot.
430
442
  #
431
443
  # @param resource_group_name [String] The name of the resource group.
432
- # @param snapshot_name [String] The name of the snapshot within the given
433
- # subscription and resource group.
444
+ # @param snapshot_name [String] The name of the snapshot that is being created.
445
+ # The name can't be changed after the snapshot is created. Supported characters
446
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
434
447
  # @param grant_access_data [GrantAccessData] Access data object supplied in the
435
448
  # body of the get snapshot 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, snapshot_name, grant_access_data, custom_headers = nil)
442
- response = grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value!
454
+ def grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil)
455
+ response = grant_access_async(resource_group_name, snapshot_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 snapshot_name [String] The name of the snapshot within the given
449
- # subscription and resource group.
461
+ # @param snapshot_name [String] The name of the snapshot that is being created.
462
+ # The name can't be changed after the snapshot is created. Supported characters
463
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
450
464
  # @param grant_access_data [GrantAccessData] Access data object supplied in the
451
465
  # body of the get snapshot 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, snapshot_name, grant_access_data, custom_headers = nil)
472
+ def grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil)
459
473
  # Send request
460
- promise = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers)
474
+ promise = begin_grant_access_async(resource_group_name, snapshot_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 snapshot.
478
492
  #
479
493
  # @param resource_group_name [String] The name of the resource group.
480
- # @param snapshot_name [String] The name of the snapshot within the given
481
- # subscription and resource group.
494
+ # @param snapshot_name [String] The name of the snapshot that is being created.
495
+ # The name can't be changed after the snapshot is created. Supported characters
496
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
488
- response = revoke_access_async(resource_group_name, snapshot_name, custom_headers).value!
502
+ def revoke_access(resource_group_name, snapshot_name, custom_headers:nil)
503
+ response = revoke_access_async(resource_group_name, snapshot_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 snapshot_name [String] The name of the snapshot within the given
495
- # subscription and resource group.
509
+ # @param snapshot_name [String] The name of the snapshot that is being created.
510
+ # The name can't be changed after the snapshot is created. Supported characters
511
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
518
+ def revoke_access_async(resource_group_name, snapshot_name, custom_headers:nil)
503
519
  # Send request
504
- promise = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers)
520
+ promise = begin_revoke_access_async(resource_group_name, snapshot_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 snapshot.
522
538
  #
523
539
  # @param resource_group_name [String] The name of the resource group.
524
- # @param snapshot_name [String] The name of the snapshot within the given
525
- # subscription and resource group.
540
+ # @param snapshot_name [String] The name of the snapshot that is being created.
541
+ # The name can't be changed after the snapshot is created. Supported characters
542
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
526
543
  # @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
527
544
  # disk 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 [Snapshot] operation results.
532
549
  #
533
- def begin_create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
534
- response = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
550
+ def begin_create_or_update(resource_group_name, snapshot_name, snapshot, custom_headers:nil)
551
+ response = begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, 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 snapshot.
540
557
  #
541
558
  # @param resource_group_name [String] The name of the resource group.
542
- # @param snapshot_name [String] The name of the snapshot within the given
543
- # subscription and resource group.
559
+ # @param snapshot_name [String] The name of the snapshot that is being created.
560
+ # The name can't be changed after the snapshot is created. Supported characters
561
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
544
562
  # @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
545
563
  # disk 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, snapshot_name, snapshot, custom_headers = nil)
552
- begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
569
+ def begin_create_or_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers:nil)
570
+ begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value!
553
571
  end
554
572
 
555
573
  #
556
574
  # Creates or updates a snapshot.
557
575
  #
558
576
  # @param resource_group_name [String] The name of the resource group.
559
- # @param snapshot_name [String] The name of the snapshot within the given
560
- # subscription and resource group.
577
+ # @param snapshot_name [String] The name of the snapshot that is being created.
578
+ # The name can't be changed after the snapshot is created. Supported characters
579
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
561
580
  # @param snapshot [Snapshot] Snapshot object supplied in the body of the Put
562
581
  # disk 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, snapshot_name, snapshot, custom_headers = nil)
587
+ def begin_create_or_update_async(resource_group_name, snapshot_name, snapshot, 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, 'snapshot_name is nil' if snapshot_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::Snapshot.mapper()
586
604
  request_content = @client.serialize(request_mapper, snapshot)
@@ -641,8 +659,9 @@ module Azure::Compute::Mgmt::V2017_03_30
641
659
  # Updates (patches) a snapshot.
642
660
  #
643
661
  # @param resource_group_name [String] The name of the resource group.
644
- # @param snapshot_name [String] The name of the snapshot within the given
645
- # subscription and resource group.
662
+ # @param snapshot_name [String] The name of the snapshot that is being created.
663
+ # The name can't be changed after the snapshot is created. Supported characters
664
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
646
665
  # @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
647
666
  # Patch snapshot 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 [Snapshot] operation results.
652
671
  #
653
- def begin_update(resource_group_name, snapshot_name, snapshot, custom_headers = nil)
654
- response = begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
672
+ def begin_update(resource_group_name, snapshot_name, snapshot, custom_headers:nil)
673
+ response = begin_update_async(resource_group_name, snapshot_name, snapshot, 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 snapshot.
660
679
  #
661
680
  # @param resource_group_name [String] The name of the resource group.
662
- # @param snapshot_name [String] The name of the snapshot within the given
663
- # subscription and resource group.
681
+ # @param snapshot_name [String] The name of the snapshot that is being created.
682
+ # The name can't be changed after the snapshot is created. Supported characters
683
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
664
684
  # @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
665
685
  # Patch snapshot 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, snapshot_name, snapshot, custom_headers = nil)
672
- begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers).value!
691
+ def begin_update_with_http_info(resource_group_name, snapshot_name, snapshot, custom_headers:nil)
692
+ begin_update_async(resource_group_name, snapshot_name, snapshot, custom_headers:custom_headers).value!
673
693
  end
674
694
 
675
695
  #
676
696
  # Updates (patches) a snapshot.
677
697
  #
678
698
  # @param resource_group_name [String] The name of the resource group.
679
- # @param snapshot_name [String] The name of the snapshot within the given
680
- # subscription and resource group.
699
+ # @param snapshot_name [String] The name of the snapshot that is being created.
700
+ # The name can't be changed after the snapshot is created. Supported characters
701
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
681
702
  # @param snapshot [SnapshotUpdate] Snapshot object supplied in the body of the
682
703
  # Patch snapshot 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, snapshot_name, snapshot, custom_headers = nil)
709
+ def begin_update_async(resource_group_name, snapshot_name, snapshot, 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, 'snapshot_name is nil' if snapshot_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::SnapshotUpdate.mapper()
706
726
  request_content = @client.serialize(request_mapper, snapshot)
@@ -761,15 +781,16 @@ module Azure::Compute::Mgmt::V2017_03_30
761
781
  # Deletes a snapshot.
762
782
  #
763
783
  # @param resource_group_name [String] The name of the resource group.
764
- # @param snapshot_name [String] The name of the snapshot within the given
765
- # subscription and resource group.
784
+ # @param snapshot_name [String] The name of the snapshot that is being created.
785
+ # The name can't be changed after the snapshot is created. Supported characters
786
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
772
- response = begin_delete_async(resource_group_name, snapshot_name, custom_headers).value!
792
+ def begin_delete(resource_group_name, snapshot_name, custom_headers:nil)
793
+ response = begin_delete_async(resource_group_name, snapshot_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 snapshot.
778
799
  #
779
800
  # @param resource_group_name [String] The name of the resource group.
780
- # @param snapshot_name [String] The name of the snapshot within the given
781
- # subscription and resource group.
801
+ # @param snapshot_name [String] The name of the snapshot that is being created.
802
+ # The name can't be changed after the snapshot is created. Supported characters
803
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
788
- begin_delete_async(resource_group_name, snapshot_name, custom_headers).value!
809
+ def begin_delete_with_http_info(resource_group_name, snapshot_name, custom_headers:nil)
810
+ begin_delete_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value!
789
811
  end
790
812
 
791
813
  #
792
814
  # Deletes a snapshot.
793
815
  #
794
816
  # @param resource_group_name [String] The name of the resource group.
795
- # @param snapshot_name [String] The name of the snapshot within the given
796
- # subscription and resource group.
817
+ # @param snapshot_name [String] The name of the snapshot that is being created.
818
+ # The name can't be changed after the snapshot is created. Supported characters
819
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
825
+ def begin_delete_async(resource_group_name, snapshot_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, 'snapshot_name is nil' if snapshot_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 snapshot.
856
880
  #
857
881
  # @param resource_group_name [String] The name of the resource group.
858
- # @param snapshot_name [String] The name of the snapshot within the given
859
- # subscription and resource group.
882
+ # @param snapshot_name [String] The name of the snapshot that is being created.
883
+ # The name can't be changed after the snapshot is created. Supported characters
884
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
860
885
  # @param grant_access_data [GrantAccessData] Access data object supplied in the
861
886
  # body of the get snapshot 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, snapshot_name, grant_access_data, custom_headers = nil)
868
- response = begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value!
892
+ def begin_grant_access(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil)
893
+ response = begin_grant_access_async(resource_group_name, snapshot_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 snapshot.
874
899
  #
875
900
  # @param resource_group_name [String] The name of the resource group.
876
- # @param snapshot_name [String] The name of the snapshot within the given
877
- # subscription and resource group.
901
+ # @param snapshot_name [String] The name of the snapshot that is being created.
902
+ # The name can't be changed after the snapshot is created. Supported characters
903
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
878
904
  # @param grant_access_data [GrantAccessData] Access data object supplied in the
879
905
  # body of the get snapshot 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, snapshot_name, grant_access_data, custom_headers = nil)
886
- begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers).value!
911
+ def begin_grant_access_with_http_info(resource_group_name, snapshot_name, grant_access_data, custom_headers:nil)
912
+ begin_grant_access_async(resource_group_name, snapshot_name, grant_access_data, custom_headers:custom_headers).value!
887
913
  end
888
914
 
889
915
  #
890
916
  # Grants access to a snapshot.
891
917
  #
892
918
  # @param resource_group_name [String] The name of the resource group.
893
- # @param snapshot_name [String] The name of the snapshot within the given
894
- # subscription and resource group.
919
+ # @param snapshot_name [String] The name of the snapshot that is being created.
920
+ # The name can't be changed after the snapshot is created. Supported characters
921
+ # for the name are a-z, A-Z, 0-9 and _. The max name length is 80 characters.
895
922
  # @param grant_access_data [GrantAccessData] Access data object supplied in the
896
923
  # body of the get snapshot 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, snapshot_name, grant_access_data, custom_headers = nil)
929
+ def begin_grant_access_async(resource_group_name, snapshot_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, 'snapshot_name is nil' if snapshot_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 snapshot.
966
992
  #
967
993
  # @param resource_group_name [String] The name of the resource group.
968
- # @param snapshot_name [String] The name of the snapshot within the given
969
- # subscription and resource group.
994
+ # @param snapshot_name [String] The name of the snapshot that is being created.
995
+ # The name can't be changed after the snapshot is created. Supported characters
996
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
976
- response = begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers).value!
1002
+ def begin_revoke_access(resource_group_name, snapshot_name, custom_headers:nil)
1003
+ response = begin_revoke_access_async(resource_group_name, snapshot_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 snapshot.
982
1009
  #
983
1010
  # @param resource_group_name [String] The name of the resource group.
984
- # @param snapshot_name [String] The name of the snapshot within the given
985
- # subscription and resource group.
1011
+ # @param snapshot_name [String] The name of the snapshot that is being created.
1012
+ # The name can't be changed after the snapshot is created. Supported characters
1013
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
992
- begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers).value!
1019
+ def begin_revoke_access_with_http_info(resource_group_name, snapshot_name, custom_headers:nil)
1020
+ begin_revoke_access_async(resource_group_name, snapshot_name, custom_headers:custom_headers).value!
993
1021
  end
994
1022
 
995
1023
  #
996
1024
  # Revokes access to a snapshot.
997
1025
  #
998
1026
  # @param resource_group_name [String] The name of the resource group.
999
- # @param snapshot_name [String] The name of the snapshot within the given
1000
- # subscription and resource group.
1027
+ # @param snapshot_name [String] The name of the snapshot that is being created.
1028
+ # The name can't be changed after the snapshot is created. Supported characters
1029
+ # for the name are a-z, A-Z, 0-9 and _. The max 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, snapshot_name, custom_headers = nil)
1035
+ def begin_revoke_access_async(resource_group_name, snapshot_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, 'snapshot_name is nil' if snapshot_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 [SnapshotList] operation results.
1067
1097
  #
1068
- def list_by_resource_group_next(next_page_link, custom_headers = nil)
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 = nil)
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 = nil)
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 [SnapshotList] operation results.
1154
1185
  #
1155
- def list_next(next_page_link, custom_headers = nil)
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 = nil)
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 = nil)
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 [SnapshotList] which provide lazy access to pages of the response.
1240
1272
  #
1241
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
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 [SnapshotList] which provide lazy access to pages of the response.
1259
1291
  #
1260
- def list_as_lazy(custom_headers = nil)
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