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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: efdd60736fa79c2f5064a8ac1cf9f4275f28416e
4
- data.tar.gz: 25f8e4061311bd83f101b71fa118a4e06f4ad331
3
+ metadata.gz: f8d02b3df402547e216935d5d5b70ebbca63894c
4
+ data.tar.gz: dd1d567d66f2043cc87fbe213abaf4aa13b52424
5
5
  SHA512:
6
- metadata.gz: f965b4f09be914e6bf59da0576d838674ebbac87800381fc196349fbe56e9ddc9260e7972795e89b3781acf7a544d16783c5296d8b2f876550cf0aec3c9c2cf7
7
- data.tar.gz: 257e2a16e3ca1cdcf26a3e41c46f604bfb66415e89f7a0cee9ca44265a610e96bf00f68fc0c8f8a6226ceedbce7e97a9d541866f3458a9082fd120299c95c886
6
+ metadata.gz: 28a5adf35b73e23376c7860859b325f9116d64c1f8aa48c8c3b2ac97b3b0055c952491b4105a02c429bf61e46f90b7d0d16437ec214c3ea0f7a3fc590f4bcff3
7
+ data.tar.gz: 85e18f9f55f9e74810d4918bfc898d0c9e5a8339e7f0e63e650677b075afb7762a1fd0a666accc178a0d748857010e491ce77f0a63d888772bf72e4eb0542c58
@@ -29,6 +29,7 @@ module Azure::ARM::Compute
29
29
  autoload :VirtualMachines, 'generated/azure_mgmt_compute/virtual_machines.rb'
30
30
  autoload :VirtualMachineScaleSets, 'generated/azure_mgmt_compute/virtual_machine_scale_sets.rb'
31
31
  autoload :VirtualMachineScaleSetVMs, 'generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb'
32
+ autoload :ContainerServiceOperations, 'generated/azure_mgmt_compute/container_service_operations.rb'
32
33
  autoload :ComputeManagementClient, 'generated/azure_mgmt_compute/compute_management_client.rb'
33
34
 
34
35
  module Models
@@ -99,6 +100,16 @@ module Azure::ARM::Compute
99
100
  autoload :InnerError, 'generated/azure_mgmt_compute/models/inner_error.rb'
100
101
  autoload :ApiError, 'generated/azure_mgmt_compute/models/api_error.rb'
101
102
  autoload :ComputeLongRunningOperationProperties, 'generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb'
103
+ autoload :ContainerServiceOrchestratorProfile, 'generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb'
104
+ autoload :ContainerServiceMasterProfile, 'generated/azure_mgmt_compute/models/container_service_master_profile.rb'
105
+ autoload :ContainerServiceAgentPoolProfile, 'generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb'
106
+ autoload :ContainerServiceWindowsProfile, 'generated/azure_mgmt_compute/models/container_service_windows_profile.rb'
107
+ autoload :ContainerServiceLinuxProfile, 'generated/azure_mgmt_compute/models/container_service_linux_profile.rb'
108
+ autoload :ContainerServiceSshConfiguration, 'generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb'
109
+ autoload :ContainerServiceSshPublicKey, 'generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb'
110
+ autoload :ContainerServiceDiagnosticsProfile, 'generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb'
111
+ autoload :ContainerServiceVMDiagnostics, 'generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb'
112
+ autoload :ContainerServiceListResult, 'generated/azure_mgmt_compute/models/container_service_list_result.rb'
102
113
  autoload :AvailabilitySet, 'generated/azure_mgmt_compute/models/availability_set.rb'
103
114
  autoload :VirtualMachineExtensionImage, 'generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb'
104
115
  autoload :VirtualMachineImageResource, 'generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb'
@@ -111,6 +122,7 @@ module Azure::ARM::Compute
111
122
  autoload :VirtualMachineScaleSetExtension, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb'
112
123
  autoload :VirtualMachineScaleSet, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb'
113
124
  autoload :VirtualMachineScaleSetVM, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb'
125
+ autoload :ContainerService, 'generated/azure_mgmt_compute/models/container_service.rb'
114
126
  autoload :VirtualMachineImage, 'generated/azure_mgmt_compute/models/virtual_machine_image.rb'
115
127
  autoload :StatusLevelTypes, 'generated/azure_mgmt_compute/models/status_level_types.rb'
