azure_mgmt_container_service 0.18.4 → 0.20.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (285) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-03-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  3. data/lib/2016-03-30/generated/azure_mgmt_container_service/container_services.rb +10 -0
  4. data/lib/2016-09-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  5. data/lib/2016-09-30/generated/azure_mgmt_container_service/container_services.rb +14 -0
  6. data/lib/2017-01-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  7. data/lib/2017-01-31/generated/azure_mgmt_container_service/container_services.rb +14 -0
  8. data/lib/2017-07-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  9. data/lib/2017-07-01/generated/azure_mgmt_container_service/container_services.rb +14 -0
  10. data/lib/2017-08-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  11. data/lib/2017-08-31/generated/azure_mgmt_container_service/managed_clusters.rb +20 -0
  12. data/lib/2017-09-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  13. data/lib/2017-09-30/generated/azure_mgmt_container_service/container_services.rb +2 -0
  14. data/lib/2018-03-31/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  15. data/lib/2018-03-31/generated/azure_mgmt_container_service/managed_clusters.rb +28 -0
  16. data/lib/2018-03-31/generated/azure_mgmt_container_service/operations.rb +2 -0
  17. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  18. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/managed_clusters.rb +28 -0
  19. data/lib/2018-08-01-preview/generated/azure_mgmt_container_service/operations.rb +2 -0
  20. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  21. data/lib/2018-09-30-preview/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb +16 -0
  22. data/lib/2019-02-01/generated/azure_mgmt_container_service/agent_pools.rb +10 -0
  23. data/lib/2019-02-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  24. data/lib/2019-02-01/generated/azure_mgmt_container_service/managed_clusters.rb +28 -0
  25. data/lib/2019-02-01/generated/azure_mgmt_container_service/operations.rb +2 -0
  26. data/lib/2019-04-01/generated/azure_mgmt_container_service/agent_pools.rb +81 -76
  27. data/lib/2019-04-01/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  28. data/lib/2019-04-01/generated/azure_mgmt_container_service/container_services.rb +2 -0
  29. data/lib/2019-04-01/generated/azure_mgmt_container_service/managed_clusters.rb +58 -0
  30. data/lib/2019-04-01/generated/azure_mgmt_container_service/operations.rb +2 -0
  31. data/lib/2019-04-30/generated/azure_mgmt_container_service/container_service_client.rb +1 -1
  32. data/lib/2019-04-30/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb +16 -0
  33. data/lib/2019-06-01/generated/azure_mgmt_container_service.rb +77 -0
  34. data/lib/2019-06-01/generated/azure_mgmt_container_service/agent_pools.rb +904 -0
  35. data/lib/2019-06-01/generated/azure_mgmt_container_service/container_service_client.rb +145 -0
  36. data/lib/2019-06-01/generated/azure_mgmt_container_service/container_services.rb +133 -0
  37. data/lib/2019-06-01/generated/azure_mgmt_container_service/managed_clusters.rb +1788 -0
  38. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool.rb +344 -0
  39. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  40. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  41. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  42. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  43. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +117 -0
  44. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  45. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  46. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  47. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  48. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +140 -0
  49. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  50. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  51. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  52. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  53. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  54. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  55. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  56. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  57. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +325 -0
  58. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  59. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  60. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +66 -0
  61. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +211 -0
  62. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +317 -0
  63. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +78 -0
  64. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  65. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  66. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  67. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  68. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  69. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  70. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  71. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  72. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  73. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  74. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +68 -0
  75. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +100 -0
  76. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +92 -0
  77. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  78. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  79. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +16 -0
  80. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  81. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +16 -0
  82. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  83. data/lib/2019-06-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  84. data/lib/2019-06-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  85. data/lib/2019-06-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  86. data/lib/2019-08-01/generated/azure_mgmt_container_service.rb +83 -0
  87. data/lib/2019-08-01/generated/azure_mgmt_container_service/agent_pools.rb +904 -0
  88. data/lib/2019-08-01/generated/azure_mgmt_container_service/container_service_client.rb +145 -0
  89. data/lib/2019-08-01/generated/azure_mgmt_container_service/container_services.rb +133 -0
  90. data/lib/2019-08-01/generated/azure_mgmt_container_service/managed_clusters.rb +1788 -0
  91. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool.rb +344 -0
  92. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  93. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  94. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  95. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  96. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +117 -0
  97. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  98. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  99. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  100. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  101. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +153 -0
  102. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  103. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  104. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  105. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  106. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  107. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  108. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  109. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  110. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +318 -0
  111. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  112. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  113. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +66 -0
  114. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +211 -0
  115. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +317 -0
  116. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
  117. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +78 -0
  118. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  119. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +95 -0
  120. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
  121. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
  122. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
  123. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  124. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  125. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  126. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  127. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  128. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  129. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  130. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  131. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  132. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +68 -0
  133. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +100 -0
  134. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +92 -0
  135. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  136. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  137. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +16 -0
  138. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
  139. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  140. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +16 -0
  141. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  142. data/lib/2019-08-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  143. data/lib/2019-08-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  144. data/lib/2019-08-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  145. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service.rb +45 -0
  146. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/container_service_client.rb +133 -0
  147. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/network_profile.rb +70 -0
  148. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_agent_pool_profile_role.rb +16 -0
  149. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_container_service_vmsize.rb +47 -0
  150. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster.rb +255 -0
  151. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_aadidentity_provider.rb +95 -0
  152. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_agent_pool_profile.rb +119 -0
  153. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_auth_profile.rb +56 -0
  154. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_base_identity_provider.rb +47 -0
  155. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_identity_provider.rb +62 -0
  156. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_list_result.rb +101 -0
  157. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_master_pool_profile.rb +107 -0
  158. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_monitor_profile.rb +59 -0
  159. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_router_profile.rb +70 -0
  160. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  161. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/purchase_plan.rb +82 -0
  162. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  163. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  164. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  165. data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb +1068 -0
  166. data/lib/2019-10-01/generated/azure_mgmt_container_service.rb +79 -0
  167. data/lib/2019-10-01/generated/azure_mgmt_container_service/agent_pools.rb +900 -0
  168. data/lib/2019-10-01/generated/azure_mgmt_container_service/container_service_client.rb +141 -0
  169. data/lib/2019-10-01/generated/azure_mgmt_container_service/managed_clusters.rb +1921 -0
  170. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool.rb +344 -0
  171. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  172. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  173. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  174. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  175. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +117 -0
  176. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  177. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  178. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  179. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  180. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +153 -0
  181. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  182. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  183. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  184. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  185. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  186. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  187. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  188. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  189. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +330 -0
  190. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  191. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  192. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +66 -0
  193. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +211 -0
  194. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +317 -0
  195. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
  196. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +78 -0
  197. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  198. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +95 -0
  199. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
  200. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
  201. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
  202. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  203. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  204. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  205. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  206. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  207. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  208. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  209. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  210. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  211. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  212. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  213. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +16 -0
  214. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
  215. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  216. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +16 -0
  217. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  218. data/lib/2019-10-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  219. data/lib/2019-10-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  220. data/lib/2019-10-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  221. data/lib/2020-02-01/generated/azure_mgmt_container_service.rb +85 -0
  222. data/lib/2020-02-01/generated/azure_mgmt_container_service/agent_pools.rb +900 -0
  223. data/lib/2020-02-01/generated/azure_mgmt_container_service/container_service_client.rb +141 -0
  224. data/lib/2020-02-01/generated/azure_mgmt_container_service/managed_clusters.rb +2028 -0
  225. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool.rb +398 -0
  226. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
  227. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
  228. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
  229. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
  230. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +117 -0
  231. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
  232. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  233. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  234. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  235. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +179 -0
  236. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  237. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  238. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  239. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  240. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  241. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
  242. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
  243. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
  244. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +376 -0
  245. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  246. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  247. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +80 -0
  248. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile_identity.rb +59 -0
  249. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +251 -0
  250. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +371 -0
  251. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
  252. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +78 -0
  253. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  254. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +132 -0
  255. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
  256. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
  257. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
  258. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
  259. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
  260. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_auto_scaler_profile.rb +124 -0
  261. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_identity_profile_value.rb +61 -0
  262. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
  263. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  264. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
  265. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/network_mode.rb +16 -0
  266. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  267. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
  268. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  269. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  270. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  271. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/outbound_type.rb +16 -0
  272. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
  273. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +16 -0
  274. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
  275. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
  276. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +17 -0
  277. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
  278. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  279. data/lib/2020-02-01/generated/azure_mgmt_container_service/models/user_assigned_identity.rb +69 -0
  280. data/lib/2020-02-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  281. data/lib/2020-02-01/generated/azure_mgmt_container_service/operations.rb +109 -0
  282. data/lib/azure_mgmt_container_service.rb +12 -7
  283. data/lib/profiles/latest/modules/containerservice_profile_module.rb +235 -147
  284. data/lib/version.rb +1 -1
  285. metadata +254 -5
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_08_01
7
+ module Models
8
+ #
9
+ # Defines values for ScaleSetEvictionPolicy
10
+ #
11
+ module ScaleSetEvictionPolicy
12
+ Delete = "Delete"
13
+ Deallocate = "Deallocate"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_08_01
7
+ module Models
8
+ #
9
+ # Defines values for ScaleSetPriority
10
+ #
11
+ module ScaleSetPriority
12
+ Low = "Low"
13
+ Regular = "Regular"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,72 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_08_01
7
+ module Models
8
+ #
9
+ # Reference to another subresource.
10
+ #
11
+ class SubResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource ID.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The name of the resource that is unique within a
19
+ # resource group. This name can be used to access the resource.
20
+ attr_accessor :name
21
+
22
+ # @return [String] Resource type
23
+ attr_accessor :type
24
+
25
+
26
+ #
27
+ # Mapper for SubResource class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'SubResource',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'SubResource',
38
+ model_properties: {
39
+ id: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'id',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ name: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'name',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ type: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'type',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_08_01
7
+ module Models
8
+ #
9
+ # Tags object for patch operations.
10
+ #
11
+ class TagsObject
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] Resource tags.
16
+ attr_accessor :tags
17
+
18
+
19
+ #
20
+ # Mapper for TagsObject class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'TagsObject',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'TagsObject',
31
+ model_properties: {
32
+ tags: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'tags',
36
+ type: {
37
+ name: 'Dictionary',
38
+ value: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'StringElementType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure end
7
+ module Azure::ContainerService end
8
+ module Azure::ContainerService::Mgmt end
9
+ module Azure::ContainerService::Mgmt::V2019_08_01 end
@@ -0,0 +1,109 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_08_01
7
+ #
8
+ # The Container Service Client.
9
+ #
10
+ class Operations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Operations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [ContainerServiceClient] reference to the ContainerServiceClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets a list of compute operations.
26
+ #
27
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
28
+ # will be added to the HTTP request.
29
+ #
30
+ # @return [OperationListResult] operation results.
31
+ #
32
+ def list(custom_headers:nil)
33
+ response = list_async(custom_headers:custom_headers).value!
34
+ response.body unless response.nil?
35
+ end
36
+
37
+ #
38
+ # Gets a list of compute operations.
39
+ #
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
44
+ #
45
+ def list_with_http_info(custom_headers:nil)
46
+ list_async(custom_headers:custom_headers).value!
47
+ end
48
+
49
+ #
50
+ # Gets a list of compute operations.
51
+ #
52
+ # @param [Hash{String => String}] A hash of custom headers that will be added
53
+ # to the HTTP request.
54
+ #
55
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
56
+ #
57
+ def list_async(custom_headers:nil)
58
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
59
+
60
+
61
+ request_headers = {}
62
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
63
+
64
+ # Set Headers
65
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
66
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
67
+ path_template = 'providers/Microsoft.ContainerService/operations'
68
+
69
+ request_url = @base_url || @client.base_url
70
+
71
+ options = {
72
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
73
+ query_params: {'api-version' => @client.api_version},
74
+ headers: request_headers.merge(custom_headers || {}),
75
+ base_url: request_url
76
+ }
77
+ promise = @client.make_request_async(:get, path_template, options)
78
+
79
+ promise = promise.then do |result|
80
+ http_response = result.response
81
+ status_code = http_response.status
82
+ response_content = http_response.body
83
+ unless status_code == 200
84
+ error_model = JSON.load(response_content)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
+ end
87
+
88
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
89
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
90
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = Azure::ContainerService::Mgmt::V2019_08_01::Models::OperationListResult.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ end
109
+ end
@@ -0,0 +1,45 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2019-09-30-preview/generated/azure_mgmt_container_service/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ContainerService::Mgmt::V2019_09_30_preview
23
+ autoload :OpenShiftManagedClusters, '2019-09-30-preview/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb'
24
+ autoload :ContainerServiceClient, '2019-09-30-preview/generated/azure_mgmt_container_service/container_service_client.rb'
25
+
26
+ module Models
27
+ autoload :OpenShiftManagedClusterAgentPoolProfile, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_agent_pool_profile.rb'
28
+ autoload :OpenShiftManagedClusterBaseIdentityProvider, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_base_identity_provider.rb'
29
+ autoload :OpenShiftManagedClusterIdentityProvider, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_identity_provider.rb'
30
+ autoload :PurchasePlan, '2019-09-30-preview/generated/azure_mgmt_container_service/models/purchase_plan.rb'
31
+ autoload :OpenShiftManagedClusterAuthProfile, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_auth_profile.rb'
32
+ autoload :NetworkProfile, '2019-09-30-preview/generated/azure_mgmt_container_service/models/network_profile.rb'
33
+ autoload :OpenShiftManagedClusterMonitorProfile, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_monitor_profile.rb'
34
+ autoload :Resource, '2019-09-30-preview/generated/azure_mgmt_container_service/models/resource.rb'
35
+ autoload :OpenShiftRouterProfile, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_router_profile.rb'
36
+ autoload :OpenShiftManagedClusterListResult, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_list_result.rb'
37
+ autoload :OpenShiftManagedClusterMasterPoolProfile, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_master_pool_profile.rb'
38
+ autoload :TagsObject, '2019-09-30-preview/generated/azure_mgmt_container_service/models/tags_object.rb'
39
+ autoload :OpenShiftManagedCluster, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster.rb'
40
+ autoload :OpenShiftManagedClusterAADIdentityProvider, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_managed_cluster_aadidentity_provider.rb'
41
+ autoload :OSType, '2019-09-30-preview/generated/azure_mgmt_container_service/models/ostype.rb'
42
+ autoload :OpenShiftContainerServiceVMSize, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_container_service_vmsize.rb'
43
+ autoload :OpenShiftAgentPoolProfileRole, '2019-09-30-preview/generated/azure_mgmt_container_service/models/open_shift_agent_pool_profile_role.rb'
44
+ end
45
+ end
@@ -0,0 +1,133 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2019_09_30_preview
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 [OpenShiftManagedClusters] open_shift_managed_clusters
41
+ attr_reader :open_shift_managed_clusters
42
+
43
+ #
44
+ # Creates initializes a new instance of the ContainerServiceClient class.
45
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
46
+ # @param base_url [String] the base URI of the service.
47
+ # @param options [Array] filters to be applied to the HTTP requests.
48
+ #
49
+ def initialize(credentials = nil, base_url = nil, options = nil)
50
+ super(credentials, options)
51
+ @base_url = base_url || 'https://management.azure.com'
52
+
53
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
54
+ @credentials = credentials
55
+
56
+ @open_shift_managed_clusters = OpenShiftManagedClusters.new(self)
57
+ @api_version = '2019-09-30-preview'
58
+ @accept_language = 'en-US'
59
+ @long_running_operation_retry_timeout = 30
60
+ @generate_client_request_id = true
61
+ add_telemetry
62
+ end
63
+
64
+ #
65
+ # Makes a request and returns the body of the response.
66
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
67
+ # @param path [String] the path, relative to {base_url}.
68
+ # @param options [Hash{String=>String}] specifying any request options like :body.
69
+ # @return [Hash{String=>String}] containing the body of the response.
70
+ # Example:
71
+ #
72
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
73
+ # path = "/path"
74
+ # options = {
75
+ # body: request_content,
76
+ # query_params: {'api-version' => '2016-02-01'}
77
+ # }
78
+ # result = @client.make_request(:put, path, options)
79
+ #
80
+ def make_request(method, path, options = {})
81
+ result = make_request_with_http_info(method, path, options)
82
+ result.body unless result.nil?
83
+ end
84
+
85
+ #
86
+ # Makes a request and returns the operation response.
87
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
88
+ # @param path [String] the path, relative to {base_url}.
89
+ # @param options [Hash{String=>String}] specifying any request options like :body.
90
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
91
+ #
92
+ def make_request_with_http_info(method, path, options = {})
93
+ result = make_request_async(method, path, options).value!
94
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
95
+ result
96
+ end
97
+
98
+ #
99
+ # Makes a request asynchronously.
100
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
101
+ # @param path [String] the path, relative to {base_url}.
102
+ # @param options [Hash{String=>String}] specifying any request options like :body.
103
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
104
+ #
105
+ def make_request_async(method, path, options = {})
106
+ fail ArgumentError, 'method is nil' if method.nil?
107
+ fail ArgumentError, 'path is nil' if path.nil?
108
+
109
+ request_url = options[:base_url] || @base_url
110
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
111
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
112
+ end
113
+
114
+ request_headers = @request_headers
115
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
116
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
117
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
118
+
119
+ super(request_url, method, path, options)
120
+ end
121
+
122
+
123
+ private
124
+ #
125
+ # Adds telemetry information.
126
+ #
127
+ def add_telemetry
128
+ sdk_information = 'azure_mgmt_container_service'
129
+ sdk_information = "#{sdk_information}/0.20.2"
130
+ add_user_agent_information(sdk_information)
131
+ end
132
+ end
133
+ end