azure_mgmt_compute 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_compute.rb +14 -0
  3. data/lib/generated/azure_mgmt_compute/availability_sets.rb +11 -11
  4. data/lib/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
  5. data/lib/generated/azure_mgmt_compute/container_service_operations.rb +524 -0
  6. data/lib/generated/azure_mgmt_compute/models/container_service.rb +167 -0
  7. data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +104 -0
  8. data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +46 -0
  9. data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +56 -0
  10. data/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb +52 -0
  11. data/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb +65 -0
  12. data/lib/generated/azure_mgmt_compute/models/container_service_ochestrator_types.rb +16 -0
  13. data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb +47 -0
  14. data/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb +53 -0
  15. data/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb +46 -0
  16. data/lib/generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb +57 -0
  17. data/lib/generated/azure_mgmt_compute/models/container_service_vmsize_types.rb +61 -0
  18. data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +54 -0
  19. data/lib/generated/azure_mgmt_compute/usage_operations.rb +4 -3
  20. data/lib/generated/azure_mgmt_compute/version.rb +1 -1
  21. data/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +7 -7
  22. data/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb +11 -7
  23. data/lib/generated/azure_mgmt_compute/virtual_machine_images.rb +11 -11
  24. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +32 -19
  25. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +50 -29
  26. data/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb +3 -3
  27. data/lib/generated/azure_mgmt_compute/virtual_machines.rb +45 -27
  28. metadata +20 -133
  29. data/.rspec +0 -3
  30. data/.yardoc/checksums +0 -106
  31. data/.yardoc/object_types +0 -0
  32. data/.yardoc/objects/root.dat +0 -0
  33. data/.yardoc/proxy_types +0 -0
  34. data/Rakefile +0 -5
  35. data/azure_mgmt_compute.gemspec +0 -32
  36. data/doc/Azure.html +0 -129
  37. data/doc/Azure/ARM.html +0 -117
  38. data/doc/Azure/ARM/Compute.html +0 -143
  39. data/doc/Azure/ARM/Compute/AvailabilitySets.html +0 -2935
  40. data/doc/Azure/ARM/Compute/ComputeManagementClient.html +0 -1759
  41. data/doc/Azure/ARM/Compute/Models.html +0 -126
  42. data/doc/Azure/ARM/Compute/Models/AdditionalUnattendContent.html +0 -674
  43. data/doc/Azure/ARM/Compute/Models/ApiEntityReference.html +0 -353
  44. data/doc/Azure/ARM/Compute/Models/ApiError.html +0 -779
  45. data/doc/Azure/ARM/Compute/Models/ApiErrorBase.html +0 -557
  46. data/doc/Azure/ARM/Compute/Models/AvailabilitySet.html +0 -784
  47. data/doc/Azure/ARM/Compute/Models/AvailabilitySetListResult.html +0 -369
  48. data/doc/Azure/ARM/Compute/Models/BootDiagnostics.html +0 -455
  49. data/doc/Azure/ARM/Compute/Models/BootDiagnosticsInstanceView.html +0 -455
  50. data/doc/Azure/ARM/Compute/Models/CachingTypes.html +0 -138
  51. data/doc/Azure/ARM/Compute/Models/ComponentNames.html +0 -128
  52. data/doc/Azure/ARM/Compute/Models/ComputeLongRunningOperationProperties.html +0 -353
  53. data/doc/Azure/ARM/Compute/Models/DataDisk.html +0 -977
  54. data/doc/Azure/ARM/Compute/Models/DataDiskImage.html +0 -357
  55. data/doc/Azure/ARM/Compute/Models/DiagnosticsProfile.html +0 -355
  56. data/doc/Azure/ARM/Compute/Models/DiskCreateOptionTypes.html +0 -138
  57. data/doc/Azure/ARM/Compute/Models/DiskEncryptionSettings.html +0 -561
  58. data/doc/Azure/ARM/Compute/Models/DiskInstanceView.html +0 -471
  59. data/doc/Azure/ARM/Compute/Models/HardwareProfile.html +0 -401
  60. data/doc/Azure/ARM/Compute/Models/ImageReference.html +0 -660
  61. data/doc/Azure/ARM/Compute/Models/InnerError.html +0 -455
  62. data/doc/Azure/ARM/Compute/Models/InstanceViewStatus.html +0 -763
  63. data/doc/Azure/ARM/Compute/Models/InstanceViewTypes.html +0 -128
  64. data/doc/Azure/ARM/Compute/Models/KeyVaultKeyReference.html +0 -457
  65. data/doc/Azure/ARM/Compute/Models/KeyVaultSecretReference.html +0 -457
  66. data/doc/Azure/ARM/Compute/Models/LinuxConfiguration.html +0 -457
  67. data/doc/Azure/ARM/Compute/Models/ListUsagesResult.html +0 -745
  68. data/doc/Azure/ARM/Compute/Models/NetworkInterfaceReference.html +0 -370
  69. data/doc/Azure/ARM/Compute/Models/NetworkProfile.html +0 -369
  70. data/doc/Azure/ARM/Compute/Models/OSDisk.html +0 -1083
  71. data/doc/Azure/ARM/Compute/Models/OSDiskImage.html +0 -355
  72. data/doc/Azure/ARM/Compute/Models/OSProfile.html +0 -985
  73. data/doc/Azure/ARM/Compute/Models/OperatingSystemTypes.html +0 -133
  74. data/doc/Azure/ARM/Compute/Models/PassNames.html +0 -128
  75. data/doc/Azure/ARM/Compute/Models/Plan.html +0 -659
  76. data/doc/Azure/ARM/Compute/Models/ProtocolTypes.html +0 -133
  77. data/doc/Azure/ARM/Compute/Models/PurchasePlan.html +0 -558
  78. data/doc/Azure/ARM/Compute/Models/SettingNames.html +0 -133
  79. data/doc/Azure/ARM/Compute/Models/Sku.html +0 -557
  80. data/doc/Azure/ARM/Compute/Models/SshConfiguration.html +0 -369
  81. data/doc/Azure/ARM/Compute/Models/SshPublicKey.html +0 -457
  82. data/doc/Azure/ARM/Compute/Models/StatusLevelTypes.html +0 -138
  83. data/doc/Azure/ARM/Compute/Models/StorageProfile.html +0 -577
  84. data/doc/Azure/ARM/Compute/Models/UpgradeMode.html +0 -133
  85. data/doc/Azure/ARM/Compute/Models/UpgradePolicy.html +0 -355
  86. data/doc/Azure/ARM/Compute/Models/Usage.html +0 -665
  87. data/doc/Azure/ARM/Compute/Models/UsageName.html +0 -455
  88. data/doc/Azure/ARM/Compute/Models/VaultCertificate.html +0 -456
  89. data/doc/Azure/ARM/Compute/Models/VaultSecretGroup.html +0 -473
  90. data/doc/Azure/ARM/Compute/Models/VirtualHardDisk.html +0 -353
  91. data/doc/Azure/ARM/Compute/Models/VirtualMachine.html +0 -1608
  92. data/doc/Azure/ARM/Compute/Models/VirtualMachineAgentInstanceView.html +0 -589
  93. data/doc/Azure/ARM/Compute/Models/VirtualMachineCaptureParameters.html +0 -557
  94. data/doc/Azure/ARM/Compute/Models/VirtualMachineCaptureResult.html +0 -370
  95. data/doc/Azure/ARM/Compute/Models/VirtualMachineExtension.html +0 -1266
  96. data/doc/Azure/ARM/Compute/Models/VirtualMachineExtensionHandlerInstanceView.html +0 -559
  97. data/doc/Azure/ARM/Compute/Models/VirtualMachineExtensionImage.html +0 -858
  98. data/doc/Azure/ARM/Compute/Models/VirtualMachineExtensionInstanceView.html +0 -793
  99. data/doc/Azure/ARM/Compute/Models/VirtualMachineImage.html +0 -637
  100. data/doc/Azure/ARM/Compute/Models/VirtualMachineImageResource.html +0 -592
  101. data/doc/Azure/ARM/Compute/Models/VirtualMachineInstanceView.html +0 -1119
  102. data/doc/Azure/ARM/Compute/Models/VirtualMachineListResult.html +0 -744
  103. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSet.html +0 -862
  104. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetExtension.html +0 -1086
  105. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetExtensionProfile.html +0 -369
  106. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetIPConfiguration.html +0 -829
  107. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetInstanceView.html +0 -595
  108. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetInstanceViewStatusesSummary.html +0 -373
  109. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetListResult.html +0 -744
  110. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetListSkusResult.html +0 -747
  111. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetListWithLinkResult.html +0 -747
  112. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetNetworkConfiguration.html +0 -591
  113. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetNetworkProfile.html +0 -369
  114. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetOSDisk.html +0 -889
  115. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetOSProfile.html +0 -985
  116. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetSku.html +0 -567
  117. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetSkuCapacity.html +0 -669
  118. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetSkuScaleType.html +0 -133
  119. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetStorageProfile.html +0 -459
  120. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVM.html +0 -1818
  121. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMExtensionsSummary.html +0 -475
  122. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMInstanceIDs.html +0 -367
  123. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMInstanceRequiredIDs.html +0 -367
  124. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMInstanceView.html +0 -1119
  125. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMListResult.html +0 -744
  126. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMProfile.html +0 -667
  127. data/doc/Azure/ARM/Compute/Models/VirtualMachineSize.html +0 -863
  128. data/doc/Azure/ARM/Compute/Models/VirtualMachineSizeListResult.html +0 -369
  129. data/doc/Azure/ARM/Compute/Models/VirtualMachineSizeTypes.html +0 -438
  130. data/doc/Azure/ARM/Compute/Models/VirtualMachineStatusCodeCount.html +0 -460
  131. data/doc/Azure/ARM/Compute/Models/WinRMConfiguration.html +0 -369
  132. data/doc/Azure/ARM/Compute/Models/WinRMListener.html +0 -458
  133. data/doc/Azure/ARM/Compute/Models/WindowsConfiguration.html +0 -781
  134. data/doc/Azure/ARM/Compute/UsageOperations.html +0 -1425
  135. data/doc/Azure/ARM/Compute/VirtualMachineExtensionImages.html +0 -2116
  136. data/doc/Azure/ARM/Compute/VirtualMachineExtensions.html +0 -2862
  137. data/doc/Azure/ARM/Compute/VirtualMachineImages.html +0 -3218
  138. data/doc/Azure/ARM/Compute/VirtualMachineScaleSetVMs.html +0 -7957
  139. data/doc/Azure/ARM/Compute/VirtualMachineScaleSets.html +0 -12417
  140. data/doc/Azure/ARM/Compute/VirtualMachineSizes.html +0 -823
  141. data/doc/Azure/ARM/Compute/VirtualMachines.html +0 -10514
  142. data/doc/_index.html +0 -970
  143. data/doc/class_list.html +0 -51
  144. data/doc/css/common.css +0 -1
  145. data/doc/css/full_list.css +0 -58
  146. data/doc/css/style.css +0 -474
  147. data/doc/file.README.html +0 -199
  148. data/doc/file_list.html +0 -56
  149. data/doc/frames.html +0 -17
  150. data/doc/index.html +0 -199
  151. data/doc/js/app.js +0 -243
  152. data/doc/js/full_list.js +0 -216
  153. data/doc/js/jquery.js +0 -4
  154. data/doc/method_list.html +0 -5147
  155. data/doc/top-level-namespace.html +0 -112
