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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40b0861af09a8ca3cb1f1d5e3aaaef70ade035b6
4
- data.tar.gz: 89748076dd943c849f6f99e1d21bf9eee9a4a162
3
+ metadata.gz: 9144f6866f5f30cf9f017bf512b3ee3f03e4faf3
4
+ data.tar.gz: 7658e5cd083912ffed15e60ca1f054a8f31cef3d
5
5
  SHA512:
6
- metadata.gz: eb5e4ca93250b19482399c515b667433b960687a60519019460fab57490e5ce418e5080affc19852e6e616e5d14ff7f8abf91c1ced432820af97209dd11fd71c
7
- data.tar.gz: 97223bd875bb99634f83b871b5b6fb32d80684425294965791de5b8bb30e07e7b4b299b19e67f0fabe12a72c4dccfd3e7366da5a49a6a0efe52c36dd23449d7b
6
+ metadata.gz: 1c793fa1bb21dc85bc117f2c851c405414c6e872f5d3c25ffc0eaea1a86eba9582a126019a6964895a3bd6b4361e05680301b09850ef9b13bd8ad7ed41981e4e
7
+ data.tar.gz: c61e9aeb79aea8802eafaa68c6b6e17d1f8ebbef4f7ebca23e94987ebb8b962cd04f8f79cfee54a6620221327077da085cbf997116f9a5f406c7950aa30b530b
@@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2015_06_15
33
33
  #
34
34
  # @return [AvailabilitySet] operation results.
35
35
  #
36
- def create_or_update(resource_group_name, name, parameters, custom_headers = nil)
37
- response = create_or_update_async(resource_group_name, name, parameters, custom_headers).value!
36
+ def create_or_update(resource_group_name, name, parameters, custom_headers:nil)
37
+ response = create_or_update_async(resource_group_name, 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::V2015_06_15
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers = nil)
54
- create_or_update_async(resource_group_name, name, parameters, custom_headers).value!
53
+ def create_or_update_with_http_info(resource_group_name, name, parameters, custom_headers:nil)
54
+ create_or_update_async(resource_group_name, name, parameters, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2015_06_15
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, name, parameters, custom_headers = nil)
69
+ def create_or_update_async(resource_group_name, name, parameters, custom_headers:nil)
70
70
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
71
  fail ArgumentError, 'name is nil' if name.nil?
72
72
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -75,13 +75,12 @@ module Azure::Compute::Mgmt::V2015_06_15
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::V2015_06_15::Models::AvailabilitySet.mapper()
87
86
  request_content = @client.serialize(request_mapper, parameters)
@@ -138,8 +137,8 @@ module Azure::Compute::Mgmt::V2015_06_15
138
137
  #
139
138
  # @return [OperationStatusResponse] operation results.
140
139
  #
141
- def delete(resource_group_name, availability_set_name, custom_headers = nil)
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::V2015_06_15
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 = nil)
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::V2015_06_15
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 = nil)
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::V2015_06_15
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::V2015_06_15
229
229
  #
230
230
  # @return [AvailabilitySet] operation results.
231
231
  #
232
- def get(resource_group_name, availability_set_name, custom_headers = nil)
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::V2015_06_15
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 = nil)
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::V2015_06_15
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 = nil)
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::V2015_06_15
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::V2015_06_15
319
320
  #
320
321
  # @return [AvailabilitySetListResult] operation results.
321
322
  #
322
- def list(resource_group_name, custom_headers = nil)
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::V2015_06_15
333
334
  #
334
335
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
335
336
  #
336
- def list_with_http_info(resource_group_name, custom_headers = nil)
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::V2015_06_15
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 = nil)
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::V2015_06_15
408
410
  #
409
411
  # @return [VirtualMachineSizeListResult] operation results.
410
412
  #
411
- def list_available_sizes(resource_group_name, availability_set_name, custom_headers = nil)
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::V2015_06_15
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 = nil)
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::V2015_06_15
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 = nil)
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::V2015_06_15
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
@@ -138,6 +138,9 @@ module Azure::Compute::Mgmt::V2015_06_15
138
138
  fail ArgumentError, 'path is nil' if path.nil?