116
128
  autoload :OperatingSystemTypes, 'generated/azure_mgmt_compute/models/operating_system_types.rb'
@@ -124,5 +136,7 @@ module Azure::ARM::Compute
124
136
  autoload :UpgradeMode, 'generated/azure_mgmt_compute/models/upgrade_mode.rb'
125
137
  autoload :VirtualMachineScaleSetSkuScaleType, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb'
126
138
  autoload :InstanceViewTypes, 'generated/azure_mgmt_compute/models/instance_view_types.rb'
139
+ autoload :ContainerServiceOchestratorTypes, 'generated/azure_mgmt_compute/models/container_service_ochestrator_types.rb'
140
+ autoload :ContainerServiceVMSizeTypes, 'generated/azure_mgmt_compute/models/container_service_vmsize_types.rb'
127
141
  end
128
142
  end
@@ -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 AvailabilitySets
11
11
  include Azure::ARM::Compute::Models
@@ -74,7 +74,7 @@ module Azure::ARM::Compute
74
74
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
75
75
  fail ArgumentError, 'name is nil' if name.nil?
76
76
  fail ArgumentError, 'parameters is nil' if parameters.nil?
77
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
+ api_version = '2016-03-30'
78
78
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
79
79
 
80
80
 
@@ -95,7 +95,7 @@ module Azure::ARM::Compute
95
95
  options = {
96
96
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
97
97
  path_params: {'resourceGroupName' => resource_group_name,'name' => name,'subscriptionId' => @client.subscription_id},
98
- query_params: {'api-version' => @client.api_version},
98
+ query_params: {'api-version' => api_version},
99
99
  body: request_content,
100
100
  headers: request_headers.merge(custom_headers || {})
101
101
  }
@@ -176,7 +176,7 @@ module Azure::ARM::Compute
176
176
  def delete_async(resource_group_name, availability_set_name, custom_headers = nil)
177
177
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
178
178
  fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
179
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
179
+ api_version = '2016-03-30'
180
180
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
181
181
 
182
182
 
@@ -189,7 +189,7 @@ module Azure::ARM::Compute
189
189
  options = {
190
190
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
191
191
  path_params: {'resourceGroupName' => resource_group_name,'availabilitySetName' => availability_set_name,'subscriptionId' => @client.subscription_id},
192
- query_params: {'api-version' => @client.api_version},
192
+ query_params: {'api-version' => api_version},
193
193
  headers: request_headers.merge(custom_headers || {})
194
194
  }
195
195
 
@@ -260,7 +260,7 @@ module Azure::ARM::Compute
260
260
  def get_async(resource_group_name, availability_set_name, custom_headers = nil)
261
261
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
262
262
  fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
263
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
263
+ api_version = '2016-03-30'
264
264
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
265
265
 
266
266
 
@@ -273,7 +273,7 @@ module Azure::ARM::Compute
273
273
  options = {
274
274
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
275
275
  path_params: {'resourceGroupName' => resource_group_name,'availabilitySetName' => availability_set_name,'subscriptionId' => @client.subscription_id},
276
- query_params: {'api-version' => @client.api_version},
276
+ query_params: {'api-version' => api_version},
277
277
  headers: request_headers.merge(custom_headers || {})
278
278
  }
279
279
 
@@ -350,7 +350,7 @@ module Azure::ARM::Compute
350
350
  #
351
351
  def list_async(resource_group_name, custom_headers = nil)
352
352
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
353
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
353
+ api_version = '2016-03-30'
354
354
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
355
355
 
356
356
 
@@ -363,7 +363,7 @@ module Azure::ARM::Compute
363
363
  options = {
364
364
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
365
365
  path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
366
- query_params: {'api-version' => @client.api_version},
366
+ query_params: {'api-version' => api_version},
367
367
  headers: request_headers.merge(custom_headers || {})
368
368
  }
369
369
 
@@ -447,7 +447,7 @@ module Azure::ARM::Compute
447
447
  def list_available_sizes_async(resource_group_name, availability_set_name, custom_headers = nil)
448
448
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
449
449
  fail ArgumentError, 'availability_set_name is nil' if availability_set_name.nil?
450
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
450
+ api_version = '2016-03-30'
451
451
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
452
452
 
453
453
 