@@ -5,7 +5,7 @@
5
5
 
6
6
  module Azure::ARM::Compute
7
7
  #
8
- # The Compute Management Client.
8
+ # Composite Swagger for Compute Client
9
9
  #
10
10
  class VirtualMachineExtensions
11
11
  include Azure::ARM::Compute::Models
@@ -31,6 +31,7 @@ module Azure::ARM::Compute
31
31
  # @param vm_extension_name [String] The name of the virtual machine extension.
32
32
  # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
33
33
  # the Create Virtual Machine Extension operation.
34
+ # @param api_version [String] Client Api Version.
34
35
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
36
  # will be added to the HTTP request.
36
37
  #
@@ -48,6 +49,7 @@ module Azure::ARM::Compute
48
49
  # @param vm_extension_name [String] The name of the virtual machine extension.
49
50
  # @param extension_parameters [VirtualMachineExtension] Parameters supplied to
50
51
  # the Create Virtual Machine Extension operation.
52
+ # @param api_version [String] Client Api Version.
51
53
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
52
54
  # will be added to the HTTP request.
53
55
  #
@@ -128,7 +130,7 @@ module Azure::ARM::Compute
128
130
  fail ArgumentError, 'vm_name is nil' if vm_name.nil?
129
131
  fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
130
132
  fail ArgumentError, 'extension_parameters is nil' if extension_parameters.nil?