139
139
 
140
140
  request_url = options[:base_url] || @base_url
141
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
142
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
143
+ end
141
144
 
142
145
  request_headers = @request_headers
143
146
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -154,7 +157,7 @@ module Azure::Compute::Mgmt::V2015_06_15
154
157
  #
155
158
  def add_telemetry
156
159
  sdk_information = 'azure_mgmt_compute'
157
- sdk_information = "#{sdk_information}/0.15.2"
160
+ sdk_information = "#{sdk_information}/0.16.0"
158
161
  add_user_agent_information(sdk_information)
159
162
  end
160
163
  end
@@ -16,6 +16,11 @@ module Azure::Compute::Mgmt::V2015_06_15
16
16
  # @return [Array<Usage>] The list of compute resource usages.
17
17
  attr_accessor :value
18
18
 
19
+ # @return [String] The URI to fetch the next page of compute resource
20
+ # usage information. Call ListNext() with this to fetch the next page of
21
+ # compute resource usage information.
22
+ attr_accessor :next_link
23
+
19
24
  # return [Proc] with next page method call.
20
25
  attr_accessor :next_method
21
26
 
@@ -77,6 +82,14 @@ module Azure::Compute::Mgmt::V2015_06_15
77
82
  }
78
83
  }
79
84
  }
85
+ },
86
+ next_link: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ serialized_name: 'nextLink',
90
+ type: {
91
+ name: 'String'
92
+ }
80
93
  }
81
94
  }
82
95
  }
@@ -17,6 +17,11 @@ module Azure::Compute::Mgmt::V2015_06_15
17
17
  # scale sets.
18
18
  attr_accessor :value
19
19
 
20
+ # @return [String] The URI to fetch the next page of virtual machine
21
+ # scale sets. Call ListNext() with this to fetch the next page of virtual
22
+ # machine scale sets.
23
+ attr_accessor :next_link
24
+
20
25
  # return [Proc] with next page method call.
21
26
  attr_accessor :next_method
22
27
 
@@ -78,6 +83,14 @@ module Azure::Compute::Mgmt::V2015_06_15
78
83
  }
79
84
  }
80
85
  }
86
+ },
87
+ next_link: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'nextLink',
91
+ type: {
92
+ name: 'String'
93
+ }
81
94
  }
82
95
  }
83
96
  }
@@ -17,6 +17,11 @@ module Azure::Compute::Mgmt::V2015_06_15
17
17
  # for the virtual machine scale set.
18
18
  attr_accessor :value
19
19
 
20
+ # @return [String] The URI to fetch the next page of skus available for
21
+ # the virtual machine scale set. Call ListNext() with this to fetch the
22
+ # next page of skus available for the virtual machine scale set.
23
+ attr_accessor :next_link
24
+
20
25
  # return [Proc] with next page method call.
21
26
  attr_accessor :next_method
22
27
 
@@ -79,6 +84,14 @@ module Azure::Compute::Mgmt::V2015_06_15
79
84
  }
80
85
  }
81
86
  }
87
+ },
88
+ next_link: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'nextLink',
92
+ type: {
93
+ name: 'String'
94
+ }
82
95
  }
83
96
  }
84
97
  }
@@ -17,6 +17,11 @@ module Azure::Compute::Mgmt::V2015_06_15
17
17
  # scale sets VMs.
18
18
  attr_accessor :value
19
19
 
20
+ # @return [String] The URI to fetch the next page of virtual machine
21
+ # scale sets VMs. Call ListNext() with this to fetch the next page of
22
+ # virtual machine scale sets VMs.
23
+ attr_accessor :next_link
24
+
20
25
  # return [Proc] with next page method call.
21
26
  attr_accessor :next_method
22
27
 
@@ -78,6 +83,14 @@ module Azure::Compute::Mgmt::V2015_06_15
78
83
  }
79
84
  }
80
85
  }
