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