131
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
133
+ api_version = '2016-03-30'
132
134
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
133
135
 
134
136
 
@@ -149,7 +151,7 @@ module Azure::ARM::Compute
149
151
  options = {
150
152
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
151
153
  path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
152
- query_params: {'api-version' => @client.api_version},
154
+ query_params: {'api-version' => api_version},
153
155
  body: request_content,
154
156
  headers: request_headers.merge(custom_headers || {})
155
157
  }
@@ -206,6 +208,7 @@ module Azure::ARM::Compute
206
208
  # @param vm_name [String] The name of the virtual machine where the extension
207
209
  # should be deleted.
208
210
  # @param vm_extension_name [String] The name of the virtual machine extension.
211
+ # @param api_version [String] Client Api Version.
209
212
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
210
213
  # will be added to the HTTP request.
211
214
  #
@@ -219,6 +222,7 @@ module Azure::ARM::Compute
219
222
  # @param vm_name [String] The name of the virtual machine where the extension
220
223
  # should be deleted.
221
224
  # @param vm_extension_name [String] The name of the virtual machine extension.
225
+ # @param api_version [String] Client Api Version.
222
226
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
223
227
  # will be added to the HTTP request.
224
228
  #
@@ -289,7 +293,7 @@ module Azure::ARM::Compute
289
293
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
290
294
  fail ArgumentError, 'vm_name is nil' if vm_name.nil?
291
295
  fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
292
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
296
+ api_version = '2016-03-30'
293
297
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
294
298
 
295
299
 
@@ -302,7 +306,7 @@ module Azure::ARM::Compute
302
306
  options = {
303
307
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
304
308
  path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
305
- query_params: {'api-version' => @client.api_version},
309
+ query_params: {'api-version' => api_version},
306
310
  headers: request_headers.merge(custom_headers || {})
307
311
  }
308
312
 
@@ -383,7 +387,7 @@ module Azure::ARM::Compute
383
387
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
384
388
  fail ArgumentError, 'vm_name is nil' if vm_name.nil?
385
389
  fail ArgumentError, 'vm_extension_name is nil' if vm_extension_name.nil?
386
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
390
+ api_version = '2016-03-30'
387
391
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
388
392
 
389
393
 
@@ -396,7 +400,7 @@ module Azure::ARM::Compute
396
400
  options = {
397
401
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
398
402
  path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'vmExtensionName' => vm_extension_name,'subscriptionId' => @client.subscription_id},
399
- query_params: {'$expand' => expand,'api-version' => @client.api_version},
403
+ query_params: {'$expand' => expand,'api-version' => api_version},
400
404
  headers: request_headers.merge(custom_headers || {})
401
405
  }
402
406
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  module Azure::ARM::Compute
7
7
  #
8
- # The Compute Management Client.
8
+ # Composite Swagger for Compute Client
9
9
  #
10
10
  class VirtualMachineImages
11
11
  include Azure::ARM::Compute::Models
@@ -76,7 +76,7 @@ module Azure::ARM::Compute
76
76
  fail ArgumentError, 'offer is nil' if offer.nil?
77
77
  fail ArgumentError, 'skus is nil' if skus.nil?
78
78
  fail ArgumentError, 'version is nil' if version.nil?
79
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
79
+ api_version = '2016-03-30'
80
80
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
81
81
 
82
82
 
@@ -89,7 +89,7 @@ module Azure::ARM::Compute
89
89
  options = {
90
90
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
91
91
  path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'version' => version,'subscriptionId' => @client.subscription_id},
92
- query_params: {'api-version' => @client.api_version},
92
+ query_params: {'api-version' => api_version},
93
93
  headers: request_headers.merge(custom_headers || {})
94
94
  }
95
95
 
@@ -187,7 +187,7 @@ module Azure::ARM::Compute
187
187
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
188
188
  fail ArgumentError, 'offer is nil' if offer.nil?
189
189
  fail ArgumentError, 'skus is nil' if skus.nil?
190
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
190
+ api_version = '2016-03-30'
191
191
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
192
192
 
193
193
 
@@ -200,7 +200,7 @@ module Azure::ARM::Compute
200
200
  options = {
201
201
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
202
202
  path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'skus' => skus,'subscriptionId' => @client.subscription_id},
203
- query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
203
+ query_params: {'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => api_version},
204
204
  headers: request_headers.merge(custom_headers || {})
205
205
  }
206
206
 