86
+ },
87
+ next_link: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'nextLink',
91
+ type: {
92
+ name: 'String'
93
+ }
81
94
  }
82
95
  }
83
96
  }
@@ -32,8 +32,8 @@ module Azure::Compute::Mgmt::V2015_06_15
32
32
  #
33
33
  # @return [Array<Usage>] operation results.
34
34
  #
35
- def list(location, custom_headers = nil)
36
- first_page = list_as_lazy(location, custom_headers)
35
+ def list(location, custom_headers:nil)
36
+ first_page = list_as_lazy(location, custom_headers:custom_headers)
37
37
  first_page.get_all_items
38
38
  end
39
39
 
@@ -48,8 +48,8 @@ module Azure::Compute::Mgmt::V2015_06_15
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def list_with_http_info(location, custom_headers = nil)
52
- list_async(location, custom_headers).value!
51
+ def list_with_http_info(location, custom_headers:nil)
52
+ list_async(location, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
@@ -63,7 +63,7 @@ module Azure::Compute::Mgmt::V2015_06_15
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def list_async(location, custom_headers = nil)
66
+ def list_async(location, custom_headers:nil)
67
67
  fail ArgumentError, 'location is nil' if location.nil?
68
68
  fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._]+$$')).nil?
69
69
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -71,6 +71,7 @@ module Azure::Compute::Mgmt::V2015_06_15
71
71
 
72
72
 
73
73
  request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
74
75
 
75
76
  # Set Headers
76
77
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -127,8 +128,8 @@ module Azure::Compute::Mgmt::V2015_06_15
127
128
  #
128
129
  # @return [ListUsagesResult] operation results.
129
130
  #
130
- def list_next(next_page_link, custom_headers = nil)
131
- response = list_next_async(next_page_link, custom_headers).value!
131
+ def list_next(next_page_link, custom_headers:nil)
132
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
132
133
  response.body unless response.nil?
133
134
  end
134
135
 
@@ -144,8 +145,8 @@ module Azure::Compute::Mgmt::V2015_06_15
144
145
  #
145
146
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
146
147
  #
147
- def list_next_with_http_info(next_page_link, custom_headers = nil)
148
- list_next_async(next_page_link, custom_headers).value!
148
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
149
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
149
150
  end
150
151
 
151
152
  #
@@ -160,11 +161,12 @@ module Azure::Compute::Mgmt::V2015_06_15
160
161
  #
161
162
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
163
  #
163
- def list_next_async(next_page_link, custom_headers = nil)
164
+ def list_next_async(next_page_link, custom_headers:nil)
164
165
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
165
166
 
166
167
 
167
168
  request_headers = {}
169
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
168
170
 
169
171
  # Set Headers
170
172
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -220,12 +222,12 @@ module Azure::Compute::Mgmt::V2015_06_15
220
222
  # @return [ListUsagesResult] which provide lazy access to pages of the
221
223
  # response.
222
224
  #
223
- def list_as_lazy(location, custom_headers = nil)
224
- response = list_async(location, custom_headers).value!
225
+ def list_as_lazy(location, custom_headers:nil)
226
+ response = list_async(location, custom_headers:custom_headers).value!
225
227
  unless response.nil?
226
228
  page = response.body
227
229
  page.next_method = Proc.new do |next_page_link|
228
- list_next_async(next_page_link, custom_headers)
230
+ list_next_async(next_page_link, custom_headers:custom_headers)
229
231
  end
230
232
  page
231
233
  end
@@ -33,8 +33,8 @@ module Azure::Compute::Mgmt::V2015_06_15
33
33
  #
34
34
  # @return [VirtualMachineExtensionImage] operation results.
35
35
  #