@@ -460,7 +460,7 @@ module Azure::ARM::Compute
460
460
  options = {
461
461
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
462
462
  path_params: {'resourceGroupName' => resource_group_name,'availabilitySetName' => availability_set_name,'subscriptionId' => @client.subscription_id},
463
- query_params: {'api-version' => @client.api_version},
463
+ query_params: {'api-version' => api_version},
464
464
  headers: request_headers.merge(custom_headers || {})
465
465
  }
466
466
 
@@ -22,9 +22,6 @@ module Azure::ARM::Compute
22
22
  # for every service call.
23
23
  attr_accessor :subscription_id
24
24
 
25
- # @return [String] Client Api Version.
26
- attr_reader :api_version
27
-
28
25
  # @return [String] Gets or sets the preferred language for the response.
29
26
  attr_accessor :accept_language
30
27
 
@@ -67,6 +64,9 @@ module Azure::ARM::Compute
67
64
  # @return [VirtualMachineScaleSetVMs] virtual_machine_scale_set_vms
68
65
  attr_reader :virtual_machine_scale_set_vms
69
66
 
67
+ # @return [ContainerServiceOperations] container_service_operations
68
+ attr_reader :container_service_operations
69
+
70
70
  #
71
71
  # Creates initializes a new instance of the ComputeManagementClient class.
72
72
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@@ -90,7 +90,7 @@ module Azure::ARM::Compute
90
90
  @virtual_machines = VirtualMachines.new(self)
91
91
  @virtual_machine_scale_sets = VirtualMachineScaleSets.new(self)
92
92
  @virtual_machine_scale_set_vms = VirtualMachineScaleSetVMs.new(self)
93
- @api_version = '2016-03-30'
93
+ @container_service_operations = ContainerServiceOperations.new(self)
94
94
  @accept_language = 'en-US'
95
95
  @long_running_operation_retry_timeout = 30
96
96
  @generate_client_request_id = true