@@ -295,7 +295,7 @@ module Azure::ARM::Compute
295
295
  def list_offers_async(location, publisher_name, custom_headers = nil)
296
296
  fail ArgumentError, 'location is nil' if location.nil?
297
297
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
298
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
298
+ api_version = '2016-03-30'
299
299
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
300
300
 
301
301
 
@@ -308,7 +308,7 @@ module Azure::ARM::Compute
308
308
  options = {
309
309
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
310
310
  path_params: {'location' => location,'publisherName' => publisher_name,'subscriptionId' => @client.subscription_id},
311
- query_params: {'api-version' => @client.api_version},
311
+ query_params: {'api-version' => api_version},
312
312
  headers: request_headers.merge(custom_headers || {})
313
313
  }
314
314
 
@@ -399,7 +399,7 @@ module Azure::ARM::Compute
399
399
  #
400
400
  def list_publishers_async(location, custom_headers = nil)
401
401
  fail ArgumentError, 'location is nil' if location.nil?
402
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
402
+ api_version = '2016-03-30'
403
403
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
404
404
 
405
405
 
@@ -412,7 +412,7 @@ module Azure::ARM::Compute
412
412
  options = {
413
413
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
414
414
  path_params: {'location' => location,'subscriptionId' => @client.subscription_id},
415
- query_params: {'api-version' => @client.api_version},
415
+ query_params: {'api-version' => api_version},
416
416
  headers: request_headers.merge(custom_headers || {})
417
417
  }
418
418
 
@@ -511,7 +511,7 @@ module Azure::ARM::Compute
511
511
  fail ArgumentError, 'location is nil' if location.nil?
512
512
  fail ArgumentError, 'publisher_name is nil' if publisher_name.nil?
513
513
  fail ArgumentError, 'offer is nil' if offer.nil?
514
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
514
+ api_version = '2016-03-30'
515
515
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
516
516
 
517
517
 
@@ -524,7 +524,7 @@ module Azure::ARM::Compute
524
524
  options = {
525
525
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
526
526
  path_params: {'location' => location,'publisherName' => publisher_name,'offer' => offer,'subscriptionId' => @client.subscription_id},
527
- query_params: {'api-version' => @client.api_version},
527
+ query_params: {'api-version' => api_version},
528
528
  headers: request_headers.merge(custom_headers || {})
529
529
  }
530
530
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  module Azure::ARM::Compute
7
7
  #
8
- # The Compute Management Client.
8
+ # Composite Swagger for Compute Client
9
9
  #
10
10
  class VirtualMachineScaleSetVMs
11
11
  include Azure::ARM::Compute::Models
@@ -29,6 +29,7 @@ module Azure::ARM::Compute
29
29
  # @param resource_group_name [String] The name of the resource group.
30
30
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
31
31
  # @param instance_id [String] The instance id of the virtual machine.
32
+ # @param api_version [String] Client Api Version.
32
33
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
34
  # will be added to the HTTP request.
34
35
  #
@@ -41,6 +42,7 @@ module Azure::ARM::Compute
41
42
  # @param resource_group_name [String] The name of the resource group.
42
43
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
43
44
  # @param instance_id [String] The instance id of the virtual machine.
45
+ # @param api_version [String] Client Api Version.
44
46
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
47
  # will be added to the HTTP request.
46
48
  #
@@ -111,7 +113,7 @@ module Azure::ARM::Compute
111
113
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
112
114
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
113
115
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
114
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
116
+ api_version = '2016-03-30'
115
117
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
116
118
 
117
119
 
@@ -124,7 +126,7 @@ module Azure::ARM::Compute
124
126
  options = {
125
127
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
126
128
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
127
- query_params: {'api-version' => @client.api_version},
129
+ query_params: {'api-version' => api_version},
128
130
  headers: request_headers.merge(custom_headers || {})
129
131
  }
130
132
 
@@ -161,6 +163,7 @@ module Azure::ARM::Compute
161
163
  # @param resource_group_name [String] The name of the resource group.
162
164
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
163
165
  # @param instance_id [String] The instance id of the virtual machine.
166
+ # @param api_version [String] Client Api Version.
164
167
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
165
168
  # will be added to the HTTP request.
166
169
  #
@@ -173,6 +176,7 @@ module Azure::ARM::Compute
173
176
  # @param resource_group_name [String] The name of the resource group.
174
177
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
175
178
  # @param instance_id [String] The instance id of the virtual machine.
179
+ # @param api_version [String] Client Api Version.
176
180
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
177
181
  # will be added to the HTTP request.
178
182
  #
@@ -246,7 +250,7 @@ module Azure::ARM::Compute
246
250
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
247
251
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
248
252
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
249
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
253
+ api_version = '2016-03-30'
250
254
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
251
255
 
252
256
 
@@ -259,7 +263,7 @@ module Azure::ARM::Compute
259
263
  options = {
260
264
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
261
265
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
262
- query_params: {'api-version' => @client.api_version},
266
+ query_params: {'api-version' => api_version},
263
267
  headers: request_headers.merge(custom_headers || {})
264
268
  }
265
269
 
@@ -294,6 +298,7 @@ module Azure::ARM::Compute
294
298
  # @param resource_group_name [String] The name of the resource group.
295
299
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
296
300
  # @param instance_id [String] The instance id of the virtual machine.
301
+ # @param api_version [String] Client Api Version.
297
302
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
298
303
  # will be added to the HTTP request.
299
304
  #
@@ -306,6 +311,7 @@ module Azure::ARM::Compute
306
311
  # @param resource_group_name [String] The name of the resource group.
307
312
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
308
313
  # @param instance_id [String] The instance id of the virtual machine.
314
+ # @param api_version [String] Client Api Version.
309
315
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
310
316
  # will be added to the HTTP request.
311
317
  #
@@ -373,7 +379,7 @@ module Azure::ARM::Compute
373
379
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
374
380
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
375
381
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
376
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
382
+ api_version = '2016-03-30'
377
383
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
378
384
 
379
385
 
@@ -386,7 +392,7 @@ module Azure::ARM::Compute
386
392
  options = {
387
393
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
388
394
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
389
- query_params: {'api-version' => @client.api_version},
395
+ query_params: {'api-version' => api_version},
390
396
  headers: request_headers.merge(custom_headers || {})
391
397
  }
392
398
 
@@ -461,7 +467,7 @@ module Azure::ARM::Compute
461
467
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
462
468
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
463
469
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
464
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
470
+ api_version = '2016-03-30'
465
471
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
466
472
 
467
473
 
@@ -474,7 +480,7 @@ module Azure::ARM::Compute
474
480
  options = {
475
481
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
476
482
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
477
- query_params: {'api-version' => @client.api_version},
483
+ query_params: {'api-version' => api_version},
478
484
  headers: request_headers.merge(custom_headers || {})
479
485
  }
480
486
 
@@ -559,7 +565,7 @@ module Azure::ARM::Compute
559
565
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
560
566
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
561
567
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
562
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
568
+ api_version = '2016-03-30'
563
569
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
564
570
 
565
571
 
@@ -572,7 +578,7 @@ module Azure::ARM::Compute
572
578
  options = {
573
579
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
574
580
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
575
- query_params: {'api-version' => @client.api_version},
581
+ query_params: {'api-version' => api_version},
576
582
  headers: request_headers.merge(custom_headers || {})
577
583
  }
578
584
 
@@ -617,6 +623,7 @@ module Azure::ARM::Compute
617
623
  # @param resource_group_name [String] The name of the resource group.
618
624
  # @param virtual_machine_scale_set_name [String] The name of the virtual
619
625
  # machine scale set.
626
+ # @param api_version [String] Client Api Version.
620
627
  # @param filter [String] The filter to apply on the operation.
621
628
  # @param select [String] The list parameters.
622
629
  # @param expand [String] The expand expression to apply on the operation.
@@ -691,7 +698,7 @@ module Azure::ARM::Compute
691
698
  def list_async(resource_group_name, virtual_machine_scale_set_name, filter = nil, select = nil, expand = nil, custom_headers = nil)
692
699
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
693
700
  fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
694
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
701
+ api_version = '2016-03-30'
695
702
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
696
703
 
697
704
 
@@ -704,7 +711,7 @@ module Azure::ARM::Compute
704
711
  options = {
705
712
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
706
713
  path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id},
707
- query_params: {'$filter' => filter,'$select' => select,'$expand' => expand,'api-version' => @client.api_version},
714
+ query_params: {'$filter' => filter,'$select' => select,'$expand' => expand,'api-version' => api_version},
708
715
  headers: request_headers.merge(custom_headers || {})
709
716
  }
710
717
 
@@ -749,6 +756,7 @@ module Azure::ARM::Compute
749
756
  # @param resource_group_name [String] The name of the resource group.
750
757
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
751
758
  # @param instance_id [String] The instance id of the virtual machine.
759
+ # @param api_version [String] Client Api Version.
752
760
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
753
761
  # will be added to the HTTP request.
754
762
  #
@@ -761,6 +769,7 @@ module Azure::ARM::Compute
761
769
  # @param resource_group_name [String] The name of the resource group.
762
770
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
763
771
  # @param instance_id [String] The instance id of the virtual machine.
772
+ # @param api_version [String] Client Api Version.
764
773
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
765
774
  # will be added to the HTTP request.
766
775
  #
@@ -828,7 +837,7 @@ module Azure::ARM::Compute
828
837
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
829
838
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
830
839
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
831
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
840
+ api_version = '2016-03-30'
832
841
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
833
842
 
834
843
 
@@ -841,7 +850,7 @@ module Azure::ARM::Compute
841
850
  options = {
842
851
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
843
852
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
844
- query_params: {'api-version' => @client.api_version},
853
+ query_params: {'api-version' => api_version},
845
854
  headers: request_headers.merge(custom_headers || {})
846
855
  }
847
856
 
@@ -876,6 +885,7 @@ module Azure::ARM::Compute
876
885
  # @param resource_group_name [String] The name of the resource group.
877
886
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
878
887
  # @param instance_id [String] The instance id of the virtual machine.
888
+ # @param api_version [String] Client Api Version.
879
889
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
880
890
  # will be added to the HTTP request.
881
891
  #
@@ -888,6 +898,7 @@ module Azure::ARM::Compute
888
898
  # @param resource_group_name [String] The name of the resource group.
889
899
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
890
900
  # @param instance_id [String] The instance id of the virtual machine.
901
+ # @param api_version [String] Client Api Version.
891
902
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
892
903
  # will be added to the HTTP request.
893
904
  #
@@ -955,7 +966,7 @@ module Azure::ARM::Compute
955
966
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
956
967
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
957
968
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
958
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
969
+ api_version = '2016-03-30'
959
970
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
960
971
 
961
972
 
@@ -968,7 +979,7 @@ module Azure::ARM::Compute
968
979
  options = {
969
980
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
970
981
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
971
- query_params: {'api-version' => @client.api_version},
982
+ query_params: {'api-version' => api_version},
972
983
  headers: request_headers.merge(custom_headers || {})
973
984
  }
974
985
 
@@ -1003,6 +1014,7 @@ module Azure::ARM::Compute
1003
1014
  # @param resource_group_name [String] The name of the resource group.
1004
1015
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1005
1016
  # @param instance_id [String] The instance id of the virtual machine.
1017
+ # @param api_version [String] Client Api Version.
1006
1018
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1007
1019
  # will be added to the HTTP request.
1008
1020
  #