36
- def get(location, publisher_name, type, version, custom_headers = nil)
37
- response = get_async(location, publisher_name, type, version, custom_headers).value!
36
+ def get(location, publisher_name, type, version, custom_headers:nil)
37
+ response = get_async(location, publisher_name, type, version, 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::V2015_06_15
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def get_with_http_info(location, publisher_name, type, version, custom_headers = nil)
54
- get_async(location, publisher_name, type, version, custom_headers).value!
53
+ def get_with_http_info(location, publisher_name, type, version, custom_headers:nil)
54
+ get_async(location, publisher_name, type, version, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -66,7 +66,7 @@ module Azure::Compute::Mgmt::V2015_06_15
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def get_async(location, publisher_name, type, version, custom_headers = nil)
69
+ def get_async(location, publisher_name, type, version, custom_headers:nil)
70
70
  fail ArgumentError, 'location is nil' if location.nil?
71
71
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
72
72
  fail ArgumentError, 'type is nil' if type.nil?
@@ -76,6 +76,7 @@ module Azure::Compute::Mgmt::V2015_06_15
76
76
 
77
77
 
78
78
  request_headers = {}
79
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
80
 
80
81
  # Set Headers
81
82
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -130,8 +131,8 @@ module Azure::Compute::Mgmt::V2015_06_15
130
131
  #
131
132
  # @return [Array] operation results.
132
133
  #
133
- def list_types(location, publisher_name, custom_headers = nil)
134
- response = list_types_async(location, publisher_name, custom_headers).value!
134
+ def list_types(location, publisher_name, custom_headers:nil)
135
+ response = list_types_async(location, publisher_name, custom_headers:custom_headers).value!
135
136
  response.body unless response.nil?
136
137
  end
137
138
 
@@ -145,8 +146,8 @@ module Azure::Compute::Mgmt::V2015_06_15
145
146
  #
146
147
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
147
148
  #
148
- def list_types_with_http_info(location, publisher_name, custom_headers = nil)
149
- list_types_async(location, publisher_name, custom_headers).value!
149
+ def list_types_with_http_info(location, publisher_name, custom_headers:nil)
150
+ list_types_async(location, publisher_name, custom_headers:custom_headers).value!
150
151
  end
151
152
 
152
153
  #
@@ -159,7 +160,7 @@ module Azure::Compute::Mgmt::V2015_06_15
159
160
  #
160
161
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
161
162
  #
162
- def list_types_async(location, publisher_name, custom_headers = nil)
163
+ def list_types_async(location, publisher_name, custom_headers:nil)
163
164
  fail ArgumentError, 'location is nil' if location.nil?
164
165
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
165
166
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -167,6 +168,7 @@ module Azure::Compute::Mgmt::V2015_06_15
167
168
 
168
169
 
169
170
  request_headers = {}
171
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
170
172
 
171
173
  # Set Headers
172
174
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -241,8 +243,8 @@ module Azure::Compute::Mgmt::V2015_06_15
241
243
  #
242
244
  # @return [Array] operation results.
243
245
  #
244
- def list_versions(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil)
245
- response = list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value!
246
+ def list_versions(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil)
247
+ response = list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
246
248
  response.body unless response.nil?
247
249
  end
248
250
 
@@ -260,8 +262,8 @@ module Azure::Compute::Mgmt::V2015_06_15
260
262
  #
261
263
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
262
264
  #
263
- def list_versions_with_http_info(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil)
264
- list_versions_async(location, publisher_name, type, filter, top, orderby, custom_headers).value!
265
+ def list_versions_with_http_info(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil)
266
+ list_versions_async(location, publisher_name, type, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
265
267
  end
266
268
 
267
269
  #
@@ -278,7 +280,7 @@ module Azure::Compute::Mgmt::V2015_06_15
278
280
  #
279
281
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
280
282
  #
281
- def list_versions_async(location, publisher_name, type, filter = nil, top = nil, orderby = nil, custom_headers = nil)
283
+ def list_versions_async(location, publisher_name, type, filter:nil, top:nil, orderby:nil, custom_headers:nil)
282
284
  fail ArgumentError, 'location is nil' if location.nil?
283
285
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
284
286
  fail ArgumentError, 'type is nil' if type.nil?
@@ -287,6 +289,7 @@ module Azure::Compute::Mgmt::V2015_06_15
287
289
 
288
290
 
289
291
  request_headers = {}
292
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
290
293
 
291
294
  # Set Headers
292
295
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid