azure_mgmt_container_service 0.20.0 → 0.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (566) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/2016-03-30/generated/azure_mgmt_container_service.rb +0 -0
  4. data/lib/2016-03-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  5. data/lib/2016-03-30/generated/azure_mgmt_container_service/container_services.rb +0 -0
  6. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service.rb +0 -0
  7. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_agent_pool_profile.rb +0 -0
  8. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  9. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  10. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_list_result.rb +0 -0
  11. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  12. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_ochestrator_types.rb +0 -0
  13. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_orchestrator_profile.rb +0 -0
  14. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  15. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  16. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  17. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  18. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +0 -0
  19. data/lib/2016-03-30/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  20. data/lib/2016-03-30/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  21. data/lib/2016-09-30/generated/azure_mgmt_container_service.rb +0 -0
  22. data/lib/2016-09-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  23. data/lib/2016-09-30/generated/azure_mgmt_container_service/container_services.rb +0 -0
  24. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service.rb +0 -0
  25. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_agent_pool_profile.rb +0 -0
  26. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_custom_profile.rb +0 -0
  27. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  28. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  29. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_list_result.rb +0 -0
  30. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  31. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_ochestrator_types.rb +0 -0
  32. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_orchestrator_profile.rb +0 -0
  33. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +0 -0
  34. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  35. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  36. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  37. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  38. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +0 -0
  39. data/lib/2016-09-30/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  40. data/lib/2016-09-30/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  41. data/lib/2017-01-31/generated/azure_mgmt_container_service.rb +0 -0
  42. data/lib/2017-01-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  43. data/lib/2017-01-31/generated/azure_mgmt_container_service/container_services.rb +0 -0
  44. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service.rb +0 -0
  45. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_agent_pool_profile.rb +0 -0
  46. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_custom_profile.rb +0 -0
  47. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  48. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  49. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_list_result.rb +0 -0
  50. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  51. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_orchestrator_profile.rb +0 -0
  52. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_orchestrator_types.rb +0 -0
  53. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +0 -0
  54. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  55. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  56. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  57. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  58. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +0 -0
  59. data/lib/2017-01-31/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  60. data/lib/2017-01-31/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  61. data/lib/2017-07-01/generated/azure_mgmt_container_service.rb +0 -0
  62. data/lib/2017-07-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  63. data/lib/2017-07-01/generated/azure_mgmt_container_service/container_services.rb +0 -0
  64. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service.rb +0 -0
  65. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_agent_pool_profile.rb +0 -0
  66. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_custom_profile.rb +0 -0
  67. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  68. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  69. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_list_result.rb +0 -0
  70. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  71. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_orchestrator_profile.rb +0 -0
  72. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_orchestrator_types.rb +0 -0
  73. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +0 -0
  74. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  75. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  76. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +0 -0
  77. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  78. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  79. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +0 -0
  80. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/key_vault_secret_ref.rb +0 -0
  81. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  82. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  83. data/lib/2017-07-01/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  84. data/lib/2017-08-31/generated/azure_mgmt_container_service.rb +0 -0
  85. data/lib/2017-08-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  86. data/lib/2017-08-31/generated/azure_mgmt_container_service/managed_clusters.rb +0 -0
  87. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_agent_pool_profile.rb +0 -0
  88. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  89. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  90. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  91. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +0 -0
  92. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  93. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  94. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +0 -0
  95. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  96. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  97. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +0 -0
  98. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/key_vault_secret_ref.rb +0 -0
  99. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster.rb +0 -0
  100. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +0 -0
  101. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +0 -0
  102. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +0 -0
  103. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +0 -0
  104. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +0 -0
  105. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  106. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  107. data/lib/2017-08-31/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  108. data/lib/2017-09-30/generated/azure_mgmt_container_service.rb +0 -0
  109. data/lib/2017-09-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  110. data/lib/2017-09-30/generated/azure_mgmt_container_service/container_services.rb +0 -0
  111. data/lib/2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +0 -0
  112. data/lib/2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +0 -0
  113. data/lib/2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +0 -0
  114. data/lib/2017-09-30/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  115. data/lib/2018-03-31/generated/azure_mgmt_container_service.rb +0 -0
  116. data/lib/2018-03-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  117. data/lib/2018-03-31/generated/azure_mgmt_container_service/managed_clusters.rb +0 -0
  118. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  119. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  120. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  121. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +0 -0
  122. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  123. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  124. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +0 -0
  125. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  126. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  127. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +0 -0
  128. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/credential_result.rb +0 -0
  129. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/credential_results.rb +0 -0
  130. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster.rb +0 -0
  131. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +0 -0
  132. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +0 -0
  133. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +0 -0
  134. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +0 -0
  135. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +0 -0
  136. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +0 -0
  137. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +0 -0
  138. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +0 -0
  139. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/network_plugin.rb +0 -0
  140. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/network_policy.rb +0 -0
  141. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/operation_list_result.rb +0 -0
  142. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/operation_value.rb +0 -0
  143. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +0 -0
  144. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  145. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  146. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  147. data/lib/2018-03-31/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  148. data/lib/2018-03-31/generated/azure_mgmt_container_service/operations.rb +0 -0
  149. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service.rb +0 -0
  150. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  151. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/managed_clusters.rb +0 -0
  152. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/agent_pool_type.rb +0 -0
  153. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  154. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  155. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  156. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +0 -0
  157. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  158. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  159. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +0 -0
  160. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  161. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  162. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +0 -0
  163. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/credential_result.rb +0 -0
  164. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/credential_results.rb +0 -0
  165. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/managed_cluster.rb +0 -0
  166. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +0 -0
  167. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +0 -0
  168. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +0 -0
  169. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +0 -0
  170. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +0 -0
  171. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +0 -0
  172. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +0 -0
  173. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +0 -0
  174. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/network_plugin.rb +0 -0
  175. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/network_policy.rb +0 -0
  176. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/operation_list_result.rb +0 -0
  177. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/operation_value.rb +0 -0
  178. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +0 -0
  179. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  180. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  181. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  182. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  183. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/operations.rb +0 -0
  184. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service.rb +0 -0
  185. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  186. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/network_profile.rb +0 -0
  187. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_agent_pool_profile_role.rb +0 -0
  188. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_container_service_vmsize.rb +0 -0
  189. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster.rb +0 -0
  190. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_aadidentity_provider.rb +0 -0
  191. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_agent_pool_profile.rb +0 -0
  192. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_auth_profile.rb +0 -0
  193. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_base_identity_provider.rb +0 -0
  194. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_identity_provider.rb +0 -0
  195. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_list_result.rb +0 -0
  196. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_master_pool_profile.rb +0 -0
  197. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_router_profile.rb +0 -0
  198. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  199. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/purchase_plan.rb +0 -0
  200. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  201. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  202. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  203. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb +0 -0
  204. data/lib/2019-02-01/generated/azure_mgmt_container_service.rb +0 -0
  205. data/lib/2019-02-01/generated/azure_mgmt_container_service/agent_pools.rb +0 -0
  206. data/lib/2019-02-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  207. data/lib/2019-02-01/generated/azure_mgmt_container_service/managed_clusters.rb +0 -0
  208. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/agent_pool.rb +0 -0
  209. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +0 -0
  210. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +0 -0
  211. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  212. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  213. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  214. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +0 -0
  215. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  216. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  217. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +0 -0
  218. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  219. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  220. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +0 -0
  221. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/credential_result.rb +0 -0
  222. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/credential_results.rb +0 -0
  223. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +0 -0
  224. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +0 -0
  225. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +0 -0
  226. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +0 -0
  227. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +0 -0
  228. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +0 -0
  229. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +0 -0
  230. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +0 -0
  231. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +0 -0
  232. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +0 -0
  233. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/network_plugin.rb +0 -0
  234. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/network_policy.rb +0 -0
  235. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +0 -0
  236. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/operation_value.rb +0 -0
  237. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +0 -0
  238. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  239. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  240. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/sub_resource.rb +0 -0
  241. data/lib/2019-02-01/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  242. data/lib/2019-02-01/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  243. data/lib/2019-02-01/generated/azure_mgmt_container_service/operations.rb +0 -0
  244. data/lib/2019-04-01/generated/azure_mgmt_container_service.rb +0 -0
  245. data/lib/2019-04-01/generated/azure_mgmt_container_service/agent_pools.rb +0 -0
  246. data/lib/2019-04-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  247. data/lib/2019-04-01/generated/azure_mgmt_container_service/container_services.rb +0 -0
  248. data/lib/2019-04-01/generated/azure_mgmt_container_service/managed_clusters.rb +0 -0
  249. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/agent_pool.rb +0 -0
  250. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +0 -0
  251. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +0 -0
  252. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  253. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  254. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  255. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +0 -0
  256. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  257. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  258. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +0 -0
  259. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  260. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  261. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/credential_result.rb +0 -0
  262. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/credential_results.rb +0 -0
  263. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +0 -0
  264. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +0 -0
  265. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +0 -0
  266. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +0 -0
  267. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +0 -0
  268. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +0 -0
  269. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +0 -0
  270. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +0 -0
  271. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +0 -0
  272. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +0 -0
  273. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +0 -0
  274. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +0 -0
  275. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +0 -0
  276. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +0 -0
  277. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/network_plugin.rb +0 -0
  278. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/network_policy.rb +0 -0
  279. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +0 -0
  280. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/operation_value.rb +0 -0
  281. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +0 -0
  282. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +0 -0
  283. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +0 -0
  284. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  285. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  286. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +0 -0
  287. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/sub_resource.rb +0 -0
  288. data/lib/2019-04-01/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  289. data/lib/2019-04-01/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  290. data/lib/2019-04-01/generated/azure_mgmt_container_service/operations.rb +0 -0
  291. data/lib/2019-04-30/generated/azure_mgmt_container_service.rb +0 -0
  292. data/lib/2019-04-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  293. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/network_profile.rb +0 -0
  294. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_agent_pool_profile_role.rb +0 -0
  295. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_container_service_vmsize.rb +0 -0
  296. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_managed_cluster.rb +0 -0
  297. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_aadidentity_provider.rb +0 -0
  298. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_agent_pool_profile.rb +0 -0
  299. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_auth_profile.rb +0 -0
  300. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_base_identity_provider.rb +0 -0
  301. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_identity_provider.rb +0 -0
  302. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_list_result.rb +0 -0
  303. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_master_pool_profile.rb +0 -0
  304. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/open_shift_router_profile.rb +0 -0
  305. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  306. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/purchase_plan.rb +0 -0
  307. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  308. data/lib/2019-04-30/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  309. data/lib/2019-04-30/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  310. data/lib/2019-04-30/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb +0 -0
  311. data/lib/2019-06-01/generated/azure_mgmt_container_service.rb +0 -0
  312. data/lib/2019-06-01/generated/azure_mgmt_container_service/agent_pools.rb +0 -0
  313. data/lib/2019-06-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  314. data/lib/2019-06-01/generated/azure_mgmt_container_service/container_services.rb +0 -0
  315. data/lib/2019-06-01/generated/azure_mgmt_container_service/managed_clusters.rb +0 -0
  316. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool.rb +0 -0
  317. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +0 -0
  318. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +0 -0
  319. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +0 -0
  320. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +0 -0
  321. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +0 -0
  322. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +0 -0
  323. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  324. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  325. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  326. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +0 -0
  327. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  328. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  329. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +0 -0
  330. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  331. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  332. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/credential_result.rb +0 -0
  333. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/credential_results.rb +0 -0
  334. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +0 -0
  335. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +0 -0
  336. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +0 -0
  337. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +0 -0
  338. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +0 -0
  339. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +0 -0
  340. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +0 -0
  341. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +0 -0
  342. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +0 -0
  343. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +0 -0
  344. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +0 -0
  345. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +0 -0
  346. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +0 -0
  347. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +0 -0
  348. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/network_plugin.rb +0 -0
  349. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/network_policy.rb +0 -0
  350. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +0 -0
  351. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/operation_value.rb +0 -0
  352. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +0 -0
  353. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +0 -0
  354. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +0 -0
  355. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  356. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  357. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +0 -0
  358. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +0 -0
  359. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +0 -0
  360. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/sub_resource.rb +0 -0
  361. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  362. data/lib/2019-06-01/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  363. data/lib/2019-06-01/generated/azure_mgmt_container_service/operations.rb +0 -0
  364. data/lib/2019-08-01/generated/azure_mgmt_container_service.rb +0 -0
  365. data/lib/2019-08-01/generated/azure_mgmt_container_service/agent_pools.rb +0 -0
  366. data/lib/2019-08-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  367. data/lib/2019-08-01/generated/azure_mgmt_container_service/container_services.rb +0 -0
  368. data/lib/2019-08-01/generated/azure_mgmt_container_service/managed_clusters.rb +0 -0
  369. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool.rb +0 -0
  370. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +0 -0
  371. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +0 -0
  372. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +0 -0
  373. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +0 -0
  374. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +0 -0
  375. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +0 -0
  376. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  377. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  378. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  379. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +0 -0
  380. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  381. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  382. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +0 -0
  383. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  384. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  385. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/credential_result.rb +0 -0
  386. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/credential_results.rb +0 -0
  387. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +0 -0
  388. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +0 -0
  389. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +0 -0
  390. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +0 -0
  391. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +0 -0
  392. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +0 -0
  393. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +0 -0
  394. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +0 -0
  395. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +0 -0
  396. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +0 -0
  397. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +0 -0
  398. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +0 -0
  399. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +0 -0
  400. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +0 -0
  401. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +0 -0
  402. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +0 -0
  403. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +0 -0
  404. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +0 -0
  405. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +0 -0
  406. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/network_plugin.rb +0 -0
  407. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/network_policy.rb +0 -0
  408. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +0 -0
  409. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/operation_value.rb +0 -0
  410. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +0 -0
  411. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +0 -0
  412. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +0 -0
  413. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  414. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  415. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +0 -0
  416. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/resource_reference.rb +0 -0
  417. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +0 -0
  418. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +0 -0
  419. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/sub_resource.rb +0 -0
  420. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  421. data/lib/2019-08-01/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  422. data/lib/2019-08-01/generated/azure_mgmt_container_service/operations.rb +0 -0
  423. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service.rb +0 -0
  424. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  425. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/network_profile.rb +0 -0
  426. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_agent_pool_profile_role.rb +0 -0
  427. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_container_service_vmsize.rb +0 -0
  428. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster.rb +0 -0
  429. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_aadidentity_provider.rb +0 -0
  430. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_agent_pool_profile.rb +0 -0
  431. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_auth_profile.rb +0 -0
  432. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_base_identity_provider.rb +0 -0
  433. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_identity_provider.rb +0 -0
  434. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_list_result.rb +0 -0
  435. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_master_pool_profile.rb +0 -0
  436. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_monitor_profile.rb +0 -0
  437. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_router_profile.rb +0 -0
  438. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  439. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/purchase_plan.rb +0 -0
  440. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  441. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  442. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  443. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb +0 -0
  444. data/lib/2019-10-01/generated/azure_mgmt_container_service.rb +0 -0
  445. data/lib/2019-10-01/generated/azure_mgmt_container_service/agent_pools.rb +0 -0
  446. data/lib/2019-10-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  447. data/lib/2019-10-01/generated/azure_mgmt_container_service/managed_clusters.rb +0 -0
  448. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool.rb +0 -0
  449. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +0 -0
  450. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +0 -0
  451. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +0 -0
  452. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +0 -0
  453. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +0 -0
  454. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +0 -0
  455. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +0 -0
  456. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +0 -0
  457. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +0 -0
  458. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +0 -0
  459. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +0 -0
  460. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +0 -0
  461. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +0 -0
  462. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +0 -0
  463. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +0 -0
  464. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/credential_result.rb +0 -0
  465. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/credential_results.rb +0 -0
  466. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +0 -0
  467. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +0 -0
  468. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +0 -0
  469. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +0 -0
  470. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +0 -0
  471. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +0 -0
  472. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +0 -0
  473. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +0 -0
  474. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +0 -0
  475. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +0 -0
  476. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +0 -0
  477. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +0 -0
  478. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +0 -0
  479. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +0 -0
  480. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +0 -0
  481. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +0 -0
  482. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +0 -0
  483. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +0 -0
  484. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +0 -0
  485. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/network_plugin.rb +0 -0
  486. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/network_policy.rb +0 -0
  487. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +0 -0
  488. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/operation_value.rb +0 -0
  489. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/ostype.rb +0 -0
  490. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/resource.rb +0 -0
  491. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +0 -0
  492. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/resource_reference.rb +0 -0
  493. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +0 -0
  494. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +0 -0
  495. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/sub_resource.rb +0 -0
  496. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/tags_object.rb +0 -0
  497. data/lib/2019-10-01/generated/azure_mgmt_container_service/module_definition.rb +0 -0
  498. data/lib/2019-10-01/generated/azure_mgmt_container_service/operations.rb +0 -0
  499. data/lib/2020-02-01/generated/azure_mgmt_container_service.rb +85 -0
  500. data/lib/2020-02-01/generated/azure_mgmt_container_service/agent_pools.rb +900 -0
  501. data/lib/2020-02-01/generated/azure_mgmt_container_service/container_service_client.rb +141 -0
  502. data/lib/2020-02-01/generated/azure_mgmt_container_service/managed_clusters.rb +2028 -0
  503. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool.rb +398 -0
  504. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  505. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  506. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  507. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  508. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +117 -0
  509. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  510. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  511. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  512. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  513. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +179 -0
  514. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  515. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  516. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  517. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  518. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  519. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  520. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  521. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  522. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +376 -0
  523. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  524. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  525. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +80 -0
  526. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile_identity.rb +59 -0
  527. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +251 -0
  528. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +371 -0
  529. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
  530. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +78 -0
  531. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  532. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +132 -0
  533. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
  534. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
  535. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
  536. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  537. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  538. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_auto_scaler_profile.rb +124 -0
  539. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_identity_profile_value.rb +61 -0
  540. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  541. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  542. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  543. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/network_mode.rb +16 -0
  544. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  545. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  546. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  547. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  548. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  549. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/outbound_type.rb +16 -0
  550. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  551. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +16 -0
  552. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
  553. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  554. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +17 -0
  555. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  556. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  557. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/user_assigned_identity.rb +69 -0
  558. data/lib/2020-02-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  559. data/lib/2020-02-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  560. data/lib/azure_mgmt_container_service.rb +9 -8
  561. data/lib/module_definition.rb +6 -6
  562. data/lib/profiles/latest/containerservice_latest_profile_client.rb +40 -40
  563. data/lib/profiles/latest/containerservice_module_definition.rb +8 -8
  564. data/lib/profiles/latest/modules/containerservice_profile_module.rb +148 -124
  565. data/lib/version.rb +1 -1
  566. metadata +64 -3
@@ -0,0 +1,141 @@
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::V2020_02_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class ContainerServiceClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Subscription credentials which uniquely identify
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Client Api Version.
26
+ attr_reader :api_version
27
+
28
+ # @return [String] The preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
38
+ attr_accessor :generate_client_request_id
39
+
40
+ # @return [Operations] operations
41
+ attr_reader :operations
42
+
43
+ # @return [ManagedClusters] managed_clusters
44
+ attr_reader :managed_clusters
45
+
46
+ # @return [AgentPools] agent_pools
47
+ attr_reader :agent_pools
48
+
49
+ #
50
+ # Creates initializes a new instance of the ContainerServiceClient class.
51
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
52
+ # @param base_url [String] the base URI of the service.
53
+ # @param options [Array] filters to be applied to the HTTP requests.
54
+ #
55
+ def initialize(credentials = nil, base_url = nil, options = nil)
56
+ super(credentials, options)
57
+ @base_url = base_url || 'https://management.azure.com'
58
+
59
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
60
+ @credentials = credentials
61
+
62
+ @operations = Operations.new(self)
63
+ @managed_clusters = ManagedClusters.new(self)
64
+ @agent_pools = AgentPools.new(self)
65
+ @api_version = '2020-02-01'
66
+ @accept_language = 'en-US'
67
+ @long_running_operation_retry_timeout = 30
68
+ @generate_client_request_id = true
69
+ add_telemetry
70
+ end
71
+
72
+ #
73
+ # Makes a request and returns the body of the response.
74
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
75
+ # @param path [String] the path, relative to {base_url}.
76
+ # @param options [Hash{String=>String}] specifying any request options like :body.
77
+ # @return [Hash{String=>String}] containing the body of the response.
78
+ # Example:
79
+ #
80
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
81
+ # path = "/path"
82
+ # options = {
83
+ # body: request_content,
84
+ # query_params: {'api-version' => '2016-02-01'}
85
+ # }
86
+ # result = @client.make_request(:put, path, options)
87
+ #
88
+ def make_request(method, path, options = {})
89
+ result = make_request_with_http_info(method, path, options)
90
+ result.body unless result.nil?
91
+ end
92
+
93
+ #
94
+ # Makes a request and returns the operation response.
95
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
96
+ # @param path [String] the path, relative to {base_url}.
97
+ # @param options [Hash{String=>String}] specifying any request options like :body.
98
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
99
+ #
100
+ def make_request_with_http_info(method, path, options = {})
101
+ result = make_request_async(method, path, options).value!
102
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
103
+ result
104
+ end
105
+
106
+ #
107
+ # Makes a request asynchronously.
108
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
109
+ # @param path [String] the path, relative to {base_url}.
110
+ # @param options [Hash{String=>String}] specifying any request options like :body.
111
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
112
+ #
113
+ def make_request_async(method, path, options = {})
114
+ fail ArgumentError, 'method is nil' if method.nil?
115
+ fail ArgumentError, 'path is nil' if path.nil?
116
+
117
+ request_url = options[:base_url] || @base_url
118
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
119
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
120
+ end
121
+
122
+ request_headers = @request_headers
123
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
124
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
125
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
126
+
127
+ super(request_url, method, path, options)
128
+ end
129
+
130
+
131
+ private
132
+ #
133
+ # Adds telemetry information.
134
+ #
135
+ def add_telemetry
136
+ sdk_information = 'azure_mgmt_container_service'
137
+ sdk_information = "#{sdk_information}/0.20.1"
138
+ add_user_agent_information(sdk_information)
139
+ end
140
+ end
141
+ end
@@ -0,0 +1,2028 @@
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::V2020_02_01
7
+ #
8
+ # The Container Service Client.
9
+ #
10
+ class ManagedClusters
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ManagedClusters 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 managed clusters in the specified subscription.
26
+ #
27
+ # Gets a list of managed clusters in the specified subscription. The operation
28
+ # returns properties of each managed cluster.
29
+ #
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [Array<ManagedCluster>] operation results.
34
+ #
35
+ def list(custom_headers:nil)
36
+ first_page = list_as_lazy(custom_headers:custom_headers)
37
+ first_page.get_all_items
38
+ end
39
+
40
+ #
41
+ # Gets a list of managed clusters in the specified subscription.
42
+ #
43
+ # Gets a list of managed clusters in the specified subscription. The operation
44
+ # returns properties of each managed cluster.
45
+ #
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
51
+ def list_with_http_info(custom_headers:nil)
52
+ list_async(custom_headers:custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # Gets a list of managed clusters in the specified subscription.
57
+ #
58
+ # Gets a list of managed clusters in the specified subscription. The operation
59
+ # returns properties of each managed cluster.
60
+ #
61
+ # @param [Hash{String => String}] A hash of custom headers that will be added
62
+ # to the HTTP request.
63
+ #
64
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
+ #
66
+ def list_async(custom_headers:nil)
67
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
68
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
69
+
70
+
71
+ request_headers = {}
72
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
73
+
74
+ # Set Headers
75
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
76
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
77
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters'
78
+
79
+ request_url = @base_url || @client.base_url
80
+
81
+ options = {
82
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
83
+ path_params: {'subscriptionId' => @client.subscription_id},
84
+ query_params: {'api-version' => @client.api_version},
85
+ headers: request_headers.merge(custom_headers || {}),
86
+ base_url: request_url
87
+ }
88
+ promise = @client.make_request_async(:get, path_template, options)
89
+
90
+ promise = promise.then do |result|
91
+ http_response = result.response
92
+ status_code = http_response.status
93
+ response_content = http_response.body
94
+ unless status_code == 200
95
+ error_model = JSON.load(response_content)
96
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
97
+ end
98
+
99
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
100
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
101
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
102
+ # Deserialize Response
103
+ if status_code == 200
104
+ begin
105
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
106
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedClusterListResult.mapper()
107
+ result.body = @client.deserialize(result_mapper, parsed_response)
108
+ rescue Exception => e
109
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
110
+ end
111
+ end
112
+
113
+ result
114
+ end
115
+
116
+ promise.execute
117
+ end
118
+
119
+ #
120
+ # Lists managed clusters in the specified subscription and resource group.
121
+ #
122
+ # Lists managed clusters in the specified subscription and resource group. The
123
+ # operation returns properties of each managed cluster.
124
+ #
125
+ # @param resource_group_name [String] The name of the resource group.
126
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
127
+ # will be added to the HTTP request.
128
+ #
129
+ # @return [Array<ManagedCluster>] operation results.
130
+ #
131
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
132
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
133
+ first_page.get_all_items
134
+ end
135
+
136
+ #
137
+ # Lists managed clusters in the specified subscription and resource group.
138
+ #
139
+ # Lists managed clusters in the specified subscription and resource group. The
140
+ # operation returns properties of each managed cluster.
141
+ #
142
+ # @param resource_group_name [String] The name of the resource group.
143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
144
+ # will be added to the HTTP request.
145
+ #
146
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
147
+ #
148
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
149
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
150
+ end
151
+
152
+ #
153
+ # Lists managed clusters in the specified subscription and resource group.
154
+ #
155
+ # Lists managed clusters in the specified subscription and resource group. The
156
+ # operation returns properties of each managed cluster.
157
+ #
158
+ # @param resource_group_name [String] The name of the resource group.
159
+ # @param [Hash{String => String}] A hash of custom headers that will be added
160
+ # to the HTTP request.
161
+ #
162
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
163
+ #
164
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
165
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
166
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
167
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
168
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
169
+
170
+
171
+ request_headers = {}
172
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
173
+
174
+ # Set Headers
175
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
176
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
177
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters'
178
+
179
+ request_url = @base_url || @client.base_url
180
+
181
+ options = {
182
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
183
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
184
+ query_params: {'api-version' => @client.api_version},
185
+ headers: request_headers.merge(custom_headers || {}),
186
+ base_url: request_url
187
+ }
188
+ promise = @client.make_request_async(:get, path_template, options)
189
+
190
+ promise = promise.then do |result|
191
+ http_response = result.response
192
+ status_code = http_response.status
193
+ response_content = http_response.body
194
+ unless status_code == 200
195
+ error_model = JSON.load(response_content)
196
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
197
+ end
198
+
199
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
200
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
201
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
202
+ # Deserialize Response
203
+ if status_code == 200
204
+ begin
205
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
206
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedClusterListResult.mapper()
207
+ result.body = @client.deserialize(result_mapper, parsed_response)
208
+ rescue Exception => e
209
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
210
+ end
211
+ end
212
+
213
+ result
214
+ end
215
+
216
+ promise.execute
217
+ end
218
+
219
+ #
220
+ # Gets upgrade profile for a managed cluster.
221
+ #
222
+ # Gets the details of the upgrade profile for a managed cluster with a
223
+ # specified resource group and name.
224
+ #
225
+ # @param resource_group_name [String] The name of the resource group.
226
+ # @param resource_name [String] The name of the managed cluster resource.
227
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
228
+ # will be added to the HTTP request.
229
+ #
230
+ # @return [ManagedClusterUpgradeProfile] operation results.
231
+ #
232
+ def get_upgrade_profile(resource_group_name, resource_name, custom_headers:nil)
233
+ response = get_upgrade_profile_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
234
+ response.body unless response.nil?
235
+ end
236
+
237
+ #
238
+ # Gets upgrade profile for a managed cluster.
239
+ #
240
+ # Gets the details of the upgrade profile for a managed cluster with a
241
+ # specified resource group and name.
242
+ #
243
+ # @param resource_group_name [String] The name of the resource group.
244
+ # @param resource_name [String] The name of the managed cluster resource.
245
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
246
+ # will be added to the HTTP request.
247
+ #
248
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
249
+ #
250
+ def get_upgrade_profile_with_http_info(resource_group_name, resource_name, custom_headers:nil)
251
+ get_upgrade_profile_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
252
+ end
253
+
254
+ #
255
+ # Gets upgrade profile for a managed cluster.
256
+ #
257
+ # Gets the details of the upgrade profile for a managed cluster with a
258
+ # specified resource group and name.
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 [Hash{String => String}] A hash of custom headers that will be added
263
+ # to the HTTP request.
264
+ #
265
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
266
+ #
267
+ def get_upgrade_profile_async(resource_group_name, resource_name, custom_headers:nil)
268
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
269
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
270
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
271
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
272
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
273
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
274
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
275
+ 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?
276
+
277
+
278
+ request_headers = {}
279
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
280
+
281
+ # Set Headers
282
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
283
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
284
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default'
285
+
286
+ request_url = @base_url || @client.base_url
287
+
288
+ options = {
289
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
290
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
291
+ query_params: {'api-version' => @client.api_version},
292
+ headers: request_headers.merge(custom_headers || {}),
293
+ base_url: request_url
294
+ }
295
+ promise = @client.make_request_async(:get, path_template, options)
296
+
297
+ promise = promise.then do |result|
298
+ http_response = result.response
299
+ status_code = http_response.status
300
+ response_content = http_response.body
301
+ unless status_code == 200
302
+ error_model = JSON.load(response_content)
303
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
304
+ end
305
+
306
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
307
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
308
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
309
+ # Deserialize Response
310
+ if status_code == 200
311
+ begin
312
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
313
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedClusterUpgradeProfile.mapper()
314
+ result.body = @client.deserialize(result_mapper, parsed_response)
315
+ rescue Exception => e
316
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
317
+ end
318
+ end
319
+
320
+ result
321
+ end
322
+
323
+ promise.execute
324
+ end
325
+
326
+ #
327
+ # Gets an access profile of a managed cluster.
328
+ #
329
+ # Gets the accessProfile for the specified role name of the managed cluster
330
+ # with a specified resource group and name.
331
+ #
332
+ # @param resource_group_name [String] The name of the resource group.
333
+ # @param resource_name [String] The name of the managed cluster resource.
334
+ # @param role_name [String] The name of the role for managed cluster
335
+ # accessProfile resource.
336
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
337
+ # will be added to the HTTP request.
338
+ #
339
+ # @return [ManagedClusterAccessProfile] operation results.
340
+ #
341
+ def get_access_profile(resource_group_name, resource_name, role_name, custom_headers:nil)
342
+ response = get_access_profile_async(resource_group_name, resource_name, role_name, custom_headers:custom_headers).value!
343
+ response.body unless response.nil?
344
+ end
345
+
346
+ #
347
+ # Gets an access profile of a managed cluster.
348
+ #
349
+ # Gets the accessProfile for the specified role name of the managed cluster
350
+ # with a specified resource group and name.
351
+ #
352
+ # @param resource_group_name [String] The name of the resource group.
353
+ # @param resource_name [String] The name of the managed cluster resource.
354
+ # @param role_name [String] The name of the role for managed cluster
355
+ # accessProfile resource.
356
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
357
+ # will be added to the HTTP request.
358
+ #
359
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
360
+ #
361
+ def get_access_profile_with_http_info(resource_group_name, resource_name, role_name, custom_headers:nil)
362
+ get_access_profile_async(resource_group_name, resource_name, role_name, custom_headers:custom_headers).value!
363
+ end
364
+
365
+ #
366
+ # Gets an access profile of a managed cluster.
367
+ #
368
+ # Gets the accessProfile for the specified role name of the managed cluster
369
+ # with a specified resource group and name.
370
+ #
371
+ # @param resource_group_name [String] The name of the resource group.
372
+ # @param resource_name [String] The name of the managed cluster resource.
373
+ # @param role_name [String] The name of the role for managed cluster
374
+ # accessProfile resource.
375
+ # @param [Hash{String => String}] A hash of custom headers that will be added
376
+ # to the HTTP request.
377
+ #
378
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
379
+ #
380
+ def get_access_profile_async(resource_group_name, resource_name, role_name, custom_headers:nil)
381
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
382
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
383
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
384
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
385
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
386
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
387
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
388
+ 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?
389
+ fail ArgumentError, 'role_name is nil' if role_name.nil?
390
+
391
+
392
+ request_headers = {}
393
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
394
+
395
+ # Set Headers
396
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
397
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
398
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential'
399
+
400
+ request_url = @base_url || @client.base_url
401
+
402
+ options = {
403
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
404
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'roleName' => role_name},
405
+ query_params: {'api-version' => @client.api_version},
406
+ headers: request_headers.merge(custom_headers || {}),
407
+ base_url: request_url
408
+ }
409
+ promise = @client.make_request_async(:post, path_template, options)
410
+
411
+ promise = promise.then do |result|
412
+ http_response = result.response
413
+ status_code = http_response.status
414
+ response_content = http_response.body
415
+ unless status_code == 200
416
+ error_model = JSON.load(response_content)
417
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
418
+ end
419
+
420
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
421
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
422
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
423
+ # Deserialize Response
424
+ if status_code == 200
425
+ begin
426
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
427
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedClusterAccessProfile.mapper()
428
+ result.body = @client.deserialize(result_mapper, parsed_response)
429
+ rescue Exception => e
430
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
431
+ end
432
+ end
433
+
434
+ result
435
+ end
436
+
437
+ promise.execute
438
+ end
439
+
440
+ #
441
+ # Gets cluster admin credential of a managed cluster.
442
+ #
443
+ # Gets cluster admin credential of the managed cluster with a specified
444
+ # resource group and name.
445
+ #
446
+ # @param resource_group_name [String] The name of the resource group.
447
+ # @param resource_name [String] The name of the managed cluster resource.
448
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
449
+ # will be added to the HTTP request.
450
+ #
451
+ # @return [CredentialResults] operation results.
452
+ #
453
+ def list_cluster_admin_credentials(resource_group_name, resource_name, custom_headers:nil)
454
+ response = list_cluster_admin_credentials_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
455
+ response.body unless response.nil?
456
+ end
457
+
458
+ #
459
+ # Gets cluster admin credential of a managed cluster.
460
+ #
461
+ # Gets cluster admin credential of the managed cluster with a specified
462
+ # resource group and name.
463
+ #
464
+ # @param resource_group_name [String] The name of the resource group.
465
+ # @param resource_name [String] The name of the managed cluster resource.
466
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
467
+ # will be added to the HTTP request.
468
+ #
469
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
470
+ #
471
+ def list_cluster_admin_credentials_with_http_info(resource_group_name, resource_name, custom_headers:nil)
472
+ list_cluster_admin_credentials_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
473
+ end
474
+
475
+ #
476
+ # Gets cluster admin credential of a managed cluster.
477
+ #
478
+ # Gets cluster admin credential of the managed cluster with a specified
479
+ # resource group and name.
480
+ #
481
+ # @param resource_group_name [String] The name of the resource group.
482
+ # @param resource_name [String] The name of the managed cluster resource.
483
+ # @param [Hash{String => String}] A hash of custom headers that will be added
484
+ # to the HTTP request.
485
+ #
486
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
487
+ #
488
+ def list_cluster_admin_credentials_async(resource_group_name, resource_name, custom_headers:nil)
489
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
490
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
491
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
492
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
493
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
494
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
495
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
496
+ 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?
497
+
498
+
499
+ request_headers = {}
500
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
501
+
502
+ # Set Headers
503
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
504
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
505
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential'
506
+
507
+ request_url = @base_url || @client.base_url
508
+
509
+ options = {
510
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
511
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
512
+ query_params: {'api-version' => @client.api_version},
513
+ headers: request_headers.merge(custom_headers || {}),
514
+ base_url: request_url
515
+ }
516
+ promise = @client.make_request_async(:post, path_template, options)
517
+
518
+ promise = promise.then do |result|
519
+ http_response = result.response
520
+ status_code = http_response.status
521
+ response_content = http_response.body
522
+ unless status_code == 200
523
+ error_model = JSON.load(response_content)
524
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
525
+ end
526
+
527
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
528
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
529
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
530
+ # Deserialize Response
531
+ if status_code == 200
532
+ begin
533
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
534
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::CredentialResults.mapper()
535
+ result.body = @client.deserialize(result_mapper, parsed_response)
536
+ rescue Exception => e
537
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
538
+ end
539
+ end
540
+
541
+ result
542
+ end
543
+
544
+ promise.execute
545
+ end
546
+
547
+ #
548
+ # Gets cluster user credential of a managed cluster.
549
+ #
550
+ # Gets cluster user credential of the managed cluster with a specified resource
551
+ # group and name.
552
+ #
553
+ # @param resource_group_name [String] The name of the resource group.
554
+ # @param resource_name [String] The name of the managed cluster resource.
555
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
556
+ # will be added to the HTTP request.
557
+ #
558
+ # @return [CredentialResults] operation results.
559
+ #
560
+ def list_cluster_user_credentials(resource_group_name, resource_name, custom_headers:nil)
561
+ response = list_cluster_user_credentials_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
562
+ response.body unless response.nil?
563
+ end
564
+
565
+ #
566
+ # Gets cluster user credential of a managed cluster.
567
+ #
568
+ # Gets cluster user credential of the managed cluster with a specified resource
569
+ # group and name.
570
+ #
571
+ # @param resource_group_name [String] The name of the resource group.
572
+ # @param resource_name [String] The name of the managed cluster resource.
573
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
574
+ # will be added to the HTTP request.
575
+ #
576
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
577
+ #
578
+ def list_cluster_user_credentials_with_http_info(resource_group_name, resource_name, custom_headers:nil)
579
+ list_cluster_user_credentials_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
580
+ end
581
+
582
+ #
583
+ # Gets cluster user credential of a managed cluster.
584
+ #
585
+ # Gets cluster user credential of the managed cluster with a specified resource
586
+ # group and name.
587
+ #
588
+ # @param resource_group_name [String] The name of the resource group.
589
+ # @param resource_name [String] The name of the managed cluster resource.
590
+ # @param [Hash{String => String}] A hash of custom headers that will be added
591
+ # to the HTTP request.
592
+ #
593
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
594
+ #
595
+ def list_cluster_user_credentials_async(resource_group_name, resource_name, custom_headers:nil)
596
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
597
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
598
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
599
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
600
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
601
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
602
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
603
+ 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?
604
+
605
+
606
+ request_headers = {}
607
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
608
+
609
+ # Set Headers
610
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
611
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
612
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential'
613
+
614
+ request_url = @base_url || @client.base_url
615
+
616
+ options = {
617
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
618
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
619
+ query_params: {'api-version' => @client.api_version},
620
+ headers: request_headers.merge(custom_headers || {}),
621
+ base_url: request_url
622
+ }
623
+ promise = @client.make_request_async(:post, path_template, options)
624
+
625
+ promise = promise.then do |result|
626
+ http_response = result.response
627
+ status_code = http_response.status
628
+ response_content = http_response.body
629
+ unless status_code == 200
630
+ error_model = JSON.load(response_content)
631
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
632
+ end
633
+
634
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
635
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
636
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
637
+ # Deserialize Response
638
+ if status_code == 200
639
+ begin
640
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
641
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::CredentialResults.mapper()
642
+ result.body = @client.deserialize(result_mapper, parsed_response)
643
+ rescue Exception => e
644
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
645
+ end
646
+ end
647
+
648
+ result
649
+ end
650
+
651
+ promise.execute
652
+ end
653
+
654
+ #
655
+ # Gets cluster monitoring user credential of a managed cluster.
656
+ #
657
+ # Gets cluster monitoring user credential of the managed cluster with a
658
+ # specified resource group and name.
659
+ #
660
+ # @param resource_group_name [String] The name of the resource group.
661
+ # @param resource_name [String] The name of the managed cluster resource.
662
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
663
+ # will be added to the HTTP request.
664
+ #
665
+ # @return [CredentialResults] operation results.
666
+ #
667
+ def list_cluster_monitoring_user_credentials(resource_group_name, resource_name, custom_headers:nil)
668
+ response = list_cluster_monitoring_user_credentials_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
669
+ response.body unless response.nil?
670
+ end
671
+
672
+ #
673
+ # Gets cluster monitoring user credential of a managed cluster.
674
+ #
675
+ # Gets cluster monitoring user credential of the managed cluster with a
676
+ # specified resource group and name.
677
+ #
678
+ # @param resource_group_name [String] The name of the resource group.
679
+ # @param resource_name [String] The name of the managed cluster resource.
680
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
681
+ # will be added to the HTTP request.
682
+ #
683
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
684
+ #
685
+ def list_cluster_monitoring_user_credentials_with_http_info(resource_group_name, resource_name, custom_headers:nil)
686
+ list_cluster_monitoring_user_credentials_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
687
+ end
688
+
689
+ #
690
+ # Gets cluster monitoring user credential of a managed cluster.
691
+ #
692
+ # Gets cluster monitoring user credential of the managed cluster with a
693
+ # specified resource group and name.
694
+ #
695
+ # @param resource_group_name [String] The name of the resource group.
696
+ # @param resource_name [String] The name of the managed cluster resource.
697
+ # @param [Hash{String => String}] A hash of custom headers that will be added
698
+ # to the HTTP request.
699
+ #
700
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
701
+ #
702
+ def list_cluster_monitoring_user_credentials_async(resource_group_name, resource_name, custom_headers:nil)
703
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
704
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
705
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
706
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
707
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
708
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
709
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
710
+ 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?
711
+
712
+
713
+ request_headers = {}
714
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
715
+
716
+ # Set Headers
717
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
718
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
719
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential'
720
+
721
+ request_url = @base_url || @client.base_url
722
+
723
+ options = {
724
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
725
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
726
+ query_params: {'api-version' => @client.api_version},
727
+ headers: request_headers.merge(custom_headers || {}),
728
+ base_url: request_url
729
+ }
730
+ promise = @client.make_request_async(:post, path_template, options)
731
+
732
+ promise = promise.then do |result|
733
+ http_response = result.response
734
+ status_code = http_response.status
735
+ response_content = http_response.body
736
+ unless status_code == 200
737
+ error_model = JSON.load(response_content)
738
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
739
+ end
740
+
741
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
742
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
743
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
744
+ # Deserialize Response
745
+ if status_code == 200
746
+ begin
747
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
748
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::CredentialResults.mapper()
749
+ result.body = @client.deserialize(result_mapper, parsed_response)
750
+ rescue Exception => e
751
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
752
+ end
753
+ end
754
+
755
+ result
756
+ end
757
+
758
+ promise.execute
759
+ end
760
+
761
+ #
762
+ # Gets a managed cluster.
763
+ #
764
+ # Gets the details of the managed cluster with a specified resource group and
765
+ # name.
766
+ #
767
+ # @param resource_group_name [String] The name of the resource group.
768
+ # @param resource_name [String] The name of the managed cluster resource.
769
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
770
+ # will be added to the HTTP request.
771
+ #
772
+ # @return [ManagedCluster] operation results.
773
+ #
774
+ def get(resource_group_name, resource_name, custom_headers:nil)
775
+ response = get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
776
+ response.body unless response.nil?
777
+ end
778
+
779
+ #
780
+ # Gets a managed cluster.
781
+ #
782
+ # Gets the details of the managed cluster with a specified resource group and
783
+ # name.
784
+ #
785
+ # @param resource_group_name [String] The name of the resource group.
786
+ # @param resource_name [String] The name of the managed cluster resource.
787
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
788
+ # will be added to the HTTP request.
789
+ #
790
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
791
+ #
792
+ def get_with_http_info(resource_group_name, resource_name, custom_headers:nil)
793
+ get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
794
+ end
795
+
796
+ #
797
+ # Gets a managed cluster.
798
+ #
799
+ # Gets the details of the managed cluster with a specified resource group and
800
+ # name.
801
+ #
802
+ # @param resource_group_name [String] The name of the resource group.
803
+ # @param resource_name [String] The name of the managed cluster resource.
804
+ # @param [Hash{String => String}] A hash of custom headers that will be added
805
+ # to the HTTP request.
806
+ #
807
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
808
+ #
809
+ def get_async(resource_group_name, resource_name, custom_headers:nil)
810
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
811
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
812
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
813
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
814
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
815
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
816
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
817
+ 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?
818
+
819
+
820
+ request_headers = {}
821
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
822
+
823
+ # Set Headers
824
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
825
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
826
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}'
827
+
828
+ request_url = @base_url || @client.base_url
829
+
830
+ options = {
831
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
832
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
833
+ query_params: {'api-version' => @client.api_version},
834
+ headers: request_headers.merge(custom_headers || {}),
835
+ base_url: request_url
836
+ }
837
+ promise = @client.make_request_async(:get, path_template, options)
838
+
839
+ promise = promise.then do |result|
840
+ http_response = result.response
841
+ status_code = http_response.status
842
+ response_content = http_response.body
843
+ unless status_code == 200
844
+ error_model = JSON.load(response_content)
845
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
846
+ end
847
+
848
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
849
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
850
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
851
+ # Deserialize Response
852
+ if status_code == 200
853
+ begin
854
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
855
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedCluster.mapper()
856
+ result.body = @client.deserialize(result_mapper, parsed_response)
857
+ rescue Exception => e
858
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
859
+ end
860
+ end
861
+
862
+ result
863
+ end
864
+
865
+ promise.execute
866
+ end
867
+
868
+ #
869
+ # Creates or updates a managed cluster.
870
+ #
871
+ # Creates or updates a managed cluster with the specified configuration for
872
+ # agents and Kubernetes version.
873
+ #
874
+ # @param resource_group_name [String] The name of the resource group.
875
+ # @param resource_name [String] The name of the managed cluster resource.
876
+ # @param parameters [ManagedCluster] Parameters supplied to the Create or
877
+ # Update a Managed Cluster operation.
878
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
879
+ # will be added to the HTTP request.
880
+ #
881
+ # @return [ManagedCluster] operation results.
882
+ #
883
+ def create_or_update(resource_group_name, resource_name, parameters, custom_headers:nil)
884
+ response = create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
885
+ response.body unless response.nil?
886
+ end
887
+
888
+ #
889
+ # @param resource_group_name [String] The name of the resource group.
890
+ # @param resource_name [String] The name of the managed cluster resource.
891
+ # @param parameters [ManagedCluster] Parameters supplied to the Create or
892
+ # Update a Managed Cluster operation.
893
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
894
+ # will be added to the HTTP request.
895
+ #
896
+ # @return [Concurrent::Promise] promise which provides async access to http
897
+ # response.
898
+ #
899
+ def create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:nil)
900
+ # Send request
901
+ promise = begin_create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers)
902
+
903
+ promise = promise.then do |response|
904
+ # Defining deserialization method.
905
+ deserialize_method = lambda do |parsed_response|
906
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedCluster.mapper()
907
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
908
+ end
909
+
910
+ # Waiting for response.
911
+ @client.get_long_running_operation_result(response, deserialize_method)
912
+ end
913
+
914
+ promise
915
+ end
916
+
917
+ #
918
+ # Updates tags on a managed cluster.
919
+ #
920
+ # Updates a managed cluster with the specified tags.
921
+ #
922
+ # @param resource_group_name [String] The name of the resource group.
923
+ # @param resource_name [String] The name of the managed cluster resource.
924
+ # @param parameters [TagsObject] Parameters supplied to the Update Managed
925
+ # Cluster Tags operation.
926
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
927
+ # will be added to the HTTP request.
928
+ #
929
+ # @return [ManagedCluster] operation results.
930
+ #
931
+ def update_tags(resource_group_name, resource_name, parameters, custom_headers:nil)
932
+ response = update_tags_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
933
+ response.body unless response.nil?
934
+ end
935
+
936
+ #
937
+ # @param resource_group_name [String] The name of the resource group.
938
+ # @param resource_name [String] The name of the managed cluster resource.
939
+ # @param parameters [TagsObject] Parameters supplied to the Update Managed
940
+ # Cluster Tags operation.
941
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
942
+ # will be added to the HTTP request.
943
+ #
944
+ # @return [Concurrent::Promise] promise which provides async access to http
945
+ # response.
946
+ #
947
+ def update_tags_async(resource_group_name, resource_name, parameters, custom_headers:nil)
948
+ # Send request
949
+ promise = begin_update_tags_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers)
950
+
951
+ promise = promise.then do |response|
952
+ # Defining deserialization method.
953
+ deserialize_method = lambda do |parsed_response|
954
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedCluster.mapper()
955
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
956
+ end
957
+
958
+ # Waiting for response.
959
+ @client.get_long_running_operation_result(response, deserialize_method)
960
+ end
961
+
962
+ promise
963
+ end
964
+
965
+ #
966
+ # Deletes a managed cluster.
967
+ #
968
+ # Deletes the managed cluster with a specified resource group and name.
969
+ #
970
+ # @param resource_group_name [String] The name of the resource group.
971
+ # @param resource_name [String] The name of the managed cluster resource.
972
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
973
+ # will be added to the HTTP request.
974
+ #
975
+ def delete(resource_group_name, resource_name, custom_headers:nil)
976
+ response = delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
977
+ nil
978
+ end
979
+
980
+ #
981
+ # @param resource_group_name [String] The name of the resource group.
982
+ # @param resource_name [String] The name of the managed cluster resource.
983
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
984
+ # will be added to the HTTP request.
985
+ #
986
+ # @return [Concurrent::Promise] promise which provides async access to http
987
+ # response.
988
+ #
989
+ def delete_async(resource_group_name, resource_name, custom_headers:nil)
990
+ # Send request
991
+ promise = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers)
992
+
993
+ promise = promise.then do |response|
994
+ # Defining deserialization method.
995
+ deserialize_method = lambda do |parsed_response|
996
+ end
997
+
998
+ # Waiting for response.
999
+ @client.get_long_running_operation_result(response, deserialize_method)
1000
+ end
1001
+
1002
+ promise
1003
+ end
1004
+
1005
+ #
1006
+ # Reset Service Principal Profile of a managed cluster.
1007
+ #
1008
+ # Update the service principal Profile for a managed cluster.
1009
+ #
1010
+ # @param resource_group_name [String] The name of the resource group.
1011
+ # @param resource_name [String] The name of the managed cluster resource.
1012
+ # @param parameters [ManagedClusterServicePrincipalProfile] Parameters supplied
1013
+ # to the Reset Service Principal Profile operation for a Managed Cluster.
1014
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1015
+ # will be added to the HTTP request.
1016
+ #
1017
+ def reset_service_principal_profile(resource_group_name, resource_name, parameters, custom_headers:nil)
1018
+ response = reset_service_principal_profile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1019
+ nil
1020
+ end
1021
+
1022
+ #
1023
+ # @param resource_group_name [String] The name of the resource group.
1024
+ # @param resource_name [String] The name of the managed cluster resource.
1025
+ # @param parameters [ManagedClusterServicePrincipalProfile] Parameters supplied
1026
+ # to the Reset Service Principal Profile operation for a Managed Cluster.
1027
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1028
+ # will be added to the HTTP request.
1029
+ #
1030
+ # @return [Concurrent::Promise] promise which provides async access to http
1031
+ # response.
1032
+ #
1033
+ def reset_service_principal_profile_async(resource_group_name, resource_name, parameters, custom_headers:nil)
1034
+ # Send request
1035
+ promise = begin_reset_service_principal_profile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers)
1036
+
1037
+ promise = promise.then do |response|
1038
+ # Defining deserialization method.
1039
+ deserialize_method = lambda do |parsed_response|
1040
+ end
1041
+
1042
+ # Waiting for response.
1043
+ @client.get_long_running_operation_result(response, deserialize_method)
1044
+ end
1045
+
1046
+ promise
1047
+ end
1048
+
1049
+ #
1050
+ # Reset AAD Profile of a managed cluster.
1051
+ #
1052
+ # Update the AAD Profile for a managed cluster.
1053
+ #
1054
+ # @param resource_group_name [String] The name of the resource group.
1055
+ # @param resource_name [String] The name of the managed cluster resource.
1056
+ # @param parameters [ManagedClusterAADProfile] Parameters supplied to the Reset
1057
+ # AAD Profile operation for a Managed Cluster.
1058
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1059
+ # will be added to the HTTP request.
1060
+ #
1061
+ def reset_aadprofile(resource_group_name, resource_name, parameters, custom_headers:nil)
1062
+ response = reset_aadprofile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1063
+ nil
1064
+ end
1065
+
1066
+ #
1067
+ # @param resource_group_name [String] The name of the resource group.
1068
+ # @param resource_name [String] The name of the managed cluster resource.
1069
+ # @param parameters [ManagedClusterAADProfile] Parameters supplied to the Reset
1070
+ # AAD Profile operation for a Managed Cluster.
1071
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1072
+ # will be added to the HTTP request.
1073
+ #
1074
+ # @return [Concurrent::Promise] promise which provides async access to http
1075
+ # response.
1076
+ #
1077
+ def reset_aadprofile_async(resource_group_name, resource_name, parameters, custom_headers:nil)
1078
+ # Send request
1079
+ promise = begin_reset_aadprofile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers)
1080
+
1081
+ promise = promise.then do |response|
1082
+ # Defining deserialization method.
1083
+ deserialize_method = lambda do |parsed_response|
1084
+ end
1085
+
1086
+ # Waiting for response.
1087
+ @client.get_long_running_operation_result(response, deserialize_method)
1088
+ end
1089
+
1090
+ promise
1091
+ end
1092
+
1093
+ #
1094
+ # Rotate certificates of a managed cluster.
1095
+ #
1096
+ # Rotate certificates of a managed cluster.
1097
+ #
1098
+ # @param resource_group_name [String] The name of the resource group.
1099
+ # @param resource_name [String] The name of the managed cluster resource.
1100
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1101
+ # will be added to the HTTP request.
1102
+ #
1103
+ def rotate_cluster_certificates(resource_group_name, resource_name, custom_headers:nil)
1104
+ response = rotate_cluster_certificates_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
1105
+ nil
1106
+ end
1107
+
1108
+ #
1109
+ # @param resource_group_name [String] The name of the resource group.
1110
+ # @param resource_name [String] The name of the managed cluster resource.
1111
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1112
+ # will be added to the HTTP request.
1113
+ #
1114
+ # @return [Concurrent::Promise] promise which provides async access to http
1115
+ # response.
1116
+ #
1117
+ def rotate_cluster_certificates_async(resource_group_name, resource_name, custom_headers:nil)
1118
+ # Send request
1119
+ promise = begin_rotate_cluster_certificates_async(resource_group_name, resource_name, custom_headers:custom_headers)
1120
+
1121
+ promise = promise.then do |response|
1122
+ # Defining deserialization method.
1123
+ deserialize_method = lambda do |parsed_response|
1124
+ end
1125
+
1126
+ # Waiting for response.
1127
+ @client.get_long_running_operation_result(response, deserialize_method)
1128
+ end
1129
+
1130
+ promise
1131
+ end
1132
+
1133
+ #
1134
+ # Creates or updates a managed cluster.
1135
+ #
1136
+ # Creates or updates a managed cluster with the specified configuration for
1137
+ # agents and Kubernetes version.
1138
+ #
1139
+ # @param resource_group_name [String] The name of the resource group.
1140
+ # @param resource_name [String] The name of the managed cluster resource.
1141
+ # @param parameters [ManagedCluster] Parameters supplied to the Create or
1142
+ # Update a Managed Cluster operation.
1143
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1144
+ # will be added to the HTTP request.
1145
+ #
1146
+ # @return [ManagedCluster] operation results.
1147
+ #
1148
+ def begin_create_or_update(resource_group_name, resource_name, parameters, custom_headers:nil)
1149
+ response = begin_create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1150
+ response.body unless response.nil?
1151
+ end
1152
+
1153
+ #
1154
+ # Creates or updates a managed cluster.
1155
+ #
1156
+ # Creates or updates a managed cluster with the specified configuration for
1157
+ # agents and Kubernetes version.
1158
+ #
1159
+ # @param resource_group_name [String] The name of the resource group.
1160
+ # @param resource_name [String] The name of the managed cluster resource.
1161
+ # @param parameters [ManagedCluster] Parameters supplied to the Create or
1162
+ # Update a Managed Cluster operation.
1163
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1164
+ # will be added to the HTTP request.
1165
+ #
1166
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1167
+ #
1168
+ def begin_create_or_update_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil)
1169
+ begin_create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1170
+ end
1171
+
1172
+ #
1173
+ # Creates or updates a managed cluster.
1174
+ #
1175
+ # Creates or updates a managed cluster with the specified configuration for
1176
+ # agents and Kubernetes version.
1177
+ #
1178
+ # @param resource_group_name [String] The name of the resource group.
1179
+ # @param resource_name [String] The name of the managed cluster resource.
1180
+ # @param parameters [ManagedCluster] Parameters supplied to the Create or
1181
+ # Update a Managed Cluster operation.
1182
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1183
+ # to the HTTP request.
1184
+ #
1185
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1186
+ #
1187
+ def begin_create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:nil)
1188
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1189
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1190
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1191
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1192
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1193
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
1194
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
1195
+ 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?
1196
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1197
+
1198
+
1199
+ request_headers = {}
1200
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1201
+
1202
+ # Set Headers
1203
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1204
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1205
+
1206
+ # Serialize Request
1207
+ request_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedCluster.mapper()
1208
+ request_content = @client.serialize(request_mapper, parameters)
1209
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1210
+
1211
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}'
1212
+
1213
+ request_url = @base_url || @client.base_url
1214
+
1215
+ options = {
1216
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1217
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
1218
+ query_params: {'api-version' => @client.api_version},
1219
+ body: request_content,
1220
+ headers: request_headers.merge(custom_headers || {}),
1221
+ base_url: request_url
1222
+ }
1223
+ promise = @client.make_request_async(:put, path_template, options)
1224
+
1225
+ promise = promise.then do |result|
1226
+ http_response = result.response
1227
+ status_code = http_response.status
1228
+ response_content = http_response.body
1229
+ unless status_code == 200 || status_code == 201
1230
+ error_model = JSON.load(response_content)
1231
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1232
+ end
1233
+
1234
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1235
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1236
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1237
+ # Deserialize Response
1238
+ if status_code == 200
1239
+ begin
1240
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1241
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedCluster.mapper()
1242
+ result.body = @client.deserialize(result_mapper, parsed_response)
1243
+ rescue Exception => e
1244
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1245
+ end
1246
+ end
1247
+ # Deserialize Response
1248
+ if status_code == 201
1249
+ begin
1250
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1251
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedCluster.mapper()
1252
+ result.body = @client.deserialize(result_mapper, parsed_response)
1253
+ rescue Exception => e
1254
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1255
+ end
1256
+ end
1257
+
1258
+ result
1259
+ end
1260
+
1261
+ promise.execute
1262
+ end
1263
+
1264
+ #
1265
+ # Updates tags on a managed cluster.
1266
+ #
1267
+ # Updates a managed cluster with the specified tags.
1268
+ #
1269
+ # @param resource_group_name [String] The name of the resource group.
1270
+ # @param resource_name [String] The name of the managed cluster resource.
1271
+ # @param parameters [TagsObject] Parameters supplied to the Update Managed
1272
+ # Cluster Tags operation.
1273
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1274
+ # will be added to the HTTP request.
1275
+ #
1276
+ # @return [ManagedCluster] operation results.
1277
+ #
1278
+ def begin_update_tags(resource_group_name, resource_name, parameters, custom_headers:nil)
1279
+ response = begin_update_tags_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1280
+ response.body unless response.nil?
1281
+ end
1282
+
1283
+ #
1284
+ # Updates tags on a managed cluster.
1285
+ #
1286
+ # Updates a managed cluster with the specified tags.
1287
+ #
1288
+ # @param resource_group_name [String] The name of the resource group.
1289
+ # @param resource_name [String] The name of the managed cluster resource.
1290
+ # @param parameters [TagsObject] Parameters supplied to the Update Managed
1291
+ # Cluster Tags operation.
1292
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1293
+ # will be added to the HTTP request.
1294
+ #
1295
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1296
+ #
1297
+ def begin_update_tags_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil)
1298
+ begin_update_tags_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1299
+ end
1300
+
1301
+ #
1302
+ # Updates tags on a managed cluster.
1303
+ #
1304
+ # Updates a managed cluster with the specified tags.
1305
+ #
1306
+ # @param resource_group_name [String] The name of the resource group.
1307
+ # @param resource_name [String] The name of the managed cluster resource.
1308
+ # @param parameters [TagsObject] Parameters supplied to the Update Managed
1309
+ # Cluster Tags operation.
1310
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1311
+ # to the HTTP request.
1312
+ #
1313
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1314
+ #
1315
+ def begin_update_tags_async(resource_group_name, resource_name, parameters, custom_headers:nil)
1316
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1317
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1318
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1319
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1320
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1321
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
1322
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
1323
+ 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?
1324
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1325
+
1326
+
1327
+ request_headers = {}
1328
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1329
+
1330
+ # Set Headers
1331
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1332
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1333
+
1334
+ # Serialize Request
1335
+ request_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::TagsObject.mapper()
1336
+ request_content = @client.serialize(request_mapper, parameters)
1337
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1338
+
1339
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}'
1340
+
1341
+ request_url = @base_url || @client.base_url
1342
+
1343
+ options = {
1344
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1345
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
1346
+ query_params: {'api-version' => @client.api_version},
1347
+ body: request_content,
1348
+ headers: request_headers.merge(custom_headers || {}),
1349
+ base_url: request_url
1350
+ }
1351
+ promise = @client.make_request_async(:patch, path_template, options)
1352
+
1353
+ promise = promise.then do |result|
1354
+ http_response = result.response
1355
+ status_code = http_response.status
1356
+ response_content = http_response.body
1357
+ unless status_code == 200
1358
+ error_model = JSON.load(response_content)
1359
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1360
+ end
1361
+
1362
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1363
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1364
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1365
+ # Deserialize Response
1366
+ if status_code == 200
1367
+ begin
1368
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1369
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedCluster.mapper()
1370
+ result.body = @client.deserialize(result_mapper, parsed_response)
1371
+ rescue Exception => e
1372
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1373
+ end
1374
+ end
1375
+
1376
+ result
1377
+ end
1378
+
1379
+ promise.execute
1380
+ end
1381
+
1382
+ #
1383
+ # Deletes a managed cluster.
1384
+ #
1385
+ # Deletes the managed cluster with a specified resource group and name.
1386
+ #
1387
+ # @param resource_group_name [String] The name of the resource group.
1388
+ # @param resource_name [String] The name of the managed cluster resource.
1389
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1390
+ # will be added to the HTTP request.
1391
+ #
1392
+ #
1393
+ def begin_delete(resource_group_name, resource_name, custom_headers:nil)
1394
+ response = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
1395
+ nil
1396
+ end
1397
+
1398
+ #
1399
+ # Deletes a managed cluster.
1400
+ #
1401
+ # Deletes the managed cluster with a specified resource group and name.
1402
+ #
1403
+ # @param resource_group_name [String] The name of the resource group.
1404
+ # @param resource_name [String] The name of the managed cluster resource.
1405
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1406
+ # will be added to the HTTP request.
1407
+ #
1408
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1409
+ #
1410
+ def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers:nil)
1411
+ begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
1412
+ end
1413
+
1414
+ #
1415
+ # Deletes a managed cluster.
1416
+ #
1417
+ # Deletes the managed cluster with a specified resource group and name.
1418
+ #
1419
+ # @param resource_group_name [String] The name of the resource group.
1420
+ # @param resource_name [String] The name of the managed cluster resource.
1421
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1422
+ # to the HTTP request.
1423
+ #
1424
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1425
+ #
1426
+ def begin_delete_async(resource_group_name, resource_name, custom_headers:nil)
1427
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1428
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1429
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1430
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1431
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1432
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
1433
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
1434
+ 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?
1435
+
1436
+
1437
+ request_headers = {}
1438
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1439
+
1440
+ # Set Headers
1441
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1442
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1443
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}'
1444
+
1445
+ request_url = @base_url || @client.base_url
1446
+
1447
+ options = {
1448
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1449
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
1450
+ query_params: {'api-version' => @client.api_version},
1451
+ headers: request_headers.merge(custom_headers || {}),
1452
+ base_url: request_url
1453
+ }
1454
+ promise = @client.make_request_async(:delete, path_template, options)
1455
+
1456
+ promise = promise.then do |result|
1457
+ http_response = result.response
1458
+ status_code = http_response.status
1459
+ response_content = http_response.body
1460
+ unless status_code == 202 || status_code == 204
1461
+ error_model = JSON.load(response_content)
1462
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1463
+ end
1464
+
1465
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1466
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1467
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1468
+
1469
+ result
1470
+ end
1471
+
1472
+ promise.execute
1473
+ end
1474
+
1475
+ #
1476
+ # Reset Service Principal Profile of a managed cluster.
1477
+ #
1478
+ # Update the service principal Profile for a managed cluster.
1479
+ #
1480
+ # @param resource_group_name [String] The name of the resource group.
1481
+ # @param resource_name [String] The name of the managed cluster resource.
1482
+ # @param parameters [ManagedClusterServicePrincipalProfile] Parameters supplied
1483
+ # to the Reset Service Principal Profile operation for a Managed Cluster.
1484
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1485
+ # will be added to the HTTP request.
1486
+ #
1487
+ #
1488
+ def begin_reset_service_principal_profile(resource_group_name, resource_name, parameters, custom_headers:nil)
1489
+ response = begin_reset_service_principal_profile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1490
+ nil
1491
+ end
1492
+
1493
+ #
1494
+ # Reset Service Principal Profile of a managed cluster.
1495
+ #
1496
+ # Update the service principal Profile for a managed cluster.
1497
+ #
1498
+ # @param resource_group_name [String] The name of the resource group.
1499
+ # @param resource_name [String] The name of the managed cluster resource.
1500
+ # @param parameters [ManagedClusterServicePrincipalProfile] Parameters supplied
1501
+ # to the Reset Service Principal Profile operation for a Managed Cluster.
1502
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1503
+ # will be added to the HTTP request.
1504
+ #
1505
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1506
+ #
1507
+ def begin_reset_service_principal_profile_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil)
1508
+ begin_reset_service_principal_profile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1509
+ end
1510
+
1511
+ #
1512
+ # Reset Service Principal Profile of a managed cluster.
1513
+ #
1514
+ # Update the service principal Profile for a managed cluster.
1515
+ #
1516
+ # @param resource_group_name [String] The name of the resource group.
1517
+ # @param resource_name [String] The name of the managed cluster resource.
1518
+ # @param parameters [ManagedClusterServicePrincipalProfile] Parameters supplied
1519
+ # to the Reset Service Principal Profile operation for a Managed Cluster.
1520
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1521
+ # to the HTTP request.
1522
+ #
1523
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1524
+ #
1525
+ def begin_reset_service_principal_profile_async(resource_group_name, resource_name, parameters, custom_headers:nil)
1526
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1527
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1528
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1529
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1530
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1531
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
1532
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
1533
+ 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?
1534
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1535
+
1536
+
1537
+ request_headers = {}
1538
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1539
+
1540
+ # Set Headers
1541
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1542
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1543
+
1544
+ # Serialize Request
1545
+ request_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedClusterServicePrincipalProfile.mapper()
1546
+ request_content = @client.serialize(request_mapper, parameters)
1547
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1548
+
1549
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile'
1550
+
1551
+ request_url = @base_url || @client.base_url
1552
+
1553
+ options = {
1554
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1555
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
1556
+ query_params: {'api-version' => @client.api_version},
1557
+ body: request_content,
1558
+ headers: request_headers.merge(custom_headers || {}),
1559
+ base_url: request_url
1560
+ }
1561
+ promise = @client.make_request_async(:post, path_template, options)
1562
+
1563
+ promise = promise.then do |result|
1564
+ http_response = result.response
1565
+ status_code = http_response.status
1566
+ response_content = http_response.body
1567
+ unless status_code == 200 || status_code == 202
1568
+ error_model = JSON.load(response_content)
1569
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1570
+ end
1571
+
1572
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1573
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1574
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1575
+
1576
+ result
1577
+ end
1578
+
1579
+ promise.execute
1580
+ end
1581
+
1582
+ #
1583
+ # Reset AAD Profile of a managed cluster.
1584
+ #
1585
+ # Update the AAD Profile for a managed cluster.
1586
+ #
1587
+ # @param resource_group_name [String] The name of the resource group.
1588
+ # @param resource_name [String] The name of the managed cluster resource.
1589
+ # @param parameters [ManagedClusterAADProfile] Parameters supplied to the Reset
1590
+ # AAD Profile operation for a Managed Cluster.
1591
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1592
+ # will be added to the HTTP request.
1593
+ #
1594
+ #
1595
+ def begin_reset_aadprofile(resource_group_name, resource_name, parameters, custom_headers:nil)
1596
+ response = begin_reset_aadprofile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1597
+ nil
1598
+ end
1599
+
1600
+ #
1601
+ # Reset AAD Profile of a managed cluster.
1602
+ #
1603
+ # Update the AAD Profile for a managed cluster.
1604
+ #
1605
+ # @param resource_group_name [String] The name of the resource group.
1606
+ # @param resource_name [String] The name of the managed cluster resource.
1607
+ # @param parameters [ManagedClusterAADProfile] Parameters supplied to the Reset
1608
+ # AAD Profile operation for a Managed Cluster.
1609
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1610
+ # will be added to the HTTP request.
1611
+ #
1612
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1613
+ #
1614
+ def begin_reset_aadprofile_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil)
1615
+ begin_reset_aadprofile_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
1616
+ end
1617
+
1618
+ #
1619
+ # Reset AAD Profile of a managed cluster.
1620
+ #
1621
+ # Update the AAD Profile for a managed cluster.
1622
+ #
1623
+ # @param resource_group_name [String] The name of the resource group.
1624
+ # @param resource_name [String] The name of the managed cluster resource.
1625
+ # @param parameters [ManagedClusterAADProfile] Parameters supplied to the Reset
1626
+ # AAD Profile operation for a Managed Cluster.
1627
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1628
+ # to the HTTP request.
1629
+ #
1630
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1631
+ #
1632
+ def begin_reset_aadprofile_async(resource_group_name, resource_name, parameters, custom_headers:nil)
1633
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1634
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1635
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1636
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1637
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1638
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
1639
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
1640
+ 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?
1641
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1642
+
1643
+
1644
+ request_headers = {}
1645
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1646
+
1647
+ # Set Headers
1648
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1649
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1650
+
1651
+ # Serialize Request
1652
+ request_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedClusterAADProfile.mapper()
1653
+ request_content = @client.serialize(request_mapper, parameters)
1654
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1655
+
1656
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile'
1657
+
1658
+ request_url = @base_url || @client.base_url
1659
+
1660
+ options = {
1661
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1662
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
1663
+ query_params: {'api-version' => @client.api_version},
1664
+ body: request_content,
1665
+ headers: request_headers.merge(custom_headers || {}),
1666
+ base_url: request_url
1667
+ }
1668
+ promise = @client.make_request_async(:post, path_template, options)
1669
+
1670
+ promise = promise.then do |result|
1671
+ http_response = result.response
1672
+ status_code = http_response.status
1673
+ response_content = http_response.body
1674
+ unless status_code == 200 || status_code == 202
1675
+ error_model = JSON.load(response_content)
1676
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1677
+ end
1678
+
1679
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1680
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1681
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1682
+
1683
+ result
1684
+ end
1685
+
1686
+ promise.execute
1687
+ end
1688
+
1689
+ #
1690
+ # Rotate certificates of a managed cluster.
1691
+ #
1692
+ # Rotate certificates of a managed cluster.
1693
+ #
1694
+ # @param resource_group_name [String] The name of the resource group.
1695
+ # @param resource_name [String] The name of the managed cluster resource.
1696
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1697
+ # will be added to the HTTP request.
1698
+ #
1699
+ #
1700
+ def begin_rotate_cluster_certificates(resource_group_name, resource_name, custom_headers:nil)
1701
+ response = begin_rotate_cluster_certificates_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
1702
+ nil
1703
+ end
1704
+
1705
+ #
1706
+ # Rotate certificates of a managed cluster.
1707
+ #
1708
+ # Rotate certificates of a managed cluster.
1709
+ #
1710
+ # @param resource_group_name [String] The name of the resource group.
1711
+ # @param resource_name [String] The name of the managed cluster resource.
1712
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1713
+ # will be added to the HTTP request.
1714
+ #
1715
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1716
+ #
1717
+ def begin_rotate_cluster_certificates_with_http_info(resource_group_name, resource_name, custom_headers:nil)
1718
+ begin_rotate_cluster_certificates_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
1719
+ end
1720
+
1721
+ #
1722
+ # Rotate certificates of a managed cluster.
1723
+ #
1724
+ # Rotate certificates of a managed cluster.
1725
+ #
1726
+ # @param resource_group_name [String] The name of the resource group.
1727
+ # @param resource_name [String] The name of the managed cluster resource.
1728
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1729
+ # to the HTTP request.
1730
+ #
1731
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1732
+ #
1733
+ def begin_rotate_cluster_certificates_async(resource_group_name, resource_name, custom_headers:nil)
1734
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1735
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1736
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1737
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
1738
+ fail ArgumentError, 'resource_name is nil' if resource_name.nil?
1739
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MaxLength': '63'" if !resource_name.nil? && resource_name.length > 63
1740
+ fail ArgumentError, "'resource_name' should satisfy the constraint - 'MinLength': '1'" if !resource_name.nil? && resource_name.length < 1
1741
+ 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?
1742
+
1743
+
1744
+ request_headers = {}
1745
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1746
+
1747
+ # Set Headers
1748
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1749
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1750
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates'
1751
+
1752
+ request_url = @base_url || @client.base_url
1753
+
1754
+ options = {
1755
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1756
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
1757
+ query_params: {'api-version' => @client.api_version},
1758
+ headers: request_headers.merge(custom_headers || {}),
1759
+ base_url: request_url
1760
+ }
1761
+ promise = @client.make_request_async(:post, path_template, options)
1762
+
1763
+ promise = promise.then do |result|
1764
+ http_response = result.response
1765
+ status_code = http_response.status
1766
+ response_content = http_response.body
1767
+ unless status_code == 202 || status_code == 204
1768
+ error_model = JSON.load(response_content)
1769
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1770
+ end
1771
+
1772
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1773
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1774
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1775
+
1776
+ result
1777
+ end
1778
+
1779
+ promise.execute
1780
+ end
1781
+
1782
+ #
1783
+ # Gets a list of managed clusters in the specified subscription.
1784
+ #
1785
+ # Gets a list of managed clusters in the specified subscription. The operation
1786
+ # returns properties of each managed cluster.
1787
+ #
1788
+ # @param next_page_link [String] The NextLink from the previous successful call
1789
+ # to List operation.
1790
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1791
+ # will be added to the HTTP request.
1792
+ #
1793
+ # @return [ManagedClusterListResult] operation results.
1794
+ #
1795
+ def list_next(next_page_link, custom_headers:nil)
1796
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1797
+ response.body unless response.nil?
1798
+ end
1799
+
1800
+ #
1801
+ # Gets a list of managed clusters in the specified subscription.
1802
+ #
1803
+ # Gets a list of managed clusters in the specified subscription. The operation
1804
+ # returns properties of each managed cluster.
1805
+ #
1806
+ # @param next_page_link [String] The NextLink from the previous successful call
1807
+ # to List operation.
1808
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1809
+ # will be added to the HTTP request.
1810
+ #
1811
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1812
+ #
1813
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1814
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1815
+ end
1816
+
1817
+ #
1818
+ # Gets a list of managed clusters in the specified subscription.
1819
+ #
1820
+ # Gets a list of managed clusters in the specified subscription. The operation
1821
+ # returns properties of each managed cluster.
1822
+ #
1823
+ # @param next_page_link [String] The NextLink from the previous successful call
1824
+ # to List operation.
1825
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1826
+ # to the HTTP request.
1827
+ #
1828
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1829
+ #
1830
+ def list_next_async(next_page_link, custom_headers:nil)
1831
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1832
+
1833
+
1834
+ request_headers = {}
1835
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1836
+
1837
+ # Set Headers
1838
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1839
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1840
+ path_template = '{nextLink}'
1841
+
1842
+ request_url = @base_url || @client.base_url
1843
+
1844
+ options = {
1845
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1846
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1847
+ headers: request_headers.merge(custom_headers || {}),
1848
+ base_url: request_url
1849
+ }
1850
+ promise = @client.make_request_async(:get, path_template, options)
1851
+
1852
+ promise = promise.then do |result|
1853
+ http_response = result.response
1854
+ status_code = http_response.status
1855
+ response_content = http_response.body
1856
+ unless status_code == 200
1857
+ error_model = JSON.load(response_content)
1858
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1859
+ end
1860
+
1861
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1862
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1863
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1864
+ # Deserialize Response
1865
+ if status_code == 200
1866
+ begin
1867
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1868
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedClusterListResult.mapper()
1869
+ result.body = @client.deserialize(result_mapper, parsed_response)
1870
+ rescue Exception => e
1871
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1872
+ end
1873
+ end
1874
+
1875
+ result
1876
+ end
1877
+
1878
+ promise.execute
1879
+ end
1880
+
1881
+ #
1882
+ # Lists managed clusters in the specified subscription and resource group.
1883
+ #
1884
+ # Lists managed clusters in the specified subscription and resource group. The
1885
+ # operation returns properties of each managed cluster.
1886
+ #
1887
+ # @param next_page_link [String] The NextLink from the previous successful call
1888
+ # to List operation.
1889
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1890
+ # will be added to the HTTP request.
1891
+ #
1892
+ # @return [ManagedClusterListResult] operation results.
1893
+ #
1894
+ def list_by_resource_group_next(next_page_link, custom_headers:nil)
1895
+ response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1896
+ response.body unless response.nil?
1897
+ end
1898
+
1899
+ #
1900
+ # Lists managed clusters in the specified subscription and resource group.
1901
+ #
1902
+ # Lists managed clusters in the specified subscription and resource group. The
1903
+ # operation returns properties of each managed cluster.
1904
+ #
1905
+ # @param next_page_link [String] The NextLink from the previous successful call
1906
+ # to List operation.
1907
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1908
+ # will be added to the HTTP request.
1909
+ #
1910
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1911
+ #
1912
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
1913
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
1914
+ end
1915
+
1916
+ #
1917
+ # Lists managed clusters in the specified subscription and resource group.
1918
+ #
1919
+ # Lists managed clusters in the specified subscription and resource group. The
1920
+ # operation returns properties of each managed cluster.
1921
+ #
1922
+ # @param next_page_link [String] The NextLink from the previous successful call
1923
+ # to List operation.
1924
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1925
+ # to the HTTP request.
1926
+ #
1927
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1928
+ #
1929
+ def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
1930
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1931
+
1932
+
1933
+ request_headers = {}
1934
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1935
+
1936
+ # Set Headers
1937
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1938
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1939
+ path_template = '{nextLink}'
1940
+
1941
+ request_url = @base_url || @client.base_url
1942
+
1943
+ options = {
1944
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1945
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1946
+ headers: request_headers.merge(custom_headers || {}),
1947
+ base_url: request_url
1948
+ }
1949
+ promise = @client.make_request_async(:get, path_template, options)
1950
+
1951
+ promise = promise.then do |result|
1952
+ http_response = result.response
1953
+ status_code = http_response.status
1954
+ response_content = http_response.body
1955
+ unless status_code == 200
1956
+ error_model = JSON.load(response_content)
1957
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1958
+ end
1959
+
1960
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1961
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1962
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1963
+ # Deserialize Response
1964
+ if status_code == 200
1965
+ begin
1966
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1967
+ result_mapper = Azure::ContainerService::Mgmt::V2020_02_01::Models::ManagedClusterListResult.mapper()
1968
+ result.body = @client.deserialize(result_mapper, parsed_response)
1969
+ rescue Exception => e
1970
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1971
+ end
1972
+ end
1973
+
1974
+ result
1975
+ end
1976
+
1977
+ promise.execute
1978
+ end
1979
+
1980
+ #
1981
+ # Gets a list of managed clusters in the specified subscription.
1982
+ #
1983
+ # Gets a list of managed clusters in the specified subscription. The operation
1984
+ # returns properties of each managed cluster.
1985
+ #
1986
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1987
+ # will be added to the HTTP request.
1988
+ #
1989
+ # @return [ManagedClusterListResult] which provide lazy access to pages of the
1990
+ # response.
1991
+ #
1992
+ def list_as_lazy(custom_headers:nil)
1993
+ response = list_async(custom_headers:custom_headers).value!
1994
+ unless response.nil?
1995
+ page = response.body
1996
+ page.next_method = Proc.new do |next_page_link|
1997
+ list_next_async(next_page_link, custom_headers:custom_headers)
1998
+ end
1999
+ page
2000
+ end
2001
+ end
2002
+
2003
+ #
2004
+ # Lists managed clusters in the specified subscription and resource group.
2005
+ #
2006
+ # Lists managed clusters in the specified subscription and resource group. The
2007
+ # operation returns properties of each managed cluster.
2008
+ #
2009
+ # @param resource_group_name [String] The name of the resource group.
2010
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2011
+ # will be added to the HTTP request.
2012
+ #
2013
+ # @return [ManagedClusterListResult] which provide lazy access to pages of the
2014
+ # response.
2015
+ #
2016
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
2017
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
2018
+ unless response.nil?
2019
+ page = response.body
2020
+ page.next_method = Proc.new do |next_page_link|
2021
+ list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
2022
+ end
2023
+ page
2024
+ end
2025
+ end
2026
+
2027
+ end
2028
+ end