@@ -1015,6 +1027,7 @@ module Azure::ARM::Compute
1015
1027
  # @param resource_group_name [String] The name of the resource group.
1016
1028
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1017
1029
  # @param instance_id [String] The instance id of the virtual machine.
1030
+ # @param api_version [String] Client Api Version.
1018
1031
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1019
1032
  # will be added to the HTTP request.
1020
1033
  #
@@ -1082,7 +1095,7 @@ module Azure::ARM::Compute
1082
1095
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1083
1096
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1084
1097
  fail ArgumentError, 'instance_id is nil' if instance_id.nil?
1085
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1098
+ api_version = '2016-03-30'
1086
1099
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1087
1100
 
1088
1101
 
@@ -1095,7 +1108,7 @@ module Azure::ARM::Compute
1095
1108
  options = {
1096
1109
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1097
1110
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'instanceId' => instance_id,'subscriptionId' => @client.subscription_id},
1098
- query_params: {'api-version' => @client.api_version},
1111
+ query_params: {'api-version' => api_version},
1099
1112
  headers: request_headers.merge(custom_headers || {})
1100
1113
  }
1101
1114
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  module Azure::ARM::Compute
7
7
  #
8
- # The Compute Management Client.
8
+ # Composite Swagger for Compute Client
9
9
  #
10
10
  class VirtualMachineScaleSets
11
11
  include Azure::ARM::Compute::Models
@@ -31,6 +31,7 @@ module Azure::ARM::Compute
31
31
  # Set operation.
32
32
  # @param parameters [VirtualMachineScaleSet] Parameters supplied to the Create
33
33
  # Virtual Machine Scale Set operation.
34
+ # @param api_version [String] Client Api Version.
34
35
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
36
  # will be added to the HTTP request.
36
37
  #
@@ -47,6 +48,7 @@ module Azure::ARM::Compute
47
48
  # Set operation.
48
49
  # @param parameters [VirtualMachineScaleSet] Parameters supplied to the Create
49
50
  # Virtual Machine Scale Set operation.
51
+ # @param api_version [String] Client Api Version.
50
52
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
53
  # will be added to the HTTP request.
52
54
  #
@@ -126,7 +128,7 @@ module Azure::ARM::Compute
126
128
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
127
129
  fail ArgumentError, 'name is nil' if name.nil?
128
130
  fail ArgumentError, 'parameters is nil' if parameters.nil?
129
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
131
+ api_version = '2016-03-30'
130
132
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
131
133
 
132
134
 
@@ -147,7 +149,7 @@ module Azure::ARM::Compute
147
149
  options = {
148
150
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
149
151
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
150
- query_params: {'api-version' => @client.api_version},
152
+ query_params: {'api-version' => api_version},
151
153
  body: request_content,
152
154
  headers: request_headers.merge(custom_headers || {})
153
155
  }
@@ -205,6 +207,7 @@ module Azure::ARM::Compute
205
207
  #
206
208
  # @param resource_group_name [String] The name of the resource group.
207
209
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
210
+ # @param api_version [String] Client Api Version.
208
211
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceIDs] The list of
209
212
  # virtual machine scale set instance IDs.
210
213
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -218,6 +221,7 @@ module Azure::ARM::Compute
218
221
  #
219
222
  # @param resource_group_name [String] The name of the resource group.
220
223
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
224
+ # @param api_version [String] Client Api Version.
221
225
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceIDs] The list of
222
226
  # virtual machine scale set instance IDs.
223
227
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -298,7 +302,7 @@ module Azure::ARM::Compute
298
302
  def begin_deallocate_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
299
303
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
300
304
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
301
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
305
+ api_version = '2016-03-30'
302
306
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
303
307
 
304
308
 
@@ -319,7 +323,7 @@ module Azure::ARM::Compute
319
323
  options = {
320
324
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
321
325
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
322
- query_params: {'api-version' => @client.api_version},
326
+ query_params: {'api-version' => api_version},
323
327
  body: request_content,
324
328
  headers: request_headers.merge(custom_headers || {})
325
329
  }
@@ -354,6 +358,7 @@ module Azure::ARM::Compute
354
358
  #
355
359
  # @param resource_group_name [String] The name of the resource group.
356
360
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
361
+ # @param api_version [String] Client Api Version.
357
362
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
358
363
  # will be added to the HTTP request.
359
364
  #
@@ -365,6 +370,7 @@ module Azure::ARM::Compute
365
370
  #
366
371
  # @param resource_group_name [String] The name of the resource group.
367
372
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
373
+ # @param api_version [String] Client Api Version.
368
374
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
369
375
  # will be added to the HTTP request.
370
376
  #
@@ -428,7 +434,7 @@ module Azure::ARM::Compute
428
434
  def begin_delete_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
429
435
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
430
436
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
431
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
437
+ api_version = '2016-03-30'
432
438
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
433
439
 
434
440
 
@@ -441,7 +447,7 @@ module Azure::ARM::Compute
441
447
  options = {
442
448
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
443
449
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
444
- query_params: {'api-version' => @client.api_version},
450
+ query_params: {'api-version' => api_version},
445
451
  headers: request_headers.merge(custom_headers || {})
446
452
  }
447
453
 
@@ -512,7 +518,7 @@ module Azure::ARM::Compute
512
518
  def get_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
513
519
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
514
520
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
515
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
521
+ api_version = '2016-03-30'
516
522
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
517
523
 
518
524
 
@@ -525,7 +531,7 @@ module Azure::ARM::Compute
525
531
  options = {
526
532
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
527
533
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
528
- query_params: {'api-version' => @client.api_version},
534
+ query_params: {'api-version' => api_version},
529
535
  headers: request_headers.merge(custom_headers || {})
530
536
  }
531
537
 
