azure_mgmt_container_service 0.18.5 → 0.20.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (359) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-03-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  3. data/lib/2016-03-30/generated/azure_mgmt_container_service/container_services.rb +10 -0
  4. data/lib/2016-09-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  5. data/lib/2016-09-30/generated/azure_mgmt_container_service/container_services.rb +14 -0
  6. data/lib/2017-01-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  7. data/lib/2017-01-31/generated/azure_mgmt_container_service/container_services.rb +14 -0
  8. data/lib/2017-07-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  9. data/lib/2017-07-01/generated/azure_mgmt_container_service/container_services.rb +14 -0
  10. data/lib/2017-08-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  11. data/lib/2017-08-31/generated/azure_mgmt_container_service/managed_clusters.rb +20 -0
  12. data/lib/2017-09-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  13. data/lib/2017-09-30/generated/azure_mgmt_container_service/container_services.rb +2 -0
  14. data/lib/2018-03-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  15. data/lib/2018-03-31/generated/azure_mgmt_container_service/managed_clusters.rb +28 -0
  16. data/lib/2018-03-31/generated/azure_mgmt_container_service/operations.rb +2 -0
  17. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  18. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/managed_clusters.rb +28 -0
  19. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/operations.rb +2 -0
  20. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  21. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb +16 -0
  22. data/lib/2019-02-01/generated/azure_mgmt_container_service/agent_pools.rb +10 -0
  23. data/lib/2019-02-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  24. data/lib/2019-02-01/generated/azure_mgmt_container_service/managed_clusters.rb +28 -0
  25. data/lib/2019-02-01/generated/azure_mgmt_container_service/operations.rb +2 -0
  26. data/lib/2019-04-01/generated/azure_mgmt_container_service/agent_pools.rb +81 -76
  27. data/lib/2019-04-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  28. data/lib/2019-04-01/generated/azure_mgmt_container_service/container_services.rb +2 -0
  29. data/lib/2019-04-01/generated/azure_mgmt_container_service/managed_clusters.rb +58 -0
  30. data/lib/2019-04-01/generated/azure_mgmt_container_service/operations.rb +2 -0
  31. data/lib/2019-04-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  32. data/lib/2019-04-30/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb +16 -0
  33. data/lib/2019-06-01/generated/azure_mgmt_container_service.rb +77 -0
  34. data/lib/2019-06-01/generated/azure_mgmt_container_service/agent_pools.rb +904 -0
  35. data/lib/2019-06-01/generated/azure_mgmt_container_service/container_service_client.rb +145 -0
  36. data/lib/2019-06-01/generated/azure_mgmt_container_service/container_services.rb +133 -0
  37. data/lib/2019-06-01/generated/azure_mgmt_container_service/managed_clusters.rb +1788 -0
  38. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool.rb +344 -0
  39. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  40. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  41. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  42. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  43. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +117 -0
  44. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  45. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  46. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  47. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  48. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +140 -0
  49. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  50. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  51. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  52. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  53. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  54. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  55. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  56. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  57. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +325 -0
  58. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  59. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  60. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +66 -0
  61. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +211 -0
  62. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +317 -0
  63. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +78 -0
  64. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  65. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  66. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  67. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  68. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  69. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  70. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  71. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  72. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  73. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  74. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +68 -0
  75. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +100 -0
  76. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +92 -0
  77. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  78. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  79. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +16 -0
  80. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  81. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +16 -0
  82. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  83. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  84. data/lib/2019-06-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  85. data/lib/2019-06-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  86. data/lib/2019-08-01/generated/azure_mgmt_container_service.rb +83 -0
  87. data/lib/2019-08-01/generated/azure_mgmt_container_service/agent_pools.rb +904 -0
  88. data/lib/2019-08-01/generated/azure_mgmt_container_service/container_service_client.rb +145 -0
  89. data/lib/2019-08-01/generated/azure_mgmt_container_service/container_services.rb +133 -0
  90. data/lib/2019-08-01/generated/azure_mgmt_container_service/managed_clusters.rb +1788 -0
  91. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool.rb +344 -0
  92. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  93. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  94. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  95. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  96. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +117 -0
  97. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  98. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  99. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  100. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  101. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +153 -0
  102. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  103. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  104. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  105. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  106. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  107. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  108. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  109. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  110. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +318 -0
  111. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  112. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  113. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +66 -0
  114. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +211 -0
  115. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +317 -0
  116. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
  117. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +78 -0
  118. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  119. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +95 -0
  120. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
  121. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
  122. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
  123. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  124. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  125. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  126. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  127. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  128. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  129. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  130. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  131. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  132. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +68 -0
  133. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +100 -0
  134. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +92 -0
  135. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  136. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  137. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +16 -0
  138. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
  139. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  140. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +16 -0
  141. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  142. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  143. data/lib/2019-08-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  144. data/lib/2019-08-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  145. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service.rb +45 -0
  146. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/container_service_client.rb +133 -0
  147. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/network_profile.rb +70 -0
  148. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_agent_pool_profile_role.rb +16 -0
  149. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_container_service_vmsize.rb +47 -0
  150. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster.rb +255 -0
  151. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_aadidentity_provider.rb +95 -0
  152. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_agent_pool_profile.rb +119 -0
  153. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_auth_profile.rb +56 -0
  154. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_base_identity_provider.rb +47 -0
  155. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_identity_provider.rb +62 -0
  156. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_list_result.rb +101 -0
  157. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_master_pool_profile.rb +107 -0
  158. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_monitor_profile.rb +59 -0
  159. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_router_profile.rb +70 -0
  160. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  161. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/purchase_plan.rb +82 -0
  162. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  163. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  164. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  165. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb +1068 -0
  166. data/lib/2019-10-01/generated/azure_mgmt_container_service.rb +79 -0
  167. data/lib/2019-10-01/generated/azure_mgmt_container_service/agent_pools.rb +900 -0
  168. data/lib/2019-10-01/generated/azure_mgmt_container_service/container_service_client.rb +141 -0
  169. data/lib/2019-10-01/generated/azure_mgmt_container_service/managed_clusters.rb +1921 -0
  170. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool.rb +344 -0
  171. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  172. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  173. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  174. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  175. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +117 -0
  176. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  177. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  178. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  179. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  180. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +153 -0
  181. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  182. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  183. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  184. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  185. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  186. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  187. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  188. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  189. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +330 -0
  190. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  191. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  192. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +66 -0
  193. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +211 -0
  194. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +317 -0
  195. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
  196. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +78 -0
  197. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  198. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +95 -0
  199. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
  200. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
  201. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
  202. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  203. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  204. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  205. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  206. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  207. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  208. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  209. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  210. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  211. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  212. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  213. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +16 -0
  214. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
  215. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  216. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +16 -0
  217. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  218. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  219. data/lib/2019-10-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  220. data/lib/2019-10-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  221. data/lib/2020-02-01/generated/azure_mgmt_container_service.rb +85 -0
  222. data/lib/2020-02-01/generated/azure_mgmt_container_service/agent_pools.rb +900 -0
  223. data/lib/2020-02-01/generated/azure_mgmt_container_service/container_service_client.rb +141 -0
  224. data/lib/2020-02-01/generated/azure_mgmt_container_service/managed_clusters.rb +2028 -0
  225. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool.rb +398 -0
  226. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  227. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  228. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  229. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  230. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +117 -0
  231. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  232. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  233. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  234. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  235. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +179 -0
  236. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  237. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  238. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  239. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  240. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  241. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  242. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  243. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  244. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +376 -0
  245. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  246. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  247. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +80 -0
  248. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile_identity.rb +59 -0
  249. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +251 -0
  250. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +371 -0
  251. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
  252. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +78 -0
  253. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  254. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +132 -0
  255. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
  256. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
  257. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
  258. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  259. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  260. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_auto_scaler_profile.rb +124 -0
  261. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_identity_profile_value.rb +61 -0
  262. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  263. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  264. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  265. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/network_mode.rb +16 -0
  266. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  267. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  268. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  269. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  270. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  271. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/outbound_type.rb +16 -0
  272. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  273. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +16 -0
  274. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
  275. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  276. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +17 -0
  277. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  278. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  279. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/user_assigned_identity.rb +69 -0
  280. data/lib/2020-02-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  281. data/lib/2020-02-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  282. data/lib/2020-06-01/generated/azure_mgmt_container_service.rb +98 -0
  283. data/lib/2020-06-01/generated/azure_mgmt_container_service/agent_pools.rb +900 -0
  284. data/lib/2020-06-01/generated/azure_mgmt_container_service/container_service_client.rb +145 -0
  285. data/lib/2020-06-01/generated/azure_mgmt_container_service/managed_clusters.rb +2043 -0
  286. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool.rb +440 -0
  287. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  288. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  289. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  290. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_mode.rb +16 -0
  291. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  292. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +129 -0
  293. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  294. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_settings.rb +47 -0
  295. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/connection_status.rb +18 -0
  296. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  297. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  298. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  299. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +179 -0
  300. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  301. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  302. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  303. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  304. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  305. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  306. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  307. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  308. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +388 -0
  309. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +123 -0
  310. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  311. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +80 -0
  312. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile_identity.rb +59 -0
  313. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +279 -0
  314. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +413 -0
  315. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
  316. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +104 -0
  317. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_identity_user_assigned_identities_value.rb +61 -0
  318. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  319. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +132 -0
  320. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
  321. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
  322. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
  323. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  324. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  325. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_auto_scaler_profile.rb +135 -0
  326. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_identity_profile_value.rb +61 -0
  327. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  328. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_sku.rb +60 -0
  329. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_skuname.rb +15 -0
  330. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_skutier.rb +16 -0
  331. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  332. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  333. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/network_mode.rb +16 -0
  334. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  335. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  336. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  337. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  338. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  339. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/outbound_type.rb +16 -0
  340. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_endpoint.rb +46 -0
  341. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_endpoint_connection.rb +111 -0
  342. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_endpoint_connection_list_result.rb +55 -0
  343. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_endpoint_connection_provisioning_state.rb +18 -0
  344. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_link_service_connection_state.rb +59 -0
  345. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  346. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +17 -0
  347. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
  348. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  349. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +16 -0
  350. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  351. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  352. data/lib/2020-06-01/generated/azure_mgmt_container_service/models/user_assigned_identity.rb +69 -0
  353. data/lib/2020-06-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  354. data/lib/2020-06-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  355. data/lib/2020-06-01/generated/azure_mgmt_container_service/private_endpoint_connections.rb +515 -0
  356. data/lib/azure_mgmt_container_service.rb +13 -7
  357. data/lib/profiles/latest/modules/containerservice_profile_module.rb +284 -146
  358. data/lib/version.rb +1 -1
  359. metadata +328 -5
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Defines values for ResourceIdentityType
10
+ #
11
+ module ResourceIdentityType
12
+ SystemAssigned = "SystemAssigned"
13
+ None = "None"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Defines values for ScaleSetEvictionPolicy
10
+ #
11
+ module ScaleSetEvictionPolicy
12
+ Delete = "Delete"
13
+ Deallocate = "Deallocate"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Defines values for ScaleSetPriority
10
+ #
11
+ module ScaleSetPriority
12
+ Low = "Low"
13
+ Regular = "Regular"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,72 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Reference to another subresource.
10
+ #
11
+ class SubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource ID.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The name of the resource that is unique within a
19
+ # resource group. This name can be used to access the resource.
20
+ attr_accessor :name
21
+
22
+ # @return [String] Resource type
23
+ attr_accessor :type
24
+
25
+
26
+ #
27
+ # Mapper for SubResource class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'SubResource',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'SubResource',
38
+ model_properties: {
39
+ id: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'id',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ name: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'name',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ type: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'type',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_06_01
7
+ module Models
8
+ #
9
+ # Tags object for patch operations.
10
+ #
11
+ class TagsObject
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] Resource tags.
16
+ attr_accessor :tags
17
+
18
+
19
+ #
20
+ # Mapper for TagsObject class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'TagsObject',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'TagsObject',
31
+ model_properties: {
32
+ tags: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'tags',
36
+ type: {
37
+ name: 'Dictionary',
38
+ value: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'StringElementType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure end
7
+ module Azure::ContainerService end
8
+ module Azure::ContainerService::Mgmt end
9
+ module Azure::ContainerService::Mgmt::V2019_06_01 end
@@ -0,0 +1,109 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_06_01
7
+ #
8
+ # The Container Service Client.
9
+ #
10
+ class Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ContainerServiceClient] reference to the ContainerServiceClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets a list of compute operations.
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [OperationListResult] operation results.
31
+ #
32
+ def list(custom_headers:nil)
33
+ response = list_async(custom_headers:custom_headers).value!
34
+ response.body unless response.nil?
35
+ end
36
+
37
+ #
38
+ # Gets a list of compute operations.
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Gets a list of compute operations.
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers:nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
+
64
+ # Set Headers
65
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
66
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
67
+ path_template = 'providers/Microsoft.ContainerService/operations'
68
+
69
+ request_url = @base_url || @client.base_url
70
+
71
+ options = {
72
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
+ query_params: {'api-version' => @client.api_version},
74
+ headers: request_headers.merge(custom_headers || {}),
75
+ base_url: request_url
76
+ }
77
+ promise = @client.make_request_async(:get, path_template, options)
78
+
79
+ promise = promise.then do |result|
80
+ http_response = result.response
81
+ status_code = http_response.status
82
+ response_content = http_response.body
83
+ unless status_code == 200
84
+ error_model = JSON.load(response_content)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
+ end
87
+
88
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = Azure::ContainerService::Mgmt::V2019_06_01::Models::OperationListResult.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ end
109
+ end
@@ -0,0 +1,83 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2019-08-01/generated/azure_mgmt_container_service/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ContainerService::Mgmt::V2019_08_01
23
+ autoload :ContainerServices, '2019-08-01/generated/azure_mgmt_container_service/container_services.rb'
24
+ autoload :Operations, '2019-08-01/generated/azure_mgmt_container_service/operations.rb'
25
+ autoload :ManagedClusters, '2019-08-01/generated/azure_mgmt_container_service/managed_clusters.rb'
26
+ autoload :AgentPools, '2019-08-01/generated/azure_mgmt_container_service/agent_pools.rb'
27
+ autoload :ContainerServiceClient, '2019-08-01/generated/azure_mgmt_container_service/container_service_client.rb'
28
+
29
+ module Models
30
+ autoload :ManagedClusterLoadBalancerProfileOutboundIPs, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb'
31
+ autoload :ManagedClusterLoadBalancerProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb'
32
+ autoload :OrchestratorVersionProfile, '2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb'
33
+ autoload :ContainerServiceNetworkProfile, '2019-08-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb'
34
+ autoload :OperationValue, '2019-08-01/generated/azure_mgmt_container_service/models/operation_value.rb'
35
+ autoload :ContainerServiceVMDiagnostics, '2019-08-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb'
36
+ autoload :Resource, '2019-08-01/generated/azure_mgmt_container_service/models/resource.rb'
37
+ autoload :ContainerServiceDiagnosticsProfile, '2019-08-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb'
38
+ autoload :TagsObject, '2019-08-01/generated/azure_mgmt_container_service/models/tags_object.rb'
39
+ autoload :ManagedClusterAddonProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb'
40
+ autoload :ContainerServiceMasterProfile, '2019-08-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb'
41
+ autoload :ManagedClusterAADProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb'
42
+ autoload :ManagedClusterServicePrincipalProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb'
43
+ autoload :ManagedClusterAgentPoolProfileProperties, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb'
44
+ autoload :AgentPoolListResult, '2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb'
45
+ autoload :ContainerServiceSshPublicKey, '2019-08-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb'
46
+ autoload :ManagedClusterAPIServerAccessProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb'
47
+ autoload :ContainerServiceLinuxProfile, '2019-08-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb'
48
+ autoload :ManagedClusterIdentity, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb'
49
+ autoload :ResourceReference, '2019-08-01/generated/azure_mgmt_container_service/models/resource_reference.rb'
50
+ autoload :CredentialResults, '2019-08-01/generated/azure_mgmt_container_service/models/credential_results.rb'
51
+ autoload :OrchestratorProfile, '2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_profile.rb'
52
+ autoload :ManagedClusterListResult, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb'
53
+ autoload :OperationListResult, '2019-08-01/generated/azure_mgmt_container_service/models/operation_list_result.rb'
54
+ autoload :CredentialResult, '2019-08-01/generated/azure_mgmt_container_service/models/credential_result.rb'
55
+ autoload :ManagedClusterPoolUpgradeProfileUpgradesItem, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb'
56
+ autoload :ContainerServiceSshConfiguration, '2019-08-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb'
57
+ autoload :ManagedClusterPoolUpgradeProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb'
58
+ autoload :ManagedClusterLoadBalancerProfileOutboundIPPrefixes, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb'
59
+ autoload :ManagedClusterUpgradeProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb'
60
+ autoload :SubResource, '2019-08-01/generated/azure_mgmt_container_service/models/sub_resource.rb'
61
+ autoload :AgentPoolUpgradeProfilePropertiesUpgradesItem, '2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb'
62
+ autoload :ManagedClusterLoadBalancerProfileManagedOutboundIPs, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb'
63
+ autoload :AgentPoolUpgradeProfile, '2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb'
64
+ autoload :ManagedClusterWindowsProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb'
65
+ autoload :AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem, '2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb'
66
+ autoload :OrchestratorVersionProfileListResult, '2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb'
67
+ autoload :AgentPoolAvailableVersions, '2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb'
68
+ autoload :ManagedClusterAgentPoolProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb'
69
+ autoload :AgentPool, '2019-08-01/generated/azure_mgmt_container_service/models/agent_pool.rb'
70
+ autoload :ManagedCluster, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster.rb'
71
+ autoload :ManagedClusterAccessProfile, '2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb'
72
+ autoload :ContainerServiceStorageProfileTypes, '2019-08-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb'
73
+ autoload :ContainerServiceVMSizeTypes, '2019-08-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb'
74
+ autoload :OSType, '2019-08-01/generated/azure_mgmt_container_service/models/ostype.rb'
75
+ autoload :AgentPoolType, '2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb'
76
+ autoload :ScaleSetPriority, '2019-08-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb'
77
+ autoload :ScaleSetEvictionPolicy, '2019-08-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb'
78
+ autoload :NetworkPlugin, '2019-08-01/generated/azure_mgmt_container_service/models/network_plugin.rb'
79
+ autoload :NetworkPolicy, '2019-08-01/generated/azure_mgmt_container_service/models/network_policy.rb'
80
+ autoload :LoadBalancerSku, '2019-08-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb'
81
+ autoload :ResourceIdentityType, '2019-08-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb'
82
+ end
83
+ end
@@ -0,0 +1,904 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_08_01
7
+ #
8
+ # The Container Service Client.
9
+ #
10
+ class AgentPools
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the AgentPools class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ContainerServiceClient] reference to the ContainerServiceClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets a list of agent pools in the specified managed cluster.
26
+ #
27
+ # Gets a list of agent pools in the specified managed cluster. The operation
28
+ # returns properties of each agent pool.
29
+ #
30
+ # @param resource_group_name [String] The name of the resource group.
31
+ # @param resource_name [String] The name of the managed cluster resource.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [Array<AgentPool>] operation results.
36
+ #
37
+ def list(resource_group_name, resource_name, custom_headers:nil)
38
+ first_page = list_as_lazy(resource_group_name, resource_name, custom_headers:custom_headers)
39
+ first_page.get_all_items
40
+ end
41
+
42
+ #
43
+ # Gets a list of agent pools in the specified managed cluster.
44
+ #
45
+ # Gets a list of agent pools in the specified managed cluster. The operation
46
+ # returns properties of each agent pool.
47
+ #
48
+ # @param resource_group_name [String] The name of the resource group.
49
+ # @param resource_name [String] The name of the managed cluster resource.
50
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
51
+ # will be added to the HTTP request.
52
+ #
53
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
54
+ #
55
+ def list_with_http_info(resource_group_name, resource_name, custom_headers:nil)
56
+ list_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
57
+ end
58
+
59
+ #
60
+ # Gets a list of agent pools in the specified managed cluster.
61
+ #
62
+ # Gets a list of agent pools in the specified managed cluster. The operation
63
+ # returns properties of each agent pool.
64
+ #
65
+ # @param resource_group_name [String] The name of the resource group.
66
+ # @param resource_name [String] The name of the managed cluster resource.
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def list_async(resource_group_name, resource_name, custom_headers:nil)
73
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
75
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
76
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
77
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
78
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
79
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
80
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$'" if !resource_name.nil? && resource_name.match(Regexp.new('^^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$$')).nil?
81
+
82
+
83
+ request_headers = {}
84
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
85
+
86
+ # Set Headers
87
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
88
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
89
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools'
90
+
91
+ request_url = @base_url || @client.base_url
92
+
93
+ options = {
94
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
95
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
96
+ query_params: {'api-version' => @client.api_version},
97
+ headers: request_headers.merge(custom_headers || {}),
98
+ base_url: request_url
99
+ }
100
+ promise = @client.make_request_async(:get, path_template, options)
101
+
102
+ promise = promise.then do |result|
103
+ http_response = result.response
104
+ status_code = http_response.status
105
+ response_content = http_response.body
106
+ unless status_code == 200
107
+ error_model = JSON.load(response_content)
108
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
109
+ end
110
+
111
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
112
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
113
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
114
+ # Deserialize Response
115
+ if status_code == 200
116
+ begin
117
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
118
+ result_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::AgentPoolListResult.mapper()
119
+ result.body = @client.deserialize(result_mapper, parsed_response)
120
+ rescue Exception => e
121
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
122
+ end
123
+ end
124
+
125
+ result
126
+ end
127
+
128
+ promise.execute
129
+ end
130
+
131
+ #
132
+ # Gets the agent pool.
133
+ #
134
+ # Gets the details of the agent pool by managed cluster and resource group.
135
+ #
136
+ # @param resource_group_name [String] The name of the resource group.
137
+ # @param resource_name [String] The name of the managed cluster resource.
138
+ # @param agent_pool_name [String] The name of the agent pool.
139
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
140
+ # will be added to the HTTP request.
141
+ #
142
+ # @return [AgentPool] operation results.
143
+ #
144
+ def get(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
145
+ response = get_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers).value!
146
+ response.body unless response.nil?
147
+ end
148
+
149
+ #
150
+ # Gets the agent pool.
151
+ #
152
+ # Gets the details of the agent pool by managed cluster and resource group.
153
+ #
154
+ # @param resource_group_name [String] The name of the resource group.
155
+ # @param resource_name [String] The name of the managed cluster resource.
156
+ # @param agent_pool_name [String] The name of the agent pool.
157
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
158
+ # will be added to the HTTP request.
159
+ #
160
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
161
+ #
162
+ def get_with_http_info(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
163
+ get_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers).value!
164
+ end
165
+
166
+ #
167
+ # Gets the agent pool.
168
+ #
169
+ # Gets the details of the agent pool by managed cluster and resource group.
170
+ #
171
+ # @param resource_group_name [String] The name of the resource group.
172
+ # @param resource_name [String] The name of the managed cluster resource.
173
+ # @param agent_pool_name [String] The name of the agent pool.
174
+ # @param [Hash{String => String}] A hash of custom headers that will be added
175
+ # to the HTTP request.
176
+ #
177
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
178
+ #
179
+ def get_async(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
180
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
181
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
182
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
183
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
184
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
185
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
186
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
187
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$'" if !resource_name.nil? && resource_name.match(Regexp.new('^^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$$')).nil?
188
+ fail ArgumentError, 'agent_pool_name is nil' if agent_pool_name.nil?
189
+
190
+
191
+ request_headers = {}
192
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
193
+
194
+ # Set Headers
195
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
196
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
197
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}'
198
+
199
+ request_url = @base_url || @client.base_url
200
+
201
+ options = {
202
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
203
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'agentPoolName' => agent_pool_name},
204
+ query_params: {'api-version' => @client.api_version},
205
+ headers: request_headers.merge(custom_headers || {}),
206
+ base_url: request_url
207
+ }
208
+ promise = @client.make_request_async(:get, path_template, options)
209
+
210
+ promise = promise.then do |result|
211
+ http_response = result.response
212
+ status_code = http_response.status
213
+ response_content = http_response.body
214
+ unless status_code == 200
215
+ error_model = JSON.load(response_content)
216
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
217
+ end
218
+
219
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
220
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
221
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
222
+ # Deserialize Response
223
+ if status_code == 200
224
+ begin
225
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
226
+ result_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::AgentPool.mapper()
227
+ result.body = @client.deserialize(result_mapper, parsed_response)
228
+ rescue Exception => e
229
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
230
+ end
231
+ end
232
+
233
+ result
234
+ end
235
+
236
+ promise.execute
237
+ end
238
+
239
+ #
240
+ # Creates or updates an agent pool.
241
+ #
242
+ # Creates or updates an agent pool in the specified managed cluster.
243
+ #
244
+ # @param resource_group_name [String] The name of the resource group.
245
+ # @param resource_name [String] The name of the managed cluster resource.
246
+ # @param agent_pool_name [String] The name of the agent pool.
247
+ # @param parameters [AgentPool] Parameters supplied to the Create or Update an
248
+ # agent pool operation.
249
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
250
+ # will be added to the HTTP request.
251
+ #
252
+ # @return [AgentPool] operation results.
253
+ #
254
+ def create_or_update(resource_group_name, resource_name, agent_pool_name, parameters, custom_headers:nil)
255
+ response = create_or_update_async(resource_group_name, resource_name, agent_pool_name, parameters, custom_headers:custom_headers).value!
256
+ response.body unless response.nil?
257
+ end
258
+
259
+ #
260
+ # @param resource_group_name [String] The name of the resource group.
261
+ # @param resource_name [String] The name of the managed cluster resource.
262
+ # @param agent_pool_name [String] The name of the agent pool.
263
+ # @param parameters [AgentPool] Parameters supplied to the Create or Update an
264
+ # agent pool operation.
265
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
266
+ # will be added to the HTTP request.
267
+ #
268
+ # @return [Concurrent::Promise] promise which provides async access to http
269
+ # response.
270
+ #
271
+ def create_or_update_async(resource_group_name, resource_name, agent_pool_name, parameters, custom_headers:nil)
272
+ # Send request
273
+ promise = begin_create_or_update_async(resource_group_name, resource_name, agent_pool_name, parameters, custom_headers:custom_headers)
274
+
275
+ promise = promise.then do |response|
276
+ # Defining deserialization method.
277
+ deserialize_method = lambda do |parsed_response|
278
+ result_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::AgentPool.mapper()
279
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
280
+ end
281
+
282
+ # Waiting for response.
283
+ @client.get_long_running_operation_result(response, deserialize_method)
284
+ end
285
+
286
+ promise
287
+ end
288
+
289
+ #
290
+ # Deletes an agent pool.
291
+ #
292
+ # Deletes the agent pool in the specified managed cluster.
293
+ #
294
+ # @param resource_group_name [String] The name of the resource group.
295
+ # @param resource_name [String] The name of the managed cluster resource.
296
+ # @param agent_pool_name [String] The name of the agent pool.
297
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
298
+ # will be added to the HTTP request.
299
+ #
300
+ def delete(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
301
+ response = delete_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers).value!
302
+ nil
303
+ end
304
+
305
+ #
306
+ # @param resource_group_name [String] The name of the resource group.
307
+ # @param resource_name [String] The name of the managed cluster resource.
308
+ # @param agent_pool_name [String] The name of the agent pool.
309
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
310
+ # will be added to the HTTP request.
311
+ #
312
+ # @return [Concurrent::Promise] promise which provides async access to http
313
+ # response.
314
+ #
315
+ def delete_async(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
316
+ # Send request
317
+ promise = begin_delete_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers)
318
+
319
+ promise = promise.then do |response|
320
+ # Defining deserialization method.
321
+ deserialize_method = lambda do |parsed_response|
322
+ end
323
+
324
+ # Waiting for response.
325
+ @client.get_long_running_operation_result(response, deserialize_method)
326
+ end
327
+
328
+ promise
329
+ end
330
+
331
+ #
332
+ # Gets upgrade profile for an agent pool.
333
+ #
334
+ # Gets the details of the upgrade profile for an agent pool with a specified
335
+ # resource group and managed cluster name.
336
+ #
337
+ # @param resource_group_name [String] The name of the resource group.
338
+ # @param resource_name [String] The name of the managed cluster resource.
339
+ # @param agent_pool_name [String] The name of the agent pool.
340
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
341
+ # will be added to the HTTP request.
342
+ #
343
+ # @return [AgentPoolUpgradeProfile] operation results.
344
+ #
345
+ def get_upgrade_profile(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
346
+ response = get_upgrade_profile_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers).value!
347
+ response.body unless response.nil?
348
+ end
349
+
350
+ #
351
+ # Gets upgrade profile for an agent pool.
352
+ #
353
+ # Gets the details of the upgrade profile for an agent pool with a specified
354
+ # resource group and managed cluster name.
355
+ #
356
+ # @param resource_group_name [String] The name of the resource group.
357
+ # @param resource_name [String] The name of the managed cluster resource.
358
+ # @param agent_pool_name [String] The name of the agent pool.
359
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
360
+ # will be added to the HTTP request.
361
+ #
362
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
363
+ #
364
+ def get_upgrade_profile_with_http_info(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
365
+ get_upgrade_profile_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers).value!
366
+ end
367
+
368
+ #
369
+ # Gets upgrade profile for an agent pool.
370
+ #
371
+ # Gets the details of the upgrade profile for an agent pool with a specified
372
+ # resource group and managed cluster name.
373
+ #
374
+ # @param resource_group_name [String] The name of the resource group.
375
+ # @param resource_name [String] The name of the managed cluster resource.
376
+ # @param agent_pool_name [String] The name of the agent pool.
377
+ # @param [Hash{String => String}] A hash of custom headers that will be added
378
+ # to the HTTP request.
379
+ #
380
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
381
+ #
382
+ def get_upgrade_profile_async(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
383
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
384
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
385
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
386
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
387
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
388
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
389
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
390
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$'" if !resource_name.nil? && resource_name.match(Regexp.new('^^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$$')).nil?
391
+ fail ArgumentError, 'agent_pool_name is nil' if agent_pool_name.nil?
392
+
393
+
394
+ request_headers = {}
395
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
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/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default'
401
+
402
+ request_url = @base_url || @client.base_url
403
+
404
+ options = {
405
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
406
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'agentPoolName' => agent_pool_name},
407
+ query_params: {'api-version' => @client.api_version},
408
+ headers: request_headers.merge(custom_headers || {}),
409
+ base_url: request_url
410
+ }
411
+ promise = @client.make_request_async(:get, path_template, options)
412
+
413
+ promise = promise.then do |result|
414
+ http_response = result.response
415
+ status_code = http_response.status
416
+ response_content = http_response.body
417
+ unless status_code == 200
418
+ error_model = JSON.load(response_content)
419
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
420
+ end
421
+
422
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
423
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
424
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
425
+ # Deserialize Response
426
+ if status_code == 200
427
+ begin
428
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
429
+ result_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::AgentPoolUpgradeProfile.mapper()
430
+ result.body = @client.deserialize(result_mapper, parsed_response)
431
+ rescue Exception => e
432
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
433
+ end
434
+ end
435
+
436
+ result
437
+ end
438
+
439
+ promise.execute
440
+ end
441
+
442
+ #
443
+ # Gets a list of supported versions for the specified agent pool.
444
+ #
445
+ # Gets a list of supported versions for the specified agent pool.
446
+ #
447
+ # @param resource_group_name [String] The name of the resource group.
448
+ # @param resource_name [String] The name of the managed cluster resource.
449
+ # @param agent_pool_name [String] The name of the agent pool.
450
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
451
+ # will be added to the HTTP request.
452
+ #
453
+ # @return [AgentPoolAvailableVersions] operation results.
454
+ #
455
+ def get_available_agent_pool_versions(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
456
+ response = get_available_agent_pool_versions_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers).value!
457
+ response.body unless response.nil?
458
+ end
459
+
460
+ #
461
+ # Gets a list of supported versions for the specified agent pool.
462
+ #
463
+ # Gets a list of supported versions for the specified agent pool.
464
+ #
465
+ # @param resource_group_name [String] The name of the resource group.
466
+ # @param resource_name [String] The name of the managed cluster resource.
467
+ # @param agent_pool_name [String] The name of the agent pool.
468
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
469
+ # will be added to the HTTP request.
470
+ #
471
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
472
+ #
473
+ def get_available_agent_pool_versions_with_http_info(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
474
+ get_available_agent_pool_versions_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers).value!
475
+ end
476
+
477
+ #
478
+ # Gets a list of supported versions for the specified agent pool.
479
+ #
480
+ # Gets a list of supported versions for the specified agent pool.
481
+ #
482
+ # @param resource_group_name [String] The name of the resource group.
483
+ # @param resource_name [String] The name of the managed cluster resource.
484
+ # @param agent_pool_name [String] The name of the agent pool.
485
+ # @param [Hash{String => String}] A hash of custom headers that will be added
486
+ # to the HTTP request.
487
+ #
488
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
489
+ #
490
+ def get_available_agent_pool_versions_async(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
491
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
492
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
493
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
494
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
495
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
496
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
497
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
498
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$'" if !resource_name.nil? && resource_name.match(Regexp.new('^^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$$')).nil?
499
+ fail ArgumentError, 'agent_pool_name is nil' if agent_pool_name.nil?
500
+
501
+
502
+ request_headers = {}
503
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
504
+
505
+ # Set Headers
506
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
507
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
508
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/availableAgentPoolVersions'
509
+
510
+ request_url = @base_url || @client.base_url
511
+
512
+ options = {
513
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
514
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'agentPoolName' => agent_pool_name},
515
+ query_params: {'api-version' => @client.api_version},
516
+ headers: request_headers.merge(custom_headers || {}),
517
+ base_url: request_url
518
+ }
519
+ promise = @client.make_request_async(:get, path_template, options)
520
+
521
+ promise = promise.then do |result|
522
+ http_response = result.response
523
+ status_code = http_response.status
524
+ response_content = http_response.body
525
+ unless status_code == 200
526
+ error_model = JSON.load(response_content)
527
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
528
+ end
529
+
530
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
531
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
532
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
533
+ # Deserialize Response
534
+ if status_code == 200
535
+ begin
536
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
537
+ result_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::AgentPoolAvailableVersions.mapper()
538
+ result.body = @client.deserialize(result_mapper, parsed_response)
539
+ rescue Exception => e
540
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
541
+ end
542
+ end
543
+
544
+ result
545
+ end
546
+
547
+ promise.execute
548
+ end
549
+
550
+ #
551
+ # Creates or updates an agent pool.
552
+ #
553
+ # Creates or updates an agent pool in the specified managed cluster.
554
+ #
555
+ # @param resource_group_name [String] The name of the resource group.
556
+ # @param resource_name [String] The name of the managed cluster resource.
557
+ # @param agent_pool_name [String] The name of the agent pool.
558
+ # @param parameters [AgentPool] Parameters supplied to the Create or Update an
559
+ # agent pool operation.
560
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
561
+ # will be added to the HTTP request.
562
+ #
563
+ # @return [AgentPool] operation results.
564
+ #
565
+ def begin_create_or_update(resource_group_name, resource_name, agent_pool_name, parameters, custom_headers:nil)
566
+ response = begin_create_or_update_async(resource_group_name, resource_name, agent_pool_name, parameters, custom_headers:custom_headers).value!
567
+ response.body unless response.nil?
568
+ end
569
+
570
+ #
571
+ # Creates or updates an agent pool.
572
+ #
573
+ # Creates or updates an agent pool in the specified managed cluster.
574
+ #
575
+ # @param resource_group_name [String] The name of the resource group.
576
+ # @param resource_name [String] The name of the managed cluster resource.
577
+ # @param agent_pool_name [String] The name of the agent pool.
578
+ # @param parameters [AgentPool] Parameters supplied to the Create or Update an
579
+ # agent pool operation.
580
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
581
+ # will be added to the HTTP request.
582
+ #
583
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
584
+ #
585
+ def begin_create_or_update_with_http_info(resource_group_name, resource_name, agent_pool_name, parameters, custom_headers:nil)
586
+ begin_create_or_update_async(resource_group_name, resource_name, agent_pool_name, parameters, custom_headers:custom_headers).value!
587
+ end
588
+
589
+ #
590
+ # Creates or updates an agent pool.
591
+ #
592
+ # Creates or updates an agent pool in the specified managed cluster.
593
+ #
594
+ # @param resource_group_name [String] The name of the resource group.
595
+ # @param resource_name [String] The name of the managed cluster resource.
596
+ # @param agent_pool_name [String] The name of the agent pool.
597
+ # @param parameters [AgentPool] Parameters supplied to the Create or Update an
598
+ # agent pool operation.
599
+ # @param [Hash{String => String}] A hash of custom headers that will be added
600
+ # to the HTTP request.
601
+ #
602
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
603
+ #
604
+ def begin_create_or_update_async(resource_group_name, resource_name, agent_pool_name, parameters, custom_headers:nil)
605
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
606
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
607
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
608
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
609
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
610
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
611
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
612
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$'" if !resource_name.nil? && resource_name.match(Regexp.new('^^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$$')).nil?
613
+ fail ArgumentError, 'agent_pool_name is nil' if agent_pool_name.nil?
614
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
615
+
616
+
617
+ request_headers = {}
618
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
619
+
620
+ # Set Headers
621
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
622
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
623
+
624
+ # Serialize Request
625
+ request_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::AgentPool.mapper()
626
+ request_content = @client.serialize(request_mapper, parameters)
627
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
628
+
629
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}'
630
+
631
+ request_url = @base_url || @client.base_url
632
+
633
+ options = {
634
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
635
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'agentPoolName' => agent_pool_name},
636
+ query_params: {'api-version' => @client.api_version},
637
+ body: request_content,
638
+ headers: request_headers.merge(custom_headers || {}),
639
+ base_url: request_url
640
+ }
641
+ promise = @client.make_request_async(:put, path_template, options)
642
+
643
+ promise = promise.then do |result|
644
+ http_response = result.response
645
+ status_code = http_response.status
646
+ response_content = http_response.body
647
+ unless status_code == 200 || status_code == 201
648
+ error_model = JSON.load(response_content)
649
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
650
+ end
651
+
652
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
653
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
654
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
655
+ # Deserialize Response
656
+ if status_code == 200
657
+ begin
658
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
659
+ result_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::AgentPool.mapper()
660
+ result.body = @client.deserialize(result_mapper, parsed_response)
661
+ rescue Exception => e
662
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
663
+ end
664
+ end
665
+ # Deserialize Response
666
+ if status_code == 201
667
+ begin
668
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
669
+ result_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::AgentPool.mapper()
670
+ result.body = @client.deserialize(result_mapper, parsed_response)
671
+ rescue Exception => e
672
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
673
+ end
674
+ end
675
+
676
+ result
677
+ end
678
+
679
+ promise.execute
680
+ end
681
+
682
+ #
683
+ # Deletes an agent pool.
684
+ #
685
+ # Deletes the agent pool in the specified managed cluster.
686
+ #
687
+ # @param resource_group_name [String] The name of the resource group.
688
+ # @param resource_name [String] The name of the managed cluster resource.
689
+ # @param agent_pool_name [String] The name of the agent pool.
690
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
691
+ # will be added to the HTTP request.
692
+ #
693
+ #
694
+ def begin_delete(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
695
+ response = begin_delete_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers).value!
696
+ nil
697
+ end
698
+
699
+ #
700
+ # Deletes an agent pool.
701
+ #
702
+ # Deletes the agent pool in the specified managed cluster.
703
+ #
704
+ # @param resource_group_name [String] The name of the resource group.
705
+ # @param resource_name [String] The name of the managed cluster resource.
706
+ # @param agent_pool_name [String] The name of the agent pool.
707
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
708
+ # will be added to the HTTP request.
709
+ #
710
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
711
+ #
712
+ def begin_delete_with_http_info(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
713
+ begin_delete_async(resource_group_name, resource_name, agent_pool_name, custom_headers:custom_headers).value!
714
+ end
715
+
716
+ #
717
+ # Deletes an agent pool.
718
+ #
719
+ # Deletes the agent pool in the specified managed cluster.
720
+ #
721
+ # @param resource_group_name [String] The name of the resource group.
722
+ # @param resource_name [String] The name of the managed cluster resource.
723
+ # @param agent_pool_name [String] The name of the agent pool.
724
+ # @param [Hash{String => String}] A hash of custom headers that will be added
725
+ # to the HTTP request.
726
+ #
727
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
728
+ #
729
+ def begin_delete_async(resource_group_name, resource_name, agent_pool_name, custom_headers:nil)
730
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
731
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
732
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
733
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
734
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
735
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
736
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
737
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$'" if !resource_name.nil? && resource_name.match(Regexp.new('^^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$$')).nil?
738
+ fail ArgumentError, 'agent_pool_name is nil' if agent_pool_name.nil?
739
+
740
+
741
+ request_headers = {}
742
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
743
+
744
+ # Set Headers
745
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
746
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
747
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}'
748
+
749
+ request_url = @base_url || @client.base_url
750
+
751
+ options = {
752
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
753
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'agentPoolName' => agent_pool_name},
754
+ query_params: {'api-version' => @client.api_version},
755
+ headers: request_headers.merge(custom_headers || {}),
756
+ base_url: request_url
757
+ }
758
+ promise = @client.make_request_async(:delete, path_template, options)
759
+
760
+ promise = promise.then do |result|
761
+ http_response = result.response
762
+ status_code = http_response.status
763
+ response_content = http_response.body
764
+ unless status_code == 202 || status_code == 204
765
+ error_model = JSON.load(response_content)
766
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
767
+ end
768
+
769
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
770
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
771
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
772
+
773
+ result
774
+ end
775
+
776
+ promise.execute
777
+ end
778
+
779
+ #
780
+ # Gets a list of agent pools in the specified managed cluster.
781
+ #
782
+ # Gets a list of agent pools in the specified managed cluster. The operation
783
+ # returns properties of each agent pool.
784
+ #
785
+ # @param next_page_link [String] The NextLink from the previous successful call
786
+ # to List operation.
787
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
788
+ # will be added to the HTTP request.
789
+ #
790
+ # @return [AgentPoolListResult] operation results.
791
+ #
792
+ def list_next(next_page_link, custom_headers:nil)
793
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
794
+ response.body unless response.nil?
795
+ end
796
+
797
+ #
798
+ # Gets a list of agent pools in the specified managed cluster.
799
+ #
800
+ # Gets a list of agent pools in the specified managed cluster. The operation
801
+ # returns properties of each agent pool.
802
+ #
803
+ # @param next_page_link [String] The NextLink from the previous successful call
804
+ # to List operation.
805
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
806
+ # will be added to the HTTP request.
807
+ #
808
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
809
+ #
810
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
811
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
812
+ end
813
+
814
+ #
815
+ # Gets a list of agent pools in the specified managed cluster.
816
+ #
817
+ # Gets a list of agent pools in the specified managed cluster. The operation
818
+ # returns properties of each agent pool.
819
+ #
820
+ # @param next_page_link [String] The NextLink from the previous successful call
821
+ # to List operation.
822
+ # @param [Hash{String => String}] A hash of custom headers that will be added
823
+ # to the HTTP request.
824
+ #
825
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
826
+ #
827
+ def list_next_async(next_page_link, custom_headers:nil)
828
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
829
+
830
+
831
+ request_headers = {}
832
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
833
+
834
+ # Set Headers
835
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
836
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
837
+ path_template = '{nextLink}'
838
+
839
+ request_url = @base_url || @client.base_url
840
+
841
+ options = {
842
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
843
+ skip_encoding_path_params: {'nextLink' => next_page_link},
844
+ headers: request_headers.merge(custom_headers || {}),
845
+ base_url: request_url
846
+ }
847
+ promise = @client.make_request_async(:get, path_template, options)
848
+
849
+ promise = promise.then do |result|
850
+ http_response = result.response
851
+ status_code = http_response.status
852
+ response_content = http_response.body
853
+ unless status_code == 200
854
+ error_model = JSON.load(response_content)
855
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
856
+ end
857
+
858
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
859
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
860
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
861
+ # Deserialize Response
862
+ if status_code == 200
863
+ begin
864
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
865
+ result_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::AgentPoolListResult.mapper()
866
+ result.body = @client.deserialize(result_mapper, parsed_response)
867
+ rescue Exception => e
868
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
869
+ end
870
+ end
871
+
872
+ result
873
+ end
874
+
875
+ promise.execute
876
+ end
877
+
878
+ #
879
+ # Gets a list of agent pools in the specified managed cluster.
880
+ #
881
+ # Gets a list of agent pools in the specified managed cluster. The operation
882
+ # returns properties of each agent pool.
883
+ #
884
+ # @param resource_group_name [String] The name of the resource group.
885
+ # @param resource_name [String] The name of the managed cluster resource.
886
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
887
+ # will be added to the HTTP request.
888
+ #
889
+ # @return [AgentPoolListResult] which provide lazy access to pages of the
890
+ # response.
891
+ #
892
+ def list_as_lazy(resource_group_name, resource_name, custom_headers:nil)
893
+ response = list_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
894
+ unless response.nil?
895
+ page = response.body
896
+ page.next_method = Proc.new do |next_page_link|
897
+ list_next_async(next_page_link, custom_headers:custom_headers)
898
+ end
899
+ page
900
+ end
901
+ end
902
+
903
+ end
904
+ end