@@ -0,0 +1,524 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Compute
7
+ #
8
+ # Composite Swagger for Compute Client
9
+ #
10
+ class ContainerServiceOperations
11
+ include Azure::ARM::Compute::Models
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the ContainerServiceOperations class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [ComputeManagementClient] reference to the ComputeManagementClient
23
+ attr_reader :client
24
+
25
+ #
26
+ # The operation to create or update a container service.
27
+ #
28
+ # @param resource_group_name [String] The name of the resource group.
29
+ # @param container_service_name [String] The name of the container service
30
+ # within the given subscription and resource group.
31
+ # @param parameters [ContainerService] Parameters supplied to the Create
32
+ # Container Service operation.
33
+ # @param api_version [String] Client Api Version.
34
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
+ # will be added to the HTTP request.
36
+ #
37
+ # @return [ContainerService] operation results.
38
+ #
39
+ def create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil)
40
+ response = create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value!
41
+ response.body unless response.nil?
42
+ end
43
+
44
+ #
45
+ # @param resource_group_name [String] The name of the resource group.
46
+ # @param container_service_name [String] The name of the container service
47
+ # within the given subscription and resource group.
48
+ # @param parameters [ContainerService] Parameters supplied to the Create
49
+ # Container Service operation.
50
+ # @param api_version [String] Client Api Version.
51
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
52
+ # will be added to the HTTP request.
53
+ #
54
+ # @return [Concurrent::Promise] promise which provides async access to http
55
+ # response.
56
+ #
57
+ def create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil)
58
+ # Send request
59
+ promise = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers)
60
+
61
+ promise = promise.then do |response|
62
+ # Defining deserialization method.
63
+ deserialize_method = lambda do |parsed_response|
64
+ result_mapper = ContainerService.mapper()
65
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
66
+ end
67
+
68
+ # Waiting for response.
69
+ @client.get_long_running_operation_result(response, deserialize_method)
70
+ end
71
+
72
+ promise
73
+ end
74
+
75
+ #
76
+ # The operation to create or update a container service.
77
+ #
78
+ # @param resource_group_name [String] The name of the resource group.
79
+ # @param container_service_name [String] The name of the container service
80
+ # within the given subscription and resource group.
81
+ # @param parameters [ContainerService] Parameters supplied to the Create
82
+ # Container Service operation.
83
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
84
+ # will be added to the HTTP request.
85
+ #
86
+ # @return [ContainerService] operation results.
87
+ #
88
+ def begin_create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil)
89
+ response = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value!
90
+ response.body unless response.nil?
91
+ end
92
+
93
+ #
94
+ # The operation to create or update a container service.
95
+ #
96
+ # @param resource_group_name [String] The name of the resource group.
97
+ # @param container_service_name [String] The name of the container service
98
+ # within the given subscription and resource group.
99
+ # @param parameters [ContainerService] Parameters supplied to the Create
100
+ # Container Service operation.
101
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
102
+ # will be added to the HTTP request.
103
+ #
104
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
105
+ #
106
+ def begin_create_or_update_with_http_info(resource_group_name, container_service_name, parameters, custom_headers = nil)
107
+ begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value!
108
+ end
109
+
110
+ #
111
+ # The operation to create or update a container service.
112
+ #
113
+ # @param resource_group_name [String] The name of the resource group.
114
+ # @param container_service_name [String] The name of the container service
115
+ # within the given subscription and resource group.
116
+ # @param parameters [ContainerService] Parameters supplied to the Create
117
+ # Container Service operation.
118
+ # @param [Hash{String => String}] A hash of custom headers that will be added
119
+ # to the HTTP request.
120
+ #
121
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
122
+ #
123
+ def begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil)
124
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
125
+ fail ArgumentError, 'container_service_name is nil' if container_service_name.nil?
126
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
127
+ api_version = '2016-03-30'
128
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
129
+
130
+
131
+ request_headers = {}
132
+
133
+ # Set Headers
134
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
135
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
136
+
137
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
138
+
139
+ # Serialize Request
140
+ request_mapper = ContainerService.mapper()
141
+ request_content = @client.serialize(request_mapper, parameters, 'parameters')
142
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
143
+
144
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
145
+ options = {
146
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
147
+ path_params: {'resourceGroupName' => resource_group_name,'containerServiceName' => container_service_name,'subscriptionId' => @client.subscription_id},
148
+ query_params: {'api-version' => api_version},
149
+ body: request_content,
150
+ headers: request_headers.merge(custom_headers || {})
151
+ }
152
+
153
+ request_url = @base_url || @client.base_url
154
+
155
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :put, options)
156
+ promise = request.run_promise do |req|
157
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
158
+ end
159
+
160
+ promise = promise.then do |http_response|
161
+ status_code = http_response.status
162
+ response_content = http_response.body
163
+ unless status_code == 200 || status_code == 201 || status_code == 202
164
+ error_model = JSON.load(response_content)
165
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
166
+ end
167
+
168
+ # Create Result
169
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
170
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
171
+ # Deserialize Response
172
+ if status_code == 200
173
+ begin
174
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
175
+ result_mapper = ContainerService.mapper()
176
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
177
+ rescue Exception => e
178
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
179
+ end
180
+ end
181
+ # Deserialize Response
182
+ if status_code == 201
183
+ begin
184
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
185
+ result_mapper = ContainerService.mapper()
186
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
187
+ rescue Exception => e
188
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
189
+ end
190
+ end
191
+ # Deserialize Response
192
+ if status_code == 202
193
+ begin
194
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
195
+ result_mapper = ContainerService.mapper()
196
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
197
+ rescue Exception => e
198
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
199
+ end
200
+ end
201
+
202
+ result
203
+ end
204
+
205
+ promise.execute
206
+ end
207
+
208
+ #
209
+ # The operation to get a container service.
210
+ #
211
+ # @param resource_group_name [String] The name of the resource group.
212
+ # @param container_service_name [String] The name of the container service
213
+ # within the given subscription and resource group.
214
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
215
+ # will be added to the HTTP request.
216
+ #
217
+ # @return [ContainerService] operation results.
218
+ #
219
+ def get(resource_group_name, container_service_name, custom_headers = nil)
220
+ response = get_async(resource_group_name, container_service_name, custom_headers).value!
221
+ response.body unless response.nil?
222
+ end
223
+
224
+ #
225
+ # The operation to get a container service.
226
+ #
227
+ # @param resource_group_name [String] The name of the resource group.
228
+ # @param container_service_name [String] The name of the container service
229
+ # within the given subscription and resource group.
230
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
231
+ # will be added to the HTTP request.
232
+ #
233
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
234
+ #
235
+ def get_with_http_info(resource_group_name, container_service_name, custom_headers = nil)
236
+ get_async(resource_group_name, container_service_name, custom_headers).value!
237
+ end
238
+
239
+ #
240
+ # The operation to get a container service.
241
+ #
242
+ # @param resource_group_name [String] The name of the resource group.
243
+ # @param container_service_name [String] The name of the container service
244
+ # within the given subscription and resource group.
245
+ # @param [Hash{String => String}] A hash of custom headers that will be added
246
+ # to the HTTP request.
247
+ #
248
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
249
+ #
250
+ def get_async(resource_group_name, container_service_name, custom_headers = nil)
251
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
252
+ fail ArgumentError, 'container_service_name is nil' if container_service_name.nil?
253
+ api_version = '2016-03-30'
254
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
255
+
256
+
257
+ request_headers = {}
258
+
259
+ # Set Headers
260
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
261
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
262
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
263
+ options = {
264
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
265
+ path_params: {'resourceGroupName' => resource_group_name,'containerServiceName' => container_service_name,'subscriptionId' => @client.subscription_id},
266
+ query_params: {'api-version' => api_version},
267
+ headers: request_headers.merge(custom_headers || {})
268
+ }
269
+
270
+ request_url = @base_url || @client.base_url
271
+
272
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
273
+ promise = request.run_promise do |req|
274
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
275
+ end
276
+
277
+ promise = promise.then do |http_response|
278
+ status_code = http_response.status
279
+ response_content = http_response.body
280
+ unless status_code == 200
281
+ error_model = JSON.load(response_content)
282
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
283
+ end
284
+
285
+ # Create Result
286
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
287
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
288
+ # Deserialize Response
289
+ if status_code == 200
290
+ begin
291
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
292
+ result_mapper = ContainerService.mapper()
293
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
294
+ rescue Exception => e
295
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
296
+ end
297
+ end
298
+
299
+ result
300
+ end
301
+
302
+ promise.execute
303
+ end
304
+
305
+ #
306
+ # The operation to delete a container service.
307
+ #
308
+ # @param resource_group_name [String] The name of the resource group.
309
+ # @param container_service_name [String] The name of the container service
310
+ # within the given subscription and resource group.
311
+ # @param api_version [String] Client Api Version.
312
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
313
+ # will be added to the HTTP request.
314
+ #
315
+ def delete(resource_group_name, container_service_name, custom_headers = nil)
316
+ response = delete_async(resource_group_name, container_service_name, custom_headers).value!
317
+ nil
318
+ end
319
+
320
+ #
321
+ # @param resource_group_name [String] The name of the resource group.
322
+ # @param container_service_name [String] The name of the container service
323
+ # within the given subscription and resource group.
324
+ # @param api_version [String] Client Api Version.
325
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
326
+ # will be added to the HTTP request.
327
+ #
328
+ # @return [Concurrent::Promise] promise which provides async access to http
329
+ # response.
330
+ #
331
+ def delete_async(resource_group_name, container_service_name, custom_headers = nil)
332
+ # Send request
333
+ promise = begin_delete_async(resource_group_name, container_service_name, custom_headers)
334
+
335
+ promise = promise.then do |response|
336
+ # Defining deserialization method.
337
+ deserialize_method = lambda do |parsed_response|
338
+ end
339
+
340
+ # Waiting for response.
341
+ @client.get_long_running_operation_result(response, deserialize_method)
342
+ end
343
+
344
+ promise
345
+ end
346
+
347
+ #
348
+ # The operation to delete a container service.
349
+ #
350
+ # @param resource_group_name [String] The name of the resource group.
351
+ # @param container_service_name [String] The name of the container service
352
+ # within the given subscription and resource group.
353
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
354
+ # will be added to the HTTP request.
355
+ #
356
+ #
357
+ def begin_delete(resource_group_name, container_service_name, custom_headers = nil)
358
+ response = begin_delete_async(resource_group_name, container_service_name, custom_headers).value!
359
+ nil
360
+ end
361
+
362
+ #
363
+ # The operation to delete a container service.
364
+ #
365
+ # @param resource_group_name [String] The name of the resource group.
366
+ # @param container_service_name [String] The name of the container service
367
+ # within the given subscription and resource group.
368
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
369
+ # will be added to the HTTP request.
370
+ #
371
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
372
+ #
373
+ def begin_delete_with_http_info(resource_group_name, container_service_name, custom_headers = nil)
374
+ begin_delete_async(resource_group_name, container_service_name, custom_headers).value!
375
+ end
376
+
377
+ #
378
+ # The operation to delete a container service.
379
+ #
380
+ # @param resource_group_name [String] The name of the resource group.
381
+ # @param container_service_name [String] The name of the container service
382
+ # within the given subscription and resource group.
383
+ # @param [Hash{String => String}] A hash of custom headers that will be added
384
+ # to the HTTP request.
385
+ #
386
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
387
+ #
388
+ def begin_delete_async(resource_group_name, container_service_name, custom_headers = nil)
389
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
390
+ fail ArgumentError, 'container_service_name is nil' if container_service_name.nil?
391
+ api_version = '2016-03-30'
392
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
393
+
394
+
395
+ request_headers = {}
396
+
397
+ # Set Headers
398
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
399
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
400
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
401
+ options = {
402
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
403
+ path_params: {'resourceGroupName' => resource_group_name,'containerServiceName' => container_service_name,'subscriptionId' => @client.subscription_id},
404
+ query_params: {'api-version' => api_version},
405
+ headers: request_headers.merge(custom_headers || {})
406
+ }
407
+
408
+ request_url = @base_url || @client.base_url
409
+
410
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :delete, options)
411
+ promise = request.run_promise do |req|
412
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
413
+ end
414
+
415
+ promise = promise.then do |http_response|
416
+ status_code = http_response.status
417
+ response_content = http_response.body
418
+ unless status_code == 202 || status_code == 204
419
+ error_model = JSON.load(response_content)
420
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
421
+ end
422
+
423
+ # Create Result
424
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
425
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
426
+
427
+ result
428
+ end
429
+
430
+ promise.execute
431
+ end
432
+
433
+ #
434
+ # The operation to list container services.
435
+ #
436
+ # @param resource_group_name [String] The name of the resource group.
437
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
438
+ # will be added to the HTTP request.
439
+ #
440
+ # @return [ContainerServiceListResult] operation results.
441
+ #
442
+ def list(resource_group_name, custom_headers = nil)
443
+ response = list_async(resource_group_name, custom_headers).value!
444
+ response.body unless response.nil?
445
+ end
446
+
447
+ #
448
+ # The operation to list container services.
449
+ #
450
+ # @param resource_group_name [String] The name of the resource group.
451
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
452
+ # will be added to the HTTP request.
453
+ #
454
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
455
+ #
456
+ def list_with_http_info(resource_group_name, custom_headers = nil)
457
+ list_async(resource_group_name, custom_headers).value!
458
+ end
459
+
460
+ #
461
+ # The operation to list container services.
462
+ #
463
+ # @param resource_group_name [String] The name of the resource group.
464
+ # @param [Hash{String => String}] A hash of custom headers that will be added
465
+ # to the HTTP request.
466
+ #
467
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
468
+ #
469
+ def list_async(resource_group_name, custom_headers = nil)
470
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
471
+ api_version = '2016-03-30'
472
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
473
+
474
+
475
+ request_headers = {}
476
+
477
+ # Set Headers
478
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
479
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
480
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices'
481
+ options = {
482
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
483
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
484
+ query_params: {'api-version' => api_version},
485
+ headers: request_headers.merge(custom_headers || {})
486
+ }
487
+
488
+ request_url = @base_url || @client.base_url
489
+
490
+ request = MsRest::HttpOperationRequest.new(request_url, path_template, :get, options)
491
+ promise = request.run_promise do |req|
492
+ @client.credentials.sign_request(req) unless @client.credentials.nil?
493
+ end
494
+
495
+ promise = promise.then do |http_response|
496
+ status_code = http_response.status
497
+ response_content = http_response.body
498
+ unless status_code == 200
499
+ error_model = JSON.load(response_content)
500
+ fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
501
+ end
502
+
503
+ # Create Result
504
+ result = MsRestAzure::AzureOperationResponse.new(request, http_response)
505
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
506
+ # Deserialize Response
507
+ if status_code == 200
508
+ begin
509
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
510
+ result_mapper = ContainerServiceListResult.mapper()
511
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
512
+ rescue Exception => e
513
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
514
+ end
515
+ end
516
+
517
+ result
518
+ end
519
+
520
+ promise.execute
521
+ end
522
+
523
+ end
524
+ end