azure_mgmt_container_service 0.18.5 → 0.20.3
Sign up to get free protection for your applications and to get access to all the features.
- 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/2020-06-01/generated/azure_mgmt_container_service.rb +98 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/agent_pools.rb +900 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/container_service_client.rb +145 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/managed_clusters.rb +2043 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool.rb +440 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions.rb +93 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_available_versions_properties_agent_pool_versions_item.rb +71 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_list_result.rb +99 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_mode.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_type.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile.rb +129 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_profile_properties_upgrades_item.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/agent_pool_upgrade_settings.rb +47 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/connection_status.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +179 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/credential_result.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/credential_results.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/load_balancer_sku.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster.rb +388 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +123 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +80 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile_identity.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +279 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile_properties.rb +413 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_apiserver_access_profile.rb +66 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_identity.rb +104 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile.rb +132 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_managed_outbound_ips.rb +55 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ipprefixes.rb +57 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_load_balancer_profile_outbound_ips.rb +56 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +92 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile_upgrades_item.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_auto_scaler_profile.rb +135 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_properties_identity_profile_value.rb +61 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_service_principal_profile.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_sku.rb +60 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_skuname.rb +15 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_skutier.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/managed_cluster_windows_profile.rb +63 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/network_mode.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/network_policy.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/outbound_type.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_endpoint.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_endpoint_connection.rb +111 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_endpoint_connection_list_result.rb +55 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_endpoint_connection_provisioning_state.rb +18 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/private_link_service_connection_state.rb +59 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/resource.rb +110 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/resource_identity_type.rb +17 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/resource_reference.rb +46 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/scale_set_eviction_policy.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/scale_set_priority.rb +16 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/sub_resource.rb +72 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/models/user_assigned_identity.rb +69 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/operations.rb +109 -0
- data/lib/2020-06-01/generated/azure_mgmt_container_service/private_endpoint_connections.rb +515 -0
- data/lib/azure_mgmt_container_service.rb +13 -7
- data/lib/profiles/latest/modules/containerservice_profile_module.rb +284 -146
- data/lib/version.rb +1 -1
- metadata +328 -5
@@ -0,0 +1,59 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ContainerService::Mgmt::V2019_09_30_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines the configuration for Log Analytics integration.
|
10
|
+
#
|
11
|
+
class OpenShiftManagedClusterMonitorProfile
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Azure Resource Manager Resource ID for the Log
|
16
|
+
# Analytics workspace to integrate with.
|
17
|
+
attr_accessor :workspace_resource_id
|
18
|
+
|
19
|
+
# @return [Boolean] If the Log analytics integration should be turned on
|
20
|
+
# or off
|
21
|
+
attr_accessor :enabled
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for OpenShiftManagedClusterMonitorProfile class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'OpenShiftManagedClusterMonitorProfile',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'OpenShiftManagedClusterMonitorProfile',
|
36
|
+
model_properties: {
|
37
|
+
workspace_resource_id: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'workspaceResourceID',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
enabled: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'enabled',
|
49
|
+
type: {
|
50
|
+
name: 'Boolean'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ContainerService::Mgmt::V2019_09_30_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Represents an OpenShift router
|
10
|
+
#
|
11
|
+
class OpenShiftRouterProfile
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Name of the router profile.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] DNS subdomain for OpenShift router.
|
19
|
+
attr_accessor :public_subdomain
|
20
|
+
|
21
|
+
# @return [String] Auto-allocated FQDN for the OpenShift router.
|
22
|
+
attr_accessor :fqdn
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for OpenShiftRouterProfile class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'OpenShiftRouterProfile',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'OpenShiftRouterProfile',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'name',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
public_subdomain: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
read_only: true,
|
50
|
+
serialized_name: 'publicSubdomain',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
fqdn: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'fqdn',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ContainerService::Mgmt::V2019_09_30_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for OSType
|
10
|
+
#
|
11
|
+
module OSType
|
12
|
+
Linux = "Linux"
|
13
|
+
Windows = "Windows"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ContainerService::Mgmt::V2019_09_30_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Used for establishing the purchase context of any 3rd Party artifact
|
10
|
+
# through MarketPlace.
|
11
|
+
#
|
12
|
+
class PurchasePlan
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The plan ID.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [String] Specifies the product of the image from the
|
20
|
+
# marketplace. This is the same value as Offer under the imageReference
|
21
|
+
# element.
|
22
|
+
attr_accessor :product
|
23
|
+
|
24
|
+
# @return [String] The promotion code.
|
25
|
+
attr_accessor :promotion_code
|
26
|
+
|
27
|
+
# @return [String] The plan ID.
|
28
|
+
attr_accessor :publisher
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for PurchasePlan class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'PurchasePlan',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'PurchasePlan',
|
43
|
+
model_properties: {
|
44
|
+
name: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'name',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
product: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'product',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
promotion_code: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'promotionCode',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
publisher: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'publisher',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ContainerService::Mgmt::V2019_09_30_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The Resource model definition.
|
10
|
+
#
|
11
|
+
class Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Resource Id
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Resource name
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] Resource type
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# @return [String] Resource location
|
25
|
+
attr_accessor :location
|
26
|
+
|
27
|
+
# @return [Hash{String => String}] Resource tags
|
28
|
+
attr_accessor :tags
|
29
|
+
|
30
|
+
|
31
|
+
# @return [String] the name of the resource group of the resource.
|
32
|
+
def resource_group
|
33
|
+
unless self.id.nil?
|
34
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
35
|
+
groups.captures[0].strip if groups
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
#
|
41
|
+
# Mapper for Resource class as Ruby Hash.
|
42
|
+
# This will be used for serialization/deserialization.
|
43
|
+
#
|
44
|
+
def self.mapper()
|
45
|
+
{
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'Resource',
|
49
|
+
type: {
|
50
|
+
name: 'Composite',
|
51
|
+
class_name: 'Resource',
|
52
|
+
model_properties: {
|
53
|
+
id: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'id',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
name: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
read_only: true,
|
66
|
+
serialized_name: 'name',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
type: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
read_only: true,
|
75
|
+
serialized_name: 'type',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
location: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: true,
|
83
|
+
serialized_name: 'location',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
tags: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
serialized_name: 'tags',
|
92
|
+
type: {
|
93
|
+
name: 'Dictionary',
|
94
|
+
value: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
serialized_name: 'StringElementType',
|
98
|
+
type: {
|
99
|
+
name: 'String'
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ContainerService::Mgmt::V2019_09_30_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Tags object for patch operations.
|
10
|
+
#
|
11
|
+
class TagsObject
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] Resource tags.
|
16
|
+
attr_accessor :tags
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for TagsObject class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'TagsObject',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'TagsObject',
|
31
|
+
model_properties: {
|
32
|
+
tags: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'tags',
|
36
|
+
type: {
|
37
|
+
name: 'Dictionary',
|
38
|
+
value: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'StringElementType',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure end
|
7
|
+
module Azure::ContainerService end
|
8
|
+
module Azure::ContainerService::Mgmt end
|
9
|
+
module Azure::ContainerService::Mgmt::V2019_09_30_preview end
|
data/lib/2019-09-30-preview/generated/azure_mgmt_container_service/open_shift_managed_clusters.rb
ADDED
@@ -0,0 +1,1068 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ContainerService::Mgmt::V2019_09_30_preview
|
7
|
+
#
|
8
|
+
# The Container Service Client.
|
9
|
+
#
|
10
|
+
class OpenShiftManagedClusters
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the OpenShiftManagedClusters 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 OpenShift managed clusters in the specified subscription.
|
26
|
+
#
|
27
|
+
# Gets a list of OpenShift managed clusters in the specified subscription. The
|
28
|
+
# operation returns properties of each OpenShift managed cluster.
|
29
|
+
#
|
30
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
|
+
# will be added to the HTTP request.
|
32
|
+
#
|
33
|
+
# @return [Array<OpenShiftManagedCluster>] operation results.
|
34
|
+
#
|
35
|
+
def list(custom_headers:nil)
|
36
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
37
|
+
first_page.get_all_items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets a list of OpenShift managed clusters in the specified subscription.
|
42
|
+
#
|
43
|
+
# Gets a list of OpenShift managed clusters in the specified subscription. The
|
44
|
+
# operation returns properties of each OpenShift managed cluster.
|
45
|
+
#
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
49
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
|
+
#
|
51
|
+
def list_with_http_info(custom_headers:nil)
|
52
|
+
list_async(custom_headers:custom_headers).value!
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Gets a list of OpenShift managed clusters in the specified subscription.
|
57
|
+
#
|
58
|
+
# Gets a list of OpenShift managed clusters in the specified subscription. The
|
59
|
+
# operation returns properties of each OpenShift managed cluster.
|
60
|
+
#
|
61
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
|
+
# to the HTTP request.
|
63
|
+
#
|
64
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
|
+
#
|
66
|
+
def list_async(custom_headers:nil)
|
67
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
69
|
+
|
70
|
+
|
71
|
+
request_headers = {}
|
72
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
73
|
+
|
74
|
+
# Set Headers
|
75
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
76
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
77
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/openShiftManagedClusters'
|
78
|
+
|
79
|
+
request_url = @base_url || @client.base_url
|
80
|
+
|
81
|
+
options = {
|
82
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
83
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
84
|
+
query_params: {'api-version' => @client.api_version},
|
85
|
+
headers: request_headers.merge(custom_headers || {}),
|
86
|
+
base_url: request_url
|
87
|
+
}
|
88
|
+
promise = @client.make_request_async(:get, path_template, options)
|
89
|
+
|
90
|
+
promise = promise.then do |result|
|
91
|
+
http_response = result.response
|
92
|
+
status_code = http_response.status
|
93
|
+
response_content = http_response.body
|
94
|
+
unless status_code == 200
|
95
|
+
error_model = JSON.load(response_content)
|
96
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
97
|
+
end
|
98
|
+
|
99
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
100
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
101
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
102
|
+
# Deserialize Response
|
103
|
+
if status_code == 200
|
104
|
+
begin
|
105
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
106
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedClusterListResult.mapper()
|
107
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
108
|
+
rescue Exception => e
|
109
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
result
|
114
|
+
end
|
115
|
+
|
116
|
+
promise.execute
|
117
|
+
end
|
118
|
+
|
119
|
+
#
|
120
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
121
|
+
# group.
|
122
|
+
#
|
123
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
124
|
+
# group. The operation returns properties of each OpenShift managed cluster.
|
125
|
+
#
|
126
|
+
# @param resource_group_name [String] The name of the resource group.
|
127
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
128
|
+
# will be added to the HTTP request.
|
129
|
+
#
|
130
|
+
# @return [Array<OpenShiftManagedCluster>] operation results.
|
131
|
+
#
|
132
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
133
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
134
|
+
first_page.get_all_items
|
135
|
+
end
|
136
|
+
|
137
|
+
#
|
138
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
139
|
+
# group.
|
140
|
+
#
|
141
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
142
|
+
# group. The operation returns properties of each OpenShift managed cluster.
|
143
|
+
#
|
144
|
+
# @param resource_group_name [String] The name of the resource group.
|
145
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
146
|
+
# will be added to the HTTP request.
|
147
|
+
#
|
148
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
149
|
+
#
|
150
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
151
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
152
|
+
end
|
153
|
+
|
154
|
+
#
|
155
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
156
|
+
# group.
|
157
|
+
#
|
158
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
159
|
+
# group. The operation returns properties of each OpenShift managed cluster.
|
160
|
+
#
|
161
|
+
# @param resource_group_name [String] The name of the resource group.
|
162
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
163
|
+
# to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
166
|
+
#
|
167
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
168
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
169
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
170
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
171
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
172
|
+
|
173
|
+
|
174
|
+
request_headers = {}
|
175
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
176
|
+
|
177
|
+
# Set Headers
|
178
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
179
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
180
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters'
|
181
|
+
|
182
|
+
request_url = @base_url || @client.base_url
|
183
|
+
|
184
|
+
options = {
|
185
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
186
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
187
|
+
query_params: {'api-version' => @client.api_version},
|
188
|
+
headers: request_headers.merge(custom_headers || {}),
|
189
|
+
base_url: request_url
|
190
|
+
}
|
191
|
+
promise = @client.make_request_async(:get, path_template, options)
|
192
|
+
|
193
|
+
promise = promise.then do |result|
|
194
|
+
http_response = result.response
|
195
|
+
status_code = http_response.status
|
196
|
+
response_content = http_response.body
|
197
|
+
unless status_code == 200
|
198
|
+
error_model = JSON.load(response_content)
|
199
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
200
|
+
end
|
201
|
+
|
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?
|
205
|
+
# Deserialize Response
|
206
|
+
if status_code == 200
|
207
|
+
begin
|
208
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
209
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedClusterListResult.mapper()
|
210
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
211
|
+
rescue Exception => e
|
212
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
result
|
217
|
+
end
|
218
|
+
|
219
|
+
promise.execute
|
220
|
+
end
|
221
|
+
|
222
|
+
#
|
223
|
+
# Gets a OpenShift managed cluster.
|
224
|
+
#
|
225
|
+
# Gets the details of the managed OpenShift cluster with a specified resource
|
226
|
+
# group and name.
|
227
|
+
#
|
228
|
+
# @param resource_group_name [String] The name of the resource group.
|
229
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
230
|
+
# resource.
|
231
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
232
|
+
# will be added to the HTTP request.
|
233
|
+
#
|
234
|
+
# @return [OpenShiftManagedCluster] operation results.
|
235
|
+
#
|
236
|
+
def get(resource_group_name, resource_name, custom_headers:nil)
|
237
|
+
response = get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
238
|
+
response.body unless response.nil?
|
239
|
+
end
|
240
|
+
|
241
|
+
#
|
242
|
+
# Gets a OpenShift managed cluster.
|
243
|
+
#
|
244
|
+
# Gets the details of the managed OpenShift cluster with a specified resource
|
245
|
+
# group and name.
|
246
|
+
#
|
247
|
+
# @param resource_group_name [String] The name of the resource group.
|
248
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
249
|
+
# resource.
|
250
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
251
|
+
# will be added to the HTTP request.
|
252
|
+
#
|
253
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
254
|
+
#
|
255
|
+
def get_with_http_info(resource_group_name, resource_name, custom_headers:nil)
|
256
|
+
get_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
257
|
+
end
|
258
|
+
|
259
|
+
#
|
260
|
+
# Gets a OpenShift managed cluster.
|
261
|
+
#
|
262
|
+
# Gets the details of the managed OpenShift cluster with a specified resource
|
263
|
+
# group and name.
|
264
|
+
#
|
265
|
+
# @param resource_group_name [String] The name of the resource group.
|
266
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
267
|
+
# resource.
|
268
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
269
|
+
# to the HTTP request.
|
270
|
+
#
|
271
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
272
|
+
#
|
273
|
+
def get_async(resource_group_name, resource_name, custom_headers:nil)
|
274
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
275
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
276
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
277
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
278
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
279
|
+
|
280
|
+
|
281
|
+
request_headers = {}
|
282
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
283
|
+
|
284
|
+
# Set Headers
|
285
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
286
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
287
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'
|
288
|
+
|
289
|
+
request_url = @base_url || @client.base_url
|
290
|
+
|
291
|
+
options = {
|
292
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
293
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
|
294
|
+
query_params: {'api-version' => @client.api_version},
|
295
|
+
headers: request_headers.merge(custom_headers || {}),
|
296
|
+
base_url: request_url
|
297
|
+
}
|
298
|
+
promise = @client.make_request_async(:get, path_template, options)
|
299
|
+
|
300
|
+
promise = promise.then do |result|
|
301
|
+
http_response = result.response
|
302
|
+
status_code = http_response.status
|
303
|
+
response_content = http_response.body
|
304
|
+
unless status_code == 200
|
305
|
+
error_model = JSON.load(response_content)
|
306
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
307
|
+
end
|
308
|
+
|
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?
|
312
|
+
# Deserialize Response
|
313
|
+
if status_code == 200
|
314
|
+
begin
|
315
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
316
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedCluster.mapper()
|
317
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
318
|
+
rescue Exception => e
|
319
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
result
|
324
|
+
end
|
325
|
+
|
326
|
+
promise.execute
|
327
|
+
end
|
328
|
+
|
329
|
+
#
|
330
|
+
# Creates or updates an OpenShift managed cluster.
|
331
|
+
#
|
332
|
+
# Creates or updates a OpenShift managed cluster with the specified
|
333
|
+
# configuration for agents and OpenShift version.
|
334
|
+
#
|
335
|
+
# @param resource_group_name [String] The name of the resource group.
|
336
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
337
|
+
# resource.
|
338
|
+
# @param parameters [OpenShiftManagedCluster] Parameters supplied to the Create
|
339
|
+
# or Update an OpenShift Managed Cluster operation.
|
340
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
341
|
+
# will be added to the HTTP request.
|
342
|
+
#
|
343
|
+
# @return [OpenShiftManagedCluster] operation results.
|
344
|
+
#
|
345
|
+
def create_or_update(resource_group_name, resource_name, parameters, custom_headers:nil)
|
346
|
+
response = create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
|
347
|
+
response.body unless response.nil?
|
348
|
+
end
|
349
|
+
|
350
|
+
#
|
351
|
+
# @param resource_group_name [String] The name of the resource group.
|
352
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
353
|
+
# resource.
|
354
|
+
# @param parameters [OpenShiftManagedCluster] Parameters supplied to the Create
|
355
|
+
# or Update an OpenShift Managed Cluster operation.
|
356
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
357
|
+
# will be added to the HTTP request.
|
358
|
+
#
|
359
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
360
|
+
# response.
|
361
|
+
#
|
362
|
+
def create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:nil)
|
363
|
+
# Send request
|
364
|
+
promise = begin_create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers)
|
365
|
+
|
366
|
+
promise = promise.then do |response|
|
367
|
+
# Defining deserialization method.
|
368
|
+
deserialize_method = lambda do |parsed_response|
|
369
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedCluster.mapper()
|
370
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
371
|
+
end
|
372
|
+
|
373
|
+
# Waiting for response.
|
374
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
375
|
+
end
|
376
|
+
|
377
|
+
promise
|
378
|
+
end
|
379
|
+
|
380
|
+
#
|
381
|
+
# Updates tags on an OpenShift managed cluster.
|
382
|
+
#
|
383
|
+
# Updates an OpenShift managed cluster with the specified tags.
|
384
|
+
#
|
385
|
+
# @param resource_group_name [String] The name of the resource group.
|
386
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
387
|
+
# resource.
|
388
|
+
# @param parameters [TagsObject] Parameters supplied to the Update OpenShift
|
389
|
+
# Managed Cluster Tags operation.
|
390
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
391
|
+
# will be added to the HTTP request.
|
392
|
+
#
|
393
|
+
# @return [OpenShiftManagedCluster] operation results.
|
394
|
+
#
|
395
|
+
def update_tags(resource_group_name, resource_name, parameters, custom_headers:nil)
|
396
|
+
response = update_tags_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
|
397
|
+
response.body unless response.nil?
|
398
|
+
end
|
399
|
+
|
400
|
+
#
|
401
|
+
# @param resource_group_name [String] The name of the resource group.
|
402
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
403
|
+
# resource.
|
404
|
+
# @param parameters [TagsObject] Parameters supplied to the Update OpenShift
|
405
|
+
# Managed Cluster Tags operation.
|
406
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
407
|
+
# will be added to the HTTP request.
|
408
|
+
#
|
409
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
410
|
+
# response.
|
411
|
+
#
|
412
|
+
def update_tags_async(resource_group_name, resource_name, parameters, custom_headers:nil)
|
413
|
+
# Send request
|
414
|
+
promise = begin_update_tags_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers)
|
415
|
+
|
416
|
+
promise = promise.then do |response|
|
417
|
+
# Defining deserialization method.
|
418
|
+
deserialize_method = lambda do |parsed_response|
|
419
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedCluster.mapper()
|
420
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
421
|
+
end
|
422
|
+
|
423
|
+
# Waiting for response.
|
424
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
425
|
+
end
|
426
|
+
|
427
|
+
promise
|
428
|
+
end
|
429
|
+
|
430
|
+
#
|
431
|
+
# Deletes an OpenShift managed cluster.
|
432
|
+
#
|
433
|
+
# Deletes the OpenShift managed cluster with a specified resource group and
|
434
|
+
# name.
|
435
|
+
#
|
436
|
+
# @param resource_group_name [String] The name of the resource group.
|
437
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
438
|
+
# resource.
|
439
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
440
|
+
# will be added to the HTTP request.
|
441
|
+
#
|
442
|
+
def delete(resource_group_name, resource_name, custom_headers:nil)
|
443
|
+
response = delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
444
|
+
nil
|
445
|
+
end
|
446
|
+
|
447
|
+
#
|
448
|
+
# @param resource_group_name [String] The name of the resource group.
|
449
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
450
|
+
# resource.
|
451
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
452
|
+
# will be added to the HTTP request.
|
453
|
+
#
|
454
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
455
|
+
# response.
|
456
|
+
#
|
457
|
+
def delete_async(resource_group_name, resource_name, custom_headers:nil)
|
458
|
+
# Send request
|
459
|
+
promise = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers)
|
460
|
+
|
461
|
+
promise = promise.then do |response|
|
462
|
+
# Defining deserialization method.
|
463
|
+
deserialize_method = lambda do |parsed_response|
|
464
|
+
end
|
465
|
+
|
466
|
+
# Waiting for response.
|
467
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
468
|
+
end
|
469
|
+
|
470
|
+
promise
|
471
|
+
end
|
472
|
+
|
473
|
+
#
|
474
|
+
# Creates or updates an OpenShift managed cluster.
|
475
|
+
#
|
476
|
+
# Creates or updates a OpenShift managed cluster with the specified
|
477
|
+
# configuration for agents and OpenShift version.
|
478
|
+
#
|
479
|
+
# @param resource_group_name [String] The name of the resource group.
|
480
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
481
|
+
# resource.
|
482
|
+
# @param parameters [OpenShiftManagedCluster] Parameters supplied to the Create
|
483
|
+
# or Update an OpenShift Managed Cluster operation.
|
484
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
485
|
+
# will be added to the HTTP request.
|
486
|
+
#
|
487
|
+
# @return [OpenShiftManagedCluster] operation results.
|
488
|
+
#
|
489
|
+
def begin_create_or_update(resource_group_name, resource_name, parameters, custom_headers:nil)
|
490
|
+
response = begin_create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
|
491
|
+
response.body unless response.nil?
|
492
|
+
end
|
493
|
+
|
494
|
+
#
|
495
|
+
# Creates or updates an OpenShift managed cluster.
|
496
|
+
#
|
497
|
+
# Creates or updates a OpenShift managed cluster with the specified
|
498
|
+
# configuration for agents and OpenShift version.
|
499
|
+
#
|
500
|
+
# @param resource_group_name [String] The name of the resource group.
|
501
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
502
|
+
# resource.
|
503
|
+
# @param parameters [OpenShiftManagedCluster] Parameters supplied to the Create
|
504
|
+
# or Update an OpenShift Managed Cluster operation.
|
505
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
506
|
+
# will be added to the HTTP request.
|
507
|
+
#
|
508
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
509
|
+
#
|
510
|
+
def begin_create_or_update_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil)
|
511
|
+
begin_create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
|
512
|
+
end
|
513
|
+
|
514
|
+
#
|
515
|
+
# Creates or updates an OpenShift managed cluster.
|
516
|
+
#
|
517
|
+
# Creates or updates a OpenShift managed cluster with the specified
|
518
|
+
# configuration for agents and OpenShift version.
|
519
|
+
#
|
520
|
+
# @param resource_group_name [String] The name of the resource group.
|
521
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
522
|
+
# resource.
|
523
|
+
# @param parameters [OpenShiftManagedCluster] Parameters supplied to the Create
|
524
|
+
# or Update an OpenShift Managed Cluster operation.
|
525
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
526
|
+
# to the HTTP request.
|
527
|
+
#
|
528
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
529
|
+
#
|
530
|
+
def begin_create_or_update_async(resource_group_name, resource_name, parameters, custom_headers:nil)
|
531
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
532
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
533
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
534
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
535
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
536
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
537
|
+
|
538
|
+
|
539
|
+
request_headers = {}
|
540
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
541
|
+
|
542
|
+
# Set Headers
|
543
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
544
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
545
|
+
|
546
|
+
# Serialize Request
|
547
|
+
request_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedCluster.mapper()
|
548
|
+
request_content = @client.serialize(request_mapper, parameters)
|
549
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
550
|
+
|
551
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'
|
552
|
+
|
553
|
+
request_url = @base_url || @client.base_url
|
554
|
+
|
555
|
+
options = {
|
556
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
557
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
|
558
|
+
query_params: {'api-version' => @client.api_version},
|
559
|
+
body: request_content,
|
560
|
+
headers: request_headers.merge(custom_headers || {}),
|
561
|
+
base_url: request_url
|
562
|
+
}
|
563
|
+
promise = @client.make_request_async(:put, path_template, options)
|
564
|
+
|
565
|
+
promise = promise.then do |result|
|
566
|
+
http_response = result.response
|
567
|
+
status_code = http_response.status
|
568
|
+
response_content = http_response.body
|
569
|
+
unless status_code == 200 || status_code == 201
|
570
|
+
error_model = JSON.load(response_content)
|
571
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
572
|
+
end
|
573
|
+
|
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?
|
577
|
+
# Deserialize Response
|
578
|
+
if status_code == 200
|
579
|
+
begin
|
580
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
581
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedCluster.mapper()
|
582
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
583
|
+
rescue Exception => e
|
584
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
585
|
+
end
|
586
|
+
end
|
587
|
+
# Deserialize Response
|
588
|
+
if status_code == 201
|
589
|
+
begin
|
590
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
591
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedCluster.mapper()
|
592
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
593
|
+
rescue Exception => e
|
594
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
595
|
+
end
|
596
|
+
end
|
597
|
+
|
598
|
+
result
|
599
|
+
end
|
600
|
+
|
601
|
+
promise.execute
|
602
|
+
end
|
603
|
+
|
604
|
+
#
|
605
|
+
# Updates tags on an OpenShift managed cluster.
|
606
|
+
#
|
607
|
+
# Updates an OpenShift managed cluster with the specified tags.
|
608
|
+
#
|
609
|
+
# @param resource_group_name [String] The name of the resource group.
|
610
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
611
|
+
# resource.
|
612
|
+
# @param parameters [TagsObject] Parameters supplied to the Update OpenShift
|
613
|
+
# Managed Cluster Tags operation.
|
614
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
615
|
+
# will be added to the HTTP request.
|
616
|
+
#
|
617
|
+
# @return [OpenShiftManagedCluster] operation results.
|
618
|
+
#
|
619
|
+
def begin_update_tags(resource_group_name, resource_name, parameters, custom_headers:nil)
|
620
|
+
response = begin_update_tags_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
|
621
|
+
response.body unless response.nil?
|
622
|
+
end
|
623
|
+
|
624
|
+
#
|
625
|
+
# Updates tags on an OpenShift managed cluster.
|
626
|
+
#
|
627
|
+
# Updates an OpenShift managed cluster with the specified tags.
|
628
|
+
#
|
629
|
+
# @param resource_group_name [String] The name of the resource group.
|
630
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
631
|
+
# resource.
|
632
|
+
# @param parameters [TagsObject] Parameters supplied to the Update OpenShift
|
633
|
+
# Managed Cluster Tags operation.
|
634
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
635
|
+
# will be added to the HTTP request.
|
636
|
+
#
|
637
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
638
|
+
#
|
639
|
+
def begin_update_tags_with_http_info(resource_group_name, resource_name, parameters, custom_headers:nil)
|
640
|
+
begin_update_tags_async(resource_group_name, resource_name, parameters, custom_headers:custom_headers).value!
|
641
|
+
end
|
642
|
+
|
643
|
+
#
|
644
|
+
# Updates tags on an OpenShift managed cluster.
|
645
|
+
#
|
646
|
+
# Updates an OpenShift managed cluster with the specified tags.
|
647
|
+
#
|
648
|
+
# @param resource_group_name [String] The name of the resource group.
|
649
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
650
|
+
# resource.
|
651
|
+
# @param parameters [TagsObject] Parameters supplied to the Update OpenShift
|
652
|
+
# Managed Cluster Tags operation.
|
653
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
654
|
+
# to the HTTP request.
|
655
|
+
#
|
656
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
657
|
+
#
|
658
|
+
def begin_update_tags_async(resource_group_name, resource_name, parameters, custom_headers:nil)
|
659
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
660
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
661
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
662
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
663
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
664
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
665
|
+
|
666
|
+
|
667
|
+
request_headers = {}
|
668
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
669
|
+
|
670
|
+
# Set Headers
|
671
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
672
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
673
|
+
|
674
|
+
# Serialize Request
|
675
|
+
request_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::TagsObject.mapper()
|
676
|
+
request_content = @client.serialize(request_mapper, parameters)
|
677
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
678
|
+
|
679
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'
|
680
|
+
|
681
|
+
request_url = @base_url || @client.base_url
|
682
|
+
|
683
|
+
options = {
|
684
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
685
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
|
686
|
+
query_params: {'api-version' => @client.api_version},
|
687
|
+
body: request_content,
|
688
|
+
headers: request_headers.merge(custom_headers || {}),
|
689
|
+
base_url: request_url
|
690
|
+
}
|
691
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
692
|
+
|
693
|
+
promise = promise.then do |result|
|
694
|
+
http_response = result.response
|
695
|
+
status_code = http_response.status
|
696
|
+
response_content = http_response.body
|
697
|
+
unless status_code == 200
|
698
|
+
error_model = JSON.load(response_content)
|
699
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
700
|
+
end
|
701
|
+
|
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?
|
705
|
+
# Deserialize Response
|
706
|
+
if status_code == 200
|
707
|
+
begin
|
708
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
709
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedCluster.mapper()
|
710
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
711
|
+
rescue Exception => e
|
712
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
result
|
717
|
+
end
|
718
|
+
|
719
|
+
promise.execute
|
720
|
+
end
|
721
|
+
|
722
|
+
#
|
723
|
+
# Deletes an OpenShift managed cluster.
|
724
|
+
#
|
725
|
+
# Deletes the OpenShift managed cluster with a specified resource group and
|
726
|
+
# name.
|
727
|
+
#
|
728
|
+
# @param resource_group_name [String] The name of the resource group.
|
729
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
730
|
+
# resource.
|
731
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
732
|
+
# will be added to the HTTP request.
|
733
|
+
#
|
734
|
+
#
|
735
|
+
def begin_delete(resource_group_name, resource_name, custom_headers:nil)
|
736
|
+
response = begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
737
|
+
nil
|
738
|
+
end
|
739
|
+
|
740
|
+
#
|
741
|
+
# Deletes an OpenShift managed cluster.
|
742
|
+
#
|
743
|
+
# Deletes the OpenShift managed cluster with a specified resource group and
|
744
|
+
# name.
|
745
|
+
#
|
746
|
+
# @param resource_group_name [String] The name of the resource group.
|
747
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
748
|
+
# resource.
|
749
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
750
|
+
# will be added to the HTTP request.
|
751
|
+
#
|
752
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
753
|
+
#
|
754
|
+
def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers:nil)
|
755
|
+
begin_delete_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
|
756
|
+
end
|
757
|
+
|
758
|
+
#
|
759
|
+
# Deletes an OpenShift managed cluster.
|
760
|
+
#
|
761
|
+
# Deletes the OpenShift managed cluster with a specified resource group and
|
762
|
+
# name.
|
763
|
+
#
|
764
|
+
# @param resource_group_name [String] The name of the resource group.
|
765
|
+
# @param resource_name [String] The name of the OpenShift managed cluster
|
766
|
+
# resource.
|
767
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
768
|
+
# to the HTTP request.
|
769
|
+
#
|
770
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
771
|
+
#
|
772
|
+
def begin_delete_async(resource_group_name, resource_name, custom_headers:nil)
|
773
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
774
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
775
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
776
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
777
|
+
fail ArgumentError, 'resource_name is nil' if resource_name.nil?
|
778
|
+
|
779
|
+
|
780
|
+
request_headers = {}
|
781
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
782
|
+
|
783
|
+
# Set Headers
|
784
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
785
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
786
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'
|
787
|
+
|
788
|
+
request_url = @base_url || @client.base_url
|
789
|
+
|
790
|
+
options = {
|
791
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
792
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
|
793
|
+
query_params: {'api-version' => @client.api_version},
|
794
|
+
headers: request_headers.merge(custom_headers || {}),
|
795
|
+
base_url: request_url
|
796
|
+
}
|
797
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
798
|
+
|
799
|
+
promise = promise.then do |result|
|
800
|
+
http_response = result.response
|
801
|
+
status_code = http_response.status
|
802
|
+
response_content = http_response.body
|
803
|
+
unless status_code == 202 || status_code == 204
|
804
|
+
error_model = JSON.load(response_content)
|
805
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
806
|
+
end
|
807
|
+
|
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?
|
811
|
+
|
812
|
+
result
|
813
|
+
end
|
814
|
+
|
815
|
+
promise.execute
|
816
|
+
end
|
817
|
+
|
818
|
+
#
|
819
|
+
# Gets a list of OpenShift managed clusters in the specified subscription.
|
820
|
+
#
|
821
|
+
# Gets a list of OpenShift managed clusters in the specified subscription. The
|
822
|
+
# operation returns properties of each OpenShift managed cluster.
|
823
|
+
#
|
824
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
825
|
+
# to List operation.
|
826
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
827
|
+
# will be added to the HTTP request.
|
828
|
+
#
|
829
|
+
# @return [OpenShiftManagedClusterListResult] operation results.
|
830
|
+
#
|
831
|
+
def list_next(next_page_link, custom_headers:nil)
|
832
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
833
|
+
response.body unless response.nil?
|
834
|
+
end
|
835
|
+
|
836
|
+
#
|
837
|
+
# Gets a list of OpenShift managed clusters in the specified subscription.
|
838
|
+
#
|
839
|
+
# Gets a list of OpenShift managed clusters in the specified subscription. The
|
840
|
+
# operation returns properties of each OpenShift managed cluster.
|
841
|
+
#
|
842
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
843
|
+
# to List operation.
|
844
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
845
|
+
# will be added to the HTTP request.
|
846
|
+
#
|
847
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
848
|
+
#
|
849
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
850
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
851
|
+
end
|
852
|
+
|
853
|
+
#
|
854
|
+
# Gets a list of OpenShift managed clusters in the specified subscription.
|
855
|
+
#
|
856
|
+
# Gets a list of OpenShift managed clusters in the specified subscription. The
|
857
|
+
# operation returns properties of each OpenShift managed cluster.
|
858
|
+
#
|
859
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
860
|
+
# to List operation.
|
861
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
862
|
+
# to the HTTP request.
|
863
|
+
#
|
864
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
865
|
+
#
|
866
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
867
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
868
|
+
|
869
|
+
|
870
|
+
request_headers = {}
|
871
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
872
|
+
|
873
|
+
# Set Headers
|
874
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
875
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
876
|
+
path_template = '{nextLink}'
|
877
|
+
|
878
|
+
request_url = @base_url || @client.base_url
|
879
|
+
|
880
|
+
options = {
|
881
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
882
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
883
|
+
headers: request_headers.merge(custom_headers || {}),
|
884
|
+
base_url: request_url
|
885
|
+
}
|
886
|
+
promise = @client.make_request_async(:get, path_template, options)
|
887
|
+
|
888
|
+
promise = promise.then do |result|
|
889
|
+
http_response = result.response
|
890
|
+
status_code = http_response.status
|
891
|
+
response_content = http_response.body
|
892
|
+
unless status_code == 200
|
893
|
+
error_model = JSON.load(response_content)
|
894
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
895
|
+
end
|
896
|
+
|
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?
|
900
|
+
# Deserialize Response
|
901
|
+
if status_code == 200
|
902
|
+
begin
|
903
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
904
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedClusterListResult.mapper()
|
905
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
906
|
+
rescue Exception => e
|
907
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
908
|
+
end
|
909
|
+
end
|
910
|
+
|
911
|
+
result
|
912
|
+
end
|
913
|
+
|
914
|
+
promise.execute
|
915
|
+
end
|
916
|
+
|
917
|
+
#
|
918
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
919
|
+
# group.
|
920
|
+
#
|
921
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
922
|
+
# group. The operation returns properties of each OpenShift managed cluster.
|
923
|
+
#
|
924
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
925
|
+
# to List operation.
|
926
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
927
|
+
# will be added to the HTTP request.
|
928
|
+
#
|
929
|
+
# @return [OpenShiftManagedClusterListResult] operation results.
|
930
|
+
#
|
931
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
932
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
933
|
+
response.body unless response.nil?
|
934
|
+
end
|
935
|
+
|
936
|
+
#
|
937
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
938
|
+
# group.
|
939
|
+
#
|
940
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
941
|
+
# group. The operation returns properties of each OpenShift managed cluster.
|
942
|
+
#
|
943
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
944
|
+
# to List operation.
|
945
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
946
|
+
# will be added to the HTTP request.
|
947
|
+
#
|
948
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
949
|
+
#
|
950
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
951
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
952
|
+
end
|
953
|
+
|
954
|
+
#
|
955
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
956
|
+
# group.
|
957
|
+
#
|
958
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
959
|
+
# group. The operation returns properties of each OpenShift managed cluster.
|
960
|
+
#
|
961
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
962
|
+
# to List operation.
|
963
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
964
|
+
# to the HTTP request.
|
965
|
+
#
|
966
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
967
|
+
#
|
968
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
969
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
970
|
+
|
971
|
+
|
972
|
+
request_headers = {}
|
973
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
974
|
+
|
975
|
+
# Set Headers
|
976
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
977
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
978
|
+
path_template = '{nextLink}'
|
979
|
+
|
980
|
+
request_url = @base_url || @client.base_url
|
981
|
+
|
982
|
+
options = {
|
983
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
984
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
985
|
+
headers: request_headers.merge(custom_headers || {}),
|
986
|
+
base_url: request_url
|
987
|
+
}
|
988
|
+
promise = @client.make_request_async(:get, path_template, options)
|
989
|
+
|
990
|
+
promise = promise.then do |result|
|
991
|
+
http_response = result.response
|
992
|
+
status_code = http_response.status
|
993
|
+
response_content = http_response.body
|
994
|
+
unless status_code == 200
|
995
|
+
error_model = JSON.load(response_content)
|
996
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
997
|
+
end
|
998
|
+
|
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?
|
1002
|
+
# Deserialize Response
|
1003
|
+
if status_code == 200
|
1004
|
+
begin
|
1005
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1006
|
+
result_mapper = Azure::ContainerService::Mgmt::V2019_09_30_preview::Models::OpenShiftManagedClusterListResult.mapper()
|
1007
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1008
|
+
rescue Exception => e
|
1009
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
|
1013
|
+
result
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
promise.execute
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
#
|
1020
|
+
# Gets a list of OpenShift managed clusters in the specified subscription.
|
1021
|
+
#
|
1022
|
+
# Gets a list of OpenShift managed clusters in the specified subscription. The
|
1023
|
+
# operation returns properties of each OpenShift managed cluster.
|
1024
|
+
#
|
1025
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1026
|
+
# will be added to the HTTP request.
|
1027
|
+
#
|
1028
|
+
# @return [OpenShiftManagedClusterListResult] which provide lazy access to
|
1029
|
+
# pages of the response.
|
1030
|
+
#
|
1031
|
+
def list_as_lazy(custom_headers:nil)
|
1032
|
+
response = list_async(custom_headers:custom_headers).value!
|
1033
|
+
unless response.nil?
|
1034
|
+
page = response.body
|
1035
|
+
page.next_method = Proc.new do |next_page_link|
|
1036
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
1037
|
+
end
|
1038
|
+
page
|
1039
|
+
end
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
#
|
1043
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
1044
|
+
# group.
|
1045
|
+
#
|
1046
|
+
# Lists OpenShift managed clusters in the specified subscription and resource
|
1047
|
+
# group. The operation returns properties of each OpenShift managed cluster.
|
1048
|
+
#
|
1049
|
+
# @param resource_group_name [String] The name of the resource group.
|
1050
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1051
|
+
# will be added to the HTTP request.
|
1052
|
+
#
|
1053
|
+
# @return [OpenShiftManagedClusterListResult] which provide lazy access to
|
1054
|
+
# pages of the response.
|
1055
|
+
#
|
1056
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
1057
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
1058
|
+
unless response.nil?
|
1059
|
+
page = response.body
|
1060
|
+
page.next_method = Proc.new do |next_page_link|
|
1061
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
1062
|
+
end
|
1063
|
+
page
|
1064
|
+
end
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
end
|
1068
|
+
end
|