@@ -571,6 +577,7 @@ module Azure::ARM::Compute
571
577
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
572
578
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceRequiredIDs] The
573
579
  # list of virtual machine scale set instance IDs.
580
+ # @param api_version [String] Client Api Version.
574
581
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
575
582
  # will be added to the HTTP request.
576
583
  #
@@ -584,6 +591,7 @@ module Azure::ARM::Compute
584
591
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
585
592
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceRequiredIDs] The
586
593
  # list of virtual machine scale set instance IDs.
594
+ # @param api_version [String] Client Api Version.
587
595
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
588
596
  # will be added to the HTTP request.
589
597
  #
@@ -654,7 +662,7 @@ module Azure::ARM::Compute
654
662
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
655
663
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
656
664
  fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil?
657
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
665
+ api_version = '2016-03-30'
658
666
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
659
667
 
660
668
 
@@ -675,7 +683,7 @@ module Azure::ARM::Compute
675
683
  options = {
676
684
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
677
685
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
678
- query_params: {'api-version' => @client.api_version},
686
+ query_params: {'api-version' => api_version},
679
687
  body: request_content,
680
688
  headers: request_headers.merge(custom_headers || {})
681
689
  }
@@ -747,7 +755,7 @@ module Azure::ARM::Compute
747
755
  def get_instance_view_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
748
756
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
749
757
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
750
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
758
+ api_version = '2016-03-30'
751
759
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
752
760
 
753
761
 
@@ -760,7 +768,7 @@ module Azure::ARM::Compute
760
768
  options = {
761
769
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
762
770
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
763
- query_params: {'api-version' => @client.api_version},
771
+ query_params: {'api-version' => api_version},
764
772
  headers: request_headers.merge(custom_headers || {})
765
773
  }
766
774
 
@@ -803,6 +811,7 @@ module Azure::ARM::Compute
803
811
  # Lists all virtual machine scale sets under a resource group.
804
812
  #
805
813
  # @param resource_group_name [String] The name of the resource group.
814
+ # @param api_version [String] Client Api Version.
806
815
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
807
816
  # will be added to the HTTP request.
808
817
  #
@@ -858,7 +867,7 @@ module Azure::ARM::Compute
858
867
  #
859
868
  def list_async(resource_group_name, custom_headers = nil)
860
869
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
861
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
870
+ api_version = '2016-03-30'
862
871
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
863
872
 
864
873
 
@@ -871,7 +880,7 @@ module Azure::ARM::Compute
871
880
  options = {
872
881
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
873
882
  path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
874
- query_params: {'api-version' => @client.api_version},
883
+ query_params: {'api-version' => api_version},
875
884
  headers: request_headers.merge(custom_headers || {})
876
885
  }
877
886
 
@@ -916,6 +925,7 @@ module Azure::ARM::Compute
916
925
  # Sets. Do this till nextLink is not null to fetch all the Virtual Machine
917
926
  # Scale Sets.
918
927
  #
928
+ # @param api_version [String] Client Api Version.
919
929
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
920
930
  # will be added to the HTTP request.
921
931
  #
@@ -976,7 +986,7 @@ module Azure::ARM::Compute
976
986
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
977
987
  #
978
988
  def list_all_async(custom_headers = nil)
979
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
989
+ api_version = '2016-03-30'
980
990
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
981
991
 
982
992
 
@@ -989,7 +999,7 @@ module Azure::ARM::Compute
989
999
  options = {
990
1000
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
991
1001
  path_params: {'subscriptionId' => @client.subscription_id},
992
- query_params: {'api-version' => @client.api_version},
1002
+ query_params: {'api-version' => api_version},
993
1003
  headers: request_headers.merge(custom_headers || {})
994
1004
  }
995
1005
 
@@ -1034,6 +1044,7 @@ module Azure::ARM::Compute
1034
1044
  #
1035
1045
  # @param resource_group_name [String] The name of the resource group.
1036
1046
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1047
+ # @param api_version [String] Client Api Version.
1037
1048
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1038
1049
  # will be added to the HTTP request.
1039
1050
  #
@@ -1096,7 +1107,7 @@ module Azure::ARM::Compute
1096
1107
  def list_skus_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
1097
1108
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1098
1109
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1099
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1110
+ api_version = '2016-03-30'
1100
1111
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1101
1112
 
1102
1113
 
@@ -1109,7 +1120,7 @@ module Azure::ARM::Compute
1109
1120
  options = {
1110
1121
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1111
1122
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
1112
- query_params: {'api-version' => @client.api_version},
1123
+ query_params: {'api-version' => api_version},
1113
1124
  headers: request_headers.merge(custom_headers || {})
1114
1125
  }
1115
1126
 
@@ -1155,6 +1166,7 @@ module Azure::ARM::Compute
1155
1166
  #
1156
1167
  # @param resource_group_name [String] The name of the resource group.
1157
1168
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1169
+ # @param api_version [String] Client Api Version.
1158
1170
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceIDs] The list of
1159
1171
  # virtual machine scale set instance IDs.
1160
1172
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1168,6 +1180,7 @@ module Azure::ARM::Compute
1168
1180
  #
1169
1181
  # @param resource_group_name [String] The name of the resource group.
1170
1182
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1183
+ # @param api_version [String] Client Api Version.
1171
1184
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceIDs] The list of
1172
1185
  # virtual machine scale set instance IDs.
1173
1186
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1245,7 +1258,7 @@ module Azure::ARM::Compute
1245
1258
  def begin_power_off_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1246
1259
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1247
1260
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1248
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1261
+ api_version = '2016-03-30'
1249
1262
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1250
1263
 
1251
1264
 
@@ -1266,7 +1279,7 @@ module Azure::ARM::Compute
1266
1279
  options = {
1267
1280
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1268
1281
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
1269
- query_params: {'api-version' => @client.api_version},
1282
+ query_params: {'api-version' => api_version},
1270
1283
  body: request_content,
1271
1284
  headers: request_headers.merge(custom_headers || {})
1272
1285
  }
@@ -1301,6 +1314,7 @@ module Azure::ARM::Compute
1301
1314
  #
1302
1315
  # @param resource_group_name [String] The name of the resource group.
1303
1316
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1317
+ # @param api_version [String] Client Api Version.
1304
1318
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceIDs] The list of
1305
1319
  # virtual machine scale set instance IDs.
1306
1320
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1314,6 +1328,7 @@ module Azure::ARM::Compute
1314
1328
  #
1315
1329
  # @param resource_group_name [String] The name of the resource group.
1316
1330
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1331
+ # @param api_version [String] Client Api Version.
1317
1332
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceIDs] The list of
1318
1333
  # virtual machine scale set instance IDs.
1319
1334
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1385,7 +1400,7 @@ module Azure::ARM::Compute
1385
1400
  def begin_restart_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1386
1401
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1387
1402
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1388
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1403
+ api_version = '2016-03-30'
1389
1404
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1390
1405
 
1391
1406
 
@@ -1406,7 +1421,7 @@ module Azure::ARM::Compute
1406
1421
  options = {
1407
1422
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1408
1423
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
1409
- query_params: {'api-version' => @client.api_version},
1424
+ query_params: {'api-version' => api_version},
1410
1425
  body: request_content,
1411
1426
  headers: request_headers.merge(custom_headers || {})
1412
1427
  }
@@ -1441,6 +1456,7 @@ module Azure::ARM::Compute
1441
1456
  #
1442
1457
  # @param resource_group_name [String] The name of the resource group.
1443
1458
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1459
+ # @param api_version [String] Client Api Version.
1444
1460
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceIDs] The list of
1445
1461
  # virtual machine scale set instance IDs.
1446
1462
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1454,6 +1470,7 @@ module Azure::ARM::Compute
1454
1470
  #
1455
1471
  # @param resource_group_name [String] The name of the resource group.
1456
1472
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1473
+ # @param api_version [String] Client Api Version.
1457
1474
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceIDs] The list of
1458
1475
  # virtual machine scale set instance IDs.
1459
1476
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1525,7 +1542,7 @@ module Azure::ARM::Compute
1525
1542
  def begin_start_async(resource_group_name, vm_scale_set_name, vm_instance_ids = nil, custom_headers = nil)
1526
1543
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1527
1544
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1528
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1545
+ api_version = '2016-03-30'
1529
1546
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1530
1547
 
1531
1548
 
@@ -1546,7 +1563,7 @@ module Azure::ARM::Compute
1546
1563
  options = {
1547
1564
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1548
1565
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
1549
- query_params: {'api-version' => @client.api_version},
1566
+ query_params: {'api-version' => api_version},
1550
1567
  body: request_content,
1551
1568
  headers: request_headers.merge(custom_headers || {})
1552
1569
  }
@@ -1584,6 +1601,7 @@ module Azure::ARM::Compute
1584
1601
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1585
1602
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceRequiredIDs] The
1586
1603
  # list of virtual machine scale set instance IDs.
1604
+ # @param api_version [String] Client Api Version.
1587
1605
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1588
1606
  # will be added to the HTTP request.
1589
1607
  #
@@ -1597,6 +1615,7 @@ module Azure::ARM::Compute
1597
1615
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1598
1616
  # @param vm_instance_ids [VirtualMachineScaleSetVMInstanceRequiredIDs] The
1599
1617
  # list of virtual machine scale set instance IDs.
1618
+ # @param api_version [String] Client Api Version.
1600
1619
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1601
1620
  # will be added to the HTTP request.
1602
1621
  #
@@ -1670,7 +1689,7 @@ module Azure::ARM::Compute
1670
1689
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1671
1690
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1672
1691
  fail ArgumentError, 'vm_instance_ids is nil' if vm_instance_ids.nil?
1673
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1692
+ api_version = '2016-03-30'
1674
1693
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1675
1694
 
1676
1695
 
@@ -1691,7 +1710,7 @@ module Azure::ARM::Compute
1691
1710
  options = {
1692
1711
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1693
1712
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
1694
- query_params: {'api-version' => @client.api_version},
1713
+ query_params: {'api-version' => api_version},
1695
1714
  body: request_content,
1696
1715
  headers: request_headers.merge(custom_headers || {})
1697
1716
  }
@@ -1727,6 +1746,7 @@ module Azure::ARM::Compute
1727
1746
  #
1728
1747
  # @param resource_group_name [String] The name of the resource group.
1729
1748
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1749
+ # @param api_version [String] Client Api Version.
1730
1750
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1731
1751
  # will be added to the HTTP request.
1732
1752
  #
@@ -1738,6 +1758,7 @@ module Azure::ARM::Compute
1738
1758
  #
1739
1759
  # @param resource_group_name [String] The name of the resource group.
1740
1760
  # @param vm_scale_set_name [String] The name of the virtual machine scale set.
1761
+ # @param api_version [String] Client Api Version.
1741
1762
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1742
1763
  # will be added to the HTTP request.
1743
1764
  #
@@ -1804,7 +1825,7 @@ module Azure::ARM::Compute
1804
1825
  def begin_reimage_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
1805
1826
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1806
1827
  fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
1807
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1828
+ api_version = '2016-03-30'
1808
1829
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1809
1830
 
1810
1831
 
@@ -1817,7 +1838,7 @@ module Azure::ARM::Compute
1817
1838
  options = {
1818
1839
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1819
1840
  path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
1820
- query_params: {'api-version' => @client.api_version},
1841
+ query_params: {'api-version' => api_version},
1821
1842
  headers: request_headers.merge(custom_headers || {})
1822
1843
  }
1823
1844