From 88b7302487a4d3a2e87d02bb42f0c309eec9ac11 Mon Sep 17 00:00:00 2001 From: Paul Czarkowski Date: Fri, 17 Nov 2023 13:29:30 -0500 Subject: [PATCH] stage for hcp managed policies Signed-off-by: Paul Czarkowski --- README.md | 54 + api_openshift_com.json | 2508 +++- docs/AMIOverride.md | 16 + docs/AWS.md | 5 + docs/AWSMachinePool.md | 1 + docs/AWSSTSAccountRole.md | 12 + docs/AWSSTSRole.md | 16 + docs/AutoscalerResourceLimits.md | 13 + docs/AutoscalerResourceLimitsGPULimit.md | 11 + docs/AutoscalerScaleDownConfig.md | 15 + docs/BillingModelItem.md | 17 + docs/CloudProvider.md | 1 + docs/CloudRegion.md | 5 +- docs/CloudVPC.md | 9 +- docs/Cluster.md | 2 + docs/ClusterAutoscaler.md | 23 + docs/ControlPlaneUpgradePolicy.md | 4 +- docs/DNSDomain.md | 7 +- docs/DefaultApi.md | 5045 +++++--- docs/Environment.md | 1 + docs/GCP.md | 1 + docs/GCPImageOverride.md | 17 + docs/GCPNetwork.md | 1 + docs/GcpSecurity.md | 11 + docs/HTPasswdUser.md | 3 +- docs/ImageOverrides.md | 15 + docs/Ingress.md | 5 + docs/InlineResponse20010.md | 4 +- docs/InlineResponse20011.md | 8 +- docs/InlineResponse20012.md | 6 +- docs/InlineResponse20013.md | 6 +- docs/InlineResponse20014.md | 6 +- docs/InlineResponse20015.md | 6 +- docs/InlineResponse20016.md | 6 +- docs/InlineResponse20017.md | 2 +- docs/InlineResponse20018.md | 2 +- docs/InlineResponse20019.md | 2 +- docs/InlineResponse20020.md | 2 +- docs/InlineResponse20021.md | 2 +- docs/InlineResponse20022.md | 2 +- docs/InlineResponse20023.md | 2 +- docs/InlineResponse20024.md | 2 +- docs/InlineResponse20025.md | 2 +- docs/InlineResponse20026.md | 2 +- docs/InlineResponse20027.md | 2 +- docs/InlineResponse20028.md | 2 +- docs/InlineResponse20029.md | 2 +- docs/InlineResponse20030.md | 2 +- docs/InlineResponse20031.md | 2 +- docs/InlineResponse20032.md | 2 +- docs/InlineResponse20033.md | 6 +- docs/InlineResponse20034.md | 6 +- docs/InlineResponse20035.md | 6 +- docs/InlineResponse20036.md | 6 +- docs/InlineResponse20037.md | 6 +- docs/InlineResponse20038.md | 8 +- docs/InlineResponse20039.md | 8 +- docs/InlineResponse20040.md | 6 +- docs/InlineResponse20041.md | 8 +- docs/InlineResponse20042.md | 8 +- docs/InlineResponse20043.md | 6 +- docs/InlineResponse20044.md | 2 +- docs/InlineResponse20045.md | 4 +- docs/InlineResponse20046.md | 4 +- docs/InlineResponse20047.md | 4 +- docs/InlineResponse20048.md | 13 + docs/InlineResponse20049.md | 13 + docs/InlineResponse2005.md | 9 +- docs/InlineResponse20050.md | 13 + docs/InlineResponse20051.md | 13 + docs/InlineResponse2006.md | 2 +- docs/InlineResponse2007.md | 8 +- docs/InlineResponse2008.md | 8 +- docs/InlineResponse2009.md | 8 +- docs/KubeletConfig.md | 14 + docs/LoadBalancerFlavor.md | 2 +- docs/NamespaceOwnershipPolicy.md | 10 + docs/NetworkVerification.md | 13 + docs/NodePoolUpgradePolicy.md | 4 +- docs/ProductMinimalVersion.md | 15 + docs/ProductTechnologyPreview.md | 16 + docs/ProvisionShardTopology.md | 9 + docs/ResourceRange.md | 11 + docs/ScheduleType.md | 10 + docs/SecurityGroup.md | 13 + docs/ServerConfig.md | 5 +- docs/StsSupportJumpRole.md | 11 + docs/SubnetNetworkVerification.md | 15 + docs/Subnetwork.md | 10 +- docs/TrustedIp.md | 14 + docs/UpgradePolicy.md | 4 +- docs/UpgradeType.md | 10 + docs/Version.md | 4 +- docs/WildcardPolicy.md | 10 + git_push.sh | 2 +- ocm_client/__init__.py | 29 + ocm_client/api/default_api.py | 10536 ++++++++++------ ocm_client/models/__init__.py | 29 + ocm_client/models/ami_override.py | 259 + .../models/autoscaler_resource_limits.py | 203 + .../autoscaler_resource_limits_gpu_limit.py | 149 + .../models/autoscaler_scale_down_config.py | 263 + ocm_client/models/aws.py | 142 +- ocm_client/models/aws_machine_pool.py | 30 +- ocm_client/models/awssts_account_role.py | 151 + ocm_client/models/awssts_role.py | 263 + ocm_client/models/billing_model.py | 3 +- ocm_client/models/billing_model_item.py | 291 + ocm_client/models/cloud_provider.py | 34 +- ocm_client/models/cloud_region.py | 90 +- ocm_client/models/cloud_vpc.py | 98 +- ocm_client/models/cluster.py | 54 +- ocm_client/models/cluster_autoscaler.py | 455 + .../models/control_plane_upgrade_policy.py | 16 +- ocm_client/models/dns_domain.py | 114 +- ocm_client/models/environment.py | 30 +- ocm_client/models/gcp.py | 28 +- ocm_client/models/gcp_image_override.py | 287 + ocm_client/models/gcp_network.py | 30 +- ocm_client/models/gcp_security.py | 123 + ocm_client/models/ht_passwd_user.py | 34 +- ocm_client/models/image_overrides.py | 231 + ocm_client/models/ingress.py | 142 +- ocm_client/models/inline_response20010.py | 8 +- ocm_client/models/inline_response20011.py | 22 +- ocm_client/models/inline_response20012.py | 18 +- ocm_client/models/inline_response20013.py | 18 +- ocm_client/models/inline_response20014.py | 18 +- ocm_client/models/inline_response20015.py | 18 +- ocm_client/models/inline_response20016.py | 18 +- ocm_client/models/inline_response20017.py | 10 +- ocm_client/models/inline_response20018.py | 10 +- ocm_client/models/inline_response20019.py | 10 +- ocm_client/models/inline_response20020.py | 10 +- ocm_client/models/inline_response20021.py | 10 +- ocm_client/models/inline_response20022.py | 10 +- ocm_client/models/inline_response20023.py | 10 +- ocm_client/models/inline_response20024.py | 10 +- ocm_client/models/inline_response20025.py | 4 +- ocm_client/models/inline_response20026.py | 10 +- ocm_client/models/inline_response20027.py | 10 +- ocm_client/models/inline_response20028.py | 10 +- ocm_client/models/inline_response20029.py | 10 +- ocm_client/models/inline_response20030.py | 10 +- ocm_client/models/inline_response20031.py | 10 +- ocm_client/models/inline_response20032.py | 10 +- ocm_client/models/inline_response20033.py | 18 +- ocm_client/models/inline_response20034.py | 18 +- ocm_client/models/inline_response20035.py | 18 +- ocm_client/models/inline_response20036.py | 18 +- ocm_client/models/inline_response20037.py | 18 +- ocm_client/models/inline_response20038.py | 22 +- ocm_client/models/inline_response20039.py | 22 +- ocm_client/models/inline_response20040.py | 18 +- ocm_client/models/inline_response20041.py | 22 +- ocm_client/models/inline_response20042.py | 22 +- ocm_client/models/inline_response20043.py | 18 +- ocm_client/models/inline_response20044.py | 10 +- ocm_client/models/inline_response20045.py | 14 +- ocm_client/models/inline_response20046.py | 14 +- ocm_client/models/inline_response20047.py | 14 +- ocm_client/models/inline_response20048.py | 207 + ocm_client/models/inline_response20049.py | 207 + ocm_client/models/inline_response2005.py | 52 +- ocm_client/models/inline_response20050.py | 207 + ocm_client/models/inline_response20051.py | 207 + ocm_client/models/inline_response2006.py | 10 +- ocm_client/models/inline_response2007.py | 22 +- ocm_client/models/inline_response2008.py | 22 +- ocm_client/models/inline_response2009.py | 22 +- ocm_client/models/kubelet_config.py | 207 + .../models/namespace_ownership_policy.py | 101 + ocm_client/models/network_verification.py | 205 + ocm_client/models/node_pool_upgrade_policy.py | 16 +- ocm_client/models/product_minimal_version.py | 235 + .../models/product_technology_preview.py | 263 + ocm_client/models/provision_shard_topology.py | 100 + ocm_client/models/resource_range.py | 147 + ocm_client/models/schedule_type.py | 101 + ocm_client/models/security_group.py | 179 + ocm_client/models/server_config.py | 40 +- ocm_client/models/sts_support_jump_role.py | 123 + .../models/subnet_network_verification.py | 263 + ocm_client/models/subnetwork.py | 74 +- ocm_client/models/trusted_ip.py | 207 + ocm_client/models/upgrade_policy.py | 16 +- ocm_client/models/upgrade_type.py | 103 + ocm_client/models/version.py | 60 +- ocm_client/models/wildcard_policy.py | 101 + test/test_ami_override.py | 95 + test/test_autoscaler_resource_limits.py | 66 + ...st_autoscaler_resource_limits_gpu_limit.py | 56 + test/test_autoscaler_scale_down_config.py | 58 + test/test_awssts_account_role.py | 62 + test/test_awssts_role.py | 58 + test/test_billing_model_item.py | 59 + test/test_cluster_autoscaler.py | 87 + test/test_gcp_image_override.py | 70 + test/test_gcp_security.py | 53 + test/test_image_overrides.py | 122 + test/test_inline_response20048.py | 126 + test/test_inline_response20049.py | 62 + test/test_inline_response20050.py | 69 + test/test_inline_response20051.py | 139 + test/test_kubelet_config.py | 56 + test/test_namespace_ownership_policy.py | 52 + test/test_network_verification.py | 213 + test/test_product_minimal_version.py | 57 + test/test_product_technology_preview.py | 58 + test/test_provision_shard_topology.py | 52 + test/test_resource_range.py | 54 + test/test_schedule_type.py | 52 + test/test_security_group.py | 55 + test/test_sts_support_jump_role.py | 53 + test/test_subnet_network_verification.py | 62 + test/test_trusted_ip.py | 56 + test/test_upgrade_type.py | 52 + test/test_wildcard_policy.py | 52 + 218 files changed, 22393 insertions(+), 6133 deletions(-) create mode 100644 docs/AMIOverride.md create mode 100644 docs/AWSSTSAccountRole.md create mode 100644 docs/AWSSTSRole.md create mode 100644 docs/AutoscalerResourceLimits.md create mode 100644 docs/AutoscalerResourceLimitsGPULimit.md create mode 100644 docs/AutoscalerScaleDownConfig.md create mode 100644 docs/BillingModelItem.md create mode 100644 docs/ClusterAutoscaler.md create mode 100644 docs/GCPImageOverride.md create mode 100644 docs/GcpSecurity.md create mode 100644 docs/ImageOverrides.md create mode 100644 docs/InlineResponse20048.md create mode 100644 docs/InlineResponse20049.md create mode 100644 docs/InlineResponse20050.md create mode 100644 docs/InlineResponse20051.md create mode 100644 docs/KubeletConfig.md create mode 100644 docs/NamespaceOwnershipPolicy.md create mode 100644 docs/NetworkVerification.md create mode 100644 docs/ProductMinimalVersion.md create mode 100644 docs/ProductTechnologyPreview.md create mode 100644 docs/ProvisionShardTopology.md create mode 100644 docs/ResourceRange.md create mode 100644 docs/ScheduleType.md create mode 100644 docs/SecurityGroup.md create mode 100644 docs/StsSupportJumpRole.md create mode 100644 docs/SubnetNetworkVerification.md create mode 100644 docs/TrustedIp.md create mode 100644 docs/UpgradeType.md create mode 100644 docs/WildcardPolicy.md create mode 100644 ocm_client/models/ami_override.py create mode 100644 ocm_client/models/autoscaler_resource_limits.py create mode 100644 ocm_client/models/autoscaler_resource_limits_gpu_limit.py create mode 100644 ocm_client/models/autoscaler_scale_down_config.py create mode 100644 ocm_client/models/awssts_account_role.py create mode 100644 ocm_client/models/awssts_role.py create mode 100644 ocm_client/models/billing_model_item.py create mode 100644 ocm_client/models/cluster_autoscaler.py create mode 100644 ocm_client/models/gcp_image_override.py create mode 100644 ocm_client/models/gcp_security.py create mode 100644 ocm_client/models/image_overrides.py create mode 100644 ocm_client/models/inline_response20048.py create mode 100644 ocm_client/models/inline_response20049.py create mode 100644 ocm_client/models/inline_response20050.py create mode 100644 ocm_client/models/inline_response20051.py create mode 100644 ocm_client/models/kubelet_config.py create mode 100644 ocm_client/models/namespace_ownership_policy.py create mode 100644 ocm_client/models/network_verification.py create mode 100644 ocm_client/models/product_minimal_version.py create mode 100644 ocm_client/models/product_technology_preview.py create mode 100644 ocm_client/models/provision_shard_topology.py create mode 100644 ocm_client/models/resource_range.py create mode 100644 ocm_client/models/schedule_type.py create mode 100644 ocm_client/models/security_group.py create mode 100644 ocm_client/models/sts_support_jump_role.py create mode 100644 ocm_client/models/subnet_network_verification.py create mode 100644 ocm_client/models/trusted_ip.py create mode 100644 ocm_client/models/upgrade_type.py create mode 100644 ocm_client/models/wildcard_policy.py create mode 100644 test/test_ami_override.py create mode 100644 test/test_autoscaler_resource_limits.py create mode 100644 test/test_autoscaler_resource_limits_gpu_limit.py create mode 100644 test/test_autoscaler_scale_down_config.py create mode 100644 test/test_awssts_account_role.py create mode 100644 test/test_awssts_role.py create mode 100644 test/test_billing_model_item.py create mode 100644 test/test_cluster_autoscaler.py create mode 100644 test/test_gcp_image_override.py create mode 100644 test/test_gcp_security.py create mode 100644 test/test_image_overrides.py create mode 100644 test/test_inline_response20048.py create mode 100644 test/test_inline_response20049.py create mode 100644 test/test_inline_response20050.py create mode 100644 test/test_inline_response20051.py create mode 100644 test/test_kubelet_config.py create mode 100644 test/test_namespace_ownership_policy.py create mode 100644 test/test_network_verification.py create mode 100644 test/test_product_minimal_version.py create mode 100644 test/test_product_technology_preview.py create mode 100644 test/test_provision_shard_topology.py create mode 100644 test/test_resource_range.py create mode 100644 test/test_schedule_type.py create mode 100644 test/test_security_group.py create mode 100644 test/test_sts_support_jump_role.py create mode 100644 test/test_subnet_network_verification.py create mode 100644 test/test_trusted_ip.py create mode 100644 test/test_upgrade_type.py create mode 100644 test/test_wildcard_policy.py diff --git a/README.md b/README.md index d748d65..778a011 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_aws_infrastructure_access_roles_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_aws_infrastructure_access_roles_get) | **GET** /api/clusters_mgmt/v1/aws_infrastructure_access_roles | *DefaultApi* | [**api_clusters_mgmt_v1_aws_inquiries_machine_types_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_machine_types_post) | **POST** /api/clusters_mgmt/v1/aws_inquiries/machine_types | *DefaultApi* | [**api_clusters_mgmt_v1_aws_inquiries_regions_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_regions_post) | **POST** /api/clusters_mgmt/v1/aws_inquiries/regions | +*DefaultApi* | [**api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post) | **POST** /api/clusters_mgmt/v1/aws_inquiries/sts_account_roles | *DefaultApi* | [**api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get) | **GET** /api/clusters_mgmt/v1/aws_inquiries/sts_credential_requests | *DefaultApi* | [**api_clusters_mgmt_v1_aws_inquiries_sts_policies_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_sts_policies_get) | **GET** /api/clusters_mgmt/v1/aws_inquiries/sts_policies | *DefaultApi* | [**api_clusters_mgmt_v1_aws_inquiries_vpcs_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_vpcs_post) | **POST** /api/clusters_mgmt/v1/aws_inquiries/vpcs | @@ -127,6 +128,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_addons_addoninstallation_id_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_addons_addoninstallation_id_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/addons/{addoninstallation_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_addons_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_addons_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/addons | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_addons_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_addons_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/addons | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants/{aws_infrastructure_access_role_grant_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants/{aws_infrastructure_access_role_grant_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants | @@ -175,6 +180,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users/{user_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/hibernate | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/hypershift | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/hypershift | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id} | @@ -194,6 +200,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses/{ingress_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons/{limited_support_reason_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons/{limited_support_reason_id} | @@ -223,6 +233,10 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_product_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product/minimal_versions | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product/minimal_versions/{minimal_version_id} | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product/technology_previews | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product/technology_previews/{technology_preview_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard | @@ -233,6 +247,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles/{operator_iam_role_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/sts_support_jump_role | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs/{tuning_config_id} | @@ -245,6 +260,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id} | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}/state | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}/state | +*DefaultApi* | [**api_clusters_mgmt_v1_clusters_cluster_id_vpc_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_vpc_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/vpc | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_get) | **GET** /api/clusters_mgmt/v1/clusters | *DefaultApi* | [**api_clusters_mgmt_v1_clusters_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_clusters_post) | **POST** /api/clusters_mgmt/v1/clusters | *DefaultApi* | [**api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete) | **DELETE** /api/clusters_mgmt/v1/dns_domains/{dns_domain_id} | @@ -261,6 +277,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_flavours_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_flavours_post) | **POST** /api/clusters_mgmt/v1/flavours | *DefaultApi* | [**api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/encryption_keys | *DefaultApi* | [**api_clusters_mgmt_v1_gcp_inquiries_key_rings_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_key_rings_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/key_rings | +*DefaultApi* | [**api_clusters_mgmt_v1_gcp_inquiries_machine_types_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_machine_types_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/machine_types | *DefaultApi* | [**api_clusters_mgmt_v1_gcp_inquiries_regions_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_regions_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/regions | *DefaultApi* | [**api_clusters_mgmt_v1_gcp_inquiries_vpcs_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_vpcs_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/vpcs | *DefaultApi* | [**api_clusters_mgmt_v1_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_get) | **GET** /api/clusters_mgmt/v1 | @@ -268,6 +285,8 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get) | **GET** /api/clusters_mgmt/v1/limited_support_reason_templates/{limited_support_reason_template_id} | *DefaultApi* | [**api_clusters_mgmt_v1_machine_types_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_machine_types_get) | **GET** /api/clusters_mgmt/v1/machine_types | *DefaultApi* | [**api_clusters_mgmt_v1_machine_types_machine_type_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_machine_types_machine_type_id_get) | **GET** /api/clusters_mgmt/v1/machine_types/{machine_type_id} | +*DefaultApi* | [**api_clusters_mgmt_v1_network_verifications_network_verification_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_network_verifications_network_verification_id_get) | **GET** /api/clusters_mgmt/v1/network_verifications/{network_verification_id} | +*DefaultApi* | [**api_clusters_mgmt_v1_network_verifications_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_network_verifications_post) | **POST** /api/clusters_mgmt/v1/network_verifications | *DefaultApi* | [**api_clusters_mgmt_v1_oidc_configs_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_oidc_configs_get) | **GET** /api/clusters_mgmt/v1/oidc_configs | *DefaultApi* | [**api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete) | **DELETE** /api/clusters_mgmt/v1/oidc_configs/{oidc_config_id} | *DefaultApi* | [**api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get) | **GET** /api/clusters_mgmt/v1/oidc_configs/{oidc_config_id} | @@ -278,11 +297,17 @@ Class | Method | HTTP request | Description *DefaultApi* | [**api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch) | **PATCH** /api/clusters_mgmt/v1/pending_delete_clusters/{pending_delete_cluster_id} | *DefaultApi* | [**api_clusters_mgmt_v1_products_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_products_get) | **GET** /api/clusters_mgmt/v1/products | *DefaultApi* | [**api_clusters_mgmt_v1_products_product_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_products_product_id_get) | **GET** /api/clusters_mgmt/v1/products/{product_id} | +*DefaultApi* | [**api_clusters_mgmt_v1_products_product_id_minimal_versions_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_products_product_id_minimal_versions_get) | **GET** /api/clusters_mgmt/v1/products/{product_id}/minimal_versions | +*DefaultApi* | [**api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get) | **GET** /api/clusters_mgmt/v1/products/{product_id}/minimal_versions/{minimal_version_id} | +*DefaultApi* | [**api_clusters_mgmt_v1_products_product_id_technology_previews_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_products_product_id_technology_previews_get) | **GET** /api/clusters_mgmt/v1/products/{product_id}/technology_previews | +*DefaultApi* | [**api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get) | **GET** /api/clusters_mgmt/v1/products/{product_id}/technology_previews/{technology_preview_id} | *DefaultApi* | [**api_clusters_mgmt_v1_provision_shards_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_provision_shards_get) | **GET** /api/clusters_mgmt/v1/provision_shards | *DefaultApi* | [**api_clusters_mgmt_v1_provision_shards_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_provision_shards_post) | **POST** /api/clusters_mgmt/v1/provision_shards | *DefaultApi* | [**api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete) | **DELETE** /api/clusters_mgmt/v1/provision_shards/{provision_shard_id} | *DefaultApi* | [**api_clusters_mgmt_v1_provision_shards_provision_shard_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_provision_shards_provision_shard_id_get) | **GET** /api/clusters_mgmt/v1/provision_shards/{provision_shard_id} | *DefaultApi* | [**api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch**](docs/DefaultApi.md#api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch) | **PATCH** /api/clusters_mgmt/v1/provision_shards/{provision_shard_id} | +*DefaultApi* | [**api_clusters_mgmt_v1_trusted_ip_addresses_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_trusted_ip_addresses_get) | **GET** /api/clusters_mgmt/v1/trusted_ip_addresses | +*DefaultApi* | [**api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get) | **GET** /api/clusters_mgmt/v1/trusted_ip_addresses/{trusted_ip_id} | *DefaultApi* | [**api_clusters_mgmt_v1_version_gates_get**](docs/DefaultApi.md#api_clusters_mgmt_v1_version_gates_get) | **GET** /api/clusters_mgmt/v1/version_gates | *DefaultApi* | [**api_clusters_mgmt_v1_version_gates_post**](docs/DefaultApi.md#api_clusters_mgmt_v1_version_gates_post) | **POST** /api/clusters_mgmt/v1/version_gates | *DefaultApi* | [**api_clusters_mgmt_v1_version_gates_version_gate_id_delete**](docs/DefaultApi.md#api_clusters_mgmt_v1_version_gates_version_gate_id_delete) | **DELETE** /api/clusters_mgmt/v1/version_gates/{version_gate_id} | @@ -293,6 +318,7 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AMIOverride](docs/AMIOverride.md) - [AWS](docs/AWS.md) - [AWSFlavour](docs/AWSFlavour.md) - [AWSInfrastructureAccessRole](docs/AWSInfrastructureAccessRole.md) @@ -301,7 +327,9 @@ Class | Method | HTTP request | Description - [AWSInfrastructureAccessRoleState](docs/AWSInfrastructureAccessRoleState.md) - [AWSMachinePool](docs/AWSMachinePool.md) - [AWSNodePool](docs/AWSNodePool.md) + - [AWSSTSAccountRole](docs/AWSSTSAccountRole.md) - [AWSSTSPolicy](docs/AWSSTSPolicy.md) + - [AWSSTSRole](docs/AWSSTSRole.md) - [AWSSpotMarketOptions](docs/AWSSpotMarketOptions.md) - [AWSVolume](docs/AWSVolume.md) - [AddOn](docs/AddOn.md) @@ -328,8 +356,12 @@ Class | Method | HTTP request | Description - [AlertSeverity](docs/AlertSeverity.md) - [AlertsInfo](docs/AlertsInfo.md) - [AuditLog](docs/AuditLog.md) + - [AutoscalerResourceLimits](docs/AutoscalerResourceLimits.md) + - [AutoscalerResourceLimitsGPULimit](docs/AutoscalerResourceLimitsGPULimit.md) + - [AutoscalerScaleDownConfig](docs/AutoscalerScaleDownConfig.md) - [AwsEtcdEncryption](docs/AwsEtcdEncryption.md) - [BillingModel](docs/BillingModel.md) + - [BillingModelItem](docs/BillingModelItem.md) - [ByoOidc](docs/ByoOidc.md) - [CCS](docs/CCS.md) - [CPUTotalNodeRoleOSMetricNode](docs/CPUTotalNodeRoleOSMetricNode.md) @@ -340,6 +372,7 @@ Class | Method | HTTP request | Description - [CloudVPC](docs/CloudVPC.md) - [Cluster](docs/Cluster.md) - [ClusterAPI](docs/ClusterAPI.md) + - [ClusterAutoscaler](docs/ClusterAutoscaler.md) - [ClusterConfigurationMode](docs/ClusterConfigurationMode.md) - [ClusterConsole](docs/ClusterConsole.md) - [ClusterCredentials](docs/ClusterCredentials.md) @@ -371,8 +404,10 @@ Class | Method | HTTP request | Description - [GCP](docs/GCP.md) - [GCPEncryptionKey](docs/GCPEncryptionKey.md) - [GCPFlavour](docs/GCPFlavour.md) + - [GCPImageOverride](docs/GCPImageOverride.md) - [GCPNetwork](docs/GCPNetwork.md) - [GCPVolume](docs/GCPVolume.md) + - [GcpSecurity](docs/GcpSecurity.md) - [GithubIdentityProvider](docs/GithubIdentityProvider.md) - [GitlabIdentityProvider](docs/GitlabIdentityProvider.md) - [GoogleIdentityProvider](docs/GoogleIdentityProvider.md) @@ -384,6 +419,7 @@ Class | Method | HTTP request | Description - [IdentityProvider](docs/IdentityProvider.md) - [IdentityProviderMappingMethod](docs/IdentityProviderMappingMethod.md) - [IdentityProviderType](docs/IdentityProviderType.md) + - [ImageOverrides](docs/ImageOverrides.md) - [InflightCheck](docs/InflightCheck.md) - [InflightCheckState](docs/InflightCheckState.md) - [Ingress](docs/Ingress.md) @@ -431,13 +467,18 @@ Class | Method | HTTP request | Description - [InlineResponse20045](docs/InlineResponse20045.md) - [InlineResponse20046](docs/InlineResponse20046.md) - [InlineResponse20047](docs/InlineResponse20047.md) + - [InlineResponse20048](docs/InlineResponse20048.md) + - [InlineResponse20049](docs/InlineResponse20049.md) - [InlineResponse2005](docs/InlineResponse2005.md) + - [InlineResponse20050](docs/InlineResponse20050.md) + - [InlineResponse20051](docs/InlineResponse20051.md) - [InlineResponse2006](docs/InlineResponse2006.md) - [InlineResponse2007](docs/InlineResponse2007.md) - [InlineResponse2008](docs/InlineResponse2008.md) - [InlineResponse2009](docs/InlineResponse2009.md) - [InstanceIAMRoles](docs/InstanceIAMRoles.md) - [KeyRing](docs/KeyRing.md) + - [KubeletConfig](docs/KubeletConfig.md) - [LDAPAttributes](docs/LDAPAttributes.md) - [LDAPIdentityProvider](docs/LDAPIdentityProvider.md) - [Label](docs/Label.md) @@ -455,7 +496,9 @@ Class | Method | HTTP request | Description - [ManagedService](docs/ManagedService.md) - [Manifest](docs/Manifest.md) - [Metadata](docs/Metadata.md) + - [NamespaceOwnershipPolicy](docs/NamespaceOwnershipPolicy.md) - [Network](docs/Network.md) + - [NetworkVerification](docs/NetworkVerification.md) - [NodeInfo](docs/NodeInfo.md) - [NodePool](docs/NodePool.md) - [NodePoolAutoscaling](docs/NodePoolAutoscaling.md) @@ -474,28 +517,39 @@ Class | Method | HTTP request | Description - [PrivateLinkPrincipal](docs/PrivateLinkPrincipal.md) - [PrivateLinkPrincipals](docs/PrivateLinkPrincipals.md) - [Product](docs/Product.md) + - [ProductMinimalVersion](docs/ProductMinimalVersion.md) + - [ProductTechnologyPreview](docs/ProductTechnologyPreview.md) - [ProvisionShard](docs/ProvisionShard.md) + - [ProvisionShardTopology](docs/ProvisionShardTopology.md) - [Proxy](docs/Proxy.md) + - [ResourceRange](docs/ResourceRange.md) - [RootVolume](docs/RootVolume.md) - [STS](docs/STS.md) - [STSCredentialRequest](docs/STSCredentialRequest.md) - [STSOperator](docs/STSOperator.md) + - [ScheduleType](docs/ScheduleType.md) + - [SecurityGroup](docs/SecurityGroup.md) - [ServerConfig](docs/ServerConfig.md) - [SocketTotalNodeRoleOSMetricNode](docs/SocketTotalNodeRoleOSMetricNode.md) - [SocketTotalsNodeRoleOSMetricNode](docs/SocketTotalsNodeRoleOSMetricNode.md) + - [StsSupportJumpRole](docs/StsSupportJumpRole.md) + - [SubnetNetworkVerification](docs/SubnetNetworkVerification.md) - [Subnetwork](docs/Subnetwork.md) - [Subscription](docs/Subscription.md) - [Syncset](docs/Syncset.md) - [Taint](docs/Taint.md) + - [TrustedIp](docs/TrustedIp.md) - [TuningConfig](docs/TuningConfig.md) - [UpgradePolicy](docs/UpgradePolicy.md) - [UpgradePolicyState](docs/UpgradePolicyState.md) - [UpgradePolicyStateValue](docs/UpgradePolicyStateValue.md) + - [UpgradeType](docs/UpgradeType.md) - [User](docs/User.md) - [Value](docs/Value.md) - [Version](docs/Version.md) - [VersionGate](docs/VersionGate.md) - [VersionGateAgreement](docs/VersionGateAgreement.md) + - [WildcardPolicy](docs/WildcardPolicy.md) ## Documentation For Authorization diff --git a/api_openshift_com.json b/api_openshift_com.json index 7ab64ac..fbe44cc 100644 --- a/api_openshift_com.json +++ b/api_openshift_com.json @@ -835,6 +835,89 @@ } } }, + "/api/clusters_mgmt/v1/aws_inquiries/sts_account_roles": { + "post": { + "parameters": [ + { + "name": "page", + "description": "Index of the returned page, where one corresponds to the first page. As this\ncollection doesn't support paging the result will always be `1`.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "size", + "description": "Number of items that will be contained in the returned page. As this collection\ndoesn't support paging or searching the result will always be the total number of\nbe the total number of STS account roles.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AWS" + } + } + } + }, + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "aws_account_id": { + "description": "The AWS Account Id for the STS Account Roles", + "type": "string" + }, + "items": { + "description": "Retrieved list of STS Account Roles", + "type": "array", + "items": { + "$ref": "#/components/schemas/AWSSTSAccountRole" + } + }, + "page": { + "description": "Index of the returned page, where one corresponds to the first page. As this\ncollection doesn't support paging the result will always be `1`.", + "type": "integer", + "format": "int32" + }, + "size": { + "description": "Number of items that will be contained in the returned page. As this collection\ndoesn't support paging or searching the result will always be the total number of\nbe the total number of STS account roles.", + "type": "integer", + "format": "int32" + }, + "total": { + "description": "Total number of items of the collection that match the search criteria,\nregardless of the size of the page. As this collection doesn't support paging or\nsearching the result will always be the total number of STS account roles", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, "/api/clusters_mgmt/v1/aws_inquiries/sts_credential_requests": { "get": { "description": "Retrieves the list of policies.", @@ -1077,6 +1160,14 @@ "get": { "description": "Retrieves the list of cloud providers.", "parameters": [ + { + "name": "fetchRegions", + "description": "If true, includes the regions on each provider in the output. Could slow request response time.", + "in": "query", + "schema": { + "type": "boolean" + } + }, { "name": "order", "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the cloud provider\ninstead of the names of the columns of a table. For example, in order to sort the\nclusters descending by name identifier the value should be:\n\n```sql\nname desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", @@ -1674,6 +1765,14 @@ }, "required": true }, + { + "name": "best_effort", + "description": "BestEffort flag is used to check if the cluster deletion should be best-effort mode or not.", + "in": "query", + "schema": { + "type": "boolean" + } + }, { "name": "deprovision", "description": "If false it will only delete from OCM but not the actual cluster resources.\nfalse is only allowed for OCP clusters. true by default.", @@ -2610,6 +2709,159 @@ } } }, + "/api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler": { + "delete": { + "description": "Deletes the cluster autoscaler.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "204": { + "description": "Success." + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "get": { + "description": "Retrieves the autoscaler of a cluster.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterAutoscaler" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "post": { + "description": "Creates a new cluster autoscaler object.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterAutoscaler" + } + } + } + }, + "responses": { + "201": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterAutoscaler" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "patch": { + "description": "Updates the cluster autoscaler.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterAutoscaler" + } + } + } + }, + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClusterAutoscaler" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, "/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration": { "get": { "description": "Retrieves the details of the configuration for the Private Link.", @@ -4885,11 +5137,9 @@ } } } - } - }, - "/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers": { - "post": { - "description": "Adds a new identity provider to the cluster.", + }, + "patch": { + "description": "Updates the Hypershift details for a single cluster.", "parameters": [ { "name": "cluster_id", @@ -4904,18 +5154,18 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/IdentityProvider" + "$ref": "#/components/schemas/HypershiftConfig" } } } }, "responses": { - "201": { + "200": { "description": "Success.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/IdentityProvider" + "$ref": "#/components/schemas/HypershiftConfig" } } } @@ -4931,9 +5181,11 @@ } } } - }, - "get": { - "description": "Retrieves the list of identity providers.", + } + }, + "/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers": { + "post": { + "description": "Adds a new identity provider to the cluster.", "parameters": [ { "name": "cluster_id", @@ -4942,13 +5194,57 @@ "type": "string" }, "required": true - }, - { - "name": "page", - "description": "Index of the requested page, where one corresponds to the first page.", - "in": "query", - "schema": { - "type": "integer", + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IdentityProvider" + } + } + } + }, + "responses": { + "201": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/IdentityProvider" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "get": { + "description": "Retrieves the list of identity providers.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + }, + { + "name": "page", + "description": "Index of the requested page, where one corresponds to the first page.", + "in": "query", + "schema": { + "type": "integer", "format": "int32" } }, @@ -5966,6 +6262,159 @@ } } }, + "/api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config": { + "delete": { + "description": "Deletes the cluster KubeletConfig", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "204": { + "description": "Success." + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "get": { + "description": "Retrieves the KubeletConfig for a cluster", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KubeletConfig" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "post": { + "description": "Creates a new cluster KubeletConfig", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KubeletConfig" + } + } + } + }, + "responses": { + "201": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KubeletConfig" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "patch": { + "description": "Updates the existing cluster KubeletConfig", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KubeletConfig" + } + } + } + }, + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KubeletConfig" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, "/api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons": { "post": { "description": "Adds a new reason to the cluster.", @@ -7386,9 +7835,9 @@ } } }, - "/api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard": { - "delete": { - "description": "Delete the provision shard.", + "/api/clusters_mgmt/v1/clusters/{cluster_id}/product/minimal_versions": { + "get": { + "description": "Retrieves the list of product minimal versions.", "parameters": [ { "name": "cluster_id", @@ -7397,34 +7846,40 @@ "type": "string" }, "required": true - } - ], - "responses": { - "204": { - "description": "Success." }, - "default": { - "description": "Error.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } + { + "name": "order", + "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the product instead of\nthe names of the columns of a table. For example, in order to sort the products\ndescending by name the value should be:\n\n```sql\nname desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", + "in": "query", + "schema": { + "type": "string" } - } - } - }, - "get": { - "description": "Retrieves the details of the provision shard.", - "parameters": [ + }, { - "name": "cluster_id", - "in": "path", + "name": "page", + "description": "Index of the requested page, where one corresponds to the first page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "search", + "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of an\nSQL statement, but using the names of the attributes of the product instead of\nthe names of the columns of a table. For example, in order to retrieve all the\nproducts with a name starting with `my` the value should be:\n\n```sql\nname like 'my%'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the products\nthat the user has permission to see will be returned.", + "in": "query", "schema": { "type": "string" - }, - "required": true + } + }, + { + "name": "size", + "description": "Maximum number of items that will be contained in the returned page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } } ], "responses": { @@ -7433,12 +7888,286 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProvisionShard" - } - } - } - }, - "default": { + "type": "object", + "properties": { + "items": { + "description": "Retrieved list of product minimal versions.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductMinimalVersion" + } + }, + "page": { + "description": "Index of the requested page, where one corresponds to the first page.", + "type": "integer", + "format": "int32" + }, + "size": { + "description": "Maximum number of items that will be contained in the returned page.", + "type": "integer", + "format": "int32" + }, + "total": { + "description": "Total number of items of the collection that match the search criteria,\nregardless of the size of the page.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/clusters/{cluster_id}/product/minimal_versions/{minimal_version_id}": { + "get": { + "description": "Retrieves the details of the product minimal version.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + }, + { + "name": "minimal_version_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductMinimalVersion" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/clusters/{cluster_id}/product/technology_previews": { + "get": { + "description": "Retrieves the list of product technology previews.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + }, + { + "name": "order", + "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the product instead of\nthe names of the columns of a table. For example, in order to sort the products\ndescending by name the value should be:\n\n```sql\nname desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "page", + "description": "Index of the requested page, where one corresponds to the first page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "search", + "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of an\nSQL statement, but using the names of the attributes of the product instead of\nthe names of the columns of a table. For example, in order to retrieve all the\nproducts with a name starting with `my` the value should be:\n\n```sql\nname like 'my%'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the products\nthat the user has permission to see will be returned.", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "size", + "description": "Maximum number of items that will be contained in the returned page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "description": "Retrieved list of product technology previews.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductTechnologyPreview" + } + }, + "page": { + "description": "Index of the requested page, where one corresponds to the first page.", + "type": "integer", + "format": "int32" + }, + "size": { + "description": "Maximum number of items that will be contained in the returned page.", + "type": "integer", + "format": "int32" + }, + "total": { + "description": "Total number of items of the collection that match the search criteria,\nregardless of the size of the page.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/clusters/{cluster_id}/product/technology_previews/{technology_preview_id}": { + "get": { + "description": "Retrieves the details of the product technology preview.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + }, + { + "name": "technology_preview_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProductTechnologyPreview" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard": { + "delete": { + "description": "Delete the provision shard.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "204": { + "description": "Success." + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "get": { + "description": "Retrieves the details of the provision shard.", + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProvisionShard" + } + } + } + }, + "default": { "description": "Error.", "content": { "application/json": { @@ -7766,6 +8495,42 @@ } } }, + "/api/clusters_mgmt/v1/clusters/{cluster_id}/sts_support_jump_role": { + "get": { + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StsSupportJumpRole" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, "/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs": { "post": { "description": "Adds a new tuning config to the cluster.", @@ -8350,14 +9115,50 @@ } } } - }, + }, + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpgradePolicyState" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/clusters/{cluster_id}/vpc": { + "get": { + "parameters": [ + { + "name": "cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], "responses": { "200": { "description": "Success.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpgradePolicyState" + "$ref": "#/components/schemas/CloudVPC" } } } @@ -9054,6 +9855,86 @@ } } }, + "/api/clusters_mgmt/v1/gcp_inquiries/machine_types": { + "post": { + "description": "Retrieves the list of machine types in the provided region.", + "parameters": [ + { + "name": "page", + "description": "Index of the requested page, where one corresponds to the first page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "size", + "description": "Maximum number of items that will be contained in the returned page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CloudProviderData" + } + } + } + }, + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "description": "Retrieved list of machine types.", + "type": "array", + "items": { + "$ref": "#/components/schemas/MachineType" + } + }, + "page": { + "description": "Index of the requested page, where one corresponds to the first page.", + "type": "integer", + "format": "int32" + }, + "size": { + "description": "Maximum number of items that will be contained in the returned page.", + "type": "integer", + "format": "int32" + }, + "total": { + "description": "Total number of items of the collection that match the search criteria,\nregardless of the size of the page.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, "/api/clusters_mgmt/v1/gcp_inquiries/regions": { "post": { "description": "Retrieves the list of available regions of the cloud provider.\nIMPORTANT: This list doesn't currently support paging or searching, so the returned\n`page` will always be 1 and `size` and `total` will always be the total number of available regions\nof the provider.", @@ -9285,12 +10166,209 @@ } } }, - "/api/clusters_mgmt/v1/limited_support_reason_templates/{limited_support_reason_template_id}": { + "/api/clusters_mgmt/v1/limited_support_reason_templates/{limited_support_reason_template_id}": { + "get": { + "description": "Retrieves the details of the template.", + "parameters": [ + { + "name": "limited_support_reason_template_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LimitedSupportReasonTemplate" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/machine_types": { + "get": { + "description": "Retrieves the list of machine types.", + "parameters": [ + { + "name": "order", + "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the machine type\ninstead of the names of the columns of a table. For example, in order to sort the\nmachine types descending by name identifier the value should be:\n\n```sql\nname desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "page", + "description": "Index of the requested page, where one corresponds to the first page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "search", + "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of a\nSQL statement, but using the names of the attributes of the machine type\ninstead of the names of the columns of a table. For example, in order to retrieve\nall the machine types with a name starting with `A` the value should be:\n\n```sql\nname like 'A%'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the machine\ntypes that the user has permission to see will be returned.", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "size", + "description": "Maximum number of items that will be contained in the returned page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "description": "Retrieved list of cloud providers.", + "type": "array", + "items": { + "$ref": "#/components/schemas/MachineType" + } + }, + "page": { + "description": "Index of the requested page, where one corresponds to the first page.", + "type": "integer", + "format": "int32" + }, + "size": { + "description": "Maximum number of items that will be contained in the returned page.", + "type": "integer", + "format": "int32" + }, + "total": { + "description": "Total number of items of the collection that match the search criteria,\nregardless of the size of the page.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/machine_types/{machine_type_id}": { + "get": { + "description": "Retrieves the details of the machine type.", + "parameters": [ + { + "name": "machine_type_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MachineType" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/network_verifications": { + "post": { + "description": "Creates an entry for a network verification for each subnet supplied setting then to initial state.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NetworkVerification" + } + } + } + }, + "responses": { + "201": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NetworkVerification" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/network_verifications/{network_verification_id}": { "get": { - "description": "Retrieves the details of the template.", + "description": "Retrieves the details of a subnet network verification.", "parameters": [ { - "name": "limited_support_reason_template_id", + "name": "network_verification_id", "in": "path", "schema": { "type": "string" @@ -9304,7 +10382,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/LimitedSupportReasonTemplate" + "$ref": "#/components/schemas/SubnetNetworkVerification" } } } @@ -9322,18 +10400,44 @@ } } }, - "/api/clusters_mgmt/v1/machine_types": { - "get": { - "description": "Retrieves the list of machine types.", - "parameters": [ - { - "name": "order", - "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the machine type\ninstead of the names of the columns of a table. For example, in order to sort the\nmachine types descending by name identifier the value should be:\n\n```sql\nname desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", - "in": "query", - "schema": { - "type": "string" + "/api/clusters_mgmt/v1/oidc_configs": { + "post": { + "description": "Creates a hosting under Red Hat's S3 bucket for byo oidc configuration.", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OidcConfig" + } + } + } + }, + "responses": { + "201": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OidcConfig" + } + } } }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, + "get": { + "description": "Retrieves the list of oidc configs.", + "parameters": [ { "name": "page", "description": "Index of the requested page, where one corresponds to the first page.", @@ -9343,17 +10447,9 @@ "format": "int32" } }, - { - "name": "search", - "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of a\nSQL statement, but using the names of the attributes of the machine type\ninstead of the names of the columns of a table. For example, in order to retrieve\nall the machine types with a name starting with `A` the value should be:\n\n```sql\nname like 'A%'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the machine\ntypes that the user has permission to see will be returned.", - "in": "query", - "schema": { - "type": "string" - } - }, { "name": "size", - "description": "Maximum number of items that will be contained in the returned page.", + "description": "Number of items contained in the returned page.", "in": "query", "schema": { "type": "integer", @@ -9370,10 +10466,10 @@ "type": "object", "properties": { "items": { - "description": "Retrieved list of cloud providers.", + "description": "Retrieved list of identity providers.", "type": "array", "items": { - "$ref": "#/components/schemas/MachineType" + "$ref": "#/components/schemas/OidcConfig" } }, "page": { @@ -9382,12 +10478,12 @@ "format": "int32" }, "size": { - "description": "Maximum number of items that will be contained in the returned page.", + "description": "Number of items contained in the returned page.", "type": "integer", "format": "int32" }, "total": { - "description": "Total number of items of the collection that match the search criteria,\nregardless of the size of the page.", + "description": "Total number of items of the collection.", "type": "integer", "format": "int32" } @@ -9409,12 +10505,40 @@ } } }, - "/api/clusters_mgmt/v1/machine_types/{machine_type_id}": { + "/api/clusters_mgmt/v1/oidc_configs/{oidc_config_id}": { + "delete": { + "description": "Deletes the OidcConfig.", + "parameters": [ + { + "name": "oidc_config_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "204": { + "description": "Success." + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + }, "get": { - "description": "Retrieves the details of the machine type.", + "description": "Retrieves the details of an OidcConfig.", "parameters": [ { - "name": "machine_type_id", + "name": "oidc_config_id", "in": "path", "schema": { "type": "string" @@ -9428,7 +10552,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MachineType" + "$ref": "#/components/schemas/OidcConfig" } } } @@ -9444,11 +10568,19 @@ } } } - } - }, - "/api/clusters_mgmt/v1/oidc_configs": { - "post": { - "description": "Creates a hosting under Red Hat's S3 bucket for byo oidc configuration", + }, + "patch": { + "description": "Updates attributes of an OidcConfig.", + "parameters": [ + { + "name": "oidc_config_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], "requestBody": { "content": { "application/json": { @@ -9459,7 +10591,7 @@ } }, "responses": { - "201": { + "200": { "description": "Success.", "content": { "application/json": { @@ -9480,10 +10612,20 @@ } } } - }, + } + }, + "/api/clusters_mgmt/v1/pending_delete_clusters": { "get": { - "description": "Retrieves the list of oidc configs.", + "description": "Retrieves the list of pending delete clusters.", "parameters": [ + { + "name": "order", + "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the pending delete cluster instead of\nthe names of the columns of a table. For example, in order to sort the pending delete clusters\ndescending by creation timestamp (i.e. their deletion time) the value should be:\n\n```sql\ncreation_timestamp desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", + "in": "query", + "schema": { + "type": "string" + } + }, { "name": "page", "description": "Index of the requested page, where one corresponds to the first page.", @@ -9493,9 +10635,17 @@ "format": "int32" } }, + { + "name": "search", + "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of a\nSQL statement, but using the names of the attributes of the pending delete cluster instead of\nthe names of the columns of a table. For example, in order to retrieve all the\npending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required:\n\n```sql\ncreation_timestamp > '2023-03-01T00:00:00Z'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the\npending delete clusters that the user has permission to see will be returned.", + "in": "query", + "schema": { + "type": "string" + } + }, { "name": "size", - "description": "Number of items contained in the returned page.", + "description": "Maximum number of items that will be contained in the returned page.", "in": "query", "schema": { "type": "integer", @@ -9512,10 +10662,10 @@ "type": "object", "properties": { "items": { - "description": "Retrieved list of identity providers.", + "description": "Retrieved list of pending delete clusters.", "type": "array", "items": { - "$ref": "#/components/schemas/OidcConfig" + "$ref": "#/components/schemas/PendingDeleteCluster" } }, "page": { @@ -9524,12 +10674,12 @@ "format": "int32" }, "size": { - "description": "Number of items contained in the returned page.", + "description": "Maximum number of items that will be contained in the returned page.", "type": "integer", "format": "int32" }, "total": { - "description": "Total number of items of the collection.", + "description": "Total number of items of the collection that match the search criteria,\nregardless of the size of the page.", "type": "integer", "format": "int32" } @@ -9551,12 +10701,12 @@ } } }, - "/api/clusters_mgmt/v1/oidc_configs/{oidc_config_id}": { - "delete": { - "description": "Deletes the OidcConfig.", + "/api/clusters_mgmt/v1/pending_delete_clusters/{pending_delete_cluster_id}": { + "get": { + "description": "Retrieves the details of the pending delete cluster.", "parameters": [ { - "name": "oidc_config_id", + "name": "pending_delete_cluster_id", "in": "path", "schema": { "type": "string" @@ -9565,8 +10715,15 @@ } ], "responses": { - "204": { - "description": "Success." + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingDeleteCluster" + } + } + } }, "default": { "description": "Error.", @@ -9580,16 +10737,88 @@ } } }, + "patch": { + "description": "Updates the pending delete cluster entry.", + "parameters": [ + { + "name": "pending_delete_cluster_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingDeleteCluster" + } + } + } + }, + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingDeleteCluster" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/products": { "get": { - "description": "Retrieves the details of an OidcConfig.", + "description": "Retrieves the list of products.", "parameters": [ { - "name": "oidc_config_id", - "in": "path", + "name": "order", + "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the product instead of\nthe names of the columns of a table. For example, in order to sort the products\ndescending by name the value should be:\n\n```sql\nname desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "page", + "description": "Index of the requested page, where one corresponds to the first page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "search", + "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of an\nSQL statement, but using the names of the attributes of the product instead of\nthe names of the columns of a table. For example, in order to retrieve all the\nproducts with a name starting with `my` the value should be:\n\n```sql\nname like 'my%'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the products\nthat the user has permission to see will be returned.", + "in": "query", "schema": { "type": "string" - }, - "required": true + } + }, + { + "name": "size", + "description": "Maximum number of items that will be contained in the returned page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } } ], "responses": { @@ -9598,7 +10827,31 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OidcConfig" + "type": "object", + "properties": { + "items": { + "description": "Retrieved list of products.", + "type": "array", + "items": { + "$ref": "#/components/schemas/Product" + } + }, + "page": { + "description": "Index of the requested page, where one corresponds to the first page.", + "type": "integer", + "format": "int32" + }, + "size": { + "description": "Maximum number of items that will be contained in the returned page.", + "type": "integer", + "format": "int32" + }, + "total": { + "description": "Total number of items of the collection that match the search criteria,\nregardless of the size of the page.", + "type": "integer", + "format": "int32" + } + } } } } @@ -9614,12 +10867,14 @@ } } } - }, - "patch": { - "description": "Updates attributes of an OidcConfig.", + } + }, + "/api/clusters_mgmt/v1/products/{product_id}": { + "get": { + "description": "Retrieves the details of the product.", "parameters": [ { - "name": "oidc_config_id", + "name": "product_id", "in": "path", "schema": { "type": "string" @@ -9627,22 +10882,13 @@ "required": true } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/OidcConfig" - } - } - } - }, "responses": { "200": { "description": "Success.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OidcConfig" + "$ref": "#/components/schemas/Product" } } } @@ -9660,13 +10906,21 @@ } } }, - "/api/clusters_mgmt/v1/pending_delete_clusters": { + "/api/clusters_mgmt/v1/products/{product_id}/minimal_versions": { "get": { - "description": "Retrieves the list of pending delete clusters.", + "description": "Retrieves the list of product minimal versions.", "parameters": [ + { + "name": "product_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + }, { "name": "order", - "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the pending delete cluster instead of\nthe names of the columns of a table. For example, in order to sort the pending delete clusters\ndescending by creation timestamp (i.e. their deletion time) the value should be:\n\n```sql\ncreation_timestamp desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", + "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the product instead of\nthe names of the columns of a table. For example, in order to sort the products\ndescending by name the value should be:\n\n```sql\nname desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", "in": "query", "schema": { "type": "string" @@ -9683,7 +10937,7 @@ }, { "name": "search", - "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of a\nSQL statement, but using the names of the attributes of the pending delete cluster instead of\nthe names of the columns of a table. For example, in order to retrieve all the\npending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required:\n\n```sql\ncreation_timestamp > '2023-03-01T00:00:00Z'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the\npending delete clusters that the user has permission to see will be returned.", + "description": "Search criteria.\n\nThe syntax of this parameter is similar to the syntax of the _where_ clause of an\nSQL statement, but using the names of the attributes of the product instead of\nthe names of the columns of a table. For example, in order to retrieve all the\nproducts with a name starting with `my` the value should be:\n\n```sql\nname like 'my%'\n```\n\nIf the parameter isn't provided, or if the value is empty, then all the products\nthat the user has permission to see will be returned.", "in": "query", "schema": { "type": "string" @@ -9708,10 +10962,10 @@ "type": "object", "properties": { "items": { - "description": "Retrieved list of pending delete clusters.", + "description": "Retrieved list of product minimal versions.", "type": "array", "items": { - "$ref": "#/components/schemas/PendingDeleteCluster" + "$ref": "#/components/schemas/ProductMinimalVersion" } }, "page": { @@ -9747,47 +11001,20 @@ } } }, - "/api/clusters_mgmt/v1/pending_delete_clusters/{pending_delete_cluster_id}": { + "/api/clusters_mgmt/v1/products/{product_id}/minimal_versions/{minimal_version_id}": { "get": { - "description": "Retrieves the details of the pending delete cluster.", + "description": "Retrieves the details of the product minimal version.", "parameters": [ { - "name": "pending_delete_cluster_id", + "name": "product_id", "in": "path", "schema": { "type": "string" }, "required": true - } - ], - "responses": { - "200": { - "description": "Success.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PendingDeleteCluster" - } - } - } }, - "default": { - "description": "Error.", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Error" - } - } - } - } - } - }, - "patch": { - "description": "Updates the pending delete cluster entry.", - "parameters": [ { - "name": "pending_delete_cluster_id", + "name": "minimal_version_id", "in": "path", "schema": { "type": "string" @@ -9795,22 +11022,13 @@ "required": true } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PendingDeleteCluster" - } - } - } - }, "responses": { "200": { "description": "Success.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PendingDeleteCluster" + "$ref": "#/components/schemas/ProductMinimalVersion" } } } @@ -9828,10 +11046,18 @@ } } }, - "/api/clusters_mgmt/v1/products": { + "/api/clusters_mgmt/v1/products/{product_id}/technology_previews": { "get": { - "description": "Retrieves the list of products.", + "description": "Retrieves the list of product technology previews.", "parameters": [ + { + "name": "product_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + }, { "name": "order", "description": "Order criteria.\n\nThe syntax of this parameter is similar to the syntax of the _order by_ clause of\na SQL statement, but using the names of the attributes of the product instead of\nthe names of the columns of a table. For example, in order to sort the products\ndescending by name the value should be:\n\n```sql\nname desc\n```\n\nIf the parameter isn't provided, or if the value is empty, then the order of the\nresults is undefined.", @@ -9876,10 +11102,10 @@ "type": "object", "properties": { "items": { - "description": "Retrieved list of products.", + "description": "Retrieved list of product technology previews.", "type": "array", "items": { - "$ref": "#/components/schemas/Product" + "$ref": "#/components/schemas/ProductTechnologyPreview" } }, "page": { @@ -9915,9 +11141,9 @@ } } }, - "/api/clusters_mgmt/v1/products/{product_id}": { + "/api/clusters_mgmt/v1/products/{product_id}/technology_previews/{technology_preview_id}": { "get": { - "description": "Retrieves the details of the product.", + "description": "Retrieves the details of the product technology preview.", "parameters": [ { "name": "product_id", @@ -9926,6 +11152,14 @@ "type": "string" }, "required": true + }, + { + "name": "technology_preview_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true } ], "responses": { @@ -9934,7 +11168,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Product" + "$ref": "#/components/schemas/ProductTechnologyPreview" } } } @@ -10132,7 +11366,124 @@ "description": "Updates the details of the provision shard.", "parameters": [ { - "name": "provision_shard_id", + "name": "provision_shard_id", + "in": "path", + "schema": { + "type": "string" + }, + "required": true + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProvisionShard" + } + } + } + }, + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProvisionShard" + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/trusted_ip_addresses": { + "get": { + "description": "Retrieves the list of trusted ip addresses.", + "parameters": [ + { + "name": "page", + "description": "Index of the requested page, where one corresponds to the first page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "size", + "description": "Number of items contained in the returned page.", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "items": { + "description": "Retrieved list of trusted ip addresses.", + "type": "array", + "items": { + "$ref": "#/components/schemas/TrustedIp" + } + }, + "page": { + "description": "Index of the requested page, where one corresponds to the first page.", + "type": "integer", + "format": "int32" + }, + "size": { + "description": "Number of items contained in the returned page.", + "type": "integer", + "format": "int32" + }, + "total": { + "description": "Total number of items of the collection.", + "type": "integer", + "format": "int32" + } + } + } + } + } + }, + "default": { + "description": "Error.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + } + } + }, + "/api/clusters_mgmt/v1/trusted_ip_addresses/{trusted_ip_id}": { + "get": { + "description": "Retrieves the trusted ip adresses.", + "parameters": [ + { + "name": "trusted_ip_id", "in": "path", "schema": { "type": "string" @@ -10140,22 +11491,13 @@ "required": true } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProvisionShard" - } - } - } - }, "responses": { "200": { "description": "Success.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProvisionShard" + "$ref": "#/components/schemas/TrustedIp" } } } @@ -10495,6 +11837,35 @@ } } }, + "AMIOverride": { + "description": "AMIOverride specifies what Amazon Machine Image should be used for a particular product and region.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'AMIOverride' if this is a complete object or 'AMIOverrideLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "ami": { + "description": "AMI is the id of the Amazon Machine Image.", + "type": "string" + }, + "product": { + "description": "Link to the product type.", + "$ref": "#/components/schemas/Product" + }, + "region": { + "description": "Link to the cloud provider region.", + "$ref": "#/components/schemas/CloudRegion" + } + } + }, "AWS": { "description": "_Amazon Web Services_ specific settings of a cluster.", "properties": { @@ -10514,6 +11885,27 @@ "description": "AWS account identifier.", "type": "string" }, + "additional_compute_security_group_ids": { + "description": "Additional AWS Security Groups to be added to default worker (compute) machine pool.", + "type": "array", + "items": { + "type": "string" + } + }, + "additional_control_plane_security_group_ids": { + "description": "Additional AWS Security Groups to be added to default control plane machine pool.", + "type": "array", + "items": { + "type": "string" + } + }, + "additional_infra_security_group_ids": { + "description": "Additional AWS Security Groups to be added to default infra machine pool.", + "type": "array", + "items": { + "type": "string" + } + }, "audit_log": { "description": "Audit log forwarding configuration", "$ref": "#/components/schemas/AuditLog" @@ -10530,6 +11922,14 @@ "description": "Related etcd encryption configuration", "$ref": "#/components/schemas/AwsEtcdEncryption" }, + "private_hosted_zone_id": { + "description": "ID of private hosted zone.", + "type": "string" + }, + "private_hosted_zone_role_arn": { + "description": "Role ARN for private hosted zone.", + "type": "string" + }, "private_link": { "description": "Sets cluster to be inaccessible externally.", "type": "boolean" @@ -10688,6 +12088,13 @@ "description": "Self link.", "type": "string" }, + "additional_security_group_ids": { + "description": "Additional AWS Security Groups to be added machine pool. Note that machine pools can only be worker node at the time.", + "type": "array", + "items": { + "type": "string" + } + }, "spot_market_options": { "description": "Use spot instances on this machine pool to reduce cost.", "$ref": "#/components/schemas/AWSSpotMarketOptions" @@ -10763,6 +12170,22 @@ } } }, + "AWSSTSAccountRole": { + "description": "Representation of an sts account role for a rosa cluster", + "properties": { + "items": { + "description": "The list of STS Roles for this Account Role", + "type": "array", + "items": { + "$ref": "#/components/schemas/AWSSTSRole" + } + }, + "prefix": { + "description": "The Prefix for this Account Role", + "type": "string" + } + } + }, "AWSSTSPolicy": { "description": "Representation of an sts policies for rosa cluster", "properties": { @@ -10784,6 +12207,35 @@ } } }, + "AWSSTSRole": { + "description": "Representation of an sts role for a rosa cluster", + "properties": { + "hcpManagedPolicies": { + "description": "Does this Role have HCP Managed Policies?", + "type": "boolean" + }, + "isAdmin": { + "description": "Does this role have Admin permission?", + "type": "boolean" + }, + "managedPolicies": { + "description": "Does this Role have Managed Policies?", + "type": "boolean" + }, + "arn": { + "description": "The AWS ARN for this Role", + "type": "string" + }, + "type": { + "description": "The type of this Role", + "type": "string" + }, + "roleVersion": { + "description": "The Openshift Version for this Role", + "type": "string" + } + } + }, "CCS": { "properties": { "kind": { @@ -10868,18 +12320,22 @@ "description": "Self link.", "type": "string" }, - "cluster_link": { + "cluster": { "description": "Link to the cluster that is registered with the DNS domain (optional).", "$ref": "#/components/schemas/ClusterLink" }, - "organization_link": { + "organization": { "description": "Link to the organization that reserved the DNS domain.", "$ref": "#/components/schemas/OrganizationLink" }, - "reserved_at": { + "reserved_at_timestamp": { "description": "Date and time when the DNS domain was reserved.", "type": "string", "format": "date-time" + }, + "user_defined": { + "description": "Indicates if this dns domain is user defined.", + "type": "boolean" } } }, @@ -10918,6 +12374,10 @@ "description": "GCP project identifier.", "type": "string" }, + "security": { + "description": "GCP Security Settings", + "$ref": "#/components/schemas/GcpSecurity" + }, "token_uri": { "description": "GCP token uri", "type": "string" @@ -10978,6 +12438,39 @@ } } }, + "GCPImageOverride": { + "description": "GcpImageOverride specifies what a GCP VM Image should be used for a particular product and billing model", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'GCPImageOverride' if this is a complete object or 'GCPImageOverrideLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "billing_model": { + "description": "Link to the billing model.", + "$ref": "#/components/schemas/BillingModelItem" + }, + "image_id": { + "description": "ImageID is the id of the Google Cloud Platform image.", + "type": "string" + }, + "product": { + "description": "Link to the product type.", + "$ref": "#/components/schemas/Product" + }, + "project_id": { + "description": "ProjectID is the id of the Google Cloud Platform project that hosts the image.", + "type": "string" + } + } + }, "GCPNetwork": { "description": "GCP Network configuration of a cluster.", "properties": { @@ -10985,6 +12478,10 @@ "description": "VPC mame used by the cluster.", "type": "string" }, + "vpc_project_id": { + "description": "The name of the host project where the shared VPC exists.", + "type": "string" + }, "compute_subnet": { "description": "Compute subnet used by the cluster.", "type": "string" @@ -11031,8 +12528,12 @@ "description": "ID for a secondary user in the _HTPasswd_ data file.", "type": "string" }, + "hashed_password": { + "description": "HTPasswd Hashed Password for a user in the _HTPasswd_ data file.\nThe value of this field is set as-is in the _HTPasswd_ data file for the HTPasswd IDP", + "type": "string" + }, "password": { - "description": "Password for a secondary user in the _HTPasswd_ data file.", + "description": "Password in plain-text for a user in the _HTPasswd_ data file.\nThe value of this field is hashed before setting it in the _HTPasswd_ data file for the HTPasswd IDP", "type": "string" }, "username": { @@ -11131,7 +12632,7 @@ "type": "boolean" }, "oidc_config": { - "description": "Registered Oidc Config, if available holds information related to the oidc config", + "description": "Registered Oidc Config, if available holds information related to the oidc config.", "$ref": "#/components/schemas/OidcConfig" }, "operator_iam_roles": { @@ -11945,6 +13446,69 @@ } } }, + "AutoscalerResourceLimits": { + "properties": { + "gpus": { + "description": "Minimum and maximum number of different GPUs in cluster, in the format ::.\nCluster autoscaler will not scale the cluster beyond these numbers. Can be passed multiple times.", + "type": "array", + "items": { + "$ref": "#/components/schemas/AutoscalerResourceLimitsGPULimit" + } + }, + "cores": { + "description": "Minimum and maximum number of cores in cluster, in the format :.\nCluster autoscaler will not scale the cluster beyond these numbers.", + "$ref": "#/components/schemas/ResourceRange" + }, + "max_nodes_total": { + "description": "Maximum number of nodes in all node groups.\nCluster autoscaler will not grow the cluster beyond this number.", + "type": "integer", + "format": "int32" + }, + "memory": { + "description": "Minimum and maximum number of gigabytes of memory in cluster, in the format :.\nCluster autoscaler will not scale the cluster beyond these numbers.", + "$ref": "#/components/schemas/ResourceRange" + } + } + }, + "AutoscalerResourceLimitsGPULimit": { + "properties": { + "range": { + "$ref": "#/components/schemas/ResourceRange" + }, + "type": { + "description": "The type of GPU to associate with the minimum and maximum limits.\nThis value is used by the Cluster Autoscaler to identify Nodes that will have GPU capacity by searching\nfor it as a label value on the Node objects. For example, Nodes that carry the label key\n`cluster-api/accelerator` with the label value being the same as the Type field will be counted towards\nthe resource limits by the Cluster Autoscaler.", + "type": "string" + } + } + }, + "AutoscalerScaleDownConfig": { + "properties": { + "delay_after_add": { + "description": "How long after scale up that scale down evaluation resumes.", + "type": "string" + }, + "delay_after_delete": { + "description": "How long after node deletion that scale down evaluation resumes, defaults to scan-interval.", + "type": "string" + }, + "delay_after_failure": { + "description": "How long after scale down failure that scale down evaluation resumes.", + "type": "string" + }, + "enabled": { + "description": "Should cluster-autoscaler scale down the cluster.", + "type": "boolean" + }, + "unneeded_time": { + "description": "How long a node should be unneeded before it is eligible for scale down.", + "type": "string" + }, + "utilization_threshold": { + "description": "Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down.", + "type": "string" + } + } + }, "AwsEtcdEncryption": { "description": "Contains the necessary attributes to support etcd encryption for AWS based clusters.", "properties": { @@ -11960,11 +13524,45 @@ "enum": [ "marketplace", "marketplace-aws", + "marketplace-gcp", "marketplace-rhm", "marketplace-azure", "standard" ] }, + "BillingModelItem": { + "description": "BillingModelItem represents a billing model", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'BillingModelItem' if this is a complete object or 'BillingModelItemLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "billing_model_type": { + "description": "BillingModelType is the type of the BillingModel. e.g. standard, marketplace.", + "type": "string" + }, + "description": { + "description": "Single line description of the billing model.", + "type": "string" + }, + "display_name": { + "description": "User friendly display name of the billing model.", + "type": "string" + }, + "marketplace": { + "description": "Indicates the marketplace of the billing model. e.g. gcp, aws, etc.", + "type": "string" + } + } + }, "ByoOidc": { "description": "ByoOidc configuration.", "properties": { @@ -11977,21 +13575,36 @@ "CloudVPC": { "description": "Description of a cloud provider virtual private cloud.", "properties": { + "aws_security_groups": { + "description": "List of AWS security groups with details.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SecurityGroup" + } + }, "aws_subnets": { - "description": "List of subnetworks", + "description": "List of AWS subnetworks with details.", "type": "array", "items": { "$ref": "#/components/schemas/Subnetwork" } }, + "cidr_block": { + "description": "CIDR block of the virtual private cloud.", + "type": "string" + }, "id": { - "description": "ID of virtual private cloud", + "description": "ID of virtual private cloud.", "type": "string" }, "name": { - "description": "Name of virtual private cloud according to its `Name` tag on AWS", + "description": "Name of virtual private cloud according to its `Name` tag on AWS.", "type": "string" }, + "red_hat_managed": { + "description": "If the resource is RH managed.", + "type": "boolean" + }, "subnets": { "description": "List of subnets used by the virtual private cloud.", "type": "array", @@ -12023,6 +13636,13 @@ "name": { "description": "Human friendly identifier of the cloud provider, for example `aws`.", "type": "string" + }, + "regions": { + "description": "(optional) Provider's regions - only included when listing providers with `fetchRegions=true`.", + "type": "array", + "items": { + "$ref": "#/components/schemas/CloudRegion" + } } } }, @@ -12088,6 +13708,14 @@ "description": "'true' if the region is supported only for CCS clusters, 'false' otherwise.", "type": "boolean" }, + "kms_location_id": { + "description": "(GCP only) Comma-separated list of KMS location IDs that can be used with this region.\nE.g. \"global,nam4,us\". Order is not guaranteed.", + "type": "string" + }, + "kms_location_name": { + "description": "(GCP only) Comma-separated list of display names corresponding to KMSLocationID.\nE.g. \"Global,nam4 (Iowa, South Carolina, and Oklahoma),US\". Order is not guaranteed but will match KMSLocationID.\nUnfortunately, this API doesn't allow robust splitting - Contact ocm-feedback@redhat.com if you want to rely on this.", + "type": "string" + }, "cloud_provider": { "description": "Link to the cloud provider that the region belongs to.", "$ref": "#/components/schemas/CloudProvider" @@ -12097,7 +13725,11 @@ "type": "string" }, "enabled": { - "description": "Whether the region is enabled for deploying an OSD cluster.", + "description": "Whether the region is enabled for deploying a managed cluster.", + "type": "boolean" + }, + "govcloud": { + "description": "Whether the region is an AWS GovCloud region.", "type": "boolean" }, "name": { @@ -12179,6 +13811,10 @@ "$ref": "#/components/schemas/AddOnInstallation" } }, + "autoscaler": { + "description": "Link to an optional _ClusterAutoscaler_ that is coupled with the cluster.", + "$ref": "#/components/schemas/ClusterAutoscaler" + }, "billing_model": { "description": "Billing model for cluster resources.", "$ref": "#/components/schemas/BillingModel" @@ -12273,6 +13909,10 @@ "$ref": "#/components/schemas/Ingress" } }, + "kubelet_config": { + "description": "Details of cluster-wide KubeletConfig", + "$ref": "#/components/schemas/KubeletConfig" + }, "load_balancer_quota": { "description": "Load Balancer quota to be assigned to the cluster.", "type": "integer", @@ -12351,34 +13991,97 @@ "description": "Overall state of the cluster.", "$ref": "#/components/schemas/ClusterState" }, - "status": { - "description": "Status of cluster", - "$ref": "#/components/schemas/ClusterStatus" + "status": { + "description": "Status of cluster", + "$ref": "#/components/schemas/ClusterStatus" + }, + "storage_quota": { + "description": "Storage quota to be assigned to the cluster.", + "$ref": "#/components/schemas/Value" + }, + "subscription": { + "description": "Link to the subscription that comes from the account management service when the cluster\nis registered.", + "$ref": "#/components/schemas/Subscription" + }, + "version": { + "description": "Link to the version of _OpenShift_ that will be used to install the cluster.", + "$ref": "#/components/schemas/Version" + } + } + }, + "ClusterAPI": { + "description": "Information about the API of a cluster.", + "properties": { + "url": { + "description": "The URL of the API server of the cluster.", + "type": "string" + }, + "listening": { + "description": "The listening method of the API server.", + "$ref": "#/components/schemas/ListeningMethod" + } + } + }, + "ClusterAutoscaler": { + "description": "Cluster-wide autoscaling configuration.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'ClusterAutoscaler' if this is a complete object or 'ClusterAutoscalerLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "balance_similar_node_groups": { + "description": "BalanceSimilarNodeGroups enables/disables the\n`--balance-similar-node-groups` cluster-autoscaler feature.\nThis feature will automatically identify node groups with\nthe same instance type and the same set of labels and try\nto keep the respective sizes of those node groups balanced.", + "type": "boolean" + }, + "balancing_ignored_labels": { + "description": "This option specifies labels that cluster autoscaler should ignore when considering node group similarity.\nFor example, if you have nodes with \"topology.ebs.csi.aws.com/zone\" label, you can add name of this label here\nto prevent cluster autoscaler from splitting nodes into different node groups based on its value.", + "type": "array", + "items": { + "type": "string" + } + }, + "ignore_daemonsets_utilization": { + "description": "Should CA ignore DaemonSet pods when calculating resource utilization for scaling down. false by default.", + "type": "boolean" + }, + "log_verbosity": { + "description": "Sets the autoscaler log level.\nDefault value is 1, level 4 is recommended for DEBUGGING and level 6 will enable almost everything.", + "type": "integer", + "format": "int32" + }, + "max_node_provision_time": { + "description": "Maximum time CA waits for node to be provisioned.", + "type": "string" + }, + "max_pod_grace_period": { + "description": "Gives pods graceful termination time before scaling down.", + "type": "integer", + "format": "int32" }, - "storage_quota": { - "description": "Storage quota to be assigned to the cluster.", - "$ref": "#/components/schemas/Value" + "pod_priority_threshold": { + "description": "To allow users to schedule \"best-effort\" pods, which shouldn't trigger\nCluster Autoscaler actions, but only run when there are spare resources available,\nMore info: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-does-cluster-autoscaler-work-with-pod-priority-and-preemption.", + "type": "integer", + "format": "int32" }, - "subscription": { - "description": "Link to the subscription that comes from the account management service when the cluster\nis registered.", - "$ref": "#/components/schemas/Subscription" + "resource_limits": { + "description": "Constraints of autoscaling resources.", + "$ref": "#/components/schemas/AutoscalerResourceLimits" }, - "version": { - "description": "Link to the version of _OpenShift_ that will be used to install the cluster.", - "$ref": "#/components/schemas/Version" - } - } - }, - "ClusterAPI": { - "description": "Information about the API of a cluster.", - "properties": { - "url": { - "description": "The URL of the API server of the cluster.", - "type": "string" + "scale_down": { + "description": "Configuration of scale down operation.", + "$ref": "#/components/schemas/AutoscalerScaleDownConfig" }, - "listening": { - "description": "The listening method of the API server.", - "$ref": "#/components/schemas/ListeningMethod" + "skip_nodes_with_local_storage": { + "description": "Enables/Disables `--skip-nodes-with-local-storage` CA feature flag. If true cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath. true by default at autoscaler.", + "type": "boolean" } } }, @@ -12744,16 +14447,16 @@ "type": "string" }, "schedule_type": { - "description": "Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring).", - "type": "string" + "description": "Schedule type of the control plane upgrade.", + "$ref": "#/components/schemas/ScheduleType" }, "state": { "description": "State of the upgrade policy for the hosted control plane.", "$ref": "#/components/schemas/UpgradePolicyState" }, "upgrade_type": { - "description": "Upgrade type specify the type of the upgrade. Can only be \"ControlPlane\".", - "type": "string" + "description": "Upgrade type of the control plane.", + "$ref": "#/components/schemas/UpgradeType" }, "version": { "description": "Version is the desired upgrade version.", @@ -12833,6 +14536,10 @@ "Environment": { "description": "Description of an environment", "properties": { + "backplane_url": { + "description": "the backplane url for the environment", + "type": "string" + }, "last_limited_support_check": { "description": "last time that the worker checked for limited support clusters", "type": "string", @@ -12938,6 +14645,15 @@ } } }, + "GcpSecurity": { + "description": "Google cloud platform security settings of a cluster.", + "properties": { + "secure_boot": { + "description": "Determines if Shielded VM feature \"Secure Boot\" should be set for the nodes of the cluster.", + "type": "boolean" + } + } + }, "GithubIdentityProvider": { "description": "Details for `github` identity providers.", "properties": { @@ -13140,6 +14856,35 @@ "OpenIDIdentityProvider" ] }, + "ImageOverrides": { + "description": "ImageOverrides holds the lists of available images per cloud provider.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'ImageOverrides' if this is a complete object or 'ImageOverridesLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "aws": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AMIOverride" + } + }, + "gcp": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GCPImageOverride" + } + } + } + }, "InflightCheck": { "description": "Representation of check running before the cluster is provisioned.", "properties": { @@ -13213,10 +14958,25 @@ "description": "DNS Name of the ingress.", "type": "string" }, + "cluster_routes_hostname": { + "description": "Cluster routes hostname.", + "type": "string" + }, + "cluster_routes_tls_secret_ref": { + "description": "Cluster routes TLS Secret reference.", + "type": "string" + }, "default": { "description": "Indicates if this is the default ingress.", "type": "boolean" }, + "excluded_namespaces": { + "description": "A set of excluded namespaces for the ingress.", + "type": "array", + "items": { + "type": "string" + } + }, "listening": { "description": "Listening method of the ingress", "$ref": "#/components/schemas/ListeningMethod" @@ -13225,12 +14985,20 @@ "description": "Load Balancer type of the ingress", "$ref": "#/components/schemas/LoadBalancerFlavor" }, + "route_namespace_ownership_policy": { + "description": "Namespace Ownership Policy for the ingress.", + "$ref": "#/components/schemas/NamespaceOwnershipPolicy" + }, "route_selectors": { "description": "A set of labels for the ingress. ", "type": "object", "additionalProperties": { "type": "string" } + }, + "route_wildcard_policy": { + "description": "Wildcard policy for the ingress.", + "$ref": "#/components/schemas/WildcardPolicy" } } }, @@ -13268,6 +15036,28 @@ } } }, + "KubeletConfig": { + "description": "OCM representation of KubeletConfig, exposing the fields of Kubernetes\nKubeletConfig that can be managed by users", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'KubeletConfig' if this is a complete object or 'KubeletConfigLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "pod_pids_limit": { + "description": "Allows user to specify the podPidsLimit to be applied via KubeletConfig.\nUseful if workloads have greater PIDs limit requirements than the OCP default.", + "type": "integer", + "format": "int32" + } + } + }, "Label": { "description": "Representation of a label in clusterdeployment.", "properties": { @@ -13365,7 +15155,7 @@ ] }, "LoadBalancerFlavor": { - "description": "Type of node received via telemetry.", + "description": "Type of load balancer for AWS cloud provider parameters.", "type": "string", "enum": [ "classic", @@ -13605,6 +15395,14 @@ } } }, + "NamespaceOwnershipPolicy": { + "description": "Type of Namespace Ownership Policy.", + "type": "string", + "enum": [ + "InterNamespaceAllowed", + "Strict" + ] + }, "Network": { "description": "Network configuration of a cluster.", "properties": { @@ -13631,6 +15429,30 @@ } } }, + "NetworkVerification": { + "properties": { + "cloud_provider_data": { + "description": "Cloud provider data to execute the network verification.", + "$ref": "#/components/schemas/CloudProviderData" + }, + "cluster_id": { + "description": "Cluster ID needed to execute the network verification.", + "type": "string" + }, + "items": { + "description": "Details about each subnet network verification.", + "type": "array", + "items": { + "$ref": "#/components/schemas/SubnetNetworkVerification" + } + }, + "total": { + "description": "Amount of network verifier executions started.", + "type": "integer", + "format": "int32" + } + } + }, "NodeInfo": { "description": "Provides information about a node from specific type in the cluster.", "properties": { @@ -13816,16 +15638,16 @@ "type": "string" }, "schedule_type": { - "description": "Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring).", - "type": "string" + "description": "Schedule type of the upgrade.", + "$ref": "#/components/schemas/ScheduleType" }, "state": { "description": "State of the upgrade policy for the node pool.", "$ref": "#/components/schemas/UpgradePolicyState" }, "upgrade_type": { - "description": "Upgrade type specify the type of the upgrade. Can only be \"NodePool\".", - "type": "string" + "description": "Upgrade type of the node pool.", + "$ref": "#/components/schemas/UpgradeType" }, "version": { "description": "Version is the desired upgrade version.", @@ -14131,6 +15953,63 @@ } } }, + "ProductMinimalVersion": { + "description": "Representation of a product minimal version.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'ProductMinimalVersion' if this is a complete object or 'ProductMinimalVersionLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "rosa_cli": { + "description": "The ROSA CLI minimal version.", + "type": "string" + }, + "start_date": { + "description": "The start date for this minimal version.", + "type": "string", + "format": "date-time" + } + } + }, + "ProductTechnologyPreview": { + "description": "Representation of a product technology preview.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'ProductTechnologyPreview' if this is a complete object or 'ProductTechnologyPreviewLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "additional_text": { + "description": "Message associated with this technology preview.", + "type": "string" + }, + "end_date": { + "description": "The end date for this technology preview.", + "type": "string", + "format": "date-time" + }, + "start_date": { + "description": "The start date for this technology preview.", + "type": "string", + "format": "date-time" + } + } + }, "ProvisionShard": { "description": "Contains the properties of the provision shard, including AWS and GCP related configurations", "properties": { @@ -14198,6 +16077,12 @@ } } }, + "ProvisionShardTopology": { + "type": "string", + "enum": [ + "dedicated" + ] + }, "Proxy": { "description": "Proxy configuration of a cluster.", "properties": { @@ -14215,6 +16100,18 @@ } } }, + "ResourceRange": { + "properties": { + "max": { + "type": "integer", + "format": "int32" + }, + "min": { + "type": "integer", + "format": "int32" + } + } + }, "RootVolume": { "description": "Root volume capabilities.", "properties": { @@ -14228,6 +16125,31 @@ } } }, + "ScheduleType": { + "description": "ScheduleType defines which type of scheduling should be used for the upgrade policy.", + "type": "string", + "enum": [ + "automatic", + "manual" + ] + }, + "SecurityGroup": { + "description": "AWS security group object", + "properties": { + "id": { + "description": "The security group ID.", + "type": "string" + }, + "name": { + "description": "Name of the security group according to its `Name` tag on AWS.", + "type": "string" + }, + "red_hat_managed": { + "description": "If the resource is RH managed.", + "type": "boolean" + } + } + }, "ServerConfig": { "description": "Representation of a server config", "properties": { @@ -14244,12 +16166,16 @@ "type": "string" }, "kubeconfig": { - "description": "The kubeconfig of the server", + "description": "The kubeconfig of the server.", "type": "string" }, "server": { - "description": "The URL of the server", + "description": "The URL of the server.", "type": "string" + }, + "topology": { + "description": "The topology of a provision shard (Optional).", + "$ref": "#/components/schemas/ProvisionShardTopology" } } }, @@ -14289,23 +16215,74 @@ } } }, + "StsSupportJumpRole": { + "description": "Isolated STS support role created per organization.", + "properties": { + "role_arn": { + "description": "ARN of the support role created in the SRE jump account.", + "type": "string" + } + } + }, + "SubnetNetworkVerification": { + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'SubnetNetworkVerification' if this is a complete object or 'SubnetNetworkVerificationLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "details": { + "description": "Slice of failures that happened during a subnet network verification.", + "type": "array", + "items": { + "type": "string" + } + }, + "state": { + "description": "State of the subnet network verification.", + "type": "string" + }, + "tags": { + "description": "Tags supplied to the network verifier for this subnet.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, "Subnetwork": { "description": "AWS subnetwork object to be used while installing a cluster", "properties": { + "cidr_block": { + "description": "The CIDR Block of the subnet.", + "type": "string" + }, "availability_zone": { - "description": "The availability zone to which the subnet is related", + "description": "The availability zone to which the subnet is related.", "type": "string" }, "name": { - "description": "Name of the subnet according to its `Name` tag on AWS", + "description": "Name of the subnet according to its `Name` tag on AWS.", "type": "string" }, "public": { - "description": "Whether it is a public subnet", + "description": "Whether or not it is a public subnet.", + "type": "boolean" + }, + "red_hat_managed": { + "description": "If the resource is RH managed.", "type": "boolean" }, "subnet_id": { - "description": "The subnet id to be used while installing a cluster", + "description": "The subnet ID to be used while installing a cluster.", "type": "string" } } @@ -14368,6 +16345,27 @@ } } }, + "TrustedIp": { + "description": "Representation of a trusted ip address in clusterdeployment.", + "properties": { + "kind": { + "description": "Indicates the type of this object. Will be 'TrustedIp' if this is a complete object or 'TrustedIpLink' if it is just a link.", + "type": "string" + }, + "id": { + "description": "Unique identifier of the object.", + "type": "string" + }, + "href": { + "description": "Self link.", + "type": "string" + }, + "enabled": { + "description": "The boolean set to show if the ip is enabled.", + "type": "boolean" + } + } + }, "TuningConfig": { "description": "Representation of a tuning config.", "properties": { @@ -14426,12 +16424,12 @@ "type": "string" }, "schedule_type": { - "description": "Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring).", - "type": "string" + "description": "Schedule type of the upgrade.", + "$ref": "#/components/schemas/ScheduleType" }, "upgrade_type": { - "description": "Upgrade type specify the type of the upgrade. Can be \"OSD\" or \"CVE\".", - "type": "string" + "description": "Upgrade type specify the type of the upgrade.", + "$ref": "#/components/schemas/UpgradeType" }, "version": { "description": "Version is the desired upgrade version.", @@ -14477,6 +16475,16 @@ "started" ] }, + "UpgradeType": { + "description": "UpgradeType defines which type of upgrade should be used.", + "type": "string", + "enum": [ + "OSD", + "ADDON", + "ControlPlane", + "NodePool" + ] + }, "User": { "description": "Representation of a user.", "properties": { @@ -14523,6 +16531,10 @@ "description": "Self link.", "type": "string" }, + "gcp_marketplace_enabled": { + "description": "GCPMarketplaceEnabled indicates if this version can be used to create GCP Marketplace clusters.", + "type": "boolean" + }, "rosa_enabled": { "description": "ROSAEnabled indicates whether this version can be used to create ROSA clusters.", "type": "boolean" @@ -14555,12 +16567,16 @@ "description": "HostedControlPlaneEnabled indicates whether this version can be used to create HCP clusters.", "type": "boolean" }, + "image_overrides": { + "description": "ImageOverrides contains the lists of images per cloud provider.", + "$ref": "#/components/schemas/ImageOverrides" + }, "raw_id": { "description": "RawID is the id of the version - without channel group and prefix.", "type": "string" }, "release_image": { - "description": "ReleaseImage contains the URI of Openshift release image", + "description": "ReleaseImage contains the URI of Openshift release image.", "type": "string" } } @@ -14641,6 +16657,14 @@ } } }, + "WildcardPolicy": { + "description": "Type of wildcard policy.", + "type": "string", + "enum": [ + "WildcardsAllowed", + "WildcardsDisallowed" + ] + }, "Error": { "type": "object", "properties": { @@ -14684,8 +16708,8 @@ "security": [ { "bearer": [ - + ] } ] -} +} \ No newline at end of file diff --git a/docs/AMIOverride.md b/docs/AMIOverride.md new file mode 100644 index 0000000..880ad20 --- /dev/null +++ b/docs/AMIOverride.md @@ -0,0 +1,16 @@ +# AMIOverride + +AMIOverride specifies what Amazon Machine Image should be used for a particular product and region. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'AMIOverride' if this is a complete object or 'AMIOverrideLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**ami** | **str** | AMI is the id of the Amazon Machine Image. | [optional] +**product** | [**Product**](Product.md) | | [optional] +**region** | [**CloudRegion**](CloudRegion.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AWS.md b/docs/AWS.md index f3ed05a..8b188e7 100644 --- a/docs/AWS.md +++ b/docs/AWS.md @@ -8,10 +8,15 @@ Name | Type | Description | Notes **sts** | [**STS**](STS.md) | | [optional] **access_key_id** | **str** | AWS access key identifier. | [optional] **account_id** | **str** | AWS account identifier. | [optional] +**additional_compute_security_group_ids** | **list[str]** | Additional AWS Security Groups to be added to default worker (compute) machine pool. | [optional] +**additional_control_plane_security_group_ids** | **list[str]** | Additional AWS Security Groups to be added to default control plane machine pool. | [optional] +**additional_infra_security_group_ids** | **list[str]** | Additional AWS Security Groups to be added to default infra machine pool. | [optional] **audit_log** | [**AuditLog**](AuditLog.md) | | [optional] **billing_account_id** | **str** | BillingAccountID is the account used for billing subscriptions purchased via the marketplace | [optional] **ec2_metadata_http_tokens** | [**Ec2MetadataHttpTokens**](Ec2MetadataHttpTokens.md) | | [optional] **etcd_encryption** | [**AwsEtcdEncryption**](AwsEtcdEncryption.md) | | [optional] +**private_hosted_zone_id** | **str** | ID of private hosted zone. | [optional] +**private_hosted_zone_role_arn** | **str** | Role ARN for private hosted zone. | [optional] **private_link** | **bool** | Sets cluster to be inaccessible externally. | [optional] **private_link_configuration** | [**PrivateLinkClusterConfiguration**](PrivateLinkClusterConfiguration.md) | | [optional] **secret_access_key** | **str** | AWS secret access key. | [optional] diff --git a/docs/AWSMachinePool.md b/docs/AWSMachinePool.md index 9b77e69..983a349 100644 --- a/docs/AWSMachinePool.md +++ b/docs/AWSMachinePool.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **kind** | **str** | Indicates the type of this object. Will be 'AWSMachinePool' if this is a complete object or 'AWSMachinePoolLink' if it is just a link. | [optional] **id** | **str** | Unique identifier of the object. | [optional] **href** | **str** | Self link. | [optional] +**additional_security_group_ids** | **list[str]** | Additional AWS Security Groups to be added machine pool. Note that machine pools can only be worker node at the time. | [optional] **spot_market_options** | [**AWSSpotMarketOptions**](AWSSpotMarketOptions.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AWSSTSAccountRole.md b/docs/AWSSTSAccountRole.md new file mode 100644 index 0000000..fcbd65f --- /dev/null +++ b/docs/AWSSTSAccountRole.md @@ -0,0 +1,12 @@ +# AWSSTSAccountRole + +Representation of an sts account role for a rosa cluster +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[AWSSTSRole]**](AWSSTSRole.md) | The list of STS Roles for this Account Role | [optional] +**prefix** | **str** | The Prefix for this Account Role | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AWSSTSRole.md b/docs/AWSSTSRole.md new file mode 100644 index 0000000..a27e136 --- /dev/null +++ b/docs/AWSSTSRole.md @@ -0,0 +1,16 @@ +# AWSSTSRole + +Representation of an sts role for a rosa cluster +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hcp_managed_policies** | **bool** | Does this Role have HCP Managed Policies? | [optional] +**is_admin** | **bool** | Does this role have Admin permission? | [optional] +**managed_policies** | **bool** | Does this Role have Managed Policies? | [optional] +**arn** | **str** | The AWS ARN for this Role | [optional] +**type** | **str** | The type of this Role | [optional] +**role_version** | **str** | The Openshift Version for this Role | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AutoscalerResourceLimits.md b/docs/AutoscalerResourceLimits.md new file mode 100644 index 0000000..96940c7 --- /dev/null +++ b/docs/AutoscalerResourceLimits.md @@ -0,0 +1,13 @@ +# AutoscalerResourceLimits + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gpus** | [**list[AutoscalerResourceLimitsGPULimit]**](AutoscalerResourceLimitsGPULimit.md) | Minimum and maximum number of different GPUs in cluster, in the format <gpu_type>:<min>:<max>. Cluster autoscaler will not scale the cluster beyond these numbers. Can be passed multiple times. | [optional] +**cores** | [**ResourceRange**](ResourceRange.md) | | [optional] +**max_nodes_total** | **int** | Maximum number of nodes in all node groups. Cluster autoscaler will not grow the cluster beyond this number. | [optional] +**memory** | [**ResourceRange**](ResourceRange.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AutoscalerResourceLimitsGPULimit.md b/docs/AutoscalerResourceLimitsGPULimit.md new file mode 100644 index 0000000..7f45377 --- /dev/null +++ b/docs/AutoscalerResourceLimitsGPULimit.md @@ -0,0 +1,11 @@ +# AutoscalerResourceLimitsGPULimit + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**range** | [**ResourceRange**](ResourceRange.md) | | [optional] +**type** | **str** | The type of GPU to associate with the minimum and maximum limits. This value is used by the Cluster Autoscaler to identify Nodes that will have GPU capacity by searching for it as a label value on the Node objects. For example, Nodes that carry the label key `cluster-api/accelerator` with the label value being the same as the Type field will be counted towards the resource limits by the Cluster Autoscaler. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AutoscalerScaleDownConfig.md b/docs/AutoscalerScaleDownConfig.md new file mode 100644 index 0000000..a893267 --- /dev/null +++ b/docs/AutoscalerScaleDownConfig.md @@ -0,0 +1,15 @@ +# AutoscalerScaleDownConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delay_after_add** | **str** | How long after scale up that scale down evaluation resumes. | [optional] +**delay_after_delete** | **str** | How long after node deletion that scale down evaluation resumes, defaults to scan-interval. | [optional] +**delay_after_failure** | **str** | How long after scale down failure that scale down evaluation resumes. | [optional] +**enabled** | **bool** | Should cluster-autoscaler scale down the cluster. | [optional] +**unneeded_time** | **str** | How long a node should be unneeded before it is eligible for scale down. | [optional] +**utilization_threshold** | **str** | Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BillingModelItem.md b/docs/BillingModelItem.md new file mode 100644 index 0000000..f670dd8 --- /dev/null +++ b/docs/BillingModelItem.md @@ -0,0 +1,17 @@ +# BillingModelItem + +BillingModelItem represents a billing model +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'BillingModelItem' if this is a complete object or 'BillingModelItemLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**billing_model_type** | **str** | BillingModelType is the type of the BillingModel. e.g. standard, marketplace. | [optional] +**description** | **str** | Single line description of the billing model. | [optional] +**display_name** | **str** | User friendly display name of the billing model. | [optional] +**marketplace** | **str** | Indicates the marketplace of the billing model. e.g. gcp, aws, etc. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CloudProvider.md b/docs/CloudProvider.md index 9db7ef2..b94cd0c 100644 --- a/docs/CloudProvider.md +++ b/docs/CloudProvider.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **href** | **str** | Self link. | [optional] **display_name** | **str** | Name of the cloud provider for display purposes. It can contain any characters, including spaces. | [optional] **name** | **str** | Human friendly identifier of the cloud provider, for example `aws`. | [optional] +**regions** | [**list[CloudRegion]**](CloudRegion.md) | (optional) Provider's regions - only included when listing providers with `fetchRegions=true`. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CloudRegion.md b/docs/CloudRegion.md index 9f86b37..c4dacf9 100644 --- a/docs/CloudRegion.md +++ b/docs/CloudRegion.md @@ -8,9 +8,12 @@ Name | Type | Description | Notes **id** | **str** | Unique identifier of the object. | [optional] **href** | **str** | Self link. | [optional] **ccs_only** | **bool** | 'true' if the region is supported only for CCS clusters, 'false' otherwise. | [optional] +**kms_location_id** | **str** | (GCP only) Comma-separated list of KMS location IDs that can be used with this region. E.g. \"global,nam4,us\". Order is not guaranteed. | [optional] +**kms_location_name** | **str** | (GCP only) Comma-separated list of display names corresponding to KMSLocationID. E.g. \"Global,nam4 (Iowa, South Carolina, and Oklahoma),US\". Order is not guaranteed but will match KMSLocationID. Unfortunately, this API doesn't allow robust splitting - Contact ocm-feedback@redhat.com if you want to rely on this. | [optional] **cloud_provider** | [**CloudProvider**](CloudProvider.md) | | [optional] **display_name** | **str** | Name of the region for display purposes, for example `N. Virginia`. | [optional] -**enabled** | **bool** | Whether the region is enabled for deploying an OSD cluster. | [optional] +**enabled** | **bool** | Whether the region is enabled for deploying a managed cluster. | [optional] +**govcloud** | **bool** | Whether the region is an AWS GovCloud region. | [optional] **name** | **str** | Human friendly identifier of the region, for example `us-east-1`. NOTE: Currently for all cloud providers and all regions `id` and `name` have exactly the same values. | [optional] **supports_hypershift** | **bool** | 'true' if the region is supported for Hypershift deployments, 'false' otherwise. | [optional] **supports_multi_az** | **bool** | Whether the region supports multiple availability zones. | [optional] diff --git a/docs/CloudVPC.md b/docs/CloudVPC.md index 1a34f1d..987f8db 100644 --- a/docs/CloudVPC.md +++ b/docs/CloudVPC.md @@ -4,9 +4,12 @@ Description of a cloud provider virtual private cloud. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aws_subnets** | [**list[Subnetwork]**](Subnetwork.md) | List of subnetworks | [optional] -**id** | **str** | ID of virtual private cloud | [optional] -**name** | **str** | Name of virtual private cloud according to its `Name` tag on AWS | [optional] +**aws_security_groups** | [**list[SecurityGroup]**](SecurityGroup.md) | List of AWS security groups with details. | [optional] +**aws_subnets** | [**list[Subnetwork]**](Subnetwork.md) | List of AWS subnetworks with details. | [optional] +**cidr_block** | **str** | CIDR block of the virtual private cloud. | [optional] +**id** | **str** | ID of virtual private cloud. | [optional] +**name** | **str** | Name of virtual private cloud according to its `Name` tag on AWS. | [optional] +**red_hat_managed** | **bool** | If the resource is RH managed. | [optional] **subnets** | **list[str]** | List of subnets used by the virtual private cloud. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Cluster.md b/docs/Cluster.md index 0dbcde8..869d290 100644 --- a/docs/Cluster.md +++ b/docs/Cluster.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **gcp_network** | [**GCPNetwork**](GCPNetwork.md) | | [optional] **additional_trust_bundle** | **str** | Additional trust bundle. | [optional] **addons** | [**list[AddOnInstallation]**](AddOnInstallation.md) | List of add-ons on this cluster. | [optional] +**autoscaler** | [**ClusterAutoscaler**](ClusterAutoscaler.md) | | [optional] **billing_model** | [**BillingModel**](BillingModel.md) | | [optional] **byo_oidc** | [**ByoOidc**](ByoOidc.md) | | [optional] **cloud_provider** | [**CloudProvider**](CloudProvider.md) | | [optional] @@ -38,6 +39,7 @@ Name | Type | Description | Notes **inflight_checks** | [**list[InflightCheck]**](InflightCheck.md) | List of inflight checks on this cluster. | [optional] **infra_id** | **str** | InfraID is used for example to name the VPCs. | [optional] **ingresses** | [**list[Ingress]**](Ingress.md) | List of ingresses on this cluster. | [optional] +**kubelet_config** | [**KubeletConfig**](KubeletConfig.md) | | [optional] **load_balancer_quota** | **int** | Load Balancer quota to be assigned to the cluster. | [optional] **machine_pools** | [**list[MachinePool]**](MachinePool.md) | List of machine pools on this cluster. | [optional] **managed** | **bool** | Flag indicating if the cluster is managed (by Red Hat) or self-managed by the user. | [optional] diff --git a/docs/ClusterAutoscaler.md b/docs/ClusterAutoscaler.md new file mode 100644 index 0000000..b3d432c --- /dev/null +++ b/docs/ClusterAutoscaler.md @@ -0,0 +1,23 @@ +# ClusterAutoscaler + +Cluster-wide autoscaling configuration. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'ClusterAutoscaler' if this is a complete object or 'ClusterAutoscalerLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**balance_similar_node_groups** | **bool** | BalanceSimilarNodeGroups enables/disables the `--balance-similar-node-groups` cluster-autoscaler feature. This feature will automatically identify node groups with the same instance type and the same set of labels and try to keep the respective sizes of those node groups balanced. | [optional] +**balancing_ignored_labels** | **list[str]** | This option specifies labels that cluster autoscaler should ignore when considering node group similarity. For example, if you have nodes with \"topology.ebs.csi.aws.com/zone\" label, you can add name of this label here to prevent cluster autoscaler from splitting nodes into different node groups based on its value. | [optional] +**ignore_daemonsets_utilization** | **bool** | Should CA ignore DaemonSet pods when calculating resource utilization for scaling down. false by default. | [optional] +**log_verbosity** | **int** | Sets the autoscaler log level. Default value is 1, level 4 is recommended for DEBUGGING and level 6 will enable almost everything. | [optional] +**max_node_provision_time** | **str** | Maximum time CA waits for node to be provisioned. | [optional] +**max_pod_grace_period** | **int** | Gives pods graceful termination time before scaling down. | [optional] +**pod_priority_threshold** | **int** | To allow users to schedule \"best-effort\" pods, which shouldn't trigger Cluster Autoscaler actions, but only run when there are spare resources available, More info: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-does-cluster-autoscaler-work-with-pod-priority-and-preemption. | [optional] +**resource_limits** | [**AutoscalerResourceLimits**](AutoscalerResourceLimits.md) | | [optional] +**scale_down** | [**AutoscalerScaleDownConfig**](AutoscalerScaleDownConfig.md) | | [optional] +**skip_nodes_with_local_storage** | **bool** | Enables/Disables `--skip-nodes-with-local-storage` CA feature flag. If true cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath. true by default at autoscaler. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ControlPlaneUpgradePolicy.md b/docs/ControlPlaneUpgradePolicy.md index 4cf134d..fa3c70f 100644 --- a/docs/ControlPlaneUpgradePolicy.md +++ b/docs/ControlPlaneUpgradePolicy.md @@ -13,9 +13,9 @@ Name | Type | Description | Notes **last_update_timestamp** | **datetime** | Timestamp for last update that happened to resource. | [optional] **next_run** | **datetime** | Next time the upgrade should run. | [optional] **schedule** | **str** | Schedule cron expression that defines automatic upgrade scheduling. | [optional] -**schedule_type** | **str** | Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring). | [optional] +**schedule_type** | [**ScheduleType**](ScheduleType.md) | | [optional] **state** | [**UpgradePolicyState**](UpgradePolicyState.md) | | [optional] -**upgrade_type** | **str** | Upgrade type specify the type of the upgrade. Can only be \"ControlPlane\". | [optional] +**upgrade_type** | [**UpgradeType**](UpgradeType.md) | | [optional] **version** | **str** | Version is the desired upgrade version. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DNSDomain.md b/docs/DNSDomain.md index 1861f13..e70deab 100644 --- a/docs/DNSDomain.md +++ b/docs/DNSDomain.md @@ -7,9 +7,10 @@ Name | Type | Description | Notes **kind** | **str** | Indicates the type of this object. Will be 'DNSDomain' if this is a complete object or 'DNSDomainLink' if it is just a link. | [optional] **id** | **str** | Unique identifier of the object. | [optional] **href** | **str** | Self link. | [optional] -**cluster_link** | [**ClusterLink**](ClusterLink.md) | | [optional] -**organization_link** | [**OrganizationLink**](OrganizationLink.md) | | [optional] -**reserved_at** | **datetime** | Date and time when the DNS domain was reserved. | [optional] +**cluster** | [**ClusterLink**](ClusterLink.md) | | [optional] +**organization** | [**OrganizationLink**](OrganizationLink.md) | | [optional] +**reserved_at_timestamp** | **datetime** | Date and time when the DNS domain was reserved. | [optional] +**user_defined** | **bool** | Indicates if this dns domain is user defined. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 41b2338..b594406 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -18,6 +18,7 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_aws_infrastructure_access_roles_get**](DefaultApi.md#api_clusters_mgmt_v1_aws_infrastructure_access_roles_get) | **GET** /api/clusters_mgmt/v1/aws_infrastructure_access_roles | [**api_clusters_mgmt_v1_aws_inquiries_machine_types_post**](DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_machine_types_post) | **POST** /api/clusters_mgmt/v1/aws_inquiries/machine_types | [**api_clusters_mgmt_v1_aws_inquiries_regions_post**](DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_regions_post) | **POST** /api/clusters_mgmt/v1/aws_inquiries/regions | +[**api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post**](DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post) | **POST** /api/clusters_mgmt/v1/aws_inquiries/sts_account_roles | [**api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get**](DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get) | **GET** /api/clusters_mgmt/v1/aws_inquiries/sts_credential_requests | [**api_clusters_mgmt_v1_aws_inquiries_sts_policies_get**](DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_sts_policies_get) | **GET** /api/clusters_mgmt/v1/aws_inquiries/sts_policies | [**api_clusters_mgmt_v1_aws_inquiries_vpcs_post**](DefaultApi.md#api_clusters_mgmt_v1_aws_inquiries_vpcs_post) | **POST** /api/clusters_mgmt/v1/aws_inquiries/vpcs | @@ -43,6 +44,10 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_clusters_cluster_id_addons_addoninstallation_id_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_addons_addoninstallation_id_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/addons/{addoninstallation_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_addons_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_addons_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/addons | [**api_clusters_mgmt_v1_clusters_cluster_id_addons_post**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_addons_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/addons | +[**api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler | +[**api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler | +[**api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler | +[**api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler | [**api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants/{aws_infrastructure_access_role_grant_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants/{aws_infrastructure_access_role_grant_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants | @@ -91,6 +96,7 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users/{user_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/hibernate | [**api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/hypershift | +[**api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/hypershift | [**api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers | [**api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id} | @@ -110,6 +116,10 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses/{ingress_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses | [**api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses | +[**api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config | +[**api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config | +[**api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config | +[**api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config | [**api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons | [**api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons/{limited_support_reason_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons/{limited_support_reason_id} | @@ -139,6 +149,10 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools | [**api_clusters_mgmt_v1_clusters_cluster_id_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_product_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product | +[**api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product/minimal_versions | +[**api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product/minimal_versions/{minimal_version_id} | +[**api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product/technology_previews | +[**api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/product/technology_previews/{technology_preview_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard | [**api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard | [**api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard | @@ -149,6 +163,7 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles | [**api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles/{operator_iam_role_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles | +[**api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/sts_support_jump_role | [**api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs | [**api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post) | **POST** /api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs | [**api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete) | **DELETE** /api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs/{tuning_config_id} | @@ -161,6 +176,7 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id} | [**api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}/state | [**api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch) | **PATCH** /api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}/state | +[**api_clusters_mgmt_v1_clusters_cluster_id_vpc_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_cluster_id_vpc_get) | **GET** /api/clusters_mgmt/v1/clusters/{cluster_id}/vpc | [**api_clusters_mgmt_v1_clusters_get**](DefaultApi.md#api_clusters_mgmt_v1_clusters_get) | **GET** /api/clusters_mgmt/v1/clusters | [**api_clusters_mgmt_v1_clusters_post**](DefaultApi.md#api_clusters_mgmt_v1_clusters_post) | **POST** /api/clusters_mgmt/v1/clusters | [**api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete**](DefaultApi.md#api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete) | **DELETE** /api/clusters_mgmt/v1/dns_domains/{dns_domain_id} | @@ -177,6 +193,7 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_flavours_post**](DefaultApi.md#api_clusters_mgmt_v1_flavours_post) | **POST** /api/clusters_mgmt/v1/flavours | [**api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post**](DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/encryption_keys | [**api_clusters_mgmt_v1_gcp_inquiries_key_rings_post**](DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_key_rings_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/key_rings | +[**api_clusters_mgmt_v1_gcp_inquiries_machine_types_post**](DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_machine_types_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/machine_types | [**api_clusters_mgmt_v1_gcp_inquiries_regions_post**](DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_regions_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/regions | [**api_clusters_mgmt_v1_gcp_inquiries_vpcs_post**](DefaultApi.md#api_clusters_mgmt_v1_gcp_inquiries_vpcs_post) | **POST** /api/clusters_mgmt/v1/gcp_inquiries/vpcs | [**api_clusters_mgmt_v1_get**](DefaultApi.md#api_clusters_mgmt_v1_get) | **GET** /api/clusters_mgmt/v1 | @@ -184,6 +201,8 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get**](DefaultApi.md#api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get) | **GET** /api/clusters_mgmt/v1/limited_support_reason_templates/{limited_support_reason_template_id} | [**api_clusters_mgmt_v1_machine_types_get**](DefaultApi.md#api_clusters_mgmt_v1_machine_types_get) | **GET** /api/clusters_mgmt/v1/machine_types | [**api_clusters_mgmt_v1_machine_types_machine_type_id_get**](DefaultApi.md#api_clusters_mgmt_v1_machine_types_machine_type_id_get) | **GET** /api/clusters_mgmt/v1/machine_types/{machine_type_id} | +[**api_clusters_mgmt_v1_network_verifications_network_verification_id_get**](DefaultApi.md#api_clusters_mgmt_v1_network_verifications_network_verification_id_get) | **GET** /api/clusters_mgmt/v1/network_verifications/{network_verification_id} | +[**api_clusters_mgmt_v1_network_verifications_post**](DefaultApi.md#api_clusters_mgmt_v1_network_verifications_post) | **POST** /api/clusters_mgmt/v1/network_verifications | [**api_clusters_mgmt_v1_oidc_configs_get**](DefaultApi.md#api_clusters_mgmt_v1_oidc_configs_get) | **GET** /api/clusters_mgmt/v1/oidc_configs | [**api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete**](DefaultApi.md#api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete) | **DELETE** /api/clusters_mgmt/v1/oidc_configs/{oidc_config_id} | [**api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get**](DefaultApi.md#api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get) | **GET** /api/clusters_mgmt/v1/oidc_configs/{oidc_config_id} | @@ -194,11 +213,17 @@ Method | HTTP request | Description [**api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch**](DefaultApi.md#api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch) | **PATCH** /api/clusters_mgmt/v1/pending_delete_clusters/{pending_delete_cluster_id} | [**api_clusters_mgmt_v1_products_get**](DefaultApi.md#api_clusters_mgmt_v1_products_get) | **GET** /api/clusters_mgmt/v1/products | [**api_clusters_mgmt_v1_products_product_id_get**](DefaultApi.md#api_clusters_mgmt_v1_products_product_id_get) | **GET** /api/clusters_mgmt/v1/products/{product_id} | +[**api_clusters_mgmt_v1_products_product_id_minimal_versions_get**](DefaultApi.md#api_clusters_mgmt_v1_products_product_id_minimal_versions_get) | **GET** /api/clusters_mgmt/v1/products/{product_id}/minimal_versions | +[**api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get**](DefaultApi.md#api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get) | **GET** /api/clusters_mgmt/v1/products/{product_id}/minimal_versions/{minimal_version_id} | +[**api_clusters_mgmt_v1_products_product_id_technology_previews_get**](DefaultApi.md#api_clusters_mgmt_v1_products_product_id_technology_previews_get) | **GET** /api/clusters_mgmt/v1/products/{product_id}/technology_previews | +[**api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get**](DefaultApi.md#api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get) | **GET** /api/clusters_mgmt/v1/products/{product_id}/technology_previews/{technology_preview_id} | [**api_clusters_mgmt_v1_provision_shards_get**](DefaultApi.md#api_clusters_mgmt_v1_provision_shards_get) | **GET** /api/clusters_mgmt/v1/provision_shards | [**api_clusters_mgmt_v1_provision_shards_post**](DefaultApi.md#api_clusters_mgmt_v1_provision_shards_post) | **POST** /api/clusters_mgmt/v1/provision_shards | [**api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete**](DefaultApi.md#api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete) | **DELETE** /api/clusters_mgmt/v1/provision_shards/{provision_shard_id} | [**api_clusters_mgmt_v1_provision_shards_provision_shard_id_get**](DefaultApi.md#api_clusters_mgmt_v1_provision_shards_provision_shard_id_get) | **GET** /api/clusters_mgmt/v1/provision_shards/{provision_shard_id} | [**api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch**](DefaultApi.md#api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch) | **PATCH** /api/clusters_mgmt/v1/provision_shards/{provision_shard_id} | +[**api_clusters_mgmt_v1_trusted_ip_addresses_get**](DefaultApi.md#api_clusters_mgmt_v1_trusted_ip_addresses_get) | **GET** /api/clusters_mgmt/v1/trusted_ip_addresses | +[**api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get**](DefaultApi.md#api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get) | **GET** /api/clusters_mgmt/v1/trusted_ip_addresses/{trusted_ip_id} | [**api_clusters_mgmt_v1_version_gates_get**](DefaultApi.md#api_clusters_mgmt_v1_version_gates_get) | **GET** /api/clusters_mgmt/v1/version_gates | [**api_clusters_mgmt_v1_version_gates_post**](DefaultApi.md#api_clusters_mgmt_v1_version_gates_post) | **POST** /api/clusters_mgmt/v1/version_gates | [**api_clusters_mgmt_v1_version_gates_version_gate_id_delete**](DefaultApi.md#api_clusters_mgmt_v1_version_gates_version_gate_id_delete) | **DELETE** /api/clusters_mgmt/v1/version_gates/{version_gate_id} | @@ -1251,8 +1276,82 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post** +> InlineResponse2005 api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post(page=page, size=size, aws=aws) + + + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + page = 56 # int | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. (optional) +size = 56 # int | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of be the total number of STS account roles. (optional) +aws = ocm_client.AWS() # AWS | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post(page=page, size=size, aws=aws) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int**| Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] + **size** | **int**| Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of be the total number of STS account roles. | [optional] + **aws** | [**AWS**](AWS.md)| | [optional] + +### Return type + +[**InlineResponse2005**](InlineResponse2005.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get** -> InlineResponse2005 api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get(page=page, size=size) +> InlineResponse2006 api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get(page=page, size=size) @@ -1306,7 +1405,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2005**](InlineResponse2005.md) +[**InlineResponse2006**](InlineResponse2006.md) ### Authorization @@ -1326,7 +1425,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_clusters_mgmt_v1_aws_inquiries_sts_policies_get** -> InlineResponse2006 api_clusters_mgmt_v1_aws_inquiries_sts_policies_get(order=order, page=page, search=search, size=size) +> InlineResponse2007 api_clusters_mgmt_v1_aws_inquiries_sts_policies_get(order=order, page=page, search=search, size=size) @@ -1384,7 +1483,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2006**](InlineResponse2006.md) +[**InlineResponse2007**](InlineResponse2007.md) ### Authorization @@ -1404,7 +1503,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_clusters_mgmt_v1_aws_inquiries_vpcs_post** -> InlineResponse2007 api_clusters_mgmt_v1_aws_inquiries_vpcs_post(page=page, size=size, cloud_provider_data=cloud_provider_data) +> InlineResponse2008 api_clusters_mgmt_v1_aws_inquiries_vpcs_post(page=page, size=size, cloud_provider_data=cloud_provider_data) @@ -1460,7 +1559,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2007**](InlineResponse2007.md) +[**InlineResponse2008**](InlineResponse2008.md) ### Authorization @@ -1480,7 +1579,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_available_regions_post** -> InlineResponse2009 api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_available_regions_post(cloud_provider_id, page=page, size=size, aws=aws) +> InlineResponse20010 api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_available_regions_post(cloud_provider_id, page=page, size=size, aws=aws) @@ -1538,7 +1637,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2009**](InlineResponse2009.md) +[**InlineResponse20010**](InlineResponse20010.md) ### Authorization @@ -1630,7 +1729,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_regions_get** -> InlineResponse20010 api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_regions_get(cloud_provider_id, page=page, size=size) +> InlineResponse20011 api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_regions_get(cloud_provider_id, page=page, size=size) @@ -1686,7 +1785,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20010**](InlineResponse20010.md) +[**InlineResponse20011**](InlineResponse20011.md) ### Authorization @@ -2003,7 +2102,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_clusters_mgmt_v1_cloud_providers_get** -> InlineResponse2008 api_clusters_mgmt_v1_cloud_providers_get(order=order, page=page, search=search, size=size) +> InlineResponse2009 api_clusters_mgmt_v1_cloud_providers_get(fetch_regions=fetch_regions, order=order, page=page, search=search, size=size) @@ -2038,13 +2137,14 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cloud provider instead of the names of the columns of a table. For example, in order to sort the clusters descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) + fetch_regions = True # bool | If true, includes the regions on each provider in the output. Could slow request response time. (optional) +order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cloud provider instead of the names of the columns of a table. For example, in order to sort the clusters descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cloud provider instead of the names of the columns of a table. For example, in order to retrieve all the cloud providers with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. (optional) size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_cloud_providers_get(order=order, page=page, search=search, size=size) + api_response = api_instance.api_clusters_mgmt_v1_cloud_providers_get(fetch_regions=fetch_regions, order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->api_clusters_mgmt_v1_cloud_providers_get: %s\n" % e) @@ -2054,6 +2154,7 @@ size = 56 # int | Maximum number of items that will be contained in the returned Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **fetch_regions** | **bool**| If true, includes the regions on each provider in the output. Could slow request response time. | [optional] **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cloud provider instead of the names of the columns of a table. For example, in order to sort the clusters descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cloud provider instead of the names of the columns of a table. For example, in order to retrieve all the cloud providers with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. | [optional] @@ -2061,7 +2162,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2008**](InlineResponse2008.md) +[**InlineResponse2009**](InlineResponse2009.md) ### Authorization @@ -2604,7 +2705,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_clusters_mgmt_v1_clusters_cluster_id_addon_upgrade_policies_get** -> InlineResponse20012 api_clusters_mgmt_v1_clusters_cluster_id_addon_upgrade_policies_get(cluster_id, page=page, size=size) +> InlineResponse20013 api_clusters_mgmt_v1_clusters_cluster_id_addon_upgrade_policies_get(cluster_id, page=page, size=size) @@ -2660,7 +2761,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20012**](InlineResponse20012.md) +[**InlineResponse20013**](InlineResponse20013.md) ### Authorization @@ -2977,7 +3078,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_clusters_mgmt_v1_clusters_cluster_id_addons_get** -> InlineResponse20013 api_clusters_mgmt_v1_clusters_cluster_id_addons_get(cluster_id, order=order, page=page, search=search, size=size) +> InlineResponse20014 api_clusters_mgmt_v1_clusters_cluster_id_addons_get(cluster_id, order=order, page=page, search=search, size=size) @@ -3037,7 +3138,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20013**](InlineResponse20013.md) +[**InlineResponse20014**](InlineResponse20014.md) ### Authorization @@ -3130,12 +3231,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete(cluster_id, aws_infrastructure_access_role_grant_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete(cluster_id) -Deletes the AWS infrastructure access role grant. +Deletes the cluster autoscaler. ### Example @@ -3167,12 +3268,11 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -aws_infrastructure_access_role_grant_id = 'aws_infrastructure_access_role_grant_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete(cluster_id, aws_infrastructure_access_role_grant_id) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete(cluster_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete: %s\n" % e) ``` ### Parameters @@ -3180,7 +3280,6 @@ aws_infrastructure_access_role_grant_id = 'aws_infrastructure_access_role_grant_ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **aws_infrastructure_access_role_grant_id** | **str**| | ### Return type @@ -3203,12 +3302,12 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get** -> AWSInfrastructureAccessRoleGrant api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get(cluster_id, aws_infrastructure_access_role_grant_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get** +> ClusterAutoscaler api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get(cluster_id) -Retrieves the details of the AWS infrastructure access role grant. +Retrieves the autoscaler of a cluster. ### Example @@ -3240,13 +3339,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -aws_infrastructure_access_role_grant_id = 'aws_infrastructure_access_role_grant_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get(cluster_id, aws_infrastructure_access_role_grant_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get: %s\n" % e) ``` ### Parameters @@ -3254,11 +3352,10 @@ aws_infrastructure_access_role_grant_id = 'aws_infrastructure_access_role_grant_ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **aws_infrastructure_access_role_grant_id** | **str**| | ### Return type -[**AWSInfrastructureAccessRoleGrant**](AWSInfrastructureAccessRoleGrant.md) +[**ClusterAutoscaler**](ClusterAutoscaler.md) ### Authorization @@ -3277,12 +3374,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get** -> InlineResponse20015 api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get(cluster_id, order=order, page=page, search=search, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch** +> ClusterAutoscaler api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch(cluster_id, cluster_autoscaler=cluster_autoscaler) -Retrieves the list of AWS infrastructure access role grants. +Updates the cluster autoscaler. ### Example @@ -3314,16 +3411,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to sort the AWS infrastructure access role grants descending by user ARN the value should be: ```sql user_arn desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to retrieve all the AWS infrastructure access role grants with a user ARN starting with `user` the value should be: ```sql user_arn like '%user' ``` If the parameter isn't provided, or if the value is empty, then all the AWS infrastructure access role grants that the user has permission to see will be returned. (optional) -size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) +cluster_autoscaler = ocm_client.ClusterAutoscaler() # ClusterAutoscaler | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get(cluster_id, order=order, page=page, search=search, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch(cluster_id, cluster_autoscaler=cluster_autoscaler) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch: %s\n" % e) ``` ### Parameters @@ -3331,14 +3425,11 @@ size = 56 # int | Maximum number of items that will be contained in the returned Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to sort the AWS infrastructure access role grants descending by user ARN the value should be: ```sql user_arn desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to retrieve all the AWS infrastructure access role grants with a user ARN starting with `user` the value should be: ```sql user_arn like '%user' ``` If the parameter isn't provided, or if the value is empty, then all the AWS infrastructure access role grants that the user has permission to see will be returned. | [optional] - **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + **cluster_autoscaler** | [**ClusterAutoscaler**](ClusterAutoscaler.md)| | [optional] ### Return type -[**InlineResponse20015**](InlineResponse20015.md) +[**ClusterAutoscaler**](ClusterAutoscaler.md) ### Authorization @@ -3346,7 +3437,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -3357,12 +3448,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post** -> AWSInfrastructureAccessRoleGrant api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post(cluster_id, aws_infrastructure_access_role_grant=aws_infrastructure_access_role_grant) +# **api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post** +> ClusterAutoscaler api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post(cluster_id, cluster_autoscaler=cluster_autoscaler) -Create a new AWS infrastructure access role grant and add it to the collection of AWS infrastructure access role grants on the cluster. +Creates a new cluster autoscaler object. ### Example @@ -3394,13 +3485,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -aws_infrastructure_access_role_grant = ocm_client.AWSInfrastructureAccessRoleGrant() # AWSInfrastructureAccessRoleGrant | (optional) +cluster_autoscaler = ocm_client.ClusterAutoscaler() # ClusterAutoscaler | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post(cluster_id, aws_infrastructure_access_role_grant=aws_infrastructure_access_role_grant) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post(cluster_id, cluster_autoscaler=cluster_autoscaler) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post: %s\n" % e) ``` ### Parameters @@ -3408,11 +3499,11 @@ aws_infrastructure_access_role_grant = ocm_client.AWSInfrastructureAccessRoleGra Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **aws_infrastructure_access_role_grant** | [**AWSInfrastructureAccessRoleGrant**](AWSInfrastructureAccessRoleGrant.md)| | [optional] + **cluster_autoscaler** | [**ClusterAutoscaler**](ClusterAutoscaler.md)| | [optional] ### Return type -[**AWSInfrastructureAccessRoleGrant**](AWSInfrastructureAccessRoleGrant.md) +[**ClusterAutoscaler**](ClusterAutoscaler.md) ### Authorization @@ -3431,12 +3522,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get** -> PrivateLinkConfiguration api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete(cluster_id, aws_infrastructure_access_role_grant_id) -Retrieves the details of the configuration for the Private Link. +Deletes the AWS infrastructure access role grant. ### Example @@ -3468,12 +3559,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +aws_infrastructure_access_role_grant_id = 'aws_infrastructure_access_role_grant_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get(cluster_id) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete(cluster_id, aws_infrastructure_access_role_grant_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete: %s\n" % e) ``` ### Parameters @@ -3481,10 +3572,11 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **aws_infrastructure_access_role_grant_id** | **str**| | ### Return type -[**PrivateLinkConfiguration**](PrivateLinkConfiguration.md) +void (empty response body) ### Authorization @@ -3498,17 +3590,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get** -> InlineResponse20014 api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get(cluster_id, page=page, search=search, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get** +> AWSInfrastructureAccessRoleGrant api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get(cluster_id, aws_infrastructure_access_role_grant_id) -Retrieves the list of principals. +Retrieves the details of the AWS infrastructure access role grant. ### Example @@ -3540,15 +3632,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser: ```sql role_id = 'AuthenticatedUser' ``` If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +aws_infrastructure_access_role_grant_id = 'aws_infrastructure_access_role_grant_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get(cluster_id, page=page, search=search, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get(cluster_id, aws_infrastructure_access_role_grant_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get: %s\n" % e) ``` ### Parameters @@ -3556,13 +3646,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser: ```sql role_id = 'AuthenticatedUser' ``` If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **aws_infrastructure_access_role_grant_id** | **str**| | ### Return type -[**InlineResponse20014**](InlineResponse20014.md) +[**AWSInfrastructureAccessRoleGrant**](AWSInfrastructureAccessRoleGrant.md) ### Authorization @@ -3581,12 +3669,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post** -> PrivateLinkPrincipal api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post(cluster_id, private_link_principal=private_link_principal) +# **api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get** +> InlineResponse20016 api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get(cluster_id, order=order, page=page, search=search, size=size) -Adds a new principal for the Private Link. +Retrieves the list of AWS infrastructure access role grants. ### Example @@ -3618,13 +3706,16 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -private_link_principal = ocm_client.PrivateLinkPrincipal() # PrivateLinkPrincipal | (optional) +order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to sort the AWS infrastructure access role grants descending by user ARN the value should be: ```sql user_arn desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to retrieve all the AWS infrastructure access role grants with a user ARN starting with `user` the value should be: ```sql user_arn like '%user' ``` If the parameter isn't provided, or if the value is empty, then all the AWS infrastructure access role grants that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post(cluster_id, private_link_principal=private_link_principal) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get(cluster_id, order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get: %s\n" % e) ``` ### Parameters @@ -3632,11 +3723,14 @@ private_link_principal = ocm_client.PrivateLinkPrincipal() # PrivateLinkPrincipa Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **private_link_principal** | [**PrivateLinkPrincipal**](PrivateLinkPrincipal.md)| | [optional] + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to sort the AWS infrastructure access role grants descending by user ARN the value should be: ```sql user_arn desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to retrieve all the AWS infrastructure access role grants with a user ARN starting with `user` the value should be: ```sql user_arn like '%user' ``` If the parameter isn't provided, or if the value is empty, then all the AWS infrastructure access role grants that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**PrivateLinkPrincipal**](PrivateLinkPrincipal.md) +[**InlineResponse20016**](InlineResponse20016.md) ### Authorization @@ -3644,23 +3738,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete(cluster_id, principal_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post** +> AWSInfrastructureAccessRoleGrant api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post(cluster_id, aws_infrastructure_access_role_grant=aws_infrastructure_access_role_grant) -Deletes the principal. +Create a new AWS infrastructure access role grant and add it to the collection of AWS infrastructure access role grants on the cluster. ### Example @@ -3692,12 +3786,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -principal_id = 'principal_id_example' # str | +aws_infrastructure_access_role_grant = ocm_client.AWSInfrastructureAccessRoleGrant() # AWSInfrastructureAccessRoleGrant | (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete(cluster_id, principal_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post(cluster_id, aws_infrastructure_access_role_grant=aws_infrastructure_access_role_grant) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post: %s\n" % e) ``` ### Parameters @@ -3705,11 +3800,11 @@ principal_id = 'principal_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **principal_id** | **str**| | + **aws_infrastructure_access_role_grant** | [**AWSInfrastructureAccessRoleGrant**](AWSInfrastructureAccessRoleGrant.md)| | [optional] ### Return type -void (empty response body) +[**AWSInfrastructureAccessRoleGrant**](AWSInfrastructureAccessRoleGrant.md) ### Authorization @@ -3717,23 +3812,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get** -> PrivateLinkPrincipal api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get(cluster_id, principal_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get** +> PrivateLinkConfiguration api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get(cluster_id) -Retrieves the details of the principal. +Retrieves the details of the configuration for the Private Link. ### Example @@ -3765,13 +3860,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -principal_id = 'principal_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get(cluster_id, principal_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get: %s\n" % e) ``` ### Parameters @@ -3779,11 +3873,10 @@ principal_id = 'principal_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **principal_id** | **str**| | ### Return type -[**PrivateLinkPrincipal**](PrivateLinkPrincipal.md) +[**PrivateLinkConfiguration**](PrivateLinkConfiguration.md) ### Authorization @@ -3802,12 +3895,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get** +> InlineResponse20015 api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get(cluster_id, page=page, search=search, size=size) -Deletes the clusterdeployment. +Retrieves the list of principals. ### Example @@ -3839,11 +3932,15 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser: ```sql role_id = 'AuthenticatedUser' ``` If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get(cluster_id, page=page, search=search, size=size) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get: %s\n" % e) ``` ### Parameters @@ -3851,10 +3948,13 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser: ```sql role_id = 'AuthenticatedUser' ``` If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -void (empty response body) +[**InlineResponse20015**](InlineResponse20015.md) ### Authorization @@ -3868,17 +3968,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete(cluster_id, control_plane_upgrade_policy_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post** +> PrivateLinkPrincipal api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post(cluster_id, private_link_principal=private_link_principal) -Deletes the upgrade policy for the control plane. +Adds a new principal for the Private Link. ### Example @@ -3910,12 +4010,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -control_plane_upgrade_policy_id = 'control_plane_upgrade_policy_id_example' # str | +private_link_principal = ocm_client.PrivateLinkPrincipal() # PrivateLinkPrincipal | (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete(cluster_id, control_plane_upgrade_policy_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post(cluster_id, private_link_principal=private_link_principal) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post: %s\n" % e) ``` ### Parameters @@ -3923,11 +4024,11 @@ control_plane_upgrade_policy_id = 'control_plane_upgrade_policy_id_example' # st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **control_plane_upgrade_policy_id** | **str**| | + **private_link_principal** | [**PrivateLinkPrincipal**](PrivateLinkPrincipal.md)| | [optional] ### Return type -void (empty response body) +[**PrivateLinkPrincipal**](PrivateLinkPrincipal.md) ### Authorization @@ -3935,23 +4036,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get** -> ControlPlaneUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get(cluster_id, control_plane_upgrade_policy_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete(cluster_id, principal_id) -Retrieves the details of the upgrade policy for the control plane. +Deletes the principal. ### Example @@ -3983,13 +4084,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -control_plane_upgrade_policy_id = 'control_plane_upgrade_policy_id_example' # str | +principal_id = 'principal_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get(cluster_id, control_plane_upgrade_policy_id) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete(cluster_id, principal_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete: %s\n" % e) ``` ### Parameters @@ -3997,11 +4097,11 @@ control_plane_upgrade_policy_id = 'control_plane_upgrade_policy_id_example' # st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **control_plane_upgrade_policy_id** | **str**| | + **principal_id** | **str**| | ### Return type -[**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md) +void (empty response body) ### Authorization @@ -4015,17 +4115,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch** -> ControlPlaneUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch(cluster_id, control_plane_upgrade_policy_id, control_plane_upgrade_policy=control_plane_upgrade_policy) +# **api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get** +> PrivateLinkPrincipal api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get(cluster_id, principal_id) -Update the upgrade policy for the control plane. +Retrieves the details of the principal. ### Example @@ -4057,14 +4157,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -control_plane_upgrade_policy_id = 'control_plane_upgrade_policy_id_example' # str | -control_plane_upgrade_policy = ocm_client.ControlPlaneUpgradePolicy() # ControlPlaneUpgradePolicy | (optional) +principal_id = 'principal_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch(cluster_id, control_plane_upgrade_policy_id, control_plane_upgrade_policy=control_plane_upgrade_policy) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get(cluster_id, principal_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get: %s\n" % e) ``` ### Parameters @@ -4072,12 +4171,11 @@ control_plane_upgrade_policy = ocm_client.ControlPlaneUpgradePolicy() # ControlP Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **control_plane_upgrade_policy_id** | **str**| | - **control_plane_upgrade_policy** | [**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md)| | [optional] + **principal_id** | **str**| | ### Return type -[**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md) +[**PrivateLinkPrincipal**](PrivateLinkPrincipal.md) ### Authorization @@ -4085,7 +4183,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -4096,12 +4194,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get** -> InlineResponse20016 api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete(cluster_id) -Retrieves the list of upgrade policies for the control plane. +Deletes the clusterdeployment. ### Example @@ -4133,14 +4231,11 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get(cluster_id, page=page, size=size) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete(cluster_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete: %s\n" % e) ``` ### Parameters @@ -4148,12 +4243,10 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**InlineResponse20016**](InlineResponse20016.md) +void (empty response body) ### Authorization @@ -4167,17 +4260,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post** -> ControlPlaneUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post(cluster_id, control_plane_upgrade_policy=control_plane_upgrade_policy) +# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete(cluster_id, control_plane_upgrade_policy_id) -Adds a new upgrade policy to the control plane of the cluster. +Deletes the upgrade policy for the control plane. ### Example @@ -4209,13 +4302,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -control_plane_upgrade_policy = ocm_client.ControlPlaneUpgradePolicy() # ControlPlaneUpgradePolicy | (optional) +control_plane_upgrade_policy_id = 'control_plane_upgrade_policy_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post(cluster_id, control_plane_upgrade_policy=control_plane_upgrade_policy) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete(cluster_id, control_plane_upgrade_policy_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete: %s\n" % e) ``` ### Parameters @@ -4223,11 +4315,11 @@ control_plane_upgrade_policy = ocm_client.ControlPlaneUpgradePolicy() # ControlP Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **control_plane_upgrade_policy** | [**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md)| | [optional] + **control_plane_upgrade_policy_id** | **str**| | ### Return type -[**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md) +void (empty response body) ### Authorization @@ -4235,23 +4327,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_credentials_get** -> ClusterCredentials api_clusters_mgmt_v1_clusters_cluster_id_credentials_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get** +> ControlPlaneUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get(cluster_id, control_plane_upgrade_policy_id) -Retrieves the details of the credentials of a cluster. +Retrieves the details of the upgrade policy for the control plane. ### Example @@ -4283,12 +4375,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +control_plane_upgrade_policy_id = 'control_plane_upgrade_policy_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_credentials_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get(cluster_id, control_plane_upgrade_policy_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_credentials_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get: %s\n" % e) ``` ### Parameters @@ -4296,10 +4389,11 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **control_plane_upgrade_policy_id** | **str**| | ### Return type -[**ClusterCredentials**](ClusterCredentials.md) +[**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md) ### Authorization @@ -4318,12 +4412,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_delete(cluster_id, deprovision=deprovision, dry_run=dry_run) +# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch** +> ControlPlaneUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch(cluster_id, control_plane_upgrade_policy_id, control_plane_upgrade_policy=control_plane_upgrade_policy) -Deletes the cluster. +Update the upgrade policy for the control plane. ### Example @@ -4355,13 +4449,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -deprovision = True # bool | If false it will only delete from OCM but not the actual cluster resources. false is only allowed for OCP clusters. true by default. (optional) -dry_run = True # bool | Dry run flag is used to check if the operation can be completed, but won't delete. (optional) +control_plane_upgrade_policy_id = 'control_plane_upgrade_policy_id_example' # str | +control_plane_upgrade_policy = ocm_client.ControlPlaneUpgradePolicy() # ControlPlaneUpgradePolicy | (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_delete(cluster_id, deprovision=deprovision, dry_run=dry_run) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch(cluster_id, control_plane_upgrade_policy_id, control_plane_upgrade_policy=control_plane_upgrade_policy) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch: %s\n" % e) ``` ### Parameters @@ -4369,12 +4464,12 @@ dry_run = True # bool | Dry run flag is used to check if the operation can be co Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **deprovision** | **bool**| If false it will only delete from OCM but not the actual cluster resources. false is only allowed for OCP clusters. true by default. | [optional] - **dry_run** | **bool**| Dry run flag is used to check if the operation can be completed, but won't delete. | [optional] + **control_plane_upgrade_policy_id** | **str**| | + **control_plane_upgrade_policy** | [**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md)| | [optional] ### Return type -void (empty response body) +[**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md) ### Authorization @@ -4382,21 +4477,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get** -> DeleteProtection api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get** +> InlineResponse20017 api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get(cluster_id, page=page, size=size) + +Retrieves the list of upgrade policies for the control plane. ### Example @@ -4428,12 +4525,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get: %s\n" % e) ``` ### Parameters @@ -4441,10 +4540,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**DeleteProtection**](DeleteProtection.md) +[**InlineResponse20017**](InlineResponse20017.md) ### Authorization @@ -4463,10 +4564,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch** -> DeleteProtection api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch(cluster_id, delete_protection=delete_protection) +# **api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post** +> ControlPlaneUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post(cluster_id, control_plane_upgrade_policy=control_plane_upgrade_policy) + +Adds a new upgrade policy to the control plane of the cluster. ### Example @@ -4498,13 +4601,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -delete_protection = ocm_client.DeleteProtection() # DeleteProtection | (optional) +control_plane_upgrade_policy = ocm_client.ControlPlaneUpgradePolicy() # ControlPlaneUpgradePolicy | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch(cluster_id, delete_protection=delete_protection) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post(cluster_id, control_plane_upgrade_policy=control_plane_upgrade_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post: %s\n" % e) ``` ### Parameters @@ -4512,11 +4615,11 @@ delete_protection = ocm_client.DeleteProtection() # DeleteProtection | (optiona Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **delete_protection** | [**DeleteProtection**](DeleteProtection.md)| | [optional] + **control_plane_upgrade_policy** | [**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md)| | [optional] ### Return type -[**DeleteProtection**](DeleteProtection.md) +[**ControlPlaneUpgradePolicy**](ControlPlaneUpgradePolicy.md) ### Authorization @@ -4530,17 +4633,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get** -> ExternalConfiguration api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_credentials_get** +> ClusterCredentials api_clusters_mgmt_v1_clusters_cluster_id_credentials_get(cluster_id) -Retrieves the details of the external configuration. +Retrieves the details of the credentials of a cluster. ### Example @@ -4574,10 +4677,10 @@ with ocm_client.ApiClient(configuration) as api_client: cluster_id = 'cluster_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_credentials_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_credentials_get: %s\n" % e) ``` ### Parameters @@ -4588,7 +4691,7 @@ Name | Type | Description | Notes ### Return type -[**ExternalConfiguration**](ExternalConfiguration.md) +[**ClusterCredentials**](ClusterCredentials.md) ### Authorization @@ -4607,12 +4710,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get** -> InlineResponse20017 api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_delete(cluster_id, best_effort=best_effort, deprovision=deprovision, dry_run=dry_run) -Retrieves the list of labels. +Deletes the cluster. ### Example @@ -4644,14 +4747,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +best_effort = True # bool | BestEffort flag is used to check if the cluster deletion should be best-effort mode or not. (optional) +deprovision = True # bool | If false it will only delete from OCM but not the actual cluster resources. false is only allowed for OCP clusters. true by default. (optional) +dry_run = True # bool | Dry run flag is used to check if the operation can be completed, but won't delete. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get(cluster_id, page=page, size=size) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_delete(cluster_id, best_effort=best_effort, deprovision=deprovision, dry_run=dry_run) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_delete: %s\n" % e) ``` ### Parameters @@ -4659,12 +4762,13 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **best_effort** | **bool**| BestEffort flag is used to check if the cluster deletion should be best-effort mode or not. | [optional] + **deprovision** | **bool**| If false it will only delete from OCM but not the actual cluster resources. false is only allowed for OCP clusters. true by default. | [optional] + **dry_run** | **bool**| Dry run flag is used to check if the operation can be completed, but won't delete. | [optional] ### Return type -[**InlineResponse20017**](InlineResponse20017.md) +void (empty response body) ### Authorization @@ -4678,17 +4782,15 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete(cluster_id, label_id) - +# **api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get** +> DeleteProtection api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get(cluster_id) -Deletes the label. ### Example @@ -4720,12 +4822,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -label_id = 'label_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete(cluster_id, label_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get(cluster_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get: %s\n" % e) ``` ### Parameters @@ -4733,11 +4835,10 @@ label_id = 'label_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **label_id** | **str**| | ### Return type -void (empty response body) +[**DeleteProtection**](DeleteProtection.md) ### Authorization @@ -4751,17 +4852,15 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get** -> Label api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get(cluster_id, label_id) - +# **api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch** +> DeleteProtection api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch(cluster_id, delete_protection=delete_protection) -Retrieves the details of the label. ### Example @@ -4793,13 +4892,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -label_id = 'label_id_example' # str | +delete_protection = ocm_client.DeleteProtection() # DeleteProtection | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get(cluster_id, label_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch(cluster_id, delete_protection=delete_protection) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch: %s\n" % e) ``` ### Parameters @@ -4807,11 +4906,11 @@ label_id = 'label_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **label_id** | **str**| | + **delete_protection** | [**DeleteProtection**](DeleteProtection.md)| | [optional] ### Return type -[**Label**](Label.md) +[**DeleteProtection**](DeleteProtection.md) ### Authorization @@ -4819,7 +4918,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -4830,12 +4929,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch** -> Label api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch(cluster_id, label_id, label=label) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get** +> ExternalConfiguration api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get(cluster_id) -Update the label. +Retrieves the details of the external configuration. ### Example @@ -4867,14 +4966,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -label_id = 'label_id_example' # str | -label = ocm_client.Label() # Label | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch(cluster_id, label_id, label=label) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get: %s\n" % e) ``` ### Parameters @@ -4882,12 +4979,10 @@ label = ocm_client.Label() # Label | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **label_id** | **str**| | - **label** | [**Label**](Label.md)| | [optional] ### Return type -[**Label**](Label.md) +[**ExternalConfiguration**](ExternalConfiguration.md) ### Authorization @@ -4895,7 +4990,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -4906,12 +5001,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post** -> Label api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post(cluster_id, label=label) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get** +> InlineResponse20018 api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get(cluster_id, page=page, size=size) -Adds a new label to the cluster. +Retrieves the list of labels. ### Example @@ -4943,13 +5038,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -label = ocm_client.Label() # Label | (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post(cluster_id, label=label) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get: %s\n" % e) ``` ### Parameters @@ -4957,11 +5053,12 @@ label = ocm_client.Label() # Label | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **label** | [**Label**](Label.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**Label**](Label.md) +[**InlineResponse20018**](InlineResponse20018.md) ### Authorization @@ -4969,23 +5066,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get** -> InlineResponse20018 api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete(cluster_id, label_id) -Retrieves the list of manifests. +Deletes the label. ### Example @@ -5017,14 +5114,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +label_id = 'label_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get(cluster_id, page=page, size=size) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete(cluster_id, label_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete: %s\n" % e) ``` ### Parameters @@ -5032,12 +5127,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **label_id** | **str**| | ### Return type -[**InlineResponse20018**](InlineResponse20018.md) +void (empty response body) ### Authorization @@ -5051,17 +5145,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete(cluster_id, manifest_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get** +> Label api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get(cluster_id, label_id) -Deletes the manifest. +Retrieves the details of the label. ### Example @@ -5093,12 +5187,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -manifest_id = 'manifest_id_example' # str | +label_id = 'label_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete(cluster_id, manifest_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get(cluster_id, label_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get: %s\n" % e) ``` ### Parameters @@ -5106,11 +5201,11 @@ manifest_id = 'manifest_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **manifest_id** | **str**| | + **label_id** | **str**| | ### Return type -void (empty response body) +[**Label**](Label.md) ### Authorization @@ -5124,17 +5219,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get** -> Manifest api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get(cluster_id, manifest_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch** +> Label api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch(cluster_id, label_id, label=label) -Retrieves the details of the manifest. +Update the label. ### Example @@ -5166,13 +5261,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -manifest_id = 'manifest_id_example' # str | +label_id = 'label_id_example' # str | +label = ocm_client.Label() # Label | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get(cluster_id, manifest_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch(cluster_id, label_id, label=label) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch: %s\n" % e) ``` ### Parameters @@ -5180,11 +5276,12 @@ manifest_id = 'manifest_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **manifest_id** | **str**| | + **label_id** | **str**| | + **label** | [**Label**](Label.md)| | [optional] ### Return type -[**Manifest**](Manifest.md) +[**Label**](Label.md) ### Authorization @@ -5192,7 +5289,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -5203,12 +5300,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch** -> Manifest api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch(cluster_id, manifest_id, manifest=manifest) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post** +> Label api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post(cluster_id, label=label) -Update the manifest. +Adds a new label to the cluster. ### Example @@ -5240,14 +5337,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -manifest_id = 'manifest_id_example' # str | -manifest = ocm_client.Manifest() # Manifest | (optional) +label = ocm_client.Label() # Label | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch(cluster_id, manifest_id, manifest=manifest) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post(cluster_id, label=label) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post: %s\n" % e) ``` ### Parameters @@ -5255,12 +5351,11 @@ manifest = ocm_client.Manifest() # Manifest | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **manifest_id** | **str**| | - **manifest** | [**Manifest**](Manifest.md)| | [optional] + **label** | [**Label**](Label.md)| | [optional] ### Return type -[**Manifest**](Manifest.md) +[**Label**](Label.md) ### Authorization @@ -5274,17 +5369,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post** -> Manifest api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post(cluster_id, manifest=manifest) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get** +> InlineResponse20019 api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get(cluster_id, page=page, size=size) -Adds a new manifest to a cluster. +Retrieves the list of manifests. ### Example @@ -5316,13 +5411,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -manifest = ocm_client.Manifest() # Manifest | (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post(cluster_id, manifest=manifest) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get: %s\n" % e) ``` ### Parameters @@ -5330,11 +5426,12 @@ manifest = ocm_client.Manifest() # Manifest | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **manifest** | [**Manifest**](Manifest.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**Manifest**](Manifest.md) +[**InlineResponse20019**](InlineResponse20019.md) ### Authorization @@ -5342,23 +5439,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get** -> InlineResponse20019 api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete(cluster_id, manifest_id) -Retrieves the list of syncsets. +Deletes the manifest. ### Example @@ -5390,14 +5487,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +manifest_id = 'manifest_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get(cluster_id, page=page, size=size) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete(cluster_id, manifest_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete: %s\n" % e) ``` ### Parameters @@ -5405,12 +5500,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **manifest_id** | **str**| | ### Return type -[**InlineResponse20019**](InlineResponse20019.md) +void (empty response body) ### Authorization @@ -5424,17 +5518,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post** -> Syncset api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post(cluster_id, syncset=syncset) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get** +> Manifest api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get(cluster_id, manifest_id) -Adds a new syncset to the cluster. +Retrieves the details of the manifest. ### Example @@ -5466,13 +5560,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -syncset = ocm_client.Syncset() # Syncset | (optional) +manifest_id = 'manifest_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post(cluster_id, syncset=syncset) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get(cluster_id, manifest_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get: %s\n" % e) ``` ### Parameters @@ -5480,11 +5574,11 @@ syncset = ocm_client.Syncset() # Syncset | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **syncset** | [**Syncset**](Syncset.md)| | [optional] + **manifest_id** | **str**| | ### Return type -[**Syncset**](Syncset.md) +[**Manifest**](Manifest.md) ### Authorization @@ -5492,23 +5586,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete(cluster_id, syncset_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch** +> Manifest api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch(cluster_id, manifest_id, manifest=manifest) -Deletes the syncset. +Update the manifest. ### Example @@ -5540,12 +5634,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -syncset_id = 'syncset_id_example' # str | +manifest_id = 'manifest_id_example' # str | +manifest = ocm_client.Manifest() # Manifest | (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete(cluster_id, syncset_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch(cluster_id, manifest_id, manifest=manifest) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch: %s\n" % e) ``` ### Parameters @@ -5553,11 +5649,12 @@ syncset_id = 'syncset_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **syncset_id** | **str**| | + **manifest_id** | **str**| | + **manifest** | [**Manifest**](Manifest.md)| | [optional] ### Return type -void (empty response body) +[**Manifest**](Manifest.md) ### Authorization @@ -5565,23 +5662,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get** -> Syncset api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get(cluster_id, syncset_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post** +> Manifest api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post(cluster_id, manifest=manifest) -Retrieves the details of the syncset. +Adds a new manifest to a cluster. ### Example @@ -5613,13 +5710,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -syncset_id = 'syncset_id_example' # str | +manifest = ocm_client.Manifest() # Manifest | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get(cluster_id, syncset_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post(cluster_id, manifest=manifest) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post: %s\n" % e) ``` ### Parameters @@ -5627,11 +5724,11 @@ syncset_id = 'syncset_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **syncset_id** | **str**| | + **manifest** | [**Manifest**](Manifest.md)| | [optional] ### Return type -[**Syncset**](Syncset.md) +[**Manifest**](Manifest.md) ### Authorization @@ -5639,23 +5736,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch** -> Syncset api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch(cluster_id, syncset_id, syncset=syncset) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get** +> InlineResponse20020 api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get(cluster_id, page=page, size=size) -Update the syncset. +Retrieves the list of syncsets. ### Example @@ -5687,14 +5784,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -syncset_id = 'syncset_id_example' # str | -syncset = ocm_client.Syncset() # Syncset | (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch(cluster_id, syncset_id, syncset=syncset) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get: %s\n" % e) ``` ### Parameters @@ -5702,12 +5799,12 @@ syncset = ocm_client.Syncset() # Syncset | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **syncset_id** | **str**| | - **syncset** | [**Syncset**](Syncset.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**Syncset**](Syncset.md) +[**InlineResponse20020**](InlineResponse20020.md) ### Authorization @@ -5715,7 +5812,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -5726,12 +5823,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get** -> InlineResponse20020 api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post** +> Syncset api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post(cluster_id, syncset=syncset) -Retrieves the list of reasons. +Adds a new syncset to the cluster. ### Example @@ -5763,14 +5860,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +syncset = ocm_client.Syncset() # Syncset | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get(cluster_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post(cluster_id, syncset=syncset) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post: %s\n" % e) ``` ### Parameters @@ -5778,12 +5874,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **syncset** | [**Syncset**](Syncset.md)| | [optional] ### Return type -[**InlineResponse20020**](InlineResponse20020.md) +[**Syncset**](Syncset.md) ### Authorization @@ -5791,23 +5886,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post** -> VersionGateAgreement api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post(cluster_id, version_gate_agreement=version_gate_agreement) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete(cluster_id, syncset_id) -Adds a new agreed version gate to the cluster. +Deletes the syncset. ### Example @@ -5839,13 +5934,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -version_gate_agreement = ocm_client.VersionGateAgreement() # VersionGateAgreement | (optional) +syncset_id = 'syncset_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post(cluster_id, version_gate_agreement=version_gate_agreement) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete(cluster_id, syncset_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete: %s\n" % e) ``` ### Parameters @@ -5853,11 +5947,11 @@ version_gate_agreement = ocm_client.VersionGateAgreement() # VersionGateAgreemen Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **version_gate_agreement** | [**VersionGateAgreement**](VersionGateAgreement.md)| | [optional] + **syncset_id** | **str**| | ### Return type -[**VersionGateAgreement**](VersionGateAgreement.md) +void (empty response body) ### Authorization @@ -5865,23 +5959,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete(cluster_id, version_gate_agreement_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get** +> Syncset api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get(cluster_id, syncset_id) -Deletes the version gate agreement. +Retrieves the details of the syncset. ### Example @@ -5913,12 +6007,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -version_gate_agreement_id = 'version_gate_agreement_id_example' # str | +syncset_id = 'syncset_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete(cluster_id, version_gate_agreement_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get(cluster_id, syncset_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get: %s\n" % e) ``` ### Parameters @@ -5926,11 +6021,11 @@ version_gate_agreement_id = 'version_gate_agreement_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **version_gate_agreement_id** | **str**| | + **syncset_id** | **str**| | ### Return type -void (empty response body) +[**Syncset**](Syncset.md) ### Authorization @@ -5944,17 +6039,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get** -> VersionGateAgreement api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get(cluster_id, version_gate_agreement_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch** +> Syncset api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch(cluster_id, syncset_id, syncset=syncset) -Retrieves the details of the version gate agreement. +Update the syncset. ### Example @@ -5986,13 +6081,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -version_gate_agreement_id = 'version_gate_agreement_id_example' # str | +syncset_id = 'syncset_id_example' # str | +syncset = ocm_client.Syncset() # Syncset | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get(cluster_id, version_gate_agreement_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch(cluster_id, syncset_id, syncset=syncset) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch: %s\n" % e) ``` ### Parameters @@ -6000,11 +6096,12 @@ version_gate_agreement_id = 'version_gate_agreement_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **version_gate_agreement_id** | **str**| | + **syncset_id** | **str**| | + **syncset** | [**Syncset**](Syncset.md)| | [optional] ### Return type -[**VersionGateAgreement**](VersionGateAgreement.md) +[**Syncset**](Syncset.md) ### Authorization @@ -6012,7 +6109,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -6023,12 +6120,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_get** -> Cluster api_clusters_mgmt_v1_clusters_cluster_id_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get** +> InlineResponse20021 api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get(cluster_id, page=page, size=size) -Retrieves the details of the cluster. +Retrieves the list of reasons. ### Example @@ -6060,12 +6157,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get: %s\n" % e) ``` ### Parameters @@ -6073,10 +6172,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**Cluster**](Cluster.md) +[**InlineResponse20021**](InlineResponse20021.md) ### Authorization @@ -6095,12 +6196,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_groups_get** -> InlineResponse20021 api_clusters_mgmt_v1_clusters_cluster_id_groups_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post** +> VersionGateAgreement api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post(cluster_id, version_gate_agreement=version_gate_agreement) -Retrieves the list of groups. +Adds a new agreed version gate to the cluster. ### Example @@ -6132,14 +6233,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +version_gate_agreement = ocm_client.VersionGateAgreement() # VersionGateAgreement | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_get(cluster_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post(cluster_id, version_gate_agreement=version_gate_agreement) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post: %s\n" % e) ``` ### Parameters @@ -6147,12 +6247,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **version_gate_agreement** | [**VersionGateAgreement**](VersionGateAgreement.md)| | [optional] ### Return type -[**InlineResponse20021**](InlineResponse20021.md) +[**VersionGateAgreement**](VersionGateAgreement.md) ### Authorization @@ -6160,23 +6259,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get** -> Group api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get(cluster_id, group_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete(cluster_id, version_gate_agreement_id) -Retrieves the details of the group. +Deletes the version gate agreement. ### Example @@ -6208,13 +6307,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -group_id = 'group_id_example' # str | +version_gate_agreement_id = 'version_gate_agreement_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get(cluster_id, group_id) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete(cluster_id, version_gate_agreement_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete: %s\n" % e) ``` ### Parameters @@ -6222,11 +6320,11 @@ group_id = 'group_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **group_id** | **str**| | + **version_gate_agreement_id** | **str**| | ### Return type -[**Group**](Group.md) +void (empty response body) ### Authorization @@ -6240,17 +6338,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get** -> InlineResponse20022 api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get(cluster_id, group_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get** +> VersionGateAgreement api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get(cluster_id, version_gate_agreement_id) -Retrieves the list of users. +Retrieves the details of the version gate agreement. ### Example @@ -6282,15 +6380,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -group_id = 'group_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +version_gate_agreement_id = 'version_gate_agreement_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get(cluster_id, group_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get(cluster_id, version_gate_agreement_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get: %s\n" % e) ``` ### Parameters @@ -6298,13 +6394,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **group_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **version_gate_agreement_id** | **str**| | ### Return type -[**InlineResponse20022**](InlineResponse20022.md) +[**VersionGateAgreement**](VersionGateAgreement.md) ### Authorization @@ -6323,12 +6417,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post** -> User api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post(cluster_id, group_id, user=user) +# **api_clusters_mgmt_v1_clusters_cluster_id_get** +> Cluster api_clusters_mgmt_v1_clusters_cluster_id_get(cluster_id) -Adds a new user to the group. +Retrieves the details of the cluster. ### Example @@ -6360,14 +6454,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -group_id = 'group_id_example' # str | -user = ocm_client.User() # User | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post(cluster_id, group_id, user=user) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_get: %s\n" % e) ``` ### Parameters @@ -6375,12 +6467,10 @@ user = ocm_client.User() # User | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **group_id** | **str**| | - **user** | [**User**](User.md)| | [optional] ### Return type -[**User**](User.md) +[**Cluster**](Cluster.md) ### Authorization @@ -6388,23 +6478,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete(cluster_id, group_id, user_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_groups_get** +> InlineResponse20022 api_clusters_mgmt_v1_clusters_cluster_id_groups_get(cluster_id, page=page, size=size) -Deletes the user. +Retrieves the list of groups. ### Example @@ -6436,13 +6526,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -group_id = 'group_id_example' # str | -user_id = 'user_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete(cluster_id, group_id, user_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_get(cluster_id, page=page, size=size) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_get: %s\n" % e) ``` ### Parameters @@ -6450,12 +6541,12 @@ user_id = 'user_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **group_id** | **str**| | - **user_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -void (empty response body) +[**InlineResponse20022**](InlineResponse20022.md) ### Authorization @@ -6469,17 +6560,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get** -> User api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get(cluster_id, group_id, user_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get** +> Group api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get(cluster_id, group_id) -Retrieves the details of the user. +Retrieves the details of the group. ### Example @@ -6512,13 +6603,12 @@ with ocm_client.ApiClient(configuration) as api_client: api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | group_id = 'group_id_example' # str | -user_id = 'user_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get(cluster_id, group_id, user_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get(cluster_id, group_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get: %s\n" % e) ``` ### Parameters @@ -6527,11 +6617,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | **group_id** | **str**| | - **user_id** | **str**| | ### Return type -[**User**](User.md) +[**Group**](Group.md) ### Authorization @@ -6550,12 +6639,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post** -> api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get** +> InlineResponse20023 api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get(cluster_id, group_id, page=page, size=size) -Initiates cluster hibernation. While hibernating a cluster will not consume any cloud provider infrastructure but will be counted for quota. +Retrieves the list of users. ### Example @@ -6587,11 +6676,15 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +group_id = 'group_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get(cluster_id, group_id, page=page, size=size) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get: %s\n" % e) ``` ### Parameters @@ -6599,10 +6692,13 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **group_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -void (empty response body) +[**InlineResponse20023**](InlineResponse20023.md) ### Authorization @@ -6621,12 +6717,12 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get** -> HypershiftConfig api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post** +> User api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post(cluster_id, group_id, user=user) -Retrieves the Hypershift details for a single cluster. +Adds a new user to the group. ### Example @@ -6658,12 +6754,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +group_id = 'group_id_example' # str | +user = ocm_client.User() # User | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post(cluster_id, group_id, user=user) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post: %s\n" % e) ``` ### Parameters @@ -6671,10 +6769,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **group_id** | **str**| | + **user** | [**User**](User.md)| | [optional] ### Return type -[**HypershiftConfig**](HypershiftConfig.md) +[**User**](User.md) ### Authorization @@ -6682,23 +6782,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get** -> InlineResponse20023 api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete(cluster_id, group_id, user_id) -Retrieves the list of identity providers. +Deletes the user. ### Example @@ -6730,14 +6830,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +group_id = 'group_id_example' # str | +user_id = 'user_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get(cluster_id, page=page, size=size) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete(cluster_id, group_id, user_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete: %s\n" % e) ``` ### Parameters @@ -6745,12 +6844,12 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **group_id** | **str**| | + **user_id** | **str**| | ### Return type -[**InlineResponse20023**](InlineResponse20023.md) +void (empty response body) ### Authorization @@ -6764,17 +6863,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete(cluster_id, identity_provider_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get** +> User api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get(cluster_id, group_id, user_id) -Deletes the identity provider. +Retrieves the details of the user. ### Example @@ -6806,12 +6905,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -identity_provider_id = 'identity_provider_id_example' # str | +group_id = 'group_id_example' # str | +user_id = 'user_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete(cluster_id, identity_provider_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get(cluster_id, group_id, user_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get: %s\n" % e) ``` ### Parameters @@ -6819,11 +6920,12 @@ identity_provider_id = 'identity_provider_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **identity_provider_id** | **str**| | + **group_id** | **str**| | + **user_id** | **str**| | ### Return type -void (empty response body) +[**User**](User.md) ### Authorization @@ -6837,17 +6939,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get** -> IdentityProvider api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get(cluster_id, identity_provider_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post** +> api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post(cluster_id) -Retrieves the details of the identity provider. +Initiates cluster hibernation. While hibernating a cluster will not consume any cloud provider infrastructure but will be counted for quota. ### Example @@ -6879,13 +6981,11 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -identity_provider_id = 'identity_provider_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get(cluster_id, identity_provider_id) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post(cluster_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post: %s\n" % e) ``` ### Parameters @@ -6893,11 +6993,10 @@ identity_provider_id = 'identity_provider_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **identity_provider_id** | **str**| | ### Return type -[**IdentityProvider**](IdentityProvider.md) +void (empty response body) ### Authorization @@ -6916,12 +7015,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get** -> InlineResponse20024 api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get(cluster_id, identity_provider_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get** +> HypershiftConfig api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get(cluster_id) -Retrieves the list of _HTPasswd_ IDP users. +Retrieves the Hypershift details for a single cluster. ### Example @@ -6953,15 +7052,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -identity_provider_id = 'identity_provider_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get(cluster_id, identity_provider_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get: %s\n" % e) ``` ### Parameters @@ -6969,13 +7065,10 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **identity_provider_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**InlineResponse20024**](InlineResponse20024.md) +[**HypershiftConfig**](HypershiftConfig.md) ### Authorization @@ -6994,12 +7087,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete(cluster_id, identity_provider_id, htpasswd_user_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch** +> HypershiftConfig api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch(cluster_id, hypershift_config=hypershift_config) -Deletes the user. +Updates the Hypershift details for a single cluster. ### Example @@ -7031,13 +7124,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -identity_provider_id = 'identity_provider_id_example' # str | -htpasswd_user_id = 'htpasswd_user_id_example' # str | +hypershift_config = ocm_client.HypershiftConfig() # HypershiftConfig | (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete(cluster_id, identity_provider_id, htpasswd_user_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch(cluster_id, hypershift_config=hypershift_config) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch: %s\n" % e) ``` ### Parameters @@ -7045,12 +7138,11 @@ htpasswd_user_id = 'htpasswd_user_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **identity_provider_id** | **str**| | - **htpasswd_user_id** | **str**| | + **hypershift_config** | [**HypershiftConfig**](HypershiftConfig.md)| | [optional] ### Return type -void (empty response body) +[**HypershiftConfig**](HypershiftConfig.md) ### Authorization @@ -7058,23 +7150,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get** -> HTPasswdUser api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get(cluster_id, identity_provider_id, htpasswd_user_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get** +> InlineResponse20024 api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get(cluster_id, page=page, size=size) -Retrieves the details of the user. +Retrieves the list of identity providers. ### Example @@ -7106,14 +7198,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -identity_provider_id = 'identity_provider_id_example' # str | -htpasswd_user_id = 'htpasswd_user_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get(cluster_id, identity_provider_id, htpasswd_user_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get: %s\n" % e) ``` ### Parameters @@ -7121,12 +7213,12 @@ htpasswd_user_id = 'htpasswd_user_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **identity_provider_id** | **str**| | - **htpasswd_user_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**HTPasswdUser**](HTPasswdUser.md) +[**InlineResponse20024**](InlineResponse20024.md) ### Authorization @@ -7145,12 +7237,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch** -> HTPasswdUser api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch(cluster_id, identity_provider_id, htpasswd_user_id, ht_passwd_user=ht_passwd_user) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete(cluster_id, identity_provider_id) -Updates the user's password. The username is not editable +Deletes the identity provider. ### Example @@ -7183,14 +7275,11 @@ with ocm_client.ApiClient(configuration) as api_client: api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | identity_provider_id = 'identity_provider_id_example' # str | -htpasswd_user_id = 'htpasswd_user_id_example' # str | -ht_passwd_user = ocm_client.HTPasswdUser() # HTPasswdUser | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch(cluster_id, identity_provider_id, htpasswd_user_id, ht_passwd_user=ht_passwd_user) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete(cluster_id, identity_provider_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete: %s\n" % e) ``` ### Parameters @@ -7199,12 +7288,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | **identity_provider_id** | **str**| | - **htpasswd_user_id** | **str**| | - **ht_passwd_user** | [**HTPasswdUser**](HTPasswdUser.md)| | [optional] ### Return type -[**HTPasswdUser**](HTPasswdUser.md) +void (empty response body) ### Authorization @@ -7212,23 +7299,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post** -> InlineResponse20025 api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post(cluster_id, identity_provider_id, inline_object=inline_object) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get** +> IdentityProvider api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get(cluster_id, identity_provider_id) -Adds multiple new users to the _HTPasswd_ file. +Retrieves the details of the identity provider. ### Example @@ -7261,13 +7348,12 @@ with ocm_client.ApiClient(configuration) as api_client: api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | identity_provider_id = 'identity_provider_id_example' # str | -inline_object = ocm_client.InlineObject() # InlineObject | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post(cluster_id, identity_provider_id, inline_object=inline_object) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get(cluster_id, identity_provider_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get: %s\n" % e) ``` ### Parameters @@ -7276,11 +7362,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | **identity_provider_id** | **str**| | - **inline_object** | [**InlineObject**](InlineObject.md)| | [optional] ### Return type -[**InlineResponse20025**](InlineResponse20025.md) +[**IdentityProvider**](IdentityProvider.md) ### Authorization @@ -7288,7 +7373,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -7299,12 +7384,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post** -> HTPasswdUser api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post(cluster_id, identity_provider_id, ht_passwd_user=ht_passwd_user) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get** +> InlineResponse20025 api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get(cluster_id, identity_provider_id, page=page, size=size) -Adds a new user to the _HTPasswd_ file. +Retrieves the list of _HTPasswd_ IDP users. ### Example @@ -7337,13 +7422,14 @@ with ocm_client.ApiClient(configuration) as api_client: api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | identity_provider_id = 'identity_provider_id_example' # str | -ht_passwd_user = ocm_client.HTPasswdUser() # HTPasswdUser | (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post(cluster_id, identity_provider_id, ht_passwd_user=ht_passwd_user) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get(cluster_id, identity_provider_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get: %s\n" % e) ``` ### Parameters @@ -7352,11 +7438,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | **identity_provider_id** | **str**| | - **ht_passwd_user** | [**HTPasswdUser**](HTPasswdUser.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**HTPasswdUser**](HTPasswdUser.md) +[**InlineResponse20025**](InlineResponse20025.md) ### Authorization @@ -7364,23 +7451,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch** -> IdentityProvider api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch(cluster_id, identity_provider_id, identity_provider=identity_provider) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete(cluster_id, identity_provider_id, htpasswd_user_id) -Update identity provider in the cluster. +Deletes the user. ### Example @@ -7413,13 +7500,12 @@ with ocm_client.ApiClient(configuration) as api_client: api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | identity_provider_id = 'identity_provider_id_example' # str | -identity_provider = ocm_client.IdentityProvider() # IdentityProvider | (optional) +htpasswd_user_id = 'htpasswd_user_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch(cluster_id, identity_provider_id, identity_provider=identity_provider) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete(cluster_id, identity_provider_id, htpasswd_user_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete: %s\n" % e) ``` ### Parameters @@ -7428,11 +7514,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | **identity_provider_id** | **str**| | - **identity_provider** | [**IdentityProvider**](IdentityProvider.md)| | [optional] + **htpasswd_user_id** | **str**| | ### Return type -[**IdentityProvider**](IdentityProvider.md) +void (empty response body) ### Authorization @@ -7440,23 +7526,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post** -> IdentityProvider api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post(cluster_id, identity_provider=identity_provider) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get** +> HTPasswdUser api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get(cluster_id, identity_provider_id, htpasswd_user_id) -Adds a new identity provider to the cluster. +Retrieves the details of the user. ### Example @@ -7488,13 +7574,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -identity_provider = ocm_client.IdentityProvider() # IdentityProvider | (optional) +identity_provider_id = 'identity_provider_id_example' # str | +htpasswd_user_id = 'htpasswd_user_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post(cluster_id, identity_provider=identity_provider) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get(cluster_id, identity_provider_id, htpasswd_user_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get: %s\n" % e) ``` ### Parameters @@ -7502,11 +7589,12 @@ identity_provider = ocm_client.IdentityProvider() # IdentityProvider | (optiona Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **identity_provider** | [**IdentityProvider**](IdentityProvider.md)| | [optional] + **identity_provider_id** | **str**| | + **htpasswd_user_id** | **str**| | ### Return type -[**IdentityProvider**](IdentityProvider.md) +[**HTPasswdUser**](HTPasswdUser.md) ### Authorization @@ -7514,23 +7602,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get** -> InlineResponse20026 api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch** +> HTPasswdUser api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch(cluster_id, identity_provider_id, htpasswd_user_id, ht_passwd_user=ht_passwd_user) -Retrieves the list of inflight checks. +Updates the user's password. The username is not editable ### Example @@ -7562,14 +7650,15 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +identity_provider_id = 'identity_provider_id_example' # str | +htpasswd_user_id = 'htpasswd_user_id_example' # str | +ht_passwd_user = ocm_client.HTPasswdUser() # HTPasswdUser | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get(cluster_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch(cluster_id, identity_provider_id, htpasswd_user_id, ht_passwd_user=ht_passwd_user) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch: %s\n" % e) ``` ### Parameters @@ -7577,12 +7666,13 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **identity_provider_id** | **str**| | + **htpasswd_user_id** | **str**| | + **ht_passwd_user** | [**HTPasswdUser**](HTPasswdUser.md)| | [optional] ### Return type -[**InlineResponse20026**](InlineResponse20026.md) +[**HTPasswdUser**](HTPasswdUser.md) ### Authorization @@ -7590,7 +7680,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -7601,12 +7691,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get** -> InflightCheck api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get(cluster_id, inflight_check_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post** +> InlineResponse20026 api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post(cluster_id, identity_provider_id, inline_object=inline_object) -Retrieves the details of the inflight check. +Adds multiple new users to the _HTPasswd_ file. ### Example @@ -7638,13 +7728,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -inflight_check_id = 'inflight_check_id_example' # str | +identity_provider_id = 'identity_provider_id_example' # str | +inline_object = ocm_client.InlineObject() # InlineObject | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get(cluster_id, inflight_check_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post(cluster_id, identity_provider_id, inline_object=inline_object) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post: %s\n" % e) ``` ### Parameters @@ -7652,11 +7743,12 @@ inflight_check_id = 'inflight_check_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **inflight_check_id** | **str**| | + **identity_provider_id** | **str**| | + **inline_object** | [**InlineObject**](InlineObject.md)| | [optional] ### Return type -[**InflightCheck**](InflightCheck.md) +[**InlineResponse20026**](InlineResponse20026.md) ### Authorization @@ -7664,7 +7756,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -7675,12 +7767,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get** -> InlineResponse20027 api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post** +> HTPasswdUser api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post(cluster_id, identity_provider_id, ht_passwd_user=ht_passwd_user) -Retrieves the list of ingresses. +Adds a new user to the _HTPasswd_ file. ### Example @@ -7712,14 +7804,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +identity_provider_id = 'identity_provider_id_example' # str | +ht_passwd_user = ocm_client.HTPasswdUser() # HTPasswdUser | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get(cluster_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post(cluster_id, identity_provider_id, ht_passwd_user=ht_passwd_user) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post: %s\n" % e) ``` ### Parameters @@ -7727,12 +7819,12 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **identity_provider_id** | **str**| | + **ht_passwd_user** | [**HTPasswdUser**](HTPasswdUser.md)| | [optional] ### Return type -[**InlineResponse20027**](InlineResponse20027.md) +[**HTPasswdUser**](HTPasswdUser.md) ### Authorization @@ -7740,23 +7832,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete(cluster_id, ingress_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch** +> IdentityProvider api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch(cluster_id, identity_provider_id, identity_provider=identity_provider) -Deletes the ingress. +Update identity provider in the cluster. ### Example @@ -7788,12 +7880,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -ingress_id = 'ingress_id_example' # str | +identity_provider_id = 'identity_provider_id_example' # str | +identity_provider = ocm_client.IdentityProvider() # IdentityProvider | (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete(cluster_id, ingress_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch(cluster_id, identity_provider_id, identity_provider=identity_provider) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch: %s\n" % e) ``` ### Parameters @@ -7801,11 +7895,12 @@ ingress_id = 'ingress_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **ingress_id** | **str**| | + **identity_provider_id** | **str**| | + **identity_provider** | [**IdentityProvider**](IdentityProvider.md)| | [optional] ### Return type -void (empty response body) +[**IdentityProvider**](IdentityProvider.md) ### Authorization @@ -7813,23 +7908,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get** -> Ingress api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get(cluster_id, ingress_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post** +> IdentityProvider api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post(cluster_id, identity_provider=identity_provider) -Retrieves the details of the ingress. +Adds a new identity provider to the cluster. ### Example @@ -7861,13 +7956,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -ingress_id = 'ingress_id_example' # str | +identity_provider = ocm_client.IdentityProvider() # IdentityProvider | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get(cluster_id, ingress_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post(cluster_id, identity_provider=identity_provider) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post: %s\n" % e) ``` ### Parameters @@ -7875,11 +7970,11 @@ ingress_id = 'ingress_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **ingress_id** | **str**| | + **identity_provider** | [**IdentityProvider**](IdentityProvider.md)| | [optional] ### Return type -[**Ingress**](Ingress.md) +[**IdentityProvider**](IdentityProvider.md) ### Authorization @@ -7887,23 +7982,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch** -> Ingress api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch(cluster_id, ingress_id, ingress=ingress) +# **api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get** +> InlineResponse20027 api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get(cluster_id, page=page, size=size) -Updates the ingress. +Retrieves the list of inflight checks. ### Example @@ -7935,14 +8030,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -ingress_id = 'ingress_id_example' # str | -ingress = ocm_client.Ingress() # Ingress | (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch(cluster_id, ingress_id, ingress=ingress) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get: %s\n" % e) ``` ### Parameters @@ -7950,12 +8045,12 @@ ingress = ocm_client.Ingress() # Ingress | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **ingress_id** | **str**| | - **ingress** | [**Ingress**](Ingress.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**Ingress**](Ingress.md) +[**InlineResponse20027**](InlineResponse20027.md) ### Authorization @@ -7963,7 +8058,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -7974,12 +8069,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch** -> list[Ingress] api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch(cluster_id, ingress=ingress) +# **api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get** +> InflightCheck api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get(cluster_id, inflight_check_id) -Updates all ingresses +Retrieves the details of the inflight check. ### Example @@ -8011,13 +8106,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -ingress = [ocm_client.Ingress()] # list[Ingress] | (optional) +inflight_check_id = 'inflight_check_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch(cluster_id, ingress=ingress) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get(cluster_id, inflight_check_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get: %s\n" % e) ``` ### Parameters @@ -8025,11 +8120,11 @@ ingress = [ocm_client.Ingress()] # list[Ingress] | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **ingress** | [**list[Ingress]**](Ingress.md)| | [optional] + **inflight_check_id** | **str**| | ### Return type -[**list[Ingress]**](Ingress.md) +[**InflightCheck**](InflightCheck.md) ### Authorization @@ -8037,7 +8132,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -8048,12 +8143,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post** -> Ingress api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post(cluster_id, ingress=ingress) +# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get** +> InlineResponse20028 api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get(cluster_id, page=page, size=size) -Adds a new ingress to the cluster. +Retrieves the list of ingresses. ### Example @@ -8085,13 +8180,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -ingress = ocm_client.Ingress() # Ingress | (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post(cluster_id, ingress=ingress) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get: %s\n" % e) ``` ### Parameters @@ -8099,11 +8195,12 @@ ingress = ocm_client.Ingress() # Ingress | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **ingress** | [**Ingress**](Ingress.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**Ingress**](Ingress.md) +[**InlineResponse20028**](InlineResponse20028.md) ### Authorization @@ -8111,23 +8208,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get** -> InlineResponse20028 api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete(cluster_id, ingress_id) -Retrieves the list of reasons. +Deletes the ingress. ### Example @@ -8159,14 +8256,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +ingress_id = 'ingress_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get(cluster_id, page=page, size=size) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete(cluster_id, ingress_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete: %s\n" % e) ``` ### Parameters @@ -8174,12 +8269,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **ingress_id** | **str**| | ### Return type -[**InlineResponse20028**](InlineResponse20028.md) +void (empty response body) ### Authorization @@ -8193,17 +8287,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete(cluster_id, limited_support_reason_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get** +> Ingress api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get(cluster_id, ingress_id) -Deletes the reason. +Retrieves the details of the ingress. ### Example @@ -8235,12 +8329,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -limited_support_reason_id = 'limited_support_reason_id_example' # str | +ingress_id = 'ingress_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete(cluster_id, limited_support_reason_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get(cluster_id, ingress_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get: %s\n" % e) ``` ### Parameters @@ -8248,11 +8343,11 @@ limited_support_reason_id = 'limited_support_reason_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **limited_support_reason_id** | **str**| | + **ingress_id** | **str**| | ### Return type -void (empty response body) +[**Ingress**](Ingress.md) ### Authorization @@ -8266,17 +8361,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get** -> LimitedSupportReason api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get(cluster_id, limited_support_reason_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch** +> Ingress api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch(cluster_id, ingress_id, ingress=ingress) -Retrieves the details of the reason. +Updates the ingress. ### Example @@ -8308,13 +8403,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -limited_support_reason_id = 'limited_support_reason_id_example' # str | +ingress_id = 'ingress_id_example' # str | +ingress = ocm_client.Ingress() # Ingress | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get(cluster_id, limited_support_reason_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch(cluster_id, ingress_id, ingress=ingress) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch: %s\n" % e) ``` ### Parameters @@ -8322,11 +8418,12 @@ limited_support_reason_id = 'limited_support_reason_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **limited_support_reason_id** | **str**| | + **ingress_id** | **str**| | + **ingress** | [**Ingress**](Ingress.md)| | [optional] ### Return type -[**LimitedSupportReason**](LimitedSupportReason.md) +[**Ingress**](Ingress.md) ### Authorization @@ -8334,7 +8431,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -8345,12 +8442,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post** -> LimitedSupportReason api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post(cluster_id, limited_support_reason=limited_support_reason) +# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch** +> list[Ingress] api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch(cluster_id, ingress=ingress) -Adds a new reason to the cluster. +Updates all ingresses ### Example @@ -8382,13 +8479,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -limited_support_reason = ocm_client.LimitedSupportReason() # LimitedSupportReason | (optional) +ingress = [ocm_client.Ingress()] # list[Ingress] | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post(cluster_id, limited_support_reason=limited_support_reason) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch(cluster_id, ingress=ingress) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch: %s\n" % e) ``` ### Parameters @@ -8396,11 +8493,11 @@ limited_support_reason = ocm_client.LimitedSupportReason() # LimitedSupportReaso Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **limited_support_reason** | [**LimitedSupportReason**](LimitedSupportReason.md)| | [optional] + **ingress** | [**list[Ingress]**](Ingress.md)| | [optional] ### Return type -[**LimitedSupportReason**](LimitedSupportReason.md) +[**list[Ingress]**](Ingress.md) ### Authorization @@ -8414,17 +8511,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_logs_get** -> InlineResponse20029 api_clusters_mgmt_v1_clusters_cluster_id_logs_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post** +> Ingress api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post(cluster_id, ingress=ingress) -Retrieves the list of log links. +Adds a new ingress to the cluster. ### Example @@ -8456,14 +8553,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +ingress = ocm_client.Ingress() # Ingress | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_logs_get(cluster_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post(cluster_id, ingress=ingress) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_logs_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post: %s\n" % e) ``` ### Parameters @@ -8471,12 +8567,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **ingress** | [**Ingress**](Ingress.md)| | [optional] ### Return type -[**InlineResponse20029**](InlineResponse20029.md) +[**Ingress**](Ingress.md) ### Authorization @@ -8484,23 +8579,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get** -> Log api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get(cluster_id, offset=offset, tail=tail) +# **api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete(cluster_id) -Retrieves the details of the log. +Deletes the cluster KubeletConfig ### Example @@ -8532,14 +8627,11 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -offset = 56 # int | Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. (optional) -tail = 56 # int | Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get(cluster_id, offset=offset, tail=tail) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete(cluster_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete: %s\n" % e) ``` ### Parameters @@ -8547,12 +8639,10 @@ tail = 56 # int | Returns the number of tail lines from the end of the log. If t Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **offset** | **int**| Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. | [optional] - **tail** | **int**| Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. | [optional] ### Return type -[**Log**](Log.md) +void (empty response body) ### Authorization @@ -8566,17 +8656,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get** -> Log api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get(cluster_id, offset=offset, tail=tail) +# **api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get** +> KubeletConfig api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get(cluster_id) -Retrieves the details of the log. +Retrieves the KubeletConfig for a cluster ### Example @@ -8608,14 +8698,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -offset = 56 # int | Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. (optional) -tail = 56 # int | Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get(cluster_id, offset=offset, tail=tail) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get: %s\n" % e) ``` ### Parameters @@ -8623,12 +8711,10 @@ tail = 56 # int | Returns the number of tail lines from the end of the log. If t Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **offset** | **int**| Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. | [optional] - **tail** | **int**| Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. | [optional] ### Return type -[**Log**](Log.md) +[**KubeletConfig**](KubeletConfig.md) ### Authorization @@ -8647,12 +8733,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get** -> InlineResponse20030 api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch** +> KubeletConfig api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch(cluster_id, kubelet_config=kubelet_config) -Retrieves the list of machine pools. +Updates the existing cluster KubeletConfig ### Example @@ -8684,14 +8770,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +kubelet_config = ocm_client.KubeletConfig() # KubeletConfig | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get(cluster_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch(cluster_id, kubelet_config=kubelet_config) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch: %s\n" % e) ``` ### Parameters @@ -8699,12 +8784,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **kubelet_config** | [**KubeletConfig**](KubeletConfig.md)| | [optional] ### Return type -[**InlineResponse20030**](InlineResponse20030.md) +[**KubeletConfig**](KubeletConfig.md) ### Authorization @@ -8712,7 +8796,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -8723,12 +8807,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete(cluster_id, machine_pool_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post** +> KubeletConfig api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post(cluster_id, kubelet_config=kubelet_config) -Deletes the machine pool. +Creates a new cluster KubeletConfig ### Example @@ -8760,12 +8844,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -machine_pool_id = 'machine_pool_id_example' # str | +kubelet_config = ocm_client.KubeletConfig() # KubeletConfig | (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete(cluster_id, machine_pool_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post(cluster_id, kubelet_config=kubelet_config) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post: %s\n" % e) ``` ### Parameters @@ -8773,11 +8858,11 @@ machine_pool_id = 'machine_pool_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **machine_pool_id** | **str**| | + **kubelet_config** | [**KubeletConfig**](KubeletConfig.md)| | [optional] ### Return type -void (empty response body) +[**KubeletConfig**](KubeletConfig.md) ### Authorization @@ -8785,23 +8870,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get** -> MachinePool api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get(cluster_id, machine_pool_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get** +> InlineResponse20029 api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get(cluster_id, page=page, size=size) -Retrieves the details of the machine pool. +Retrieves the list of reasons. ### Example @@ -8833,13 +8918,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -machine_pool_id = 'machine_pool_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get(cluster_id, machine_pool_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get: %s\n" % e) ``` ### Parameters @@ -8847,11 +8933,12 @@ machine_pool_id = 'machine_pool_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **machine_pool_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**MachinePool**](MachinePool.md) +[**InlineResponse20029**](InlineResponse20029.md) ### Authorization @@ -8870,12 +8957,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch** -> MachinePool api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch(cluster_id, machine_pool_id, machine_pool=machine_pool) +# **api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete(cluster_id, limited_support_reason_id) -Updates the machine pool. +Deletes the reason. ### Example @@ -8907,14 +8994,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -machine_pool_id = 'machine_pool_id_example' # str | -machine_pool = ocm_client.MachinePool() # MachinePool | (optional) +limited_support_reason_id = 'limited_support_reason_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch(cluster_id, machine_pool_id, machine_pool=machine_pool) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete(cluster_id, limited_support_reason_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete: %s\n" % e) ``` ### Parameters @@ -8922,12 +9007,11 @@ machine_pool = ocm_client.MachinePool() # MachinePool | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **machine_pool_id** | **str**| | - **machine_pool** | [**MachinePool**](MachinePool.md)| | [optional] + **limited_support_reason_id** | **str**| | ### Return type -[**MachinePool**](MachinePool.md) +void (empty response body) ### Authorization @@ -8935,23 +9019,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post** -> MachinePool api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post(cluster_id, machine_pool=machine_pool) +# **api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get** +> LimitedSupportReason api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get(cluster_id, limited_support_reason_id) -Adds a new machine pool to the cluster. +Retrieves the details of the reason. ### Example @@ -8983,13 +9067,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -machine_pool = ocm_client.MachinePool() # MachinePool | (optional) +limited_support_reason_id = 'limited_support_reason_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post(cluster_id, machine_pool=machine_pool) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get(cluster_id, limited_support_reason_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get: %s\n" % e) ``` ### Parameters @@ -8997,11 +9081,11 @@ machine_pool = ocm_client.MachinePool() # MachinePool | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **machine_pool** | [**MachinePool**](MachinePool.md)| | [optional] + **limited_support_reason_id** | **str**| | ### Return type -[**MachinePool**](MachinePool.md) +[**LimitedSupportReason**](LimitedSupportReason.md) ### Authorization @@ -9009,22 +9093,24 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get** -> AlertsInfo api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post** +> LimitedSupportReason api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post(cluster_id, limited_support_reason=limited_support_reason) +Adds a new reason to the cluster. + ### Example * Bearer (JWT) Authentication (bearer): @@ -9055,12 +9141,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +limited_support_reason = ocm_client.LimitedSupportReason() # LimitedSupportReason | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post(cluster_id, limited_support_reason=limited_support_reason) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post: %s\n" % e) ``` ### Parameters @@ -9068,10 +9155,11 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **limited_support_reason** | [**LimitedSupportReason**](LimitedSupportReason.md)| | [optional] ### Return type -[**AlertsInfo**](AlertsInfo.md) +[**LimitedSupportReason**](LimitedSupportReason.md) ### Authorization @@ -9079,21 +9167,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get** -> ClusterOperatorsInfo api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_logs_get** +> InlineResponse20030 api_clusters_mgmt_v1_clusters_cluster_id_logs_get(cluster_id, page=page, size=size) + +Retrieves the list of log links. ### Example @@ -9125,12 +9215,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_logs_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_logs_get: %s\n" % e) ``` ### Parameters @@ -9138,10 +9230,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**ClusterOperatorsInfo**](ClusterOperatorsInfo.md) +[**InlineResponse20030**](InlineResponse20030.md) ### Authorization @@ -9160,12 +9254,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get** -> CPUTotalsNodeRoleOSMetricNode api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get** +> Log api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get(cluster_id, offset=offset, tail=tail) -Retrieves the metrics. +Retrieves the details of the log. ### Example @@ -9197,12 +9291,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +offset = 56 # int | Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. (optional) +tail = 56 # int | Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get(cluster_id, offset=offset, tail=tail) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get: %s\n" % e) ``` ### Parameters @@ -9210,10 +9306,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **offset** | **int**| Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. | [optional] + **tail** | **int**| Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. | [optional] ### Return type -[**CPUTotalsNodeRoleOSMetricNode**](CPUTotalsNodeRoleOSMetricNode.md) +[**Log**](Log.md) ### Authorization @@ -9232,10 +9330,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get** -> NodesInfo api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get** +> Log api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get(cluster_id, offset=offset, tail=tail) + +Retrieves the details of the log. ### Example @@ -9267,12 +9367,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +offset = 56 # int | Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. (optional) +tail = 56 # int | Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get(cluster_id, offset=offset, tail=tail) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get: %s\n" % e) ``` ### Parameters @@ -9280,10 +9382,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **offset** | **int**| Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. | [optional] + **tail** | **int**| Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. | [optional] ### Return type -[**NodesInfo**](NodesInfo.md) +[**Log**](Log.md) ### Authorization @@ -9302,12 +9406,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get** -> SocketTotalsNodeRoleOSMetricNode api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get** +> InlineResponse20031 api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get(cluster_id, page=page, size=size) -Retrieves the metrics. +Retrieves the list of machine pools. ### Example @@ -9339,12 +9443,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get: %s\n" % e) ``` ### Parameters @@ -9352,10 +9458,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**SocketTotalsNodeRoleOSMetricNode**](SocketTotalsNodeRoleOSMetricNode.md) +[**InlineResponse20031**](InlineResponse20031.md) ### Authorization @@ -9374,12 +9482,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get** -> InlineResponse20031 api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete(cluster_id, machine_pool_id) -Retrieves the list of node pools. +Deletes the machine pool. ### Example @@ -9411,14 +9519,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +machine_pool_id = 'machine_pool_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get(cluster_id, page=page, size=size) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete(cluster_id, machine_pool_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete: %s\n" % e) ``` ### Parameters @@ -9426,12 +9532,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **machine_pool_id** | **str**| | ### Return type -[**InlineResponse20031**](InlineResponse20031.md) +void (empty response body) ### Authorization @@ -9445,17 +9550,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete(cluster_id, node_pool_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get** +> MachinePool api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get(cluster_id, machine_pool_id) -Deletes the node pool. +Retrieves the details of the machine pool. ### Example @@ -9487,12 +9592,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -node_pool_id = 'node_pool_id_example' # str | +machine_pool_id = 'machine_pool_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete(cluster_id, node_pool_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get(cluster_id, machine_pool_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get: %s\n" % e) ``` ### Parameters @@ -9500,11 +9606,11 @@ node_pool_id = 'node_pool_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **node_pool_id** | **str**| | + **machine_pool_id** | **str**| | ### Return type -void (empty response body) +[**MachinePool**](MachinePool.md) ### Authorization @@ -9518,17 +9624,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get** -> NodePool api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get(cluster_id, node_pool_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch** +> MachinePool api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch(cluster_id, machine_pool_id, machine_pool=machine_pool) -Retrieves the details of the node pool. +Updates the machine pool. ### Example @@ -9560,13 +9666,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -node_pool_id = 'node_pool_id_example' # str | +machine_pool_id = 'machine_pool_id_example' # str | +machine_pool = ocm_client.MachinePool() # MachinePool | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get(cluster_id, node_pool_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch(cluster_id, machine_pool_id, machine_pool=machine_pool) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch: %s\n" % e) ``` ### Parameters @@ -9574,11 +9681,12 @@ node_pool_id = 'node_pool_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **node_pool_id** | **str**| | + **machine_pool_id** | **str**| | + **machine_pool** | [**MachinePool**](MachinePool.md)| | [optional] ### Return type -[**NodePool**](NodePool.md) +[**MachinePool**](MachinePool.md) ### Authorization @@ -9586,7 +9694,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -9597,12 +9705,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch** -> NodePool api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch(cluster_id, node_pool_id, node_pool=node_pool) +# **api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post** +> MachinePool api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post(cluster_id, machine_pool=machine_pool) -Updates the node pool. +Adds a new machine pool to the cluster. ### Example @@ -9634,14 +9742,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -node_pool_id = 'node_pool_id_example' # str | -node_pool = ocm_client.NodePool() # NodePool | (optional) +machine_pool = ocm_client.MachinePool() # MachinePool | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch(cluster_id, node_pool_id, node_pool=node_pool) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post(cluster_id, machine_pool=machine_pool) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post: %s\n" % e) ``` ### Parameters @@ -9649,12 +9756,11 @@ node_pool = ocm_client.NodePool() # NodePool | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **node_pool_id** | **str**| | - **node_pool** | [**NodePool**](NodePool.md)| | [optional] + **machine_pool** | [**MachinePool**](MachinePool.md)| | [optional] ### Return type -[**NodePool**](NodePool.md) +[**MachinePool**](MachinePool.md) ### Authorization @@ -9668,17 +9774,15 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get** -> InlineResponse20032 api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get(cluster_id, node_pool_id, page=page, size=size) - +# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get** +> AlertsInfo api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get(cluster_id) -Retrieves the list of upgrade policies for the node pool. ### Example @@ -9710,15 +9814,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -node_pool_id = 'node_pool_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get(cluster_id, node_pool_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get: %s\n" % e) ``` ### Parameters @@ -9726,13 +9827,10 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **node_pool_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**InlineResponse20032**](InlineResponse20032.md) +[**AlertsInfo**](AlertsInfo.md) ### Authorization @@ -9751,12 +9849,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete(cluster_id, node_pool_id, node_pool_upgrade_policy_id) - +# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get** +> ClusterOperatorsInfo api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get(cluster_id) -Deletes the upgrade policy for the node pool. ### Example @@ -9788,13 +9884,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -node_pool_id = 'node_pool_id_example' # str | -node_pool_upgrade_policy_id = 'node_pool_upgrade_policy_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete(cluster_id, node_pool_id, node_pool_upgrade_policy_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get(cluster_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get: %s\n" % e) ``` ### Parameters @@ -9802,12 +9897,10 @@ node_pool_upgrade_policy_id = 'node_pool_upgrade_policy_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **node_pool_id** | **str**| | - **node_pool_upgrade_policy_id** | **str**| | ### Return type -void (empty response body) +[**ClusterOperatorsInfo**](ClusterOperatorsInfo.md) ### Authorization @@ -9821,17 +9914,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get** -> NodePoolUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get(cluster_id, node_pool_id, node_pool_upgrade_policy_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get** +> CPUTotalsNodeRoleOSMetricNode api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get(cluster_id) -Retrieves the details of the upgrade policy for the node pool. +Retrieves the metrics. ### Example @@ -9863,14 +9956,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -node_pool_id = 'node_pool_id_example' # str | -node_pool_upgrade_policy_id = 'node_pool_upgrade_policy_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get(cluster_id, node_pool_id, node_pool_upgrade_policy_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get: %s\n" % e) ``` ### Parameters @@ -9878,12 +9969,10 @@ node_pool_upgrade_policy_id = 'node_pool_upgrade_policy_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **node_pool_id** | **str**| | - **node_pool_upgrade_policy_id** | **str**| | ### Return type -[**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md) +[**CPUTotalsNodeRoleOSMetricNode**](CPUTotalsNodeRoleOSMetricNode.md) ### Authorization @@ -9902,12 +9991,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch** -> NodePoolUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch(cluster_id, node_pool_id, node_pool_upgrade_policy_id, node_pool_upgrade_policy=node_pool_upgrade_policy) - +# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get** +> NodesInfo api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get(cluster_id) -Update the upgrade policy for the node pool. ### Example @@ -9939,15 +10026,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -node_pool_id = 'node_pool_id_example' # str | -node_pool_upgrade_policy_id = 'node_pool_upgrade_policy_id_example' # str | -node_pool_upgrade_policy = ocm_client.NodePoolUpgradePolicy() # NodePoolUpgradePolicy | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch(cluster_id, node_pool_id, node_pool_upgrade_policy_id, node_pool_upgrade_policy=node_pool_upgrade_policy) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get: %s\n" % e) ``` ### Parameters @@ -9955,13 +10039,10 @@ node_pool_upgrade_policy = ocm_client.NodePoolUpgradePolicy() # NodePoolUpgradeP Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **node_pool_id** | **str**| | - **node_pool_upgrade_policy_id** | **str**| | - **node_pool_upgrade_policy** | [**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md)| | [optional] ### Return type -[**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md) +[**NodesInfo**](NodesInfo.md) ### Authorization @@ -9969,7 +10050,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -9980,12 +10061,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post** -> NodePoolUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post(cluster_id, node_pool_id, node_pool_upgrade_policy=node_pool_upgrade_policy) +# **api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get** +> SocketTotalsNodeRoleOSMetricNode api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get(cluster_id) -Adds a new upgrade policy to the node pool of the cluster. +Retrieves the metrics. ### Example @@ -10017,14 +10098,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -node_pool_id = 'node_pool_id_example' # str | -node_pool_upgrade_policy = ocm_client.NodePoolUpgradePolicy() # NodePoolUpgradePolicy | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post(cluster_id, node_pool_id, node_pool_upgrade_policy=node_pool_upgrade_policy) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get: %s\n" % e) ``` ### Parameters @@ -10032,12 +10111,10 @@ node_pool_upgrade_policy = ocm_client.NodePoolUpgradePolicy() # NodePoolUpgradeP Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **node_pool_id** | **str**| | - **node_pool_upgrade_policy** | [**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md)| | [optional] ### Return type -[**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md) +[**SocketTotalsNodeRoleOSMetricNode**](SocketTotalsNodeRoleOSMetricNode.md) ### Authorization @@ -10045,23 +10122,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post** -> NodePool api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post(cluster_id, node_pool=node_pool) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get** +> InlineResponse20032 api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get(cluster_id, page=page, size=size) -Adds a new node pool to the cluster. +Retrieves the list of node pools. ### Example @@ -10093,13 +10170,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -node_pool = ocm_client.NodePool() # NodePool | (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post(cluster_id, node_pool=node_pool) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get: %s\n" % e) ``` ### Parameters @@ -10107,11 +10185,12 @@ node_pool = ocm_client.NodePool() # NodePool | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **node_pool** | [**NodePool**](NodePool.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**NodePool**](NodePool.md) +[**InlineResponse20032**](InlineResponse20032.md) ### Authorization @@ -10119,23 +10198,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_patch** -> Cluster api_clusters_mgmt_v1_clusters_cluster_id_patch(cluster_id, cluster=cluster) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete(cluster_id, node_pool_id) -Updates the cluster. +Deletes the node pool. ### Example @@ -10167,13 +10246,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -cluster = ocm_client.Cluster() # Cluster | (optional) +node_pool_id = 'node_pool_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_patch(cluster_id, cluster=cluster) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete(cluster_id, node_pool_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete: %s\n" % e) ``` ### Parameters @@ -10181,11 +10259,11 @@ cluster = ocm_client.Cluster() # Cluster | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **cluster** | [**Cluster**](Cluster.md)| | [optional] + **node_pool_id** | **str**| | ### Return type -[**Cluster**](Cluster.md) +void (empty response body) ### Authorization @@ -10193,23 +10271,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_product_get** -> Product api_clusters_mgmt_v1_clusters_cluster_id_product_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get** +> NodePool api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get(cluster_id, node_pool_id) -Retrieves the details of the product. +Retrieves the details of the node pool. ### Example @@ -10241,12 +10319,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +node_pool_id = 'node_pool_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_product_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get(cluster_id, node_pool_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_product_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get: %s\n" % e) ``` ### Parameters @@ -10254,10 +10333,11 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **node_pool_id** | **str**| | ### Return type -[**Product**](Product.md) +[**NodePool**](NodePool.md) ### Authorization @@ -10276,12 +10356,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch** +> NodePool api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch(cluster_id, node_pool_id, node_pool=node_pool) -Delete the provision shard. +Updates the node pool. ### Example @@ -10313,11 +10393,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +node_pool_id = 'node_pool_id_example' # str | +node_pool = ocm_client.NodePool() # NodePool | (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch(cluster_id, node_pool_id, node_pool=node_pool) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch: %s\n" % e) ``` ### Parameters @@ -10325,10 +10408,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **node_pool_id** | **str**| | + **node_pool** | [**NodePool**](NodePool.md)| | [optional] ### Return type -void (empty response body) +[**NodePool**](NodePool.md) ### Authorization @@ -10336,23 +10421,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get** -> ProvisionShard api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get** +> InlineResponse20033 api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get(cluster_id, node_pool_id, page=page, size=size) -Retrieves the details of the provision shard. +Retrieves the list of upgrade policies for the node pool. ### Example @@ -10384,12 +10469,15 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +node_pool_id = 'node_pool_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get(cluster_id, node_pool_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get: %s\n" % e) ``` ### Parameters @@ -10397,10 +10485,13 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **node_pool_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**ProvisionShard**](ProvisionShard.md) +[**InlineResponse20033**](InlineResponse20033.md) ### Authorization @@ -10419,12 +10510,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch** -> ProvisionShard api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch(cluster_id, provision_shard=provision_shard) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete(cluster_id, node_pool_id, node_pool_upgrade_policy_id) -Updates the details of the provision shard. +Deletes the upgrade policy for the node pool. ### Example @@ -10456,13 +10547,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -provision_shard = ocm_client.ProvisionShard() # ProvisionShard | (optional) +node_pool_id = 'node_pool_id_example' # str | +node_pool_upgrade_policy_id = 'node_pool_upgrade_policy_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch(cluster_id, provision_shard=provision_shard) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete(cluster_id, node_pool_id, node_pool_upgrade_policy_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete: %s\n" % e) ``` ### Parameters @@ -10470,11 +10561,12 @@ provision_shard = ocm_client.ProvisionShard() # ProvisionShard | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **provision_shard** | [**ProvisionShard**](ProvisionShard.md)| | [optional] + **node_pool_id** | **str**| | + **node_pool_upgrade_policy_id** | **str**| | ### Return type -[**ProvisionShard**](ProvisionShard.md) +void (empty response body) ### Authorization @@ -10482,23 +10574,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_resources_get** -> ClusterResources api_clusters_mgmt_v1_clusters_cluster_id_resources_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get** +> NodePoolUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get(cluster_id, node_pool_id, node_pool_upgrade_policy_id) -Retrieves a list of resources for a cluster in error state +Retrieves the details of the upgrade policy for the node pool. ### Example @@ -10530,12 +10622,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +node_pool_id = 'node_pool_id_example' # str | +node_pool_upgrade_policy_id = 'node_pool_upgrade_policy_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_resources_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get(cluster_id, node_pool_id, node_pool_upgrade_policy_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_resources_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get: %s\n" % e) ``` ### Parameters @@ -10543,10 +10637,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **node_pool_id** | **str**| | + **node_pool_upgrade_policy_id** | **str**| | ### Return type -[**ClusterResources**](ClusterResources.md) +[**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md) ### Authorization @@ -10565,12 +10661,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get** -> ClusterResources api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch** +> NodePoolUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch(cluster_id, node_pool_id, node_pool_upgrade_policy_id, node_pool_upgrade_policy=node_pool_upgrade_policy) -Retrieves currently available cluster resources +Update the upgrade policy for the node pool. ### Example @@ -10602,12 +10698,15 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +node_pool_id = 'node_pool_id_example' # str | +node_pool_upgrade_policy_id = 'node_pool_upgrade_policy_id_example' # str | +node_pool_upgrade_policy = ocm_client.NodePoolUpgradePolicy() # NodePoolUpgradePolicy | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch(cluster_id, node_pool_id, node_pool_upgrade_policy_id, node_pool_upgrade_policy=node_pool_upgrade_policy) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch: %s\n" % e) ``` ### Parameters @@ -10615,10 +10714,13 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **node_pool_id** | **str**| | + **node_pool_upgrade_policy_id** | **str**| | + **node_pool_upgrade_policy** | [**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md)| | [optional] ### Return type -[**ClusterResources**](ClusterResources.md) +[**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md) ### Authorization @@ -10626,7 +10728,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -10637,12 +10739,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_resume_post** -> api_clusters_mgmt_v1_clusters_cluster_id_resume_post(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post** +> NodePoolUpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post(cluster_id, node_pool_id, node_pool_upgrade_policy=node_pool_upgrade_policy) -Resumes from Hibernation. +Adds a new upgrade policy to the node pool of the cluster. ### Example @@ -10674,11 +10776,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +node_pool_id = 'node_pool_id_example' # str | +node_pool_upgrade_policy = ocm_client.NodePoolUpgradePolicy() # NodePoolUpgradePolicy | (optional) try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_resume_post(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post(cluster_id, node_pool_id, node_pool_upgrade_policy=node_pool_upgrade_policy) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_resume_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post: %s\n" % e) ``` ### Parameters @@ -10686,10 +10791,12 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **node_pool_id** | **str**| | + **node_pool_upgrade_policy** | [**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md)| | [optional] ### Return type -void (empty response body) +[**NodePoolUpgradePolicy**](NodePoolUpgradePolicy.md) ### Authorization @@ -10697,21 +10804,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_status_get** -> ClusterStatus api_clusters_mgmt_v1_clusters_cluster_id_status_get(cluster_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post** +> NodePool api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post(cluster_id, node_pool=node_pool) + +Adds a new node pool to the cluster. ### Example @@ -10743,12 +10852,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | +node_pool = ocm_client.NodePool() # NodePool | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_status_get(cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post(cluster_id, node_pool=node_pool) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_status_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post: %s\n" % e) ``` ### Parameters @@ -10756,10 +10866,11 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | + **node_pool** | [**NodePool**](NodePool.md)| | [optional] ### Return type -[**ClusterStatus**](ClusterStatus.md) +[**NodePool**](NodePool.md) ### Authorization @@ -10767,23 +10878,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get** -> InlineResponse20033 api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_patch** +> Cluster api_clusters_mgmt_v1_clusters_cluster_id_patch(cluster_id, cluster=cluster) -Retrieves the list of operator roles. +Updates the cluster. ### Example @@ -10815,14 +10926,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items that will be contained in the returned page. (optional) +cluster = ocm_client.Cluster() # Cluster | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get(cluster_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_patch(cluster_id, cluster=cluster) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_patch: %s\n" % e) ``` ### Parameters @@ -10830,12 +10940,11 @@ size = 56 # int | Number of items that will be contained in the returned page. ( Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items that will be contained in the returned page. | [optional] + **cluster** | [**Cluster**](Cluster.md)| | [optional] ### Return type -[**InlineResponse20033**](InlineResponse20033.md) +[**Cluster**](Cluster.md) ### Authorization @@ -10843,7 +10952,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -10854,12 +10963,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete(cluster_id, operator_iam_role_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_product_get** +> Product api_clusters_mgmt_v1_clusters_cluster_id_product_get(cluster_id) -Deletes the operator role. +Retrieves the details of the product. ### Example @@ -10891,12 +11000,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -operator_iam_role_id = 'operator_iam_role_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete(cluster_id, operator_iam_role_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_product_get(cluster_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_product_get: %s\n" % e) ``` ### Parameters @@ -10904,11 +11013,10 @@ operator_iam_role_id = 'operator_iam_role_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **operator_iam_role_id** | **str**| | ### Return type -void (empty response body) +[**Product**](Product.md) ### Authorization @@ -10922,17 +11030,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post** -> OperatorIAMRole api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post(cluster_id, operator_iam_role=operator_iam_role) +# **api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get** +> InlineResponse20034 api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get(cluster_id, order=order, page=page, search=search, size=size) -Adds a new operator role to the cluster. +Retrieves the list of product minimal versions. ### Example @@ -10964,13 +11072,16 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -operator_iam_role = ocm_client.OperatorIAMRole() # OperatorIAMRole | (optional) +order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post(cluster_id, operator_iam_role=operator_iam_role) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get(cluster_id, order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get: %s\n" % e) ``` ### Parameters @@ -10978,11 +11089,14 @@ operator_iam_role = ocm_client.OperatorIAMRole() # OperatorIAMRole | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **operator_iam_role** | [**OperatorIAMRole**](OperatorIAMRole.md)| | [optional] + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**OperatorIAMRole**](OperatorIAMRole.md) +[**InlineResponse20034**](InlineResponse20034.md) ### Authorization @@ -10990,23 +11104,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get** -> InlineResponse20034 api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get** +> ProductMinimalVersion api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get(cluster_id, minimal_version_id) -Retrieves the list of tuning configs. +Retrieves the details of the product minimal version. ### Example @@ -11038,14 +11152,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +minimal_version_id = 'minimal_version_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get(cluster_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get(cluster_id, minimal_version_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get: %s\n" % e) ``` ### Parameters @@ -11053,12 +11166,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **minimal_version_id** | **str**| | ### Return type -[**InlineResponse20034**](InlineResponse20034.md) +[**ProductMinimalVersion**](ProductMinimalVersion.md) ### Authorization @@ -11077,12 +11189,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post** -> TuningConfig api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post(cluster_id, tuning_config=tuning_config) +# **api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get** +> InlineResponse20035 api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get(cluster_id, order=order, page=page, search=search, size=size) -Adds a new tuning config to the cluster. +Retrieves the list of product technology previews. ### Example @@ -11114,13 +11226,16 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -tuning_config = ocm_client.TuningConfig() # TuningConfig | (optional) +order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post(cluster_id, tuning_config=tuning_config) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get(cluster_id, order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get: %s\n" % e) ``` ### Parameters @@ -11128,11 +11243,14 @@ tuning_config = ocm_client.TuningConfig() # TuningConfig | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **tuning_config** | [**TuningConfig**](TuningConfig.md)| | [optional] + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**TuningConfig**](TuningConfig.md) +[**InlineResponse20035**](InlineResponse20035.md) ### Authorization @@ -11140,23 +11258,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete(cluster_id, tuning_config_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get** +> ProductTechnologyPreview api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get(cluster_id, technology_preview_id) -Deletes the tuning config. +Retrieves the details of the product technology preview. ### Example @@ -11188,12 +11306,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -tuning_config_id = 'tuning_config_id_example' # str | +technology_preview_id = 'technology_preview_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete(cluster_id, tuning_config_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get(cluster_id, technology_preview_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get: %s\n" % e) ``` ### Parameters @@ -11201,11 +11320,11 @@ tuning_config_id = 'tuning_config_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **tuning_config_id** | **str**| | + **technology_preview_id** | **str**| | ### Return type -void (empty response body) +[**ProductTechnologyPreview**](ProductTechnologyPreview.md) ### Authorization @@ -11219,17 +11338,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get** -> TuningConfig api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get(cluster_id, tuning_config_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete(cluster_id) -Retrieves the details of the tuning config. +Delete the provision shard. ### Example @@ -11261,13 +11380,11 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -tuning_config_id = 'tuning_config_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get(cluster_id, tuning_config_id) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete(cluster_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete: %s\n" % e) ``` ### Parameters @@ -11275,11 +11392,10 @@ tuning_config_id = 'tuning_config_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **tuning_config_id** | **str**| | ### Return type -[**TuningConfig**](TuningConfig.md) +void (empty response body) ### Authorization @@ -11293,17 +11409,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch** -> TuningConfig api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch(cluster_id, tuning_config_id, tuning_config=tuning_config) +# **api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get** +> ProvisionShard api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get(cluster_id) -Updates the tuning config. +Retrieves the details of the provision shard. ### Example @@ -11335,14 +11451,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -tuning_config_id = 'tuning_config_id_example' # str | -tuning_config = ocm_client.TuningConfig() # TuningConfig | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch(cluster_id, tuning_config_id, tuning_config=tuning_config) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get: %s\n" % e) ``` ### Parameters @@ -11350,12 +11464,10 @@ tuning_config = ocm_client.TuningConfig() # TuningConfig | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **tuning_config_id** | **str**| | - **tuning_config** | [**TuningConfig**](TuningConfig.md)| | [optional] ### Return type -[**TuningConfig**](TuningConfig.md) +[**ProvisionShard**](ProvisionShard.md) ### Authorization @@ -11363,7 +11475,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -11374,12 +11486,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get** -> InlineResponse20035 api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get(cluster_id, page=page, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch** +> ProvisionShard api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch(cluster_id, provision_shard=provision_shard) -Retrieves the list of upgrade policies. +Updates the details of the provision shard. ### Example @@ -11411,14 +11523,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) +provision_shard = ocm_client.ProvisionShard() # ProvisionShard | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get(cluster_id, page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch(cluster_id, provision_shard=provision_shard) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch: %s\n" % e) ``` ### Parameters @@ -11426,12 +11537,11 @@ size = 56 # int | Number of items contained in the returned page. (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **provision_shard** | [**ProvisionShard**](ProvisionShard.md)| | [optional] ### Return type -[**InlineResponse20035**](InlineResponse20035.md) +[**ProvisionShard**](ProvisionShard.md) ### Authorization @@ -11439,7 +11549,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -11450,12 +11560,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post** -> UpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post(cluster_id, upgrade_policy=upgrade_policy) +# **api_clusters_mgmt_v1_clusters_cluster_id_resources_get** +> ClusterResources api_clusters_mgmt_v1_clusters_cluster_id_resources_get(cluster_id) -Adds a new upgrade policy to the cluster. +Retrieves a list of resources for a cluster in error state ### Example @@ -11487,13 +11597,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -upgrade_policy = ocm_client.UpgradePolicy() # UpgradePolicy | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post(cluster_id, upgrade_policy=upgrade_policy) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_resources_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_resources_get: %s\n" % e) ``` ### Parameters @@ -11501,11 +11610,10 @@ upgrade_policy = ocm_client.UpgradePolicy() # UpgradePolicy | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **upgrade_policy** | [**UpgradePolicy**](UpgradePolicy.md)| | [optional] ### Return type -[**UpgradePolicy**](UpgradePolicy.md) +[**ClusterResources**](ClusterResources.md) ### Authorization @@ -11513,23 +11621,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete** -> api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete(cluster_id, upgrade_policy_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get** +> ClusterResources api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get(cluster_id) -Deletes the upgrade policy. +Retrieves currently available cluster resources ### Example @@ -11561,12 +11669,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -upgrade_policy_id = 'upgrade_policy_id_example' # str | try: - api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete(cluster_id, upgrade_policy_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get(cluster_id) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get: %s\n" % e) ``` ### Parameters @@ -11574,11 +11682,10 @@ upgrade_policy_id = 'upgrade_policy_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **upgrade_policy_id** | **str**| | ### Return type -void (empty response body) +[**ClusterResources**](ClusterResources.md) ### Authorization @@ -11592,17 +11699,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get** -> UpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get(cluster_id, upgrade_policy_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_resume_post** +> api_clusters_mgmt_v1_clusters_cluster_id_resume_post(cluster_id) -Retrieves the details of the upgrade policy. +Resumes from Hibernation. ### Example @@ -11634,13 +11741,11 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -upgrade_policy_id = 'upgrade_policy_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get(cluster_id, upgrade_policy_id) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_resume_post(cluster_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_resume_post: %s\n" % e) ``` ### Parameters @@ -11648,11 +11753,10 @@ upgrade_policy_id = 'upgrade_policy_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **upgrade_policy_id** | **str**| | ### Return type -[**UpgradePolicy**](UpgradePolicy.md) +void (empty response body) ### Authorization @@ -11671,12 +11775,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch** -> UpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch(cluster_id, upgrade_policy_id, upgrade_policy=upgrade_policy) - +# **api_clusters_mgmt_v1_clusters_cluster_id_status_get** +> ClusterStatus api_clusters_mgmt_v1_clusters_cluster_id_status_get(cluster_id) -Update the upgrade policy. ### Example @@ -11708,14 +11810,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -upgrade_policy_id = 'upgrade_policy_id_example' # str | -upgrade_policy = ocm_client.UpgradePolicy() # UpgradePolicy | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch(cluster_id, upgrade_policy_id, upgrade_policy=upgrade_policy) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_status_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_status_get: %s\n" % e) ``` ### Parameters @@ -11723,12 +11823,10 @@ upgrade_policy = ocm_client.UpgradePolicy() # UpgradePolicy | (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **upgrade_policy_id** | **str**| | - **upgrade_policy** | [**UpgradePolicy**](UpgradePolicy.md)| | [optional] ### Return type -[**UpgradePolicy**](UpgradePolicy.md) +[**ClusterStatus**](ClusterStatus.md) ### Authorization @@ -11736,7 +11834,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -11747,12 +11845,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get** -> UpgradePolicyState api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get(cluster_id, upgrade_policy_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get** +> InlineResponse20036 api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get(cluster_id, page=page, size=size) -Retrieves the details of the upgrade policy state. +Retrieves the list of operator roles. ### Example @@ -11784,13 +11882,14 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -upgrade_policy_id = 'upgrade_policy_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get(cluster_id, upgrade_policy_id) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get(cluster_id, page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get: %s\n" % e) ``` ### Parameters @@ -11798,11 +11897,12 @@ upgrade_policy_id = 'upgrade_policy_id_example' # str | Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **upgrade_policy_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items that will be contained in the returned page. | [optional] ### Return type -[**UpgradePolicyState**](UpgradePolicyState.md) +[**InlineResponse20036**](InlineResponse20036.md) ### Authorization @@ -11821,12 +11921,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch** -> UpgradePolicyState api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch(cluster_id, upgrade_policy_id, upgrade_policy_state=upgrade_policy_state) +# **api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete(cluster_id, operator_iam_role_id) -Update the upgrade policy state. +Deletes the operator role. ### Example @@ -11858,14 +11958,12 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) cluster_id = 'cluster_id_example' # str | -upgrade_policy_id = 'upgrade_policy_id_example' # str | -upgrade_policy_state = ocm_client.UpgradePolicyState() # UpgradePolicyState | (optional) +operator_iam_role_id = 'operator_iam_role_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch(cluster_id, upgrade_policy_id, upgrade_policy_state=upgrade_policy_state) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete(cluster_id, operator_iam_role_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete: %s\n" % e) ``` ### Parameters @@ -11873,12 +11971,11 @@ upgrade_policy_state = ocm_client.UpgradePolicyState() # UpgradePolicyState | ( Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **str**| | - **upgrade_policy_id** | **str**| | - **upgrade_policy_state** | [**UpgradePolicyState**](UpgradePolicyState.md)| | [optional] + **operator_iam_role_id** | **str**| | ### Return type -[**UpgradePolicyState**](UpgradePolicyState.md) +void (empty response body) ### Authorization @@ -11886,23 +11983,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_get** -> InlineResponse20011 api_clusters_mgmt_v1_clusters_get(order=order, page=page, search=search, size=size) +# **api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post** +> OperatorIAMRole api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post(cluster_id, operator_iam_role=operator_iam_role) -Retrieves the list of clusters. +Adds a new operator role to the cluster. ### Example @@ -11933,30 +12030,26 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to sort the clusters descending by region identifier the value should be: ```sql region.id desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. (optional) -size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) + cluster_id = 'cluster_id_example' # str | +operator_iam_role = ocm_client.OperatorIAMRole() # OperatorIAMRole | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_get(order=order, page=page, search=search, size=size) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post(cluster_id, operator_iam_role=operator_iam_role) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to sort the clusters descending by region identifier the value should be: ```sql region.id desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. | [optional] - **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + **cluster_id** | **str**| | + **operator_iam_role** | [**OperatorIAMRole**](OperatorIAMRole.md)| | [optional] ### Return type -[**InlineResponse20011**](InlineResponse20011.md) +[**OperatorIAMRole**](OperatorIAMRole.md) ### Authorization @@ -11964,23 +12057,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_clusters_post** -> Cluster api_clusters_mgmt_v1_clusters_post(cluster=cluster) - +# **api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get** +> StsSupportJumpRole api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get(cluster_id) -Provision a new cluster and add it to the collection of clusters. See the `register_cluster` method for adding an existing cluster. ### Example @@ -12011,24 +12102,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - cluster = ocm_client.Cluster() # Cluster | (optional) + cluster_id = 'cluster_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_clusters_post(cluster=cluster) + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get(cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cluster** | [**Cluster**](Cluster.md)| | [optional] + **cluster_id** | **str**| | ### Return type -[**Cluster**](Cluster.md) +[**StsSupportJumpRole**](StsSupportJumpRole.md) ### Authorization @@ -12036,23 +12127,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete** -> api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete(dns_domain_id) +# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get** +> InlineResponse20037 api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get(cluster_id, page=page, size=size) -Delete the DNS domain. +Retrieves the list of tuning configs. ### Example @@ -12083,11 +12174,1127 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - dns_domain_id = 'dns_domain_id_example' # str | + cluster_id = 'cluster_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_instance.api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete(dns_domain_id) - except ApiException as e: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get(cluster_id, page=page, size=size) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] + +### Return type + +[**InlineResponse20037**](InlineResponse20037.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post** +> TuningConfig api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post(cluster_id, tuning_config=tuning_config) + + + +Adds a new tuning config to the cluster. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +tuning_config = ocm_client.TuningConfig() # TuningConfig | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post(cluster_id, tuning_config=tuning_config) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **tuning_config** | [**TuningConfig**](TuningConfig.md)| | [optional] + +### Return type + +[**TuningConfig**](TuningConfig.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete(cluster_id, tuning_config_id) + + + +Deletes the tuning config. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +tuning_config_id = 'tuning_config_id_example' # str | + + try: + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete(cluster_id, tuning_config_id) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **tuning_config_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get** +> TuningConfig api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get(cluster_id, tuning_config_id) + + + +Retrieves the details of the tuning config. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +tuning_config_id = 'tuning_config_id_example' # str | + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get(cluster_id, tuning_config_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **tuning_config_id** | **str**| | + +### Return type + +[**TuningConfig**](TuningConfig.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch** +> TuningConfig api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch(cluster_id, tuning_config_id, tuning_config=tuning_config) + + + +Updates the tuning config. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +tuning_config_id = 'tuning_config_id_example' # str | +tuning_config = ocm_client.TuningConfig() # TuningConfig | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch(cluster_id, tuning_config_id, tuning_config=tuning_config) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **tuning_config_id** | **str**| | + **tuning_config** | [**TuningConfig**](TuningConfig.md)| | [optional] + +### Return type + +[**TuningConfig**](TuningConfig.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get** +> InlineResponse20038 api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get(cluster_id, page=page, size=size) + + + +Retrieves the list of upgrade policies. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get(cluster_id, page=page, size=size) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] + +### Return type + +[**InlineResponse20038**](InlineResponse20038.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post** +> UpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post(cluster_id, upgrade_policy=upgrade_policy) + + + +Adds a new upgrade policy to the cluster. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +upgrade_policy = ocm_client.UpgradePolicy() # UpgradePolicy | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post(cluster_id, upgrade_policy=upgrade_policy) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **upgrade_policy** | [**UpgradePolicy**](UpgradePolicy.md)| | [optional] + +### Return type + +[**UpgradePolicy**](UpgradePolicy.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete** +> api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete(cluster_id, upgrade_policy_id) + + + +Deletes the upgrade policy. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +upgrade_policy_id = 'upgrade_policy_id_example' # str | + + try: + api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete(cluster_id, upgrade_policy_id) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **upgrade_policy_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get** +> UpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get(cluster_id, upgrade_policy_id) + + + +Retrieves the details of the upgrade policy. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +upgrade_policy_id = 'upgrade_policy_id_example' # str | + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get(cluster_id, upgrade_policy_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **upgrade_policy_id** | **str**| | + +### Return type + +[**UpgradePolicy**](UpgradePolicy.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch** +> UpgradePolicy api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch(cluster_id, upgrade_policy_id, upgrade_policy=upgrade_policy) + + + +Update the upgrade policy. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +upgrade_policy_id = 'upgrade_policy_id_example' # str | +upgrade_policy = ocm_client.UpgradePolicy() # UpgradePolicy | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch(cluster_id, upgrade_policy_id, upgrade_policy=upgrade_policy) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **upgrade_policy_id** | **str**| | + **upgrade_policy** | [**UpgradePolicy**](UpgradePolicy.md)| | [optional] + +### Return type + +[**UpgradePolicy**](UpgradePolicy.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get** +> UpgradePolicyState api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get(cluster_id, upgrade_policy_id) + + + +Retrieves the details of the upgrade policy state. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +upgrade_policy_id = 'upgrade_policy_id_example' # str | + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get(cluster_id, upgrade_policy_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **upgrade_policy_id** | **str**| | + +### Return type + +[**UpgradePolicyState**](UpgradePolicyState.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch** +> UpgradePolicyState api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch(cluster_id, upgrade_policy_id, upgrade_policy_state=upgrade_policy_state) + + + +Update the upgrade policy state. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | +upgrade_policy_id = 'upgrade_policy_id_example' # str | +upgrade_policy_state = ocm_client.UpgradePolicyState() # UpgradePolicyState | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch(cluster_id, upgrade_policy_id, upgrade_policy_state=upgrade_policy_state) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + **upgrade_policy_id** | **str**| | + **upgrade_policy_state** | [**UpgradePolicyState**](UpgradePolicyState.md)| | [optional] + +### Return type + +[**UpgradePolicyState**](UpgradePolicyState.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_cluster_id_vpc_get** +> CloudVPC api_clusters_mgmt_v1_clusters_cluster_id_vpc_get(cluster_id) + + + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster_id = 'cluster_id_example' # str | + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_cluster_id_vpc_get(cluster_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_cluster_id_vpc_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **str**| | + +### Return type + +[**CloudVPC**](CloudVPC.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_get** +> InlineResponse20012 api_clusters_mgmt_v1_clusters_get(order=order, page=page, search=search, size=size) + + + +Retrieves the list of clusters. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to sort the clusters descending by region identifier the value should be: ```sql region.id desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_get(order=order, page=page, search=search, size=size) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to sort the clusters descending by region identifier the value should be: ```sql region.id desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + +### Return type + +[**InlineResponse20012**](InlineResponse20012.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_clusters_post** +> Cluster api_clusters_mgmt_v1_clusters_post(cluster=cluster) + + + +Provision a new cluster and add it to the collection of clusters. See the `register_cluster` method for adding an existing cluster. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + cluster = ocm_client.Cluster() # Cluster | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_clusters_post(cluster=cluster) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_clusters_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster** | [**Cluster**](Cluster.md)| | [optional] + +### Return type + +[**Cluster**](Cluster.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete** +> api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete(dns_domain_id) + + + +Delete the DNS domain. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + dns_domain_id = 'dns_domain_id_example' # str | + + try: + api_instance.api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete(dns_domain_id) + except ApiException as e: print("Exception when calling DefaultApi->api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete: %s\n" % e) ``` @@ -12095,11 +13302,587 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dns_domain_id** | **str**| | + **dns_domain_id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_dns_domains_dns_domain_id_get** +> DNSDomain api_clusters_mgmt_v1_dns_domains_dns_domain_id_get(dns_domain_id) + + + +Retrieves the details of the DNS domain. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + dns_domain_id = 'dns_domain_id_example' # str | + + try: + api_response = api_instance.api_clusters_mgmt_v1_dns_domains_dns_domain_id_get(dns_domain_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_dns_domains_dns_domain_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_domain_id** | **str**| | + +### Return type + +[**DNSDomain**](DNSDomain.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch** +> DNSDomain api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch(dns_domain_id, dns_domain=dns_domain) + + + +Updates the details of the DNS domain. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + dns_domain_id = 'dns_domain_id_example' # str | +dns_domain = ocm_client.DNSDomain() # DNSDomain | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch(dns_domain_id, dns_domain=dns_domain) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_domain_id** | **str**| | + **dns_domain** | [**DNSDomain**](DNSDomain.md)| | [optional] + +### Return type + +[**DNSDomain**](DNSDomain.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_dns_domains_get** +> InlineResponse20039 api_clusters_mgmt_v1_dns_domains_get(page=page, search=search, size=size) + + + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the dns domain instead of the names of the columns of a table. For example, in order to retrieve all the dns domains with a ID starting with `02a5` should be: ```sql id like '02a5%' ``` If the parameter isn't provided, or if the value is empty, then all the dns domains that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_dns_domains_get(page=page, search=search, size=size) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_dns_domains_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the dns domain instead of the names of the columns of a table. For example, in order to retrieve all the dns domains with a ID starting with `02a5` should be: ```sql id like '02a5%' ``` If the parameter isn't provided, or if the value is empty, then all the dns domains that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + +### Return type + +[**InlineResponse20039**](InlineResponse20039.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_dns_domains_post** +> DNSDomain api_clusters_mgmt_v1_dns_domains_post(dns_domain=dns_domain) + + + +Adds a DNS domain. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + dns_domain = ocm_client.DNSDomain() # DNSDomain | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_dns_domains_post(dns_domain=dns_domain) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_dns_domains_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dns_domain** | [**DNSDomain**](DNSDomain.md)| | [optional] + +### Return type + +[**DNSDomain**](DNSDomain.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_environment_get** +> Environment api_clusters_mgmt_v1_environment_get() + + + +Retrieves the details of the environment. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + + try: + api_response = api_instance.api_clusters_mgmt_v1_environment_get() + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_environment_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Environment**](Environment.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_environment_patch** +> Environment api_clusters_mgmt_v1_environment_patch(environment=environment) + + + +Updates the environment. Attributes that can be updated are: - `last_upgrade_available_check` - `last_limited_support_check` + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + environment = ocm_client.Environment() # Environment | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_environment_patch(environment=environment) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_environment_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **environment** | [**Environment**](Environment.md)| | [optional] + +### Return type + +[**Environment**](Environment.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_events_post** +> Event api_clusters_mgmt_v1_events_post(event=event) + + + +Adds a new event to be tracked. When sending a new event request, it gets tracked in Prometheus, Pendo, CloudWatch, or whichever analytics client is configured as part of clusters service. This allows for reporting on events that happen outside of a regular API request, but are found to be useful for understanding customer needs and possible blockers. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + event = ocm_client.Event() # Event | (optional) + + try: + api_response = api_instance.api_clusters_mgmt_v1_events_post(event=event) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_events_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event** | [**Event**](Event.md)| | [optional] + +### Return type + +[**Event**](Event.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_clusters_mgmt_v1_flavours_flavour_id_get** +> Flavour api_clusters_mgmt_v1_flavours_flavour_id_get(flavour_id) + + + +Retrieves the details of the cluster flavour. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + flavour_id = 'flavour_id_example' # str | + + try: + api_response = api_instance.api_clusters_mgmt_v1_flavours_flavour_id_get(flavour_id) + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_flavours_flavour_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **flavour_id** | **str**| | ### Return type -void (empty response body) +[**Flavour**](Flavour.md) ### Authorization @@ -12113,17 +13896,17 @@ void (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_dns_domains_dns_domain_id_get** -> DNSDomain api_clusters_mgmt_v1_dns_domains_dns_domain_id_get(dns_domain_id) +# **api_clusters_mgmt_v1_flavours_flavour_id_patch** +> Flavour api_clusters_mgmt_v1_flavours_flavour_id_patch(flavour_id, flavour=flavour) -Retrieves the details of the DNS domain. +Updates the flavour. Attributes that can be updated are: - `aws.infra_volume` - `aws.infra_instance_type` - `gcp.infra_instance_type` ### Example @@ -12154,24 +13937,26 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - dns_domain_id = 'dns_domain_id_example' # str | + flavour_id = 'flavour_id_example' # str | +flavour = ocm_client.Flavour() # Flavour | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_dns_domains_dns_domain_id_get(dns_domain_id) + api_response = api_instance.api_clusters_mgmt_v1_flavours_flavour_id_patch(flavour_id, flavour=flavour) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_dns_domains_dns_domain_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_flavours_flavour_id_patch: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dns_domain_id** | **str**| | + **flavour_id** | **str**| | + **flavour** | [**Flavour**](Flavour.md)| | [optional] ### Return type -[**DNSDomain**](DNSDomain.md) +[**Flavour**](Flavour.md) ### Authorization @@ -12179,7 +13964,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -12190,12 +13975,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch** -> DNSDomain api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch(dns_domain_id, dns_domain=dns_domain) - +# **api_clusters_mgmt_v1_flavours_get** +> InlineResponse20040 api_clusters_mgmt_v1_flavours_get(order=order, page=page, search=search, size=size) -Updates the details of the DNS domain. ### Example @@ -12226,26 +14009,30 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - dns_domain_id = 'dns_domain_id_example' # str | -dns_domain = ocm_client.DNSDomain() # DNSDomain | (optional) + order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to sort the flavours descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to retrieve all the flavours with a name starting with `my`the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the flavours that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch(dns_domain_id, dns_domain=dns_domain) + api_response = api_instance.api_clusters_mgmt_v1_flavours_get(order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_flavours_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dns_domain_id** | **str**| | - **dns_domain** | [**DNSDomain**](DNSDomain.md)| | [optional] + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to sort the flavours descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to retrieve all the flavours with a name starting with `my`the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the flavours that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**DNSDomain**](DNSDomain.md) +[**InlineResponse20040**](InlineResponse20040.md) ### Authorization @@ -12253,7 +14040,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -12264,11 +14051,13 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_dns_domains_get** -> InlineResponse20036 api_clusters_mgmt_v1_dns_domains_get(page=page, search=search, size=size) +# **api_clusters_mgmt_v1_flavours_post** +> Flavour api_clusters_mgmt_v1_flavours_post(flavour=flavour) +Adds a new cluster flavour. + ### Example * Bearer (JWT) Authentication (bearer): @@ -12298,28 +14087,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the dns domain instead of the names of the columns of a table. For example, in order to retrieve all the dns domains with a ID starting with `02a5` should be: ```sql id like '02a5%' ``` If the parameter isn't provided, or if the value is empty, then all the dns domains that the user has permission to see will be returned. (optional) -size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) + flavour = ocm_client.Flavour() # Flavour | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_dns_domains_get(page=page, search=search, size=size) + api_response = api_instance.api_clusters_mgmt_v1_flavours_post(flavour=flavour) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_dns_domains_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_flavours_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the dns domain instead of the names of the columns of a table. For example, in order to retrieve all the dns domains with a ID starting with `02a5` should be: ```sql id like '02a5%' ``` If the parameter isn't provided, or if the value is empty, then all the dns domains that the user has permission to see will be returned. | [optional] - **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + **flavour** | [**Flavour**](Flavour.md)| | [optional] ### Return type -[**InlineResponse20036**](InlineResponse20036.md) +[**Flavour**](Flavour.md) ### Authorization @@ -12327,23 +14112,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_dns_domains_post** -> DNSDomain api_clusters_mgmt_v1_dns_domains_post(dns_domain=dns_domain) +# **api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post** +> InlineResponse20041 api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post(page=page, size=size, cloud_provider_data=cloud_provider_data) -Adds a DNS domain. +Retrieves the list of encryption keys. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. ### Example @@ -12374,24 +14159,28 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - dns_domain = ocm_client.DNSDomain() # DNSDomain | (optional) + page = 56 # int | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. (optional) +size = 56 # int | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. (optional) +cloud_provider_data = ocm_client.CloudProviderData() # CloudProviderData | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_dns_domains_post(dns_domain=dns_domain) + api_response = api_instance.api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post(page=page, size=size, cloud_provider_data=cloud_provider_data) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_dns_domains_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dns_domain** | [**DNSDomain**](DNSDomain.md)| | [optional] + **page** | **int**| Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] + **size** | **int**| Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] + **cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md)| | [optional] ### Return type -[**DNSDomain**](DNSDomain.md) +[**InlineResponse20041**](InlineResponse20041.md) ### Authorization @@ -12405,17 +14194,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_environment_get** -> Environment api_clusters_mgmt_v1_environment_get() +# **api_clusters_mgmt_v1_gcp_inquiries_key_rings_post** +> InlineResponse20042 api_clusters_mgmt_v1_gcp_inquiries_key_rings_post(page=page, size=size, cloud_provider_data=cloud_provider_data) -Retrieves the details of the environment. +Retrieves the list of available key rings of the cloud provider. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. ### Example @@ -12446,20 +14235,28 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - + page = 56 # int | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. (optional) +size = 56 # int | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. (optional) +cloud_provider_data = ocm_client.CloudProviderData() # CloudProviderData | (optional) + try: - api_response = api_instance.api_clusters_mgmt_v1_environment_get() + api_response = api_instance.api_clusters_mgmt_v1_gcp_inquiries_key_rings_post(page=page, size=size, cloud_provider_data=cloud_provider_data) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_environment_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_gcp_inquiries_key_rings_post: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int**| Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] + **size** | **int**| Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. | [optional] + **cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md)| | [optional] ### Return type -[**Environment**](Environment.md) +[**InlineResponse20042**](InlineResponse20042.md) ### Authorization @@ -12467,7 +14264,7 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -12478,12 +14275,12 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_environment_patch** -> Environment api_clusters_mgmt_v1_environment_patch(environment=environment) +# **api_clusters_mgmt_v1_gcp_inquiries_machine_types_post** +> InlineResponse2003 api_clusters_mgmt_v1_gcp_inquiries_machine_types_post(page=page, size=size, cloud_provider_data=cloud_provider_data) -Updates the environment. Attributes that can be updated are: - `last_upgrade_available_check` - `last_limited_support_check` +Retrieves the list of machine types in the provided region. ### Example @@ -12514,24 +14311,28 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - environment = ocm_client.Environment() # Environment | (optional) + page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) +cloud_provider_data = ocm_client.CloudProviderData() # CloudProviderData | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_environment_patch(environment=environment) + api_response = api_instance.api_clusters_mgmt_v1_gcp_inquiries_machine_types_post(page=page, size=size, cloud_provider_data=cloud_provider_data) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_environment_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_gcp_inquiries_machine_types_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **environment** | [**Environment**](Environment.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + **cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md)| | [optional] ### Return type -[**Environment**](Environment.md) +[**InlineResponse2003**](InlineResponse2003.md) ### Authorization @@ -12550,12 +14351,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_events_post** -> Event api_clusters_mgmt_v1_events_post(event=event) +# **api_clusters_mgmt_v1_gcp_inquiries_regions_post** +> InlineResponse2004 api_clusters_mgmt_v1_gcp_inquiries_regions_post(page=page, size=size, cloud_provider_data=cloud_provider_data) -Adds a new event to be tracked. When sending a new event request, it gets tracked in Prometheus, Pendo, CloudWatch, or whichever analytics client is configured as part of clusters service. This allows for reporting on events that happen outside of a regular API request, but are found to be useful for understanding customer needs and possible blockers. +Retrieves the list of available regions of the cloud provider. IMPORTANT: This list doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. ### Example @@ -12586,24 +14387,28 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - event = ocm_client.Event() # Event | (optional) + page = 56 # int | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. (optional) +size = 56 # int | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. (optional) +cloud_provider_data = ocm_client.CloudProviderData() # CloudProviderData | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_events_post(event=event) + api_response = api_instance.api_clusters_mgmt_v1_gcp_inquiries_regions_post(page=page, size=size, cloud_provider_data=cloud_provider_data) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_events_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_gcp_inquiries_regions_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **event** | [**Event**](Event.md)| | [optional] + **page** | **int**| Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] + **size** | **int**| Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] + **cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md)| | [optional] ### Return type -[**Event**](Event.md) +[**InlineResponse2004**](InlineResponse2004.md) ### Authorization @@ -12617,17 +14422,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_flavours_flavour_id_get** -> Flavour api_clusters_mgmt_v1_flavours_flavour_id_get(flavour_id) +# **api_clusters_mgmt_v1_gcp_inquiries_vpcs_post** +> InlineResponse2008 api_clusters_mgmt_v1_gcp_inquiries_vpcs_post(page=page, size=size, cloud_provider_data=cloud_provider_data) -Retrieves the details of the cluster flavour. +Retrieves the list of available vpcs of the cloud provider for specific region. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available vpcs of the provider. ### Example @@ -12658,24 +14463,28 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - flavour_id = 'flavour_id_example' # str | + page = 56 # int | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. (optional) +size = 56 # int | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. (optional) +cloud_provider_data = ocm_client.CloudProviderData() # CloudProviderData | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_flavours_flavour_id_get(flavour_id) + api_response = api_instance.api_clusters_mgmt_v1_gcp_inquiries_vpcs_post(page=page, size=size, cloud_provider_data=cloud_provider_data) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_flavours_flavour_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_gcp_inquiries_vpcs_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **flavour_id** | **str**| | + **page** | **int**| Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] + **size** | **int**| Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. | [optional] + **cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md)| | [optional] ### Return type -[**Flavour**](Flavour.md) +[**InlineResponse2008**](InlineResponse2008.md) ### Authorization @@ -12683,7 +14492,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -12694,12 +14503,80 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_flavours_flavour_id_patch** -> Flavour api_clusters_mgmt_v1_flavours_flavour_id_patch(flavour_id, flavour=flavour) +# **api_clusters_mgmt_v1_get** +> Metadata api_clusters_mgmt_v1_get() + + + +Retrieves the version metadata. + +### Example + +* Bearer (JWT) Authentication (bearer): +```python +from __future__ import print_function +import time +import ocm_client +from ocm_client.rest import ApiException +from pprint import pprint +# Defining the host is optional and defaults to https://api.openshift.com +# See configuration.py for a list of all supported configuration parameters. +configuration = ocm_client.Configuration( + host = "https://api.openshift.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization (JWT): bearer +configuration = ocm_client.Configuration( + access_token = 'YOUR_BEARER_TOKEN' +) + +# Enter a context with an instance of the API client +with ocm_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = ocm_client.DefaultApi(api_client) + + try: + api_response = api_instance.api_clusters_mgmt_v1_get() + pprint(api_response) + except ApiException as e: + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Metadata**](Metadata.md) + +### Authorization + +[bearer](../README.md#bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Success. | - | +**0** | Error. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **api_clusters_mgmt_v1_limited_support_reason_templates_get** +> InlineResponse20043 api_clusters_mgmt_v1_limited_support_reason_templates_get(page=page, size=size) -Updates the flavour. Attributes that can be updated are: - `aws.infra_volume` - `aws.infra_instance_type` - `gcp.infra_instance_type` + +Retrieves the list of templates. ### Example @@ -12730,26 +14607,26 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - flavour_id = 'flavour_id_example' # str | -flavour = ocm_client.Flavour() # Flavour | (optional) + page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_flavours_flavour_id_patch(flavour_id, flavour=flavour) + api_response = api_instance.api_clusters_mgmt_v1_limited_support_reason_templates_get(page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_flavours_flavour_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_limited_support_reason_templates_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **flavour_id** | **str**| | - **flavour** | [**Flavour**](Flavour.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**Flavour**](Flavour.md) +[**InlineResponse20043**](InlineResponse20043.md) ### Authorization @@ -12757,7 +14634,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -12768,10 +14645,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_flavours_get** -> InlineResponse20037 api_clusters_mgmt_v1_flavours_get(order=order, page=page, search=search, size=size) +# **api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get** +> LimitedSupportReasonTemplate api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get(limited_support_reason_template_id) + +Retrieves the details of the template. ### Example @@ -12802,30 +14681,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to sort the flavours descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to retrieve all the flavours with a name starting with `my`the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the flavours that the user has permission to see will be returned. (optional) -size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) + limited_support_reason_template_id = 'limited_support_reason_template_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_flavours_get(order=order, page=page, search=search, size=size) + api_response = api_instance.api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get(limited_support_reason_template_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_flavours_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to sort the flavours descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to retrieve all the flavours with a name starting with `my`the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the flavours that the user has permission to see will be returned. | [optional] - **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + **limited_support_reason_template_id** | **str**| | ### Return type -[**InlineResponse20037**](InlineResponse20037.md) +[**LimitedSupportReasonTemplate**](LimitedSupportReasonTemplate.md) ### Authorization @@ -12844,12 +14717,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_flavours_post** -> Flavour api_clusters_mgmt_v1_flavours_post(flavour=flavour) +# **api_clusters_mgmt_v1_machine_types_get** +> InlineResponse20044 api_clusters_mgmt_v1_machine_types_get(order=order, page=page, search=search, size=size) -Adds a new cluster flavour. +Retrieves the list of machine types. ### Example @@ -12880,24 +14753,30 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - flavour = ocm_client.Flavour() # Flavour | (optional) + order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to sort the machine types descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to retrieve all the machine types with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the machine types that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_flavours_post(flavour=flavour) + api_response = api_instance.api_clusters_mgmt_v1_machine_types_get(order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_flavours_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_machine_types_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **flavour** | [**Flavour**](Flavour.md)| | [optional] + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to sort the machine types descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to retrieve all the machine types with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the machine types that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**Flavour**](Flavour.md) +[**InlineResponse20044**](InlineResponse20044.md) ### Authorization @@ -12905,23 +14784,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post** -> InlineResponse20038 api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post(page=page, size=size, cloud_provider_data=cloud_provider_data) +# **api_clusters_mgmt_v1_machine_types_machine_type_id_get** +> MachineType api_clusters_mgmt_v1_machine_types_machine_type_id_get(machine_type_id) -Retrieves the list of encryption keys. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. +Retrieves the details of the machine type. ### Example @@ -12952,28 +14831,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - page = 56 # int | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. (optional) -size = 56 # int | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. (optional) -cloud_provider_data = ocm_client.CloudProviderData() # CloudProviderData | (optional) + machine_type_id = 'machine_type_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post(page=page, size=size, cloud_provider_data=cloud_provider_data) + api_response = api_instance.api_clusters_mgmt_v1_machine_types_machine_type_id_get(machine_type_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_machine_types_machine_type_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int**| Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] - **size** | **int**| Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] - **cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md)| | [optional] + **machine_type_id** | **str**| | ### Return type -[**InlineResponse20038**](InlineResponse20038.md) +[**MachineType**](MachineType.md) ### Authorization @@ -12981,7 +14856,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -12992,12 +14867,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_gcp_inquiries_key_rings_post** -> InlineResponse20039 api_clusters_mgmt_v1_gcp_inquiries_key_rings_post(page=page, size=size, cloud_provider_data=cloud_provider_data) +# **api_clusters_mgmt_v1_network_verifications_network_verification_id_get** +> SubnetNetworkVerification api_clusters_mgmt_v1_network_verifications_network_verification_id_get(network_verification_id) -Retrieves the list of available key rings of the cloud provider. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. +Retrieves the details of a subnet network verification. ### Example @@ -13028,28 +14903,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - page = 56 # int | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. (optional) -size = 56 # int | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. (optional) -cloud_provider_data = ocm_client.CloudProviderData() # CloudProviderData | (optional) + network_verification_id = 'network_verification_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_gcp_inquiries_key_rings_post(page=page, size=size, cloud_provider_data=cloud_provider_data) + api_response = api_instance.api_clusters_mgmt_v1_network_verifications_network_verification_id_get(network_verification_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_gcp_inquiries_key_rings_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_network_verifications_network_verification_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int**| Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] - **size** | **int**| Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. | [optional] - **cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md)| | [optional] + **network_verification_id** | **str**| | ### Return type -[**InlineResponse20039**](InlineResponse20039.md) +[**SubnetNetworkVerification**](SubnetNetworkVerification.md) ### Authorization @@ -13057,7 +14928,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -13068,12 +14939,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_gcp_inquiries_regions_post** -> InlineResponse2004 api_clusters_mgmt_v1_gcp_inquiries_regions_post(page=page, size=size, cloud_provider_data=cloud_provider_data) +# **api_clusters_mgmt_v1_network_verifications_post** +> NetworkVerification api_clusters_mgmt_v1_network_verifications_post(network_verification=network_verification) -Retrieves the list of available regions of the cloud provider. IMPORTANT: This list doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. +Creates an entry for a network verification for each subnet supplied setting then to initial state. ### Example @@ -13104,28 +14975,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - page = 56 # int | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. (optional) -size = 56 # int | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. (optional) -cloud_provider_data = ocm_client.CloudProviderData() # CloudProviderData | (optional) + network_verification = ocm_client.NetworkVerification() # NetworkVerification | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_gcp_inquiries_regions_post(page=page, size=size, cloud_provider_data=cloud_provider_data) + api_response = api_instance.api_clusters_mgmt_v1_network_verifications_post(network_verification=network_verification) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_gcp_inquiries_regions_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_network_verifications_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int**| Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] - **size** | **int**| Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] - **cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md)| | [optional] + **network_verification** | [**NetworkVerification**](NetworkVerification.md)| | [optional] ### Return type -[**InlineResponse2004**](InlineResponse2004.md) +[**NetworkVerification**](NetworkVerification.md) ### Authorization @@ -13139,17 +15006,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_gcp_inquiries_vpcs_post** -> InlineResponse2007 api_clusters_mgmt_v1_gcp_inquiries_vpcs_post(page=page, size=size, cloud_provider_data=cloud_provider_data) +# **api_clusters_mgmt_v1_oidc_configs_get** +> InlineResponse20045 api_clusters_mgmt_v1_oidc_configs_get(page=page, size=size) -Retrieves the list of available vpcs of the cloud provider for specific region. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available vpcs of the provider. +Retrieves the list of oidc configs. ### Example @@ -13180,28 +15047,26 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - page = 56 # int | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. (optional) -size = 56 # int | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. (optional) -cloud_provider_data = ocm_client.CloudProviderData() # CloudProviderData | (optional) + page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_gcp_inquiries_vpcs_post(page=page, size=size, cloud_provider_data=cloud_provider_data) + api_response = api_instance.api_clusters_mgmt_v1_oidc_configs_get(page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_gcp_inquiries_vpcs_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int**| Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] - **size** | **int**| Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. | [optional] - **cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md)| | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**InlineResponse2007**](InlineResponse2007.md) +[**InlineResponse20045**](InlineResponse20045.md) ### Authorization @@ -13209,7 +15074,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -13220,12 +15085,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_get** -> Metadata api_clusters_mgmt_v1_get() +# **api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete** +> api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete(oidc_config_id) -Retrieves the version metadata. +Deletes the OidcConfig. ### Example @@ -13256,20 +15121,23 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - + oidc_config_id = 'oidc_config_id_example' # str | + try: - api_response = api_instance.api_clusters_mgmt_v1_get() - pprint(api_response) + api_instance.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete(oidc_config_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **oidc_config_id** | **str**| | ### Return type -[**Metadata**](Metadata.md) +void (empty response body) ### Authorization @@ -13283,17 +15151,17 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_limited_support_reason_templates_get** -> InlineResponse20040 api_clusters_mgmt_v1_limited_support_reason_templates_get(page=page, size=size) +# **api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get** +> OidcConfig api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get(oidc_config_id) -Retrieves the list of templates. +Retrieves the details of an OidcConfig. ### Example @@ -13324,26 +15192,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) + oidc_config_id = 'oidc_config_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_limited_support_reason_templates_get(page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get(oidc_config_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_limited_support_reason_templates_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **oidc_config_id** | **str**| | ### Return type -[**InlineResponse20040**](InlineResponse20040.md) +[**OidcConfig**](OidcConfig.md) ### Authorization @@ -13362,12 +15228,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get** -> LimitedSupportReasonTemplate api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get(limited_support_reason_template_id) +# **api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch** +> OidcConfig api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch(oidc_config_id, oidc_config=oidc_config) -Retrieves the details of the template. +Updates attributes of an OidcConfig. ### Example @@ -13398,24 +15264,26 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - limited_support_reason_template_id = 'limited_support_reason_template_id_example' # str | + oidc_config_id = 'oidc_config_id_example' # str | +oidc_config = ocm_client.OidcConfig() # OidcConfig | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get(limited_support_reason_template_id) + api_response = api_instance.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch(oidc_config_id, oidc_config=oidc_config) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limited_support_reason_template_id** | **str**| | + **oidc_config_id** | **str**| | + **oidc_config** | [**OidcConfig**](OidcConfig.md)| | [optional] ### Return type -[**LimitedSupportReasonTemplate**](LimitedSupportReasonTemplate.md) +[**OidcConfig**](OidcConfig.md) ### Authorization @@ -13423,7 +15291,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -13434,12 +15302,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_machine_types_get** -> InlineResponse20041 api_clusters_mgmt_v1_machine_types_get(order=order, page=page, search=search, size=size) +# **api_clusters_mgmt_v1_oidc_configs_post** +> OidcConfig api_clusters_mgmt_v1_oidc_configs_post(oidc_config=oidc_config) -Retrieves the list of machine types. +Creates a hosting under Red Hat's S3 bucket for byo oidc configuration. ### Example @@ -13470,30 +15338,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to sort the machine types descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to retrieve all the machine types with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the machine types that the user has permission to see will be returned. (optional) -size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) + oidc_config = ocm_client.OidcConfig() # OidcConfig | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_machine_types_get(order=order, page=page, search=search, size=size) + api_response = api_instance.api_clusters_mgmt_v1_oidc_configs_post(oidc_config=oidc_config) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_machine_types_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to sort the machine types descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to retrieve all the machine types with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the machine types that the user has permission to see will be returned. | [optional] - **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + **oidc_config** | [**OidcConfig**](OidcConfig.md)| | [optional] ### Return type -[**InlineResponse20041**](InlineResponse20041.md) +[**OidcConfig**](OidcConfig.md) ### Authorization @@ -13501,23 +15363,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_machine_types_machine_type_id_get** -> MachineType api_clusters_mgmt_v1_machine_types_machine_type_id_get(machine_type_id) +# **api_clusters_mgmt_v1_pending_delete_clusters_get** +> InlineResponse20046 api_clusters_mgmt_v1_pending_delete_clusters_get(order=order, page=page, search=search, size=size) -Retrieves the details of the machine type. +Retrieves the list of pending delete clusters. ### Example @@ -13548,24 +15410,30 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - machine_type_id = 'machine_type_id_example' # str | + order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to sort the pending delete clusters descending by creation timestamp (i.e. their deletion time) the value should be: ```sql creation_timestamp desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to retrieve all the pending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required: ```sql creation_timestamp > '2023-03-01T00:00:00Z' ``` If the parameter isn't provided, or if the value is empty, then all the pending delete clusters that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_machine_types_machine_type_id_get(machine_type_id) + api_response = api_instance.api_clusters_mgmt_v1_pending_delete_clusters_get(order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_machine_types_machine_type_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_pending_delete_clusters_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **machine_type_id** | **str**| | + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to sort the pending delete clusters descending by creation timestamp (i.e. their deletion time) the value should be: ```sql creation_timestamp desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to retrieve all the pending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required: ```sql creation_timestamp > '2023-03-01T00:00:00Z' ``` If the parameter isn't provided, or if the value is empty, then all the pending delete clusters that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**MachineType**](MachineType.md) +[**InlineResponse20046**](InlineResponse20046.md) ### Authorization @@ -13584,12 +15452,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_oidc_configs_get** -> InlineResponse20042 api_clusters_mgmt_v1_oidc_configs_get(page=page, size=size) +# **api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get** +> PendingDeleteCluster api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get(pending_delete_cluster_id) -Retrieves the list of oidc configs. +Retrieves the details of the pending delete cluster. ### Example @@ -13620,26 +15488,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -size = 56 # int | Number of items contained in the returned page. (optional) + pending_delete_cluster_id = 'pending_delete_cluster_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_oidc_configs_get(page=page, size=size) + api_response = api_instance.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get(pending_delete_cluster_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **size** | **int**| Number of items contained in the returned page. | [optional] + **pending_delete_cluster_id** | **str**| | ### Return type -[**InlineResponse20042**](InlineResponse20042.md) +[**PendingDeleteCluster**](PendingDeleteCluster.md) ### Authorization @@ -13658,12 +15524,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete** -> api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete(oidc_config_id) +# **api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch** +> PendingDeleteCluster api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch(pending_delete_cluster_id, pending_delete_cluster=pending_delete_cluster) -Deletes the OidcConfig. +Updates the pending delete cluster entry. ### Example @@ -13694,23 +15560,26 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - oidc_config_id = 'oidc_config_id_example' # str | + pending_delete_cluster_id = 'pending_delete_cluster_id_example' # str | +pending_delete_cluster = ocm_client.PendingDeleteCluster() # PendingDeleteCluster | (optional) try: - api_instance.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete(oidc_config_id) + api_response = api_instance.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch(pending_delete_cluster_id, pending_delete_cluster=pending_delete_cluster) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oidc_config_id** | **str**| | + **pending_delete_cluster_id** | **str**| | + **pending_delete_cluster** | [**PendingDeleteCluster**](PendingDeleteCluster.md)| | [optional] ### Return type -void (empty response body) +[**PendingDeleteCluster**](PendingDeleteCluster.md) ### Authorization @@ -13718,23 +15587,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get** -> OidcConfig api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get(oidc_config_id) +# **api_clusters_mgmt_v1_products_get** +> InlineResponse20047 api_clusters_mgmt_v1_products_get(order=order, page=page, search=search, size=size) -Retrieves the details of an OidcConfig. +Retrieves the list of products. ### Example @@ -13765,24 +15634,30 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - oidc_config_id = 'oidc_config_id_example' # str | + order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get(oidc_config_id) + api_response = api_instance.api_clusters_mgmt_v1_products_get(order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_products_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oidc_config_id** | **str**| | + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**OidcConfig**](OidcConfig.md) +[**InlineResponse20047**](InlineResponse20047.md) ### Authorization @@ -13801,12 +15676,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch** -> OidcConfig api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch(oidc_config_id, oidc_config=oidc_config) +# **api_clusters_mgmt_v1_products_product_id_get** +> Product api_clusters_mgmt_v1_products_product_id_get(product_id) -Updates attributes of an OidcConfig. +Retrieves the details of the product. ### Example @@ -13837,26 +15712,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - oidc_config_id = 'oidc_config_id_example' # str | -oidc_config = ocm_client.OidcConfig() # OidcConfig | (optional) + product_id = 'product_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch(oidc_config_id, oidc_config=oidc_config) + api_response = api_instance.api_clusters_mgmt_v1_products_product_id_get(product_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_products_product_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oidc_config_id** | **str**| | - **oidc_config** | [**OidcConfig**](OidcConfig.md)| | [optional] + **product_id** | **str**| | ### Return type -[**OidcConfig**](OidcConfig.md) +[**Product**](Product.md) ### Authorization @@ -13864,7 +15737,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -13875,12 +15748,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_oidc_configs_post** -> OidcConfig api_clusters_mgmt_v1_oidc_configs_post(oidc_config=oidc_config) +# **api_clusters_mgmt_v1_products_product_id_minimal_versions_get** +> InlineResponse20034 api_clusters_mgmt_v1_products_product_id_minimal_versions_get(product_id, order=order, page=page, search=search, size=size) -Creates a hosting under Red Hat's S3 bucket for byo oidc configuration +Retrieves the list of product minimal versions. ### Example @@ -13911,24 +15784,32 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - oidc_config = ocm_client.OidcConfig() # OidcConfig | (optional) + product_id = 'product_id_example' # str | +order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_oidc_configs_post(oidc_config=oidc_config) + api_response = api_instance.api_clusters_mgmt_v1_products_product_id_minimal_versions_get(product_id, order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_oidc_configs_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_products_product_id_minimal_versions_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **oidc_config** | [**OidcConfig**](OidcConfig.md)| | [optional] + **product_id** | **str**| | + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**OidcConfig**](OidcConfig.md) +[**InlineResponse20034**](InlineResponse20034.md) ### Authorization @@ -13936,23 +15817,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_pending_delete_clusters_get** -> InlineResponse20043 api_clusters_mgmt_v1_pending_delete_clusters_get(order=order, page=page, search=search, size=size) +# **api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get** +> ProductMinimalVersion api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get(product_id, minimal_version_id) -Retrieves the list of pending delete clusters. +Retrieves the details of the product minimal version. ### Example @@ -13983,30 +15864,26 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to sort the pending delete clusters descending by creation timestamp (i.e. their deletion time) the value should be: ```sql creation_timestamp desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to retrieve all the pending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required: ```sql creation_timestamp > '2023-03-01T00:00:00Z' ``` If the parameter isn't provided, or if the value is empty, then all the pending delete clusters that the user has permission to see will be returned. (optional) -size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) + product_id = 'product_id_example' # str | +minimal_version_id = 'minimal_version_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_pending_delete_clusters_get(order=order, page=page, search=search, size=size) + api_response = api_instance.api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get(product_id, minimal_version_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_pending_delete_clusters_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to sort the pending delete clusters descending by creation timestamp (i.e. their deletion time) the value should be: ```sql creation_timestamp desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to retrieve all the pending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required: ```sql creation_timestamp > '2023-03-01T00:00:00Z' ``` If the parameter isn't provided, or if the value is empty, then all the pending delete clusters that the user has permission to see will be returned. | [optional] - **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + **product_id** | **str**| | + **minimal_version_id** | **str**| | ### Return type -[**InlineResponse20043**](InlineResponse20043.md) +[**ProductMinimalVersion**](ProductMinimalVersion.md) ### Authorization @@ -14025,12 +15902,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get** -> PendingDeleteCluster api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get(pending_delete_cluster_id) +# **api_clusters_mgmt_v1_products_product_id_technology_previews_get** +> InlineResponse20035 api_clusters_mgmt_v1_products_product_id_technology_previews_get(product_id, order=order, page=page, search=search, size=size) -Retrieves the details of the pending delete cluster. +Retrieves the list of product technology previews. ### Example @@ -14061,24 +15938,32 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - pending_delete_cluster_id = 'pending_delete_cluster_id_example' # str | + product_id = 'product_id_example' # str | +order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) +page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. (optional) +size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get(pending_delete_cluster_id) + api_response = api_instance.api_clusters_mgmt_v1_products_product_id_technology_previews_get(product_id, order=order, page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_products_product_id_technology_previews_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pending_delete_cluster_id** | **str**| | + **product_id** | **str**| | + **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. | [optional] + **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**PendingDeleteCluster**](PendingDeleteCluster.md) +[**InlineResponse20035**](InlineResponse20035.md) ### Authorization @@ -14097,12 +15982,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch** -> PendingDeleteCluster api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch(pending_delete_cluster_id, pending_delete_cluster=pending_delete_cluster) +# **api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get** +> ProductTechnologyPreview api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get(product_id, technology_preview_id) -Updates the pending delete cluster entry. +Retrieves the details of the product technology preview. ### Example @@ -14133,26 +16018,26 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - pending_delete_cluster_id = 'pending_delete_cluster_id_example' # str | -pending_delete_cluster = ocm_client.PendingDeleteCluster() # PendingDeleteCluster | (optional) + product_id = 'product_id_example' # str | +technology_preview_id = 'technology_preview_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch(pending_delete_cluster_id, pending_delete_cluster=pending_delete_cluster) + api_response = api_instance.api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get(product_id, technology_preview_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pending_delete_cluster_id** | **str**| | - **pending_delete_cluster** | [**PendingDeleteCluster**](PendingDeleteCluster.md)| | [optional] + **product_id** | **str**| | + **technology_preview_id** | **str**| | ### Return type -[**PendingDeleteCluster**](PendingDeleteCluster.md) +[**ProductTechnologyPreview**](ProductTechnologyPreview.md) ### Authorization @@ -14160,7 +16045,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -14171,12 +16056,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_products_get** -> InlineResponse20044 api_clusters_mgmt_v1_products_get(order=order, page=page, search=search, size=size) - +# **api_clusters_mgmt_v1_provision_shards_get** +> InlineResponse20048 api_clusters_mgmt_v1_provision_shards_get(page=page, search=search, size=size) -Retrieves the list of products. ### Example @@ -14207,30 +16090,28 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - order = 'order_example' # str | Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. (optional) -page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. (optional) + page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the provision shards that the user has permission to see will be returned. (optional) size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_products_get(order=order, page=page, search=search, size=size) + api_response = api_instance.api_clusters_mgmt_v1_provision_shards_get(page=page, search=search, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_products_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **str**| Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. | [optional] **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. | [optional] + **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the provision shards that the user has permission to see will be returned. | [optional] **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] ### Return type -[**InlineResponse20044**](InlineResponse20044.md) +[**InlineResponse20048**](InlineResponse20048.md) ### Authorization @@ -14249,12 +16130,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_products_product_id_get** -> Product api_clusters_mgmt_v1_products_product_id_get(product_id) +# **api_clusters_mgmt_v1_provision_shards_post** +> ProvisionShard api_clusters_mgmt_v1_provision_shards_post(provision_shard=provision_shard) -Retrieves the details of the product. +Adds a provision shard. ### Example @@ -14285,24 +16166,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - product_id = 'product_id_example' # str | + provision_shard = ocm_client.ProvisionShard() # ProvisionShard | (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_products_product_id_get(product_id) + api_response = api_instance.api_clusters_mgmt_v1_provision_shards_post(provision_shard=provision_shard) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_products_product_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_post: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **product_id** | **str**| | + **provision_shard** | [**ProvisionShard**](ProvisionShard.md)| | [optional] ### Return type -[**Product**](Product.md) +[**ProvisionShard**](ProvisionShard.md) ### Authorization @@ -14310,22 +16191,24 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**201** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_provision_shards_get** -> InlineResponse20045 api_clusters_mgmt_v1_provision_shards_get(page=page, search=search, size=size) +# **api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete** +> api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete(provision_shard_id) +Delete the provision shard. + ### Example * Bearer (JWT) Authentication (bearer): @@ -14355,28 +16238,23 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) -search = 'search_example' # str | Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the provision shards that the user has permission to see will be returned. (optional) -size = 56 # int | Maximum number of items that will be contained in the returned page. (optional) + provision_shard_id = 'provision_shard_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_provision_shards_get(page=page, search=search, size=size) - pprint(api_response) + api_instance.api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete(provision_shard_id) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] - **search** | **str**| Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the provision shards that the user has permission to see will be returned. | [optional] - **size** | **int**| Maximum number of items that will be contained in the returned page. | [optional] + **provision_shard_id** | **str**| | ### Return type -[**InlineResponse20045**](InlineResponse20045.md) +void (empty response body) ### Authorization @@ -14390,17 +16268,17 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Success. | - | +**204** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_provision_shards_post** -> ProvisionShard api_clusters_mgmt_v1_provision_shards_post(provision_shard=provision_shard) +# **api_clusters_mgmt_v1_provision_shards_provision_shard_id_get** +> ProvisionShard api_clusters_mgmt_v1_provision_shards_provision_shard_id_get(provision_shard_id) -Adds a provision shard. +Retrieves the details of the provision shard. ### Example @@ -14431,20 +16309,20 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - provision_shard = ocm_client.ProvisionShard() # ProvisionShard | (optional) + provision_shard_id = 'provision_shard_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_provision_shards_post(provision_shard=provision_shard) + api_response = api_instance.api_clusters_mgmt_v1_provision_shards_provision_shard_id_get(provision_shard_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_post: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_provision_shard_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **provision_shard** | [**ProvisionShard**](ProvisionShard.md)| | [optional] + **provision_shard_id** | **str**| | ### Return type @@ -14456,23 +16334,23 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete** -> api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete(provision_shard_id) +# **api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch** +> ProvisionShard api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch(provision_shard_id, provision_shard=provision_shard) -Delete the provision shard. +Updates the details of the provision shard. ### Example @@ -14504,11 +16382,13 @@ with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) provision_shard_id = 'provision_shard_id_example' # str | +provision_shard = ocm_client.ProvisionShard() # ProvisionShard | (optional) try: - api_instance.api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete(provision_shard_id) + api_response = api_instance.api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch(provision_shard_id, provision_shard=provision_shard) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_provision_shard_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch: %s\n" % e) ``` ### Parameters @@ -14516,10 +16396,11 @@ with ocm_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **provision_shard_id** | **str**| | + **provision_shard** | [**ProvisionShard**](ProvisionShard.md)| | [optional] ### Return type -void (empty response body) +[**ProvisionShard**](ProvisionShard.md) ### Authorization @@ -14527,23 +16408,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Success. | - | +**200** | Success. | - | **0** | Error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_provision_shards_provision_shard_id_get** -> ProvisionShard api_clusters_mgmt_v1_provision_shards_provision_shard_id_get(provision_shard_id) +# **api_clusters_mgmt_v1_trusted_ip_addresses_get** +> InlineResponse20049 api_clusters_mgmt_v1_trusted_ip_addresses_get(page=page, size=size) -Retrieves the details of the provision shard. +Retrieves the list of trusted ip addresses. ### Example @@ -14574,24 +16455,26 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - provision_shard_id = 'provision_shard_id_example' # str | + page = 56 # int | Index of the requested page, where one corresponds to the first page. (optional) +size = 56 # int | Number of items contained in the returned page. (optional) try: - api_response = api_instance.api_clusters_mgmt_v1_provision_shards_provision_shard_id_get(provision_shard_id) + api_response = api_instance.api_clusters_mgmt_v1_trusted_ip_addresses_get(page=page, size=size) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_provision_shard_id_get: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_trusted_ip_addresses_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **provision_shard_id** | **str**| | + **page** | **int**| Index of the requested page, where one corresponds to the first page. | [optional] + **size** | **int**| Number of items contained in the returned page. | [optional] ### Return type -[**ProvisionShard**](ProvisionShard.md) +[**InlineResponse20049**](InlineResponse20049.md) ### Authorization @@ -14610,12 +16493,12 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch** -> ProvisionShard api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch(provision_shard_id, provision_shard=provision_shard) +# **api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get** +> TrustedIp api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get(trusted_ip_id) -Updates the details of the provision shard. +Retrieves the trusted ip adresses. ### Example @@ -14646,26 +16529,24 @@ configuration = ocm_client.Configuration( with ocm_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = ocm_client.DefaultApi(api_client) - provision_shard_id = 'provision_shard_id_example' # str | -provision_shard = ocm_client.ProvisionShard() # ProvisionShard | (optional) + trusted_ip_id = 'trusted_ip_id_example' # str | try: - api_response = api_instance.api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch(provision_shard_id, provision_shard=provision_shard) + api_response = api_instance.api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get(trusted_ip_id) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **provision_shard_id** | **str**| | - **provision_shard** | [**ProvisionShard**](ProvisionShard.md)| | [optional] + **trusted_ip_id** | **str**| | ### Return type -[**ProvisionShard**](ProvisionShard.md) +[**TrustedIp**](TrustedIp.md) ### Authorization @@ -14673,7 +16554,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -14685,7 +16566,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_clusters_mgmt_v1_version_gates_get** -> InlineResponse20046 api_clusters_mgmt_v1_version_gates_get(order=order, page=page, search=search, size=size) +> InlineResponse20050 api_clusters_mgmt_v1_version_gates_get(order=order, page=page, search=search, size=size) @@ -14743,7 +16624,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20046**](InlineResponse20046.md) +[**InlineResponse20050**](InlineResponse20050.md) ### Authorization @@ -14978,7 +16859,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **api_clusters_mgmt_v1_versions_get** -> InlineResponse20047 api_clusters_mgmt_v1_versions_get(order=order, page=page, search=search, size=size) +> InlineResponse20051 api_clusters_mgmt_v1_versions_get(order=order, page=page, search=search, size=size) @@ -15036,7 +16917,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse20047**](InlineResponse20047.md) +[**InlineResponse20051**](InlineResponse20051.md) ### Authorization diff --git a/docs/Environment.md b/docs/Environment.md index b707cf1..e482fae 100644 --- a/docs/Environment.md +++ b/docs/Environment.md @@ -4,6 +4,7 @@ Description of an environment ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**backplane_url** | **str** | the backplane url for the environment | [optional] **last_limited_support_check** | **datetime** | last time that the worker checked for limited support clusters | [optional] **last_upgrade_available_check** | **datetime** | last time that the worker checked for available upgrades | [optional] **name** | **str** | environment name | [optional] diff --git a/docs/GCP.md b/docs/GCP.md index 2bc98f5..9e0dac9 100644 --- a/docs/GCP.md +++ b/docs/GCP.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **private_key** | **str** | GCP private key | [optional] **private_key_id** | **str** | GCP private key identifier | [optional] **project_id** | **str** | GCP project identifier. | [optional] +**security** | [**GcpSecurity**](GcpSecurity.md) | | [optional] **token_uri** | **str** | GCP token uri | [optional] **type** | **str** | GCP the type of the service the key belongs to | [optional] diff --git a/docs/GCPImageOverride.md b/docs/GCPImageOverride.md new file mode 100644 index 0000000..4a7ac27 --- /dev/null +++ b/docs/GCPImageOverride.md @@ -0,0 +1,17 @@ +# GCPImageOverride + +GcpImageOverride specifies what a GCP VM Image should be used for a particular product and billing model +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'GCPImageOverride' if this is a complete object or 'GCPImageOverrideLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**billing_model** | [**BillingModelItem**](BillingModelItem.md) | | [optional] +**image_id** | **str** | ImageID is the id of the Google Cloud Platform image. | [optional] +**product** | [**Product**](Product.md) | | [optional] +**project_id** | **str** | ProjectID is the id of the Google Cloud Platform project that hosts the image. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GCPNetwork.md b/docs/GCPNetwork.md index b10f864..7e6d4aa 100644 --- a/docs/GCPNetwork.md +++ b/docs/GCPNetwork.md @@ -5,6 +5,7 @@ GCP Network configuration of a cluster. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **vpc_name** | **str** | VPC mame used by the cluster. | [optional] +**vpc_project_id** | **str** | The name of the host project where the shared VPC exists. | [optional] **compute_subnet** | **str** | Compute subnet used by the cluster. | [optional] **control_plane_subnet** | **str** | Control plane subnet used by the cluster. | [optional] diff --git a/docs/GcpSecurity.md b/docs/GcpSecurity.md new file mode 100644 index 0000000..cd84d51 --- /dev/null +++ b/docs/GcpSecurity.md @@ -0,0 +1,11 @@ +# GcpSecurity + +Google cloud platform security settings of a cluster. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**secure_boot** | **bool** | Determines if Shielded VM feature \"Secure Boot\" should be set for the nodes of the cluster. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HTPasswdUser.md b/docs/HTPasswdUser.md index 751e97e..4ef0f31 100644 --- a/docs/HTPasswdUser.md +++ b/docs/HTPasswdUser.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | ID for a secondary user in the _HTPasswd_ data file. | [optional] -**password** | **str** | Password for a secondary user in the _HTPasswd_ data file. | [optional] +**hashed_password** | **str** | HTPasswd Hashed Password for a user in the _HTPasswd_ data file. The value of this field is set as-is in the _HTPasswd_ data file for the HTPasswd IDP | [optional] +**password** | **str** | Password in plain-text for a user in the _HTPasswd_ data file. The value of this field is hashed before setting it in the _HTPasswd_ data file for the HTPasswd IDP | [optional] **username** | **str** | Username for a secondary user in the _HTPasswd_ data file. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ImageOverrides.md b/docs/ImageOverrides.md new file mode 100644 index 0000000..0900bf8 --- /dev/null +++ b/docs/ImageOverrides.md @@ -0,0 +1,15 @@ +# ImageOverrides + +ImageOverrides holds the lists of available images per cloud provider. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'ImageOverrides' if this is a complete object or 'ImageOverridesLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**aws** | [**list[AMIOverride]**](AMIOverride.md) | | [optional] +**gcp** | [**list[GCPImageOverride]**](GCPImageOverride.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Ingress.md b/docs/Ingress.md index 82e65b4..955a12d 100644 --- a/docs/Ingress.md +++ b/docs/Ingress.md @@ -8,10 +8,15 @@ Name | Type | Description | Notes **id** | **str** | Unique identifier of the object. | [optional] **href** | **str** | Self link. | [optional] **dns_name** | **str** | DNS Name of the ingress. | [optional] +**cluster_routes_hostname** | **str** | Cluster routes hostname. | [optional] +**cluster_routes_tls_secret_ref** | **str** | Cluster routes TLS Secret reference. | [optional] **default** | **bool** | Indicates if this is the default ingress. | [optional] +**excluded_namespaces** | **list[str]** | A set of excluded namespaces for the ingress. | [optional] **listening** | [**ListeningMethod**](ListeningMethod.md) | | [optional] **load_balancer_type** | [**LoadBalancerFlavor**](LoadBalancerFlavor.md) | | [optional] +**route_namespace_ownership_policy** | [**NamespaceOwnershipPolicy**](NamespaceOwnershipPolicy.md) | | [optional] **route_selectors** | **dict(str, str)** | A set of labels for the ingress. | [optional] +**route_wildcard_policy** | [**WildcardPolicy**](WildcardPolicy.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20010.md b/docs/InlineResponse20010.md index 595243e..7875400 100644 --- a/docs/InlineResponse20010.md +++ b/docs/InlineResponse20010.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[CloudRegion]**](CloudRegion.md) | Retrieved list of cloud providers. | [optional] +**items** | [**list[CloudRegion]**](CloudRegion.md) | Retrieved list of cloud regions. | [optional] **page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] **size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20011.md b/docs/InlineResponse20011.md index 3772d4a..e586b7b 100644 --- a/docs/InlineResponse20011.md +++ b/docs/InlineResponse20011.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Cluster]**](Cluster.md) | Retrieved list of clusters. | [optional] -**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] +**items** | [**list[CloudRegion]**](CloudRegion.md) | Retrieved list of cloud providers. | [optional] +**page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] +**size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20012.md b/docs/InlineResponse20012.md index b93f9f9..980d7ef 100644 --- a/docs/InlineResponse20012.md +++ b/docs/InlineResponse20012.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[AddonUpgradePolicy]**](AddonUpgradePolicy.md) | Retrieved list of addon upgrade policy. | [optional] +**items** | [**list[Cluster]**](Cluster.md) | Retrieved list of clusters. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Number of items contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20013.md b/docs/InlineResponse20013.md index 06ed0e7..d53fc22 100644 --- a/docs/InlineResponse20013.md +++ b/docs/InlineResponse20013.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[AddOnInstallation]**](AddOnInstallation.md) | Retrieved list of add-on installations. | [optional] +**items** | [**list[AddonUpgradePolicy]**](AddonUpgradePolicy.md) | Retrieved list of addon upgrade policy. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] +**size** | **int** | Number of items contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20014.md b/docs/InlineResponse20014.md index b0ba37e..d6754db 100644 --- a/docs/InlineResponse20014.md +++ b/docs/InlineResponse20014.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[PrivateLinkPrincipal]**](PrivateLinkPrincipal.md) | Retrieved list of principals. | [optional] +**items** | [**list[AddOnInstallation]**](AddOnInstallation.md) | Retrieved list of add-on installations. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Number of items contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20015.md b/docs/InlineResponse20015.md index 6bdec37..0536480 100644 --- a/docs/InlineResponse20015.md +++ b/docs/InlineResponse20015.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[AWSInfrastructureAccessRoleGrant]**](AWSInfrastructureAccessRoleGrant.md) | Retrieved list of AWS infrastructure access role grants. | [optional] +**items** | [**list[PrivateLinkPrincipal]**](PrivateLinkPrincipal.md) | Retrieved list of principals. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] +**size** | **int** | Number of items contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20016.md b/docs/InlineResponse20016.md index f4944bb..26a5fb6 100644 --- a/docs/InlineResponse20016.md +++ b/docs/InlineResponse20016.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[ControlPlaneUpgradePolicy]**](ControlPlaneUpgradePolicy.md) | Retrieved list of upgrade policy. | [optional] +**items** | [**list[AWSInfrastructureAccessRoleGrant]**](AWSInfrastructureAccessRoleGrant.md) | Retrieved list of AWS infrastructure access role grants. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Number of items contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20017.md b/docs/InlineResponse20017.md index 6e344f7..d27663c 100644 --- a/docs/InlineResponse20017.md +++ b/docs/InlineResponse20017.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Label]**](Label.md) | Retrieved list of labels. | [optional] +**items** | [**list[ControlPlaneUpgradePolicy]**](ControlPlaneUpgradePolicy.md) | Retrieved list of upgrade policy. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20018.md b/docs/InlineResponse20018.md index 04f36a0..bbed0e1 100644 --- a/docs/InlineResponse20018.md +++ b/docs/InlineResponse20018.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Manifest]**](Manifest.md) | Retrieved list of Manifests. | [optional] +**items** | [**list[Label]**](Label.md) | Retrieved list of labels. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20019.md b/docs/InlineResponse20019.md index 564a99c..66b417f 100644 --- a/docs/InlineResponse20019.md +++ b/docs/InlineResponse20019.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Syncset]**](Syncset.md) | Retrieved list of syncsets. | [optional] +**items** | [**list[Manifest]**](Manifest.md) | Retrieved list of Manifests. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20020.md b/docs/InlineResponse20020.md index f363bb6..a5e7711 100644 --- a/docs/InlineResponse20020.md +++ b/docs/InlineResponse20020.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[VersionGateAgreement]**](VersionGateAgreement.md) | Retrieved list of version gate agreement. | [optional] +**items** | [**list[Syncset]**](Syncset.md) | Retrieved list of syncsets. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20021.md b/docs/InlineResponse20021.md index d0cf8b4..47b7b98 100644 --- a/docs/InlineResponse20021.md +++ b/docs/InlineResponse20021.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Group]**](Group.md) | Retrieved list of groups. | [optional] +**items** | [**list[VersionGateAgreement]**](VersionGateAgreement.md) | Retrieved list of version gate agreement. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20022.md b/docs/InlineResponse20022.md index ad496a4..5613a90 100644 --- a/docs/InlineResponse20022.md +++ b/docs/InlineResponse20022.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[User]**](User.md) | Retrieved list of users. | [optional] +**items** | [**list[Group]**](Group.md) | Retrieved list of groups. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20023.md b/docs/InlineResponse20023.md index 34bba09..bd8fd82 100644 --- a/docs/InlineResponse20023.md +++ b/docs/InlineResponse20023.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[IdentityProvider]**](IdentityProvider.md) | Retrieved list of identity providers. | [optional] +**items** | [**list[User]**](User.md) | Retrieved list of users. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20024.md b/docs/InlineResponse20024.md index 035f89e..8d0f544 100644 --- a/docs/InlineResponse20024.md +++ b/docs/InlineResponse20024.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[HTPasswdUser]**](HTPasswdUser.md) | Retrieved list of users of the IDP. | [optional] +**items** | [**list[IdentityProvider]**](IdentityProvider.md) | Retrieved list of identity providers. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20025.md b/docs/InlineResponse20025.md index db04dcc..35e3fcd 100644 --- a/docs/InlineResponse20025.md +++ b/docs/InlineResponse20025.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[HTPasswdUser]**](HTPasswdUser.md) | Updated list of users of the IDP. | [optional] +**items** | [**list[HTPasswdUser]**](HTPasswdUser.md) | Retrieved list of users of the IDP. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20026.md b/docs/InlineResponse20026.md index 32faa98..831b5d7 100644 --- a/docs/InlineResponse20026.md +++ b/docs/InlineResponse20026.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[InflightCheck]**](InflightCheck.md) | Retrieved list of inflight checks. | [optional] +**items** | [**list[HTPasswdUser]**](HTPasswdUser.md) | Updated list of users of the IDP. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20027.md b/docs/InlineResponse20027.md index 7ea1e95..e54cc4e 100644 --- a/docs/InlineResponse20027.md +++ b/docs/InlineResponse20027.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Ingress]**](Ingress.md) | Retrieved list of ingresses. | [optional] +**items** | [**list[InflightCheck]**](InflightCheck.md) | Retrieved list of inflight checks. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20028.md b/docs/InlineResponse20028.md index 777f18f..c50a96a 100644 --- a/docs/InlineResponse20028.md +++ b/docs/InlineResponse20028.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[LimitedSupportReason]**](LimitedSupportReason.md) | Retrieved list of template. | [optional] +**items** | [**list[Ingress]**](Ingress.md) | Retrieved list of ingresses. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20029.md b/docs/InlineResponse20029.md index 3f91848..4705840 100644 --- a/docs/InlineResponse20029.md +++ b/docs/InlineResponse20029.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Log]**](Log.md) | Retrieved list of log links. | [optional] +**items** | [**list[LimitedSupportReason]**](LimitedSupportReason.md) | Retrieved list of template. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20030.md b/docs/InlineResponse20030.md index ae3d822..4cb256a 100644 --- a/docs/InlineResponse20030.md +++ b/docs/InlineResponse20030.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[MachinePool]**](MachinePool.md) | Retrieved list of machine pools. | [optional] +**items** | [**list[Log]**](Log.md) | Retrieved list of log links. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20031.md b/docs/InlineResponse20031.md index 0d19735..5fc1f1d 100644 --- a/docs/InlineResponse20031.md +++ b/docs/InlineResponse20031.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[NodePool]**](NodePool.md) | Retrieved list of node pools. | [optional] +**items** | [**list[MachinePool]**](MachinePool.md) | Retrieved list of machine pools. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20032.md b/docs/InlineResponse20032.md index 2bc8540..8351294 100644 --- a/docs/InlineResponse20032.md +++ b/docs/InlineResponse20032.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[NodePoolUpgradePolicy]**](NodePoolUpgradePolicy.md) | Retrieved list of upgrade policy. | [optional] +**items** | [**list[NodePool]**](NodePool.md) | Retrieved list of node pools. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] diff --git a/docs/InlineResponse20033.md b/docs/InlineResponse20033.md index 4edc9bb..32d40e9 100644 --- a/docs/InlineResponse20033.md +++ b/docs/InlineResponse20033.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[OperatorIAMRole]**](OperatorIAMRole.md) | Retrieved list of operator roles. | [optional] +**items** | [**list[NodePoolUpgradePolicy]**](NodePoolUpgradePolicy.md) | Retrieved list of upgrade policy. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] +**size** | **int** | Number of items contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20034.md b/docs/InlineResponse20034.md index f265b3d..b883e8e 100644 --- a/docs/InlineResponse20034.md +++ b/docs/InlineResponse20034.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[TuningConfig]**](TuningConfig.md) | Retrieved list of tuning configs. | [optional] +**items** | [**list[ProductMinimalVersion]**](ProductMinimalVersion.md) | Retrieved list of product minimal versions. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Number of items contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20035.md b/docs/InlineResponse20035.md index 4565248..0297ec1 100644 --- a/docs/InlineResponse20035.md +++ b/docs/InlineResponse20035.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[UpgradePolicy]**](UpgradePolicy.md) | Retrieved list of upgrade policy. | [optional] +**items** | [**list[ProductTechnologyPreview]**](ProductTechnologyPreview.md) | Retrieved list of product technology previews. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Number of items contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20036.md b/docs/InlineResponse20036.md index 7cb751d..77aa8c5 100644 --- a/docs/InlineResponse20036.md +++ b/docs/InlineResponse20036.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[DNSDomain]**](DNSDomain.md) | Retrieved a list of DNS domains. | [optional] +**items** | [**list[OperatorIAMRole]**](OperatorIAMRole.md) | Retrieved list of operator roles. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection. | [optional] +**size** | **int** | Number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20037.md b/docs/InlineResponse20037.md index 9034559..9101b05 100644 --- a/docs/InlineResponse20037.md +++ b/docs/InlineResponse20037.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Flavour]**](Flavour.md) | Retrieved list of flavours. | [optional] +**items** | [**list[TuningConfig]**](TuningConfig.md) | Retrieved list of tuning configs. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] +**size** | **int** | Number of items contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20038.md b/docs/InlineResponse20038.md index c56fa80..960bba5 100644 --- a/docs/InlineResponse20038.md +++ b/docs/InlineResponse20038.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[EncryptionKey]**](EncryptionKey.md) | Retrieved list of encryption keys. | [optional] -**page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] -**size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. | [optional] +**items** | [**list[UpgradePolicy]**](UpgradePolicy.md) | Retrieved list of upgrade policy. | [optional] +**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] +**size** | **int** | Number of items contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20039.md b/docs/InlineResponse20039.md index 9230fb9..d391af0 100644 --- a/docs/InlineResponse20039.md +++ b/docs/InlineResponse20039.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[KeyRing]**](KeyRing.md) | Retrieved list of key rings. | [optional] -**page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] -**size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available key rings of the provider. | [optional] +**items** | [**list[DNSDomain]**](DNSDomain.md) | Retrieved a list of DNS domains. | [optional] +**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20040.md b/docs/InlineResponse20040.md index 614e20b..b9c4241 100644 --- a/docs/InlineResponse20040.md +++ b/docs/InlineResponse20040.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[LimitedSupportReasonTemplate]**](LimitedSupportReasonTemplate.md) | Retrieved list of template. | [optional] +**items** | [**list[Flavour]**](Flavour.md) | Retrieved list of flavours. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Number of items contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20041.md b/docs/InlineResponse20041.md index 4c5a557..9d8a31d 100644 --- a/docs/InlineResponse20041.md +++ b/docs/InlineResponse20041.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[MachineType]**](MachineType.md) | Retrieved list of cloud providers. | [optional] -**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] +**items** | [**list[EncryptionKey]**](EncryptionKey.md) | Retrieved list of encryption keys. | [optional] +**page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] +**size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20042.md b/docs/InlineResponse20042.md index a59a726..9a77adf 100644 --- a/docs/InlineResponse20042.md +++ b/docs/InlineResponse20042.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[OidcConfig]**](OidcConfig.md) | Retrieved list of identity providers. | [optional] -**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Number of items contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection. | [optional] +**items** | [**list[KeyRing]**](KeyRing.md) | Retrieved list of key rings. | [optional] +**page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] +**size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available key rings of the provider. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20043.md b/docs/InlineResponse20043.md index f56018b..b4357dd 100644 --- a/docs/InlineResponse20043.md +++ b/docs/InlineResponse20043.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[PendingDeleteCluster]**](PendingDeleteCluster.md) | Retrieved list of pending delete clusters. | [optional] +**items** | [**list[LimitedSupportReasonTemplate]**](LimitedSupportReasonTemplate.md) | Retrieved list of template. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] +**size** | **int** | Number of items contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20044.md b/docs/InlineResponse20044.md index 5c6deb2..446f9b7 100644 --- a/docs/InlineResponse20044.md +++ b/docs/InlineResponse20044.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Product]**](Product.md) | Retrieved list of products. | [optional] +**items** | [**list[MachineType]**](MachineType.md) | Retrieved list of cloud providers. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] diff --git a/docs/InlineResponse20045.md b/docs/InlineResponse20045.md index 1fa8f0e..9eb3da5 100644 --- a/docs/InlineResponse20045.md +++ b/docs/InlineResponse20045.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[ProvisionShard]**](ProvisionShard.md) | Retrieved a list of provision shards. | [optional] +**items** | [**list[OidcConfig]**](OidcConfig.md) | Retrieved list of identity providers. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**size** | **int** | Number of items contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20046.md b/docs/InlineResponse20046.md index 7954b38..3bc7501 100644 --- a/docs/InlineResponse20046.md +++ b/docs/InlineResponse20046.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[VersionGate]**](VersionGate.md) | Retrieved list of version gates. | [optional] +**items** | [**list[PendingDeleteCluster]**](PendingDeleteCluster.md) | Retrieved list of pending delete clusters. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. Default value is `100`. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20047.md b/docs/InlineResponse20047.md index c588f36..f2ada14 100644 --- a/docs/InlineResponse20047.md +++ b/docs/InlineResponse20047.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[Version]**](Version.md) | Retrieved list of versions. | [optional] +**items** | [**list[Product]**](Product.md) | Retrieved list of products. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. Default value is `100`. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20048.md b/docs/InlineResponse20048.md new file mode 100644 index 0000000..ee029e3 --- /dev/null +++ b/docs/InlineResponse20048.md @@ -0,0 +1,13 @@ +# InlineResponse20048 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[ProvisionShard]**](ProvisionShard.md) | Retrieved a list of provision shards. | [optional] +**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InlineResponse20049.md b/docs/InlineResponse20049.md new file mode 100644 index 0000000..1d97c9a --- /dev/null +++ b/docs/InlineResponse20049.md @@ -0,0 +1,13 @@ +# InlineResponse20049 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[TrustedIp]**](TrustedIp.md) | Retrieved list of trusted ip addresses. | [optional] +**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] +**size** | **int** | Number of items contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md index 7689f6d..2e27807 100644 --- a/docs/InlineResponse2005.md +++ b/docs/InlineResponse2005.md @@ -3,10 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[STSCredentialRequest]**](STSCredentialRequest.md) | Retrieved list of CredRequest. | [optional] -**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] +**aws_account_id** | **str** | The AWS Account Id for the STS Account Roles | [optional] +**items** | [**list[AWSSTSAccountRole]**](AWSSTSAccountRole.md) | Retrieved list of STS Account Roles | [optional] +**page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] +**size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of be the total number of STS account roles. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of STS account roles | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse20050.md b/docs/InlineResponse20050.md new file mode 100644 index 0000000..bf91ab4 --- /dev/null +++ b/docs/InlineResponse20050.md @@ -0,0 +1,13 @@ +# InlineResponse20050 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[VersionGate]**](VersionGate.md) | Retrieved list of version gates. | [optional] +**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. Default value is `100`. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InlineResponse20051.md b/docs/InlineResponse20051.md new file mode 100644 index 0000000..2191c58 --- /dev/null +++ b/docs/InlineResponse20051.md @@ -0,0 +1,13 @@ +# InlineResponse20051 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[Version]**](Version.md) | Retrieved list of versions. | [optional] +**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. Default value is `100`. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InlineResponse2006.md b/docs/InlineResponse2006.md index fe1207c..208dc6e 100644 --- a/docs/InlineResponse2006.md +++ b/docs/InlineResponse2006.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[AWSSTSPolicy]**](AWSSTSPolicy.md) | Retrieved list of policies. | [optional] +**items** | [**list[STSCredentialRequest]**](STSCredentialRequest.md) | Retrieved list of CredRequest. | [optional] **page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] **size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] **total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md index f6829e4..ad12741 100644 --- a/docs/InlineResponse2007.md +++ b/docs/InlineResponse2007.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[CloudVPC]**](CloudVPC.md) | Retrieved list of cloud VPC. | [optional] -**page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] -**size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available vpcs of the provider. | [optional] +**items** | [**list[AWSSTSPolicy]**](AWSSTSPolicy.md) | Retrieved list of policies. | [optional] +**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md index ebab622..68b91aa 100644 --- a/docs/InlineResponse2008.md +++ b/docs/InlineResponse2008.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[CloudProvider]**](CloudProvider.md) | Retrieved list of cloud providers. | [optional] -**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] -**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] +**items** | [**list[CloudVPC]**](CloudVPC.md) | Retrieved list of cloud VPC. | [optional] +**page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] +**size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available vpcs of the provider. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse2009.md b/docs/InlineResponse2009.md index 7b18fd5..10b0cab 100644 --- a/docs/InlineResponse2009.md +++ b/docs/InlineResponse2009.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[CloudRegion]**](CloudRegion.md) | Retrieved list of cloud regions. | [optional] -**page** | **int** | Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. | [optional] -**size** | **int** | Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. | [optional] -**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. | [optional] +**items** | [**list[CloudProvider]**](CloudProvider.md) | Retrieved list of cloud providers. | [optional] +**page** | **int** | Index of the requested page, where one corresponds to the first page. | [optional] +**size** | **int** | Maximum number of items that will be contained in the returned page. | [optional] +**total** | **int** | Total number of items of the collection that match the search criteria, regardless of the size of the page. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/KubeletConfig.md b/docs/KubeletConfig.md new file mode 100644 index 0000000..6c55169 --- /dev/null +++ b/docs/KubeletConfig.md @@ -0,0 +1,14 @@ +# KubeletConfig + +OCM representation of KubeletConfig, exposing the fields of Kubernetes KubeletConfig that can be managed by users +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'KubeletConfig' if this is a complete object or 'KubeletConfigLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**pod_pids_limit** | **int** | Allows user to specify the podPidsLimit to be applied via KubeletConfig. Useful if workloads have greater PIDs limit requirements than the OCP default. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoadBalancerFlavor.md b/docs/LoadBalancerFlavor.md index fd39113..94779d7 100644 --- a/docs/LoadBalancerFlavor.md +++ b/docs/LoadBalancerFlavor.md @@ -1,6 +1,6 @@ # LoadBalancerFlavor -Type of node received via telemetry. +Type of load balancer for AWS cloud provider parameters. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/docs/NamespaceOwnershipPolicy.md b/docs/NamespaceOwnershipPolicy.md new file mode 100644 index 0000000..cd4a280 --- /dev/null +++ b/docs/NamespaceOwnershipPolicy.md @@ -0,0 +1,10 @@ +# NamespaceOwnershipPolicy + +Type of Namespace Ownership Policy. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkVerification.md b/docs/NetworkVerification.md new file mode 100644 index 0000000..ffa7c4e --- /dev/null +++ b/docs/NetworkVerification.md @@ -0,0 +1,13 @@ +# NetworkVerification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cloud_provider_data** | [**CloudProviderData**](CloudProviderData.md) | | [optional] +**cluster_id** | **str** | Cluster ID needed to execute the network verification. | [optional] +**items** | [**list[SubnetNetworkVerification]**](SubnetNetworkVerification.md) | Details about each subnet network verification. | [optional] +**total** | **int** | Amount of network verifier executions started. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NodePoolUpgradePolicy.md b/docs/NodePoolUpgradePolicy.md index 02ce011..3b34c22 100644 --- a/docs/NodePoolUpgradePolicy.md +++ b/docs/NodePoolUpgradePolicy.md @@ -14,9 +14,9 @@ Name | Type | Description | Notes **next_run** | **datetime** | Next time the upgrade should run. | [optional] **node_pool_id** | **str** | Node Pool ID this upgrade policy is defined for. | [optional] **schedule** | **str** | Schedule cron expression that defines automatic upgrade scheduling. | [optional] -**schedule_type** | **str** | Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring). | [optional] +**schedule_type** | [**ScheduleType**](ScheduleType.md) | | [optional] **state** | [**UpgradePolicyState**](UpgradePolicyState.md) | | [optional] -**upgrade_type** | **str** | Upgrade type specify the type of the upgrade. Can only be \"NodePool\". | [optional] +**upgrade_type** | [**UpgradeType**](UpgradeType.md) | | [optional] **version** | **str** | Version is the desired upgrade version. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProductMinimalVersion.md b/docs/ProductMinimalVersion.md new file mode 100644 index 0000000..7c1dbe9 --- /dev/null +++ b/docs/ProductMinimalVersion.md @@ -0,0 +1,15 @@ +# ProductMinimalVersion + +Representation of a product minimal version. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'ProductMinimalVersion' if this is a complete object or 'ProductMinimalVersionLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**rosa_cli** | **str** | The ROSA CLI minimal version. | [optional] +**start_date** | **datetime** | The start date for this minimal version. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProductTechnologyPreview.md b/docs/ProductTechnologyPreview.md new file mode 100644 index 0000000..ef99ea4 --- /dev/null +++ b/docs/ProductTechnologyPreview.md @@ -0,0 +1,16 @@ +# ProductTechnologyPreview + +Representation of a product technology preview. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'ProductTechnologyPreview' if this is a complete object or 'ProductTechnologyPreviewLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**additional_text** | **str** | Message associated with this technology preview. | [optional] +**end_date** | **datetime** | The end date for this technology preview. | [optional] +**start_date** | **datetime** | The start date for this technology preview. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProvisionShardTopology.md b/docs/ProvisionShardTopology.md new file mode 100644 index 0000000..f608fa3 --- /dev/null +++ b/docs/ProvisionShardTopology.md @@ -0,0 +1,9 @@ +# ProvisionShardTopology + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceRange.md b/docs/ResourceRange.md new file mode 100644 index 0000000..c3df2b7 --- /dev/null +++ b/docs/ResourceRange.md @@ -0,0 +1,11 @@ +# ResourceRange + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **int** | | [optional] +**min** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ScheduleType.md b/docs/ScheduleType.md new file mode 100644 index 0000000..7b7988a --- /dev/null +++ b/docs/ScheduleType.md @@ -0,0 +1,10 @@ +# ScheduleType + +ScheduleType defines which type of scheduling should be used for the upgrade policy. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SecurityGroup.md b/docs/SecurityGroup.md new file mode 100644 index 0000000..07f91aa --- /dev/null +++ b/docs/SecurityGroup.md @@ -0,0 +1,13 @@ +# SecurityGroup + +AWS security group object +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | The security group ID. | [optional] +**name** | **str** | Name of the security group according to its `Name` tag on AWS. | [optional] +**red_hat_managed** | **bool** | If the resource is RH managed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ServerConfig.md b/docs/ServerConfig.md index 1e00ca8..d8ab0a5 100644 --- a/docs/ServerConfig.md +++ b/docs/ServerConfig.md @@ -7,8 +7,9 @@ Name | Type | Description | Notes **kind** | **str** | Indicates the type of this object. Will be 'ServerConfig' if this is a complete object or 'ServerConfigLink' if it is just a link. | [optional] **id** | **str** | Unique identifier of the object. | [optional] **href** | **str** | Self link. | [optional] -**kubeconfig** | **str** | The kubeconfig of the server | [optional] -**server** | **str** | The URL of the server | [optional] +**kubeconfig** | **str** | The kubeconfig of the server. | [optional] +**server** | **str** | The URL of the server. | [optional] +**topology** | [**ProvisionShardTopology**](ProvisionShardTopology.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/StsSupportJumpRole.md b/docs/StsSupportJumpRole.md new file mode 100644 index 0000000..66345b9 --- /dev/null +++ b/docs/StsSupportJumpRole.md @@ -0,0 +1,11 @@ +# StsSupportJumpRole + +Isolated STS support role created per organization. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**role_arn** | **str** | ARN of the support role created in the SRE jump account. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubnetNetworkVerification.md b/docs/SubnetNetworkVerification.md new file mode 100644 index 0000000..d338624 --- /dev/null +++ b/docs/SubnetNetworkVerification.md @@ -0,0 +1,15 @@ +# SubnetNetworkVerification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'SubnetNetworkVerification' if this is a complete object or 'SubnetNetworkVerificationLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**details** | **list[str]** | Slice of failures that happened during a subnet network verification. | [optional] +**state** | **str** | State of the subnet network verification. | [optional] +**tags** | **dict(str, str)** | Tags supplied to the network verifier for this subnet. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Subnetwork.md b/docs/Subnetwork.md index 71d02b3..5441cee 100644 --- a/docs/Subnetwork.md +++ b/docs/Subnetwork.md @@ -4,10 +4,12 @@ AWS subnetwork object to be used while installing a cluster ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**availability_zone** | **str** | The availability zone to which the subnet is related | [optional] -**name** | **str** | Name of the subnet according to its `Name` tag on AWS | [optional] -**public** | **bool** | Whether it is a public subnet | [optional] -**subnet_id** | **str** | The subnet id to be used while installing a cluster | [optional] +**cidr_block** | **str** | The CIDR Block of the subnet. | [optional] +**availability_zone** | **str** | The availability zone to which the subnet is related. | [optional] +**name** | **str** | Name of the subnet according to its `Name` tag on AWS. | [optional] +**public** | **bool** | Whether or not it is a public subnet. | [optional] +**red_hat_managed** | **bool** | If the resource is RH managed. | [optional] +**subnet_id** | **str** | The subnet ID to be used while installing a cluster. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TrustedIp.md b/docs/TrustedIp.md new file mode 100644 index 0000000..ab7eba7 --- /dev/null +++ b/docs/TrustedIp.md @@ -0,0 +1,14 @@ +# TrustedIp + +Representation of a trusted ip address in clusterdeployment. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kind** | **str** | Indicates the type of this object. Will be 'TrustedIp' if this is a complete object or 'TrustedIpLink' if it is just a link. | [optional] +**id** | **str** | Unique identifier of the object. | [optional] +**href** | **str** | Self link. | [optional] +**enabled** | **bool** | The boolean set to show if the ip is enabled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradePolicy.md b/docs/UpgradePolicy.md index 076e236..5d93e22 100644 --- a/docs/UpgradePolicy.md +++ b/docs/UpgradePolicy.md @@ -11,8 +11,8 @@ Name | Type | Description | Notes **enable_minor_version_upgrades** | **bool** | Indicates if minor version upgrades are allowed for automatic upgrades (for manual it's always allowed). | [optional] **next_run** | **datetime** | Next time the upgrade should run. | [optional] **schedule** | **str** | Schedule cron expression that defines automatic upgrade scheduling. | [optional] -**schedule_type** | **str** | Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring). | [optional] -**upgrade_type** | **str** | Upgrade type specify the type of the upgrade. Can be \"OSD\" or \"CVE\". | [optional] +**schedule_type** | [**ScheduleType**](ScheduleType.md) | | [optional] +**upgrade_type** | [**UpgradeType**](UpgradeType.md) | | [optional] **version** | **str** | Version is the desired upgrade version. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpgradeType.md b/docs/UpgradeType.md new file mode 100644 index 0000000..fa8e563 --- /dev/null +++ b/docs/UpgradeType.md @@ -0,0 +1,10 @@ +# UpgradeType + +UpgradeType defines which type of upgrade should be used. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Version.md b/docs/Version.md index 5263174..3ab83c0 100644 --- a/docs/Version.md +++ b/docs/Version.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **kind** | **str** | Indicates the type of this object. Will be 'Version' if this is a complete object or 'VersionLink' if it is just a link. | [optional] **id** | **str** | Unique identifier of the object. | [optional] **href** | **str** | Self link. | [optional] +**gcp_marketplace_enabled** | **bool** | GCPMarketplaceEnabled indicates if this version can be used to create GCP Marketplace clusters. | [optional] **rosa_enabled** | **bool** | ROSAEnabled indicates whether this version can be used to create ROSA clusters. | [optional] **available_upgrades** | **list[str]** | AvailableUpgrades is the list of versions this version can be upgraded to. | [optional] **channel_group** | **str** | ChannelGroup is the name of the group where this image belongs. ChannelGroup is a mechanism to partition the images to different groups, each image belongs to only a single group. | [optional] @@ -14,8 +15,9 @@ Name | Type | Description | Notes **enabled** | **bool** | Indicates if this version can be used to create clusters. | [optional] **end_of_life_timestamp** | **datetime** | EndOfLifeTimestamp is the date and time when the version will get to End of Life, using the format defined in https://www.ietf.org/rfc/rfc3339.txt[RC3339]. | [optional] **hosted_control_plane_enabled** | **bool** | HostedControlPlaneEnabled indicates whether this version can be used to create HCP clusters. | [optional] +**image_overrides** | [**ImageOverrides**](ImageOverrides.md) | | [optional] **raw_id** | **str** | RawID is the id of the version - without channel group and prefix. | [optional] -**release_image** | **str** | ReleaseImage contains the URI of Openshift release image | [optional] +**release_image** | **str** | ReleaseImage contains the URI of Openshift release image. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WildcardPolicy.md b/docs/WildcardPolicy.md new file mode 100644 index 0000000..6962c4e --- /dev/null +++ b/docs/WildcardPolicy.md @@ -0,0 +1,10 @@ +# WildcardPolicy + +Type of wildcard policy. +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/git_push.sh b/git_push.sh index a4b1df5..679b232 100644 --- a/git_push.sh +++ b/git_push.sh @@ -14,7 +14,7 @@ if [ "$git_host" = "" ]; then fi if [ "$git_user_id" = "" ]; then - git_user_id="paulczar" + git_user_id="rh-mobb" echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" fi diff --git a/ocm_client/__init__.py b/ocm_client/__init__.py index 5afb1f2..ea18274 100644 --- a/ocm_client/__init__.py +++ b/ocm_client/__init__.py @@ -29,6 +29,7 @@ from ocm_client.exceptions import ApiKeyError from ocm_client.exceptions import ApiException # import models into sdk package +from ocm_client.models.ami_override import AMIOverride from ocm_client.models.aws import AWS from ocm_client.models.aws_flavour import AWSFlavour from ocm_client.models.aws_infrastructure_access_role import AWSInfrastructureAccessRole @@ -37,7 +38,9 @@ from ocm_client.models.aws_infrastructure_access_role_state import AWSInfrastructureAccessRoleState from ocm_client.models.aws_machine_pool import AWSMachinePool from ocm_client.models.aws_node_pool import AWSNodePool +from ocm_client.models.awssts_account_role import AWSSTSAccountRole from ocm_client.models.awssts_policy import AWSSTSPolicy +from ocm_client.models.awssts_role import AWSSTSRole from ocm_client.models.aws_spot_market_options import AWSSpotMarketOptions from ocm_client.models.aws_volume import AWSVolume from ocm_client.models.add_on import AddOn @@ -64,8 +67,12 @@ from ocm_client.models.alert_severity import AlertSeverity from ocm_client.models.alerts_info import AlertsInfo from ocm_client.models.audit_log import AuditLog +from ocm_client.models.autoscaler_resource_limits import AutoscalerResourceLimits +from ocm_client.models.autoscaler_resource_limits_gpu_limit import AutoscalerResourceLimitsGPULimit +from ocm_client.models.autoscaler_scale_down_config import AutoscalerScaleDownConfig from ocm_client.models.aws_etcd_encryption import AwsEtcdEncryption from ocm_client.models.billing_model import BillingModel +from ocm_client.models.billing_model_item import BillingModelItem from ocm_client.models.byo_oidc import ByoOidc from ocm_client.models.ccs import CCS from ocm_client.models.cpu_total_node_role_os_metric_node import CPUTotalNodeRoleOSMetricNode @@ -76,6 +83,7 @@ from ocm_client.models.cloud_vpc import CloudVPC from ocm_client.models.cluster import Cluster from ocm_client.models.cluster_api import ClusterAPI +from ocm_client.models.cluster_autoscaler import ClusterAutoscaler from ocm_client.models.cluster_configuration_mode import ClusterConfigurationMode from ocm_client.models.cluster_console import ClusterConsole from ocm_client.models.cluster_credentials import ClusterCredentials @@ -107,8 +115,10 @@ from ocm_client.models.gcp import GCP from ocm_client.models.gcp_encryption_key import GCPEncryptionKey from ocm_client.models.gcp_flavour import GCPFlavour +from ocm_client.models.gcp_image_override import GCPImageOverride from ocm_client.models.gcp_network import GCPNetwork from ocm_client.models.gcp_volume import GCPVolume +from ocm_client.models.gcp_security import GcpSecurity from ocm_client.models.github_identity_provider import GithubIdentityProvider from ocm_client.models.gitlab_identity_provider import GitlabIdentityProvider from ocm_client.models.google_identity_provider import GoogleIdentityProvider @@ -120,6 +130,7 @@ from ocm_client.models.identity_provider import IdentityProvider from ocm_client.models.identity_provider_mapping_method import IdentityProviderMappingMethod from ocm_client.models.identity_provider_type import IdentityProviderType +from ocm_client.models.image_overrides import ImageOverrides from ocm_client.models.inflight_check import InflightCheck from ocm_client.models.inflight_check_state import InflightCheckState from ocm_client.models.ingress import Ingress @@ -167,13 +178,18 @@ from ocm_client.models.inline_response20045 import InlineResponse20045 from ocm_client.models.inline_response20046 import InlineResponse20046 from ocm_client.models.inline_response20047 import InlineResponse20047 +from ocm_client.models.inline_response20048 import InlineResponse20048 +from ocm_client.models.inline_response20049 import InlineResponse20049 from ocm_client.models.inline_response2005 import InlineResponse2005 +from ocm_client.models.inline_response20050 import InlineResponse20050 +from ocm_client.models.inline_response20051 import InlineResponse20051 from ocm_client.models.inline_response2006 import InlineResponse2006 from ocm_client.models.inline_response2007 import InlineResponse2007 from ocm_client.models.inline_response2008 import InlineResponse2008 from ocm_client.models.inline_response2009 import InlineResponse2009 from ocm_client.models.instance_iam_roles import InstanceIAMRoles from ocm_client.models.key_ring import KeyRing +from ocm_client.models.kubelet_config import KubeletConfig from ocm_client.models.ldap_attributes import LDAPAttributes from ocm_client.models.ldap_identity_provider import LDAPIdentityProvider from ocm_client.models.label import Label @@ -191,7 +207,9 @@ from ocm_client.models.managed_service import ManagedService from ocm_client.models.manifest import Manifest from ocm_client.models.metadata import Metadata +from ocm_client.models.namespace_ownership_policy import NamespaceOwnershipPolicy from ocm_client.models.network import Network +from ocm_client.models.network_verification import NetworkVerification from ocm_client.models.node_info import NodeInfo from ocm_client.models.node_pool import NodePool from ocm_client.models.node_pool_autoscaling import NodePoolAutoscaling @@ -210,26 +228,37 @@ from ocm_client.models.private_link_principal import PrivateLinkPrincipal from ocm_client.models.private_link_principals import PrivateLinkPrincipals from ocm_client.models.product import Product +from ocm_client.models.product_minimal_version import ProductMinimalVersion +from ocm_client.models.product_technology_preview import ProductTechnologyPreview from ocm_client.models.provision_shard import ProvisionShard +from ocm_client.models.provision_shard_topology import ProvisionShardTopology from ocm_client.models.proxy import Proxy +from ocm_client.models.resource_range import ResourceRange from ocm_client.models.root_volume import RootVolume from ocm_client.models.sts import STS from ocm_client.models.sts_credential_request import STSCredentialRequest from ocm_client.models.sts_operator import STSOperator +from ocm_client.models.schedule_type import ScheduleType +from ocm_client.models.security_group import SecurityGroup from ocm_client.models.server_config import ServerConfig from ocm_client.models.socket_total_node_role_os_metric_node import SocketTotalNodeRoleOSMetricNode from ocm_client.models.socket_totals_node_role_os_metric_node import SocketTotalsNodeRoleOSMetricNode +from ocm_client.models.sts_support_jump_role import StsSupportJumpRole +from ocm_client.models.subnet_network_verification import SubnetNetworkVerification from ocm_client.models.subnetwork import Subnetwork from ocm_client.models.subscription import Subscription from ocm_client.models.syncset import Syncset from ocm_client.models.taint import Taint +from ocm_client.models.trusted_ip import TrustedIp from ocm_client.models.tuning_config import TuningConfig from ocm_client.models.upgrade_policy import UpgradePolicy from ocm_client.models.upgrade_policy_state import UpgradePolicyState from ocm_client.models.upgrade_policy_state_value import UpgradePolicyStateValue +from ocm_client.models.upgrade_type import UpgradeType from ocm_client.models.user import User from ocm_client.models.value import Value from ocm_client.models.version import Version from ocm_client.models.version_gate import VersionGate from ocm_client.models.version_gate_agreement import VersionGateAgreement +from ocm_client.models.wildcard_policy import WildcardPolicy diff --git a/ocm_client/api/default_api.py b/ocm_client/api/default_api.py index 55bb3f2..65002ad 100644 --- a/ocm_client/api/default_api.py +++ b/ocm_client/api/default_api.py @@ -1747,6 +1747,128 @@ def api_clusters_mgmt_v1_aws_inquiries_regions_post_with_http_info(self, **kwarg _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of be the total number of STS account roles. + :param AWS aws: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2005 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post_with_http_info(**kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of be the total number of STS account roles. + :param AWS aws: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2005, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'page', + 'size', + 'aws' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_aws_inquiries_sts_account_roles_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'aws' in local_var_params: + body_params = local_var_params['aws'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/aws_inquiries/sts_account_roles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2005', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get(self, **kwargs): # noqa: E501 """api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get # noqa: E501 @@ -1766,7 +1888,7 @@ def api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get(self, **kwarg number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse2005 + :return: InlineResponse2006 If the method is called asynchronously, returns the request thread. """ @@ -1794,7 +1916,7 @@ def api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get_with_http_inf number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse2005, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse2006, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1854,7 +1976,7 @@ def api_clusters_mgmt_v1_aws_inquiries_sts_credential_requests_get_with_http_inf body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2005', # noqa: E501 + response_type='InlineResponse2006', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -1883,7 +2005,7 @@ def api_clusters_mgmt_v1_aws_inquiries_sts_policies_get(self, **kwargs): # noqa number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse2006 + :return: InlineResponse2007 If the method is called asynchronously, returns the request thread. """ @@ -1913,7 +2035,7 @@ def api_clusters_mgmt_v1_aws_inquiries_sts_policies_get_with_http_info(self, **k number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse2006, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse2007, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -1979,7 +2101,7 @@ def api_clusters_mgmt_v1_aws_inquiries_sts_policies_get_with_http_info(self, **k body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2006', # noqa: E501 + response_type='InlineResponse2007', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2007,7 +2129,7 @@ def api_clusters_mgmt_v1_aws_inquiries_vpcs_post(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse2007 + :return: InlineResponse2008 If the method is called asynchronously, returns the request thread. """ @@ -2036,7 +2158,7 @@ def api_clusters_mgmt_v1_aws_inquiries_vpcs_post_with_http_info(self, **kwargs): number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse2007, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse2008, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -2103,7 +2225,7 @@ def api_clusters_mgmt_v1_aws_inquiries_vpcs_post_with_http_info(self, **kwargs): body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2007', # noqa: E501 + response_type='InlineResponse2008', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2132,7 +2254,7 @@ def api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_available_regions_pos number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse2009 + :return: InlineResponse20010 If the method is called asynchronously, returns the request thread. """ @@ -2162,7 +2284,7 @@ def api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_available_regions_pos number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse2009, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20010, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -2236,7 +2358,7 @@ def api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_available_regions_pos body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2009', # noqa: E501 + response_type='InlineResponse20010', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2378,7 +2500,7 @@ def api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_regions_get(self, clo number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20010 + :return: InlineResponse20011 If the method is called asynchronously, returns the request thread. """ @@ -2407,7 +2529,7 @@ def api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_regions_get_with_http number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20010, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20011, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -2474,7 +2596,7 @@ def api_clusters_mgmt_v1_cloud_providers_cloud_provider_id_regions_get_with_http body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20010', # noqa: E501 + response_type='InlineResponse20011', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -2993,6 +3115,7 @@ def api_clusters_mgmt_v1_cloud_providers_get(self, **kwargs): # noqa: E501 >>> result = thread.get() :param async_req bool: execute request asynchronously + :param bool fetch_regions: If true, includes the regions on each provider in the output. Could slow request response time. :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cloud provider instead of the names of the columns of a table. For example, in order to sort the clusters descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. :param int page: Index of the requested page, where one corresponds to the first page. :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cloud provider instead of the names of the columns of a table. For example, in order to retrieve all the cloud providers with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. @@ -3004,7 +3127,7 @@ def api_clusters_mgmt_v1_cloud_providers_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse2008 + :return: InlineResponse2009 If the method is called asynchronously, returns the request thread. """ @@ -3021,6 +3144,7 @@ def api_clusters_mgmt_v1_cloud_providers_get_with_http_info(self, **kwargs): # >>> result = thread.get() :param async_req bool: execute request asynchronously + :param bool fetch_regions: If true, includes the regions on each provider in the output. Could slow request response time. :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cloud provider instead of the names of the columns of a table. For example, in order to sort the clusters descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. :param int page: Index of the requested page, where one corresponds to the first page. :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cloud provider instead of the names of the columns of a table. For example, in order to retrieve all the cloud providers with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. @@ -3034,7 +3158,7 @@ def api_clusters_mgmt_v1_cloud_providers_get_with_http_info(self, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse2008, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse2009, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -3042,6 +3166,7 @@ def api_clusters_mgmt_v1_cloud_providers_get_with_http_info(self, **kwargs): # local_var_params = locals() all_params = [ + 'fetch_regions', 'order', 'page', 'search', @@ -3070,6 +3195,8 @@ def api_clusters_mgmt_v1_cloud_providers_get_with_http_info(self, **kwargs): # path_params = {} query_params = [] + if 'fetch_regions' in local_var_params and local_var_params['fetch_regions'] is not None: # noqa: E501 + query_params.append(('fetchRegions', local_var_params['fetch_regions'])) # noqa: E501 if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 query_params.append(('order', local_var_params['order'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 @@ -3100,7 +3227,7 @@ def api_clusters_mgmt_v1_cloud_providers_get_with_http_info(self, **kwargs): # body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2008', # noqa: E501 + response_type='InlineResponse2009', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -4014,7 +4141,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_addon_upgrade_policies_get(self, cl number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20012 + :return: InlineResponse20013 If the method is called asynchronously, returns the request thread. """ @@ -4043,7 +4170,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_addon_upgrade_policies_get_with_htt number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20012, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20013, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -4110,7 +4237,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_addon_upgrade_policies_get_with_htt body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20012', # noqa: E501 + response_type='InlineResponse20013', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -4641,7 +4768,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_addons_get(self, cluster_id, **kwar number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20013 + :return: InlineResponse20014 If the method is called asynchronously, returns the request thread. """ @@ -4672,7 +4799,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_addons_get_with_http_info(self, clu number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20013, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20014, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -4745,7 +4872,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_addons_get_with_http_info(self, clu body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20013', # noqa: E501 + response_type='InlineResponse20014', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -4876,18 +5003,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_addons_post_with_http_info(self, cl _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete(self, cluster_id, aws_infrastructure_access_role_grant_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete # noqa: E501 - Deletes the AWS infrastructure access role grant. # noqa: E501 + Deletes the cluster autoscaler. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete(cluster_id, aws_infrastructure_access_role_grant_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str aws_infrastructure_access_role_grant_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -4900,20 +5026,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete_with_http_info(cluster_id, aws_infrastructure_access_role_grant_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete_with_http_info(self, cluster_id, aws_infrastructure_access_role_grant_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete # noqa: E501 - Deletes the AWS infrastructure access role grant. # noqa: E501 + Deletes the cluster autoscaler. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete_with_http_info(cluster_id, aws_infrastructure_access_role_grant_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str aws_infrastructure_access_role_grant_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -4931,8 +5056,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran local_var_params = locals() all_params = [ - 'cluster_id', - 'aws_infrastructure_access_role_grant_id' + 'cluster_id' ] all_params.extend( [ @@ -4947,26 +5071,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete`") # noqa: E501 - # verify the required parameter 'aws_infrastructure_access_role_grant_id' is set - if self.api_client.client_side_validation and ('aws_infrastructure_access_role_grant_id' not in local_var_params or # noqa: E501 - local_var_params['aws_infrastructure_access_role_grant_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `aws_infrastructure_access_role_grant_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'aws_infrastructure_access_role_grant_id' in local_var_params: - path_params['aws_infrastructure_access_role_grant_id'] = local_var_params['aws_infrastructure_access_role_grant_id'] # noqa: E501 query_params = [] @@ -4984,7 +5102,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants/{aws_infrastructure_access_role_grant_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler', 'DELETE', path_params, query_params, header_params, @@ -4999,18 +5117,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get(self, cluster_id, aws_infrastructure_access_role_grant_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get # noqa: E501 - Retrieves the details of the AWS infrastructure access role grant. # noqa: E501 + Retrieves the autoscaler of a cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get(cluster_id, aws_infrastructure_access_role_grant_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str aws_infrastructure_access_role_grant_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5018,25 +5135,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: AWSInfrastructureAccessRoleGrant + :return: ClusterAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get_with_http_info(cluster_id, aws_infrastructure_access_role_grant_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get_with_http_info(self, cluster_id, aws_infrastructure_access_role_grant_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get # noqa: E501 - Retrieves the details of the AWS infrastructure access role grant. # noqa: E501 + Retrieves the autoscaler of a cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get_with_http_info(cluster_id, aws_infrastructure_access_role_grant_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str aws_infrastructure_access_role_grant_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5046,7 +5162,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(AWSInfrastructureAccessRoleGrant, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ClusterAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5054,8 +5170,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran local_var_params = locals() all_params = [ - 'cluster_id', - 'aws_infrastructure_access_role_grant_id' + 'cluster_id' ] all_params.extend( [ @@ -5070,26 +5185,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get`") # noqa: E501 - # verify the required parameter 'aws_infrastructure_access_role_grant_id' is set - if self.api_client.client_side_validation and ('aws_infrastructure_access_role_grant_id' not in local_var_params or # noqa: E501 - local_var_params['aws_infrastructure_access_role_grant_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `aws_infrastructure_access_role_grant_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'aws_infrastructure_access_role_grant_id' in local_var_params: - path_params['aws_infrastructure_access_role_grant_id'] = local_var_params['aws_infrastructure_access_role_grant_id'] # noqa: E501 query_params = [] @@ -5107,14 +5216,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants/{aws_infrastructure_access_role_grant_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='AWSInfrastructureAccessRoleGrant', # noqa: E501 + response_type='ClusterAutoscaler', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5122,21 +5231,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch # noqa: E501 - Retrieves the list of AWS infrastructure access role grants. # noqa: E501 + Updates the cluster autoscaler. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to sort the AWS infrastructure access role grants descending by user ARN the value should be: ```sql user_arn desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to retrieve all the AWS infrastructure access role grants with a user ARN starting with `user` the value should be: ```sql user_arn like '%user' ``` If the parameter isn't provided, or if the value is empty, then all the AWS infrastructure access role grants that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. + :param ClusterAutoscaler cluster_autoscaler: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5144,28 +5250,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20015 + :return: ClusterAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch # noqa: E501 - Retrieves the list of AWS infrastructure access role grants. # noqa: E501 + Updates the cluster autoscaler. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to sort the AWS infrastructure access role grants descending by user ARN the value should be: ```sql user_arn desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to retrieve all the AWS infrastructure access role grants with a user ARN starting with `user` the value should be: ```sql user_arn like '%user' ``` If the parameter isn't provided, or if the value is empty, then all the AWS infrastructure access role grants that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. + :param ClusterAutoscaler cluster_autoscaler: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5175,7 +5278,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20015, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ClusterAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5184,10 +5287,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran all_params = [ 'cluster_id', - 'order', - 'page', - 'search', - 'size' + 'cluster_autoscaler' ] all_params.extend( [ @@ -5202,14 +5302,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_patch`") # noqa: E501 collection_formats = {} @@ -5218,14 +5318,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 - query_params.append(('order', local_var_params['order'])) # noqa: E501 - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 - query_params.append(('search', local_var_params['search'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -5233,22 +5325,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran local_var_files = {} body_params = None + if 'cluster_autoscaler' in local_var_params: + body_params = local_var_params['cluster_autoscaler'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20015', # noqa: E501 + response_type='ClusterAutoscaler', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5256,18 +5354,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post # noqa: E501 - Create a new AWS infrastructure access role grant and add it to the collection of AWS infrastructure access role grants on the cluster. # noqa: E501 + Creates a new cluster autoscaler object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param AWSInfrastructureAccessRoleGrant aws_infrastructure_access_role_grant: + :param ClusterAutoscaler cluster_autoscaler: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5275,25 +5373,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: AWSInfrastructureAccessRoleGrant + :return: ClusterAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post # noqa: E501 - Create a new AWS infrastructure access role grant and add it to the collection of AWS infrastructure access role grants on the cluster. # noqa: E501 + Creates a new cluster autoscaler object. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param AWSInfrastructureAccessRoleGrant aws_infrastructure_access_role_grant: + :param ClusterAutoscaler cluster_autoscaler: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5303,7 +5401,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(AWSInfrastructureAccessRoleGrant, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ClusterAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5312,7 +5410,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran all_params = [ 'cluster_id', - 'aws_infrastructure_access_role_grant' + 'cluster_autoscaler' ] all_params.extend( [ @@ -5327,14 +5425,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_autoscaler_post`") # noqa: E501 collection_formats = {} @@ -5350,8 +5448,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran local_var_files = {} body_params = None - if 'aws_infrastructure_access_role_grant' in local_var_params: - body_params = local_var_params['aws_infrastructure_access_role_grant'] + if 'cluster_autoscaler' in local_var_params: + body_params = local_var_params['cluster_autoscaler'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -5364,14 +5462,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/autoscaler', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='AWSInfrastructureAccessRoleGrant', # noqa: E501 + response_type='ClusterAutoscaler', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5379,17 +5477,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_gran _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete(self, cluster_id, aws_infrastructure_access_role_grant_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete # noqa: E501 - Retrieves the details of the configuration for the Private Link. # noqa: E501 + Deletes the AWS infrastructure access role grant. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete(cluster_id, aws_infrastructure_access_role_grant_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str aws_infrastructure_access_role_grant_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5397,24 +5496,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get( number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: PrivateLinkConfiguration + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete_with_http_info(cluster_id, aws_infrastructure_access_role_grant_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete_with_http_info(self, cluster_id, aws_infrastructure_access_role_grant_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete # noqa: E501 - Retrieves the details of the configuration for the Private Link. # noqa: E501 + Deletes the AWS infrastructure access role grant. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete_with_http_info(cluster_id, aws_infrastructure_access_role_grant_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str aws_infrastructure_access_role_grant_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5424,7 +5524,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(PrivateLinkConfiguration, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -5432,7 +5532,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_ local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'aws_infrastructure_access_role_grant_id' ] all_params.extend( [ @@ -5447,20 +5548,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete`") # noqa: E501 + # verify the required parameter 'aws_infrastructure_access_role_grant_id' is set + if self.api_client.client_side_validation and ('aws_infrastructure_access_role_grant_id' not in local_var_params or # noqa: E501 + local_var_params['aws_infrastructure_access_role_grant_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `aws_infrastructure_access_role_grant_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'aws_infrastructure_access_role_grant_id' in local_var_params: + path_params['aws_infrastructure_access_role_grant_id'] = local_var_params['aws_infrastructure_access_role_grant_id'] # noqa: E501 query_params = [] @@ -5478,14 +5585,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants/{aws_infrastructure_access_role_grant_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PrivateLinkConfiguration', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5493,20 +5600,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get(self, cluster_id, aws_infrastructure_access_role_grant_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get # noqa: E501 - Retrieves the list of principals. # noqa: E501 + Retrieves the details of the AWS infrastructure access role grant. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get(cluster_id, aws_infrastructure_access_role_grant_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser: ```sql role_id = 'AuthenticatedUser' ``` If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned. - :param int size: Number of items contained in the returned page. + :param str aws_infrastructure_access_role_grant_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5514,27 +5619,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20014 + :return: AWSInfrastructureAccessRoleGrant If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get_with_http_info(cluster_id, aws_infrastructure_access_role_grant_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get_with_http_info(self, cluster_id, aws_infrastructure_access_role_grant_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get # noqa: E501 - Retrieves the list of principals. # noqa: E501 + Retrieves the details of the AWS infrastructure access role grant. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get_with_http_info(cluster_id, aws_infrastructure_access_role_grant_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser: ```sql role_id = 'AuthenticatedUser' ``` If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned. - :param int size: Number of items contained in the returned page. + :param str aws_infrastructure_access_role_grant_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5544,7 +5647,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20014, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(AWSInfrastructureAccessRoleGrant, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5553,9 +5656,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin all_params = [ 'cluster_id', - 'page', - 'search', - 'size' + 'aws_infrastructure_access_role_grant_id' ] all_params.extend( [ @@ -5570,28 +5671,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get`") # noqa: E501 + # verify the required parameter 'aws_infrastructure_access_role_grant_id' is set + if self.api_client.client_side_validation and ('aws_infrastructure_access_role_grant_id' not in local_var_params or # noqa: E501 + local_var_params['aws_infrastructure_access_role_grant_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `aws_infrastructure_access_role_grant_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_aws_infrastructure_access_role_grant_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'aws_infrastructure_access_role_grant_id' in local_var_params: + path_params['aws_infrastructure_access_role_grant_id'] = local_var_params['aws_infrastructure_access_role_grant_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 - query_params.append(('search', local_var_params['search'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -5607,14 +5708,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration/principals', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants/{aws_infrastructure_access_role_grant_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20014', # noqa: E501 + response_type='AWSInfrastructureAccessRoleGrant', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5622,18 +5723,21 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get # noqa: E501 - Adds a new principal for the Private Link. # noqa: E501 + Retrieves the list of AWS infrastructure access role grants. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param PrivateLinkPrincipal private_link_principal: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to sort the AWS infrastructure access role grants descending by user ARN the value should be: ```sql user_arn desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to retrieve all the AWS infrastructure access role grants with a user ARN starting with `user` the value should be: ```sql user_arn like '%user' ``` If the parameter isn't provided, or if the value is empty, then all the AWS infrastructure access role grants that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5641,25 +5745,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: PrivateLinkPrincipal + :return: InlineResponse20016 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get # noqa: E501 - Adds a new principal for the Private Link. # noqa: E501 + Retrieves the list of AWS infrastructure access role grants. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param PrivateLinkPrincipal private_link_principal: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to sort the AWS infrastructure access role grants descending by user ARN the value should be: ```sql user_arn desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the AWS infrastructure access role grant instead of the names of the columns of a table. For example, in order to retrieve all the AWS infrastructure access role grants with a user ARN starting with `user` the value should be: ```sql user_arn like '%user' ``` If the parameter isn't provided, or if the value is empty, then all the AWS infrastructure access role grants that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5669,7 +5776,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(PrivateLinkPrincipal, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20016, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5678,7 +5785,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin all_params = [ 'cluster_id', - 'private_link_principal' + 'order', + 'page', + 'search', + 'size' ] all_params.extend( [ @@ -5693,14 +5803,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_get`") # noqa: E501 collection_formats = {} @@ -5709,6 +5819,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -5716,28 +5834,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin local_var_files = {} body_params = None - if 'private_link_principal' in local_var_params: - body_params = local_var_params['private_link_principal'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration/principals', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PrivateLinkPrincipal', # noqa: E501 + response_type='InlineResponse20016', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5745,18 +5857,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete(self, cluster_id, principal_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post # noqa: E501 - Deletes the principal. # noqa: E501 + Create a new AWS infrastructure access role grant and add it to the collection of AWS infrastructure access role grants on the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete(cluster_id, principal_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str principal_id: (required) + :param AWSInfrastructureAccessRoleGrant aws_infrastructure_access_role_grant: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5764,25 +5876,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: AWSInfrastructureAccessRoleGrant If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete_with_http_info(cluster_id, principal_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete_with_http_info(self, cluster_id, principal_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post # noqa: E501 - Deletes the principal. # noqa: E501 + Create a new AWS infrastructure access role grant and add it to the collection of AWS infrastructure access role grants on the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete_with_http_info(cluster_id, principal_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str principal_id: (required) + :param AWSInfrastructureAccessRoleGrant aws_infrastructure_access_role_grant: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5792,7 +5904,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(AWSInfrastructureAccessRoleGrant, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5801,7 +5913,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin all_params = [ 'cluster_id', - 'principal_id' + 'aws_infrastructure_access_role_grant' ] all_params.extend( [ @@ -5816,26 +5928,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete`") # noqa: E501 - # verify the required parameter 'principal_id' is set - if self.api_client.client_side_validation and ('principal_id' not in local_var_params or # noqa: E501 - local_var_params['principal_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `principal_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_infrastructure_access_role_grants_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'principal_id' in local_var_params: - path_params['principal_id'] = local_var_params['principal_id'] # noqa: E501 query_params = [] @@ -5845,22 +5951,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin local_var_files = {} body_params = None + if 'aws_infrastructure_access_role_grant' in local_var_params: + body_params = local_var_params['aws_infrastructure_access_role_grant'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration/principals/{principal_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws_infrastructure_access_role_grants', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='AWSInfrastructureAccessRoleGrant', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5868,18 +5980,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get(self, cluster_id, principal_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get # noqa: E501 - Retrieves the details of the principal. # noqa: E501 + Retrieves the details of the configuration for the Private Link. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get(cluster_id, principal_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str principal_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -5887,25 +5998,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: PrivateLinkPrincipal + :return: PrivateLinkConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get_with_http_info(cluster_id, principal_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get_with_http_info(self, cluster_id, principal_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get # noqa: E501 - Retrieves the details of the principal. # noqa: E501 + Retrieves the details of the configuration for the Private Link. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get_with_http_info(cluster_id, principal_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str principal_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -5915,7 +6025,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(PrivateLinkPrincipal, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(PrivateLinkConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -5923,8 +6033,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin local_var_params = locals() all_params = [ - 'cluster_id', - 'principal_id' + 'cluster_id' ] all_params.extend( [ @@ -5939,26 +6048,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get`") # noqa: E501 - # verify the required parameter 'principal_id' is set - if self.api_client.client_side_validation and ('principal_id' not in local_var_params or # noqa: E501 - local_var_params['principal_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `principal_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'principal_id' in local_var_params: - path_params['principal_id'] = local_var_params['principal_id'] # noqa: E501 query_params = [] @@ -5976,14 +6079,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration/principals/{principal_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PrivateLinkPrincipal', # noqa: E501 + response_type='PrivateLinkConfiguration', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -5991,17 +6094,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_prin _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get # noqa: E501 - Deletes the clusterdeployment. # noqa: E501 + Retrieves the list of principals. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser: ```sql role_id = 'AuthenticatedUser' ``` If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -6009,24 +6115,27 @@ def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete(self, clus number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: InlineResponse20015 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get # noqa: E501 - Deletes the clusterdeployment. # noqa: E501 + Retrieves the list of principals. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the role binding instead of the names of the columns of a table. For example, in order to retrieve role bindings with role_id AuthenticatedUser: ```sql role_id = 'AuthenticatedUser' ``` If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -6036,7 +6145,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(InlineResponse20015, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -6044,7 +6153,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_ local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'page', + 'search', + 'size' ] all_params.extend( [ @@ -6059,14 +6171,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_get`") # noqa: E501 collection_formats = {} @@ -6075,6 +6187,12 @@ def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_ path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -6090,14 +6208,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/clusterdeployment', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration/principals', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='InlineResponse20015', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6105,18 +6223,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post # noqa: E501 - Deletes the upgrade policy for the control plane. # noqa: E501 + Adds a new principal for the Private Link. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete(cluster_id, control_plane_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str control_plane_upgrade_policy_id: (required) + :param PrivateLinkPrincipal private_link_principal: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -6124,25 +6242,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: PrivateLinkPrincipal If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete_with_http_info(cluster_id, control_plane_upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete_with_http_info(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post # noqa: E501 - Deletes the upgrade policy for the control plane. # noqa: E501 + Adds a new principal for the Private Link. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete_with_http_info(cluster_id, control_plane_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str control_plane_upgrade_policy_id: (required) + :param PrivateLinkPrincipal private_link_principal: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -6152,7 +6270,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(PrivateLinkPrincipal, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -6161,7 +6279,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont all_params = [ 'cluster_id', - 'control_plane_upgrade_policy_id' + 'private_link_principal' ] all_params.extend( [ @@ -6176,26 +6294,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete`") # noqa: E501 - # verify the required parameter 'control_plane_upgrade_policy_id' is set - if self.api_client.client_side_validation and ('control_plane_upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['control_plane_upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `control_plane_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'control_plane_upgrade_policy_id' in local_var_params: - path_params['control_plane_upgrade_policy_id'] = local_var_params['control_plane_upgrade_policy_id'] # noqa: E501 query_params = [] @@ -6205,22 +6317,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont local_var_files = {} body_params = None + if 'private_link_principal' in local_var_params: + body_params = local_var_params['private_link_principal'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies/{control_plane_upgrade_policy_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration/principals', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='PrivateLinkPrincipal', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6228,18 +6346,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete(self, cluster_id, principal_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete # noqa: E501 - Retrieves the details of the upgrade policy for the control plane. # noqa: E501 + Deletes the principal. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get(cluster_id, control_plane_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete(cluster_id, principal_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str control_plane_upgrade_policy_id: (required) + :param str principal_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -6247,25 +6365,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ControlPlaneUpgradePolicy + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get_with_http_info(cluster_id, control_plane_upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete_with_http_info(cluster_id, principal_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get_with_http_info(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete_with_http_info(self, cluster_id, principal_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete # noqa: E501 - Retrieves the details of the upgrade policy for the control plane. # noqa: E501 + Deletes the principal. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get_with_http_info(cluster_id, control_plane_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete_with_http_info(cluster_id, principal_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str control_plane_upgrade_policy_id: (required) + :param str principal_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -6275,7 +6393,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ControlPlaneUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -6284,7 +6402,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont all_params = [ 'cluster_id', - 'control_plane_upgrade_policy_id' + 'principal_id' ] all_params.extend( [ @@ -6299,26 +6417,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get`") # noqa: E501 - # verify the required parameter 'control_plane_upgrade_policy_id' is set - if self.api_client.client_side_validation and ('control_plane_upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['control_plane_upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `control_plane_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete`") # noqa: E501 + # verify the required parameter 'principal_id' is set + if self.api_client.client_side_validation and ('principal_id' not in local_var_params or # noqa: E501 + local_var_params['principal_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `principal_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'control_plane_upgrade_policy_id' in local_var_params: - path_params['control_plane_upgrade_policy_id'] = local_var_params['control_plane_upgrade_policy_id'] # noqa: E501 + if 'principal_id' in local_var_params: + path_params['principal_id'] = local_var_params['principal_id'] # noqa: E501 query_params = [] @@ -6336,14 +6454,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies/{control_plane_upgrade_policy_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration/principals/{principal_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ControlPlaneUpgradePolicy', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6351,19 +6469,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get(self, cluster_id, principal_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get # noqa: E501 - Update the upgrade policy for the control plane. # noqa: E501 + Retrieves the details of the principal. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch(cluster_id, control_plane_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get(cluster_id, principal_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str control_plane_upgrade_policy_id: (required) - :param ControlPlaneUpgradePolicy control_plane_upgrade_policy: + :param str principal_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -6371,26 +6488,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ControlPlaneUpgradePolicy + :return: PrivateLinkPrincipal If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch_with_http_info(cluster_id, control_plane_upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get_with_http_info(cluster_id, principal_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch_with_http_info(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get_with_http_info(self, cluster_id, principal_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get # noqa: E501 - Update the upgrade policy for the control plane. # noqa: E501 + Retrieves the details of the principal. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch_with_http_info(cluster_id, control_plane_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get_with_http_info(cluster_id, principal_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str control_plane_upgrade_policy_id: (required) - :param ControlPlaneUpgradePolicy control_plane_upgrade_policy: + :param str principal_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -6400,7 +6516,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ControlPlaneUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(PrivateLinkPrincipal, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -6409,8 +6525,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont all_params = [ 'cluster_id', - 'control_plane_upgrade_policy_id', - 'control_plane_upgrade_policy' + 'principal_id' ] all_params.extend( [ @@ -6425,26 +6540,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch`") # noqa: E501 - # verify the required parameter 'control_plane_upgrade_policy_id' is set - if self.api_client.client_side_validation and ('control_plane_upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['control_plane_upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `control_plane_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get`") # noqa: E501 + # verify the required parameter 'principal_id' is set + if self.api_client.client_side_validation and ('principal_id' not in local_var_params or # noqa: E501 + local_var_params['principal_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `principal_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_aws_private_link_configuration_principals_principal_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'control_plane_upgrade_policy_id' in local_var_params: - path_params['control_plane_upgrade_policy_id'] = local_var_params['control_plane_upgrade_policy_id'] # noqa: E501 + if 'principal_id' in local_var_params: + path_params['principal_id'] = local_var_params['principal_id'] # noqa: E501 query_params = [] @@ -6454,28 +6569,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont local_var_files = {} body_params = None - if 'control_plane_upgrade_policy' in local_var_params: - body_params = local_var_params['control_plane_upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies/{control_plane_upgrade_policy_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/aws/private_link_configuration/principals/{principal_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ControlPlaneUpgradePolicy', # noqa: E501 + response_type='PrivateLinkPrincipal', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6483,19 +6592,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_cont _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete # noqa: E501 - Retrieves the list of upgrade policies for the control plane. # noqa: E501 + Deletes the clusterdeployment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -6503,26 +6610,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get( number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20016 + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete # noqa: E501 - Retrieves the list of upgrade policies for the control plane. # noqa: E501 + Deletes the clusterdeployment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -6532,7 +6637,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20016, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -6540,9 +6645,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_ local_var_params = locals() all_params = [ - 'cluster_id', - 'page', - 'size' + 'cluster_id' ] all_params.extend( [ @@ -6557,14 +6660,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_clusterdeployment_delete`") # noqa: E501 collection_formats = {} @@ -6573,10 +6676,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_ path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -6592,14 +6691,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/clusterdeployment', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20016', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6607,18 +6706,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete # noqa: E501 - Adds a new upgrade policy to the control plane of the cluster. # noqa: E501 + Deletes the upgrade policy for the control plane. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete(cluster_id, control_plane_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param ControlPlaneUpgradePolicy control_plane_upgrade_policy: + :param str control_plane_upgrade_policy_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -6626,25 +6725,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ControlPlaneUpgradePolicy + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete_with_http_info(cluster_id, control_plane_upgrade_policy_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete_with_http_info(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete # noqa: E501 - Adds a new upgrade policy to the control plane of the cluster. # noqa: E501 + Deletes the upgrade policy for the control plane. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete_with_http_info(cluster_id, control_plane_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param ControlPlaneUpgradePolicy control_plane_upgrade_policy: + :param str control_plane_upgrade_policy_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -6654,7 +6753,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ControlPlaneUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -6663,7 +6762,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post all_params = [ 'cluster_id', - 'control_plane_upgrade_policy' + 'control_plane_upgrade_policy_id' ] all_params.extend( [ @@ -6678,20 +6777,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete`") # noqa: E501 + # verify the required parameter 'control_plane_upgrade_policy_id' is set + if self.api_client.client_side_validation and ('control_plane_upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['control_plane_upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `control_plane_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'control_plane_upgrade_policy_id' in local_var_params: + path_params['control_plane_upgrade_policy_id'] = local_var_params['control_plane_upgrade_policy_id'] # noqa: E501 query_params = [] @@ -6701,28 +6806,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post local_var_files = {} body_params = None - if 'control_plane_upgrade_policy' in local_var_params: - body_params = local_var_params['control_plane_upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies/{control_plane_upgrade_policy_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ControlPlaneUpgradePolicy', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6730,17 +6829,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_credentials_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get # noqa: E501 - Retrieves the details of the credentials of a cluster. # noqa: E501 + Retrieves the details of the upgrade policy for the control plane. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_credentials_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get(cluster_id, control_plane_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str control_plane_upgrade_policy_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -6748,24 +6848,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get(self, cluster_id, * number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ClusterCredentials + :return: ControlPlaneUpgradePolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get_with_http_info(cluster_id, control_plane_upgrade_policy_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_credentials_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get_with_http_info(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get # noqa: E501 - Retrieves the details of the credentials of a cluster. # noqa: E501 + Retrieves the details of the upgrade policy for the control plane. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get_with_http_info(cluster_id, control_plane_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str control_plane_upgrade_policy_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -6775,7 +6876,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(self number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ClusterCredentials, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ControlPlaneUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -6783,7 +6884,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(self local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'control_plane_upgrade_policy_id' ] all_params.extend( [ @@ -6798,20 +6900,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(self if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_credentials_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_credentials_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get`") # noqa: E501 + # verify the required parameter 'control_plane_upgrade_policy_id' is set + if self.api_client.client_side_validation and ('control_plane_upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['control_plane_upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `control_plane_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'control_plane_upgrade_policy_id' in local_var_params: + path_params['control_plane_upgrade_policy_id'] = local_var_params['control_plane_upgrade_policy_id'] # noqa: E501 query_params = [] @@ -6829,14 +6937,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(self auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/credentials', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies/{control_plane_upgrade_policy_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ClusterCredentials', # noqa: E501 + response_type='ControlPlaneUpgradePolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6844,19 +6952,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(self _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_delete(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch # noqa: E501 - Deletes the cluster. # noqa: E501 + Update the upgrade policy for the control plane. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch(cluster_id, control_plane_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param bool deprovision: If false it will only delete from OCM but not the actual cluster resources. false is only allowed for OCP clusters. true by default. - :param bool dry_run: Dry run flag is used to check if the operation can be completed, but won't delete. + :param str control_plane_upgrade_policy_id: (required) + :param ControlPlaneUpgradePolicy control_plane_upgrade_policy: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -6864,26 +6972,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete(self, cluster_id, **kwargs): number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: ControlPlaneUpgradePolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch_with_http_info(cluster_id, control_plane_upgrade_policy_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch_with_http_info(self, cluster_id, control_plane_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch # noqa: E501 - Deletes the cluster. # noqa: E501 + Update the upgrade policy for the control plane. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch_with_http_info(cluster_id, control_plane_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param bool deprovision: If false it will only delete from OCM but not the actual cluster resources. false is only allowed for OCP clusters. true by default. - :param bool dry_run: Dry run flag is used to check if the operation can be completed, but won't delete. + :param str control_plane_upgrade_policy_id: (required) + :param ControlPlaneUpgradePolicy control_plane_upgrade_policy: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -6893,7 +7001,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(self, cluster number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(ControlPlaneUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -6902,8 +7010,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(self, cluster all_params = [ 'cluster_id', - 'deprovision', - 'dry_run' + 'control_plane_upgrade_policy_id', + 'control_plane_upgrade_policy' ] all_params.extend( [ @@ -6918,26 +7026,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(self, cluster if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch`") # noqa: E501 + # verify the required parameter 'control_plane_upgrade_policy_id' is set + if self.api_client.client_side_validation and ('control_plane_upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['control_plane_upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `control_plane_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_control_plane_upgrade_policy_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'control_plane_upgrade_policy_id' in local_var_params: + path_params['control_plane_upgrade_policy_id'] = local_var_params['control_plane_upgrade_policy_id'] # noqa: E501 query_params = [] - if 'deprovision' in local_var_params and local_var_params['deprovision'] is not None: # noqa: E501 - query_params.append(('deprovision', local_var_params['deprovision'])) # noqa: E501 - if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 - query_params.append(('dry_run', local_var_params['dry_run'])) # noqa: E501 header_params = {} @@ -6945,22 +7055,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(self, cluster local_var_files = {} body_params = None + if 'control_plane_upgrade_policy' in local_var_params: + body_params = local_var_params['control_plane_upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies/{control_plane_upgrade_policy_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='ControlPlaneUpgradePolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -6968,16 +7084,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(self, cluster _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get # noqa: E501 + Retrieves the list of upgrade policies for the control plane. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -6985,23 +7104,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get(self, cluster number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: DeleteProtection + :return: InlineResponse20017 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get # noqa: E501 + Retrieves the list of upgrade policies for the control plane. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -7011,7 +7133,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_inf number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(DeleteProtection, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20017, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -7019,7 +7141,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_inf local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'page', + 'size' ] all_params.extend( [ @@ -7034,14 +7158,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_inf if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_get`") # noqa: E501 collection_formats = {} @@ -7050,6 +7174,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_inf path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -7065,14 +7193,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_inf auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/delete_protection', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DeleteProtection', # noqa: E501 + response_type='InlineResponse20017', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -7080,17 +7208,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_inf _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post # noqa: E501 + Adds a new upgrade policy to the control plane of the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param DeleteProtection delete_protection: + :param ControlPlaneUpgradePolicy control_plane_upgrade_policy: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -7098,24 +7227,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch(self, clust number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: DeleteProtection + :return: ControlPlaneUpgradePolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post # noqa: E501 + Adds a new upgrade policy to the control plane of the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param DeleteProtection delete_protection: + :param ControlPlaneUpgradePolicy control_plane_upgrade_policy: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -7125,7 +7255,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_i number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(DeleteProtection, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ControlPlaneUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -7134,7 +7264,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_i all_params = [ 'cluster_id', - 'delete_protection' + 'control_plane_upgrade_policy' ] all_params.extend( [ @@ -7149,14 +7279,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_i if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_control_plane_upgrade_policies_post`") # noqa: E501 collection_formats = {} @@ -7172,8 +7302,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_i local_var_files = {} body_params = None - if 'delete_protection' in local_var_params: - body_params = local_var_params['delete_protection'] + if 'control_plane_upgrade_policy' in local_var_params: + body_params = local_var_params['control_plane_upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -7186,14 +7316,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_i auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/delete_protection', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/control_plane/upgrade_policies', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DeleteProtection', # noqa: E501 + response_type='ControlPlaneUpgradePolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -7201,13 +7331,13 @@ def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_i _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_credentials_get # noqa: E501 - Retrieves the details of the external configuration. # noqa: E501 + Retrieves the details of the credentials of a cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_credentials_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -7219,20 +7349,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get(self, cl number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ExternalConfiguration + :return: ClusterCredentials If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_credentials_get # noqa: E501 - Retrieves the details of the external configuration. # noqa: E501 + Retrieves the details of the credentials of a cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_credentials_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -7246,7 +7376,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_htt number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ExternalConfiguration, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ClusterCredentials, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -7269,14 +7399,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_htt if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_credentials_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_credentials_get`") # noqa: E501 collection_formats = {} @@ -7300,14 +7430,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_htt auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/credentials', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ExternalConfiguration', # noqa: E501 + response_type='ClusterCredentials', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -7315,19 +7445,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_htt _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_delete(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_delete # noqa: E501 - Retrieves the list of labels. # noqa: E501 + Deletes the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param bool best_effort: BestEffort flag is used to check if the cluster deletion should be best-effort mode or not. + :param bool deprovision: If false it will only delete from OCM but not the actual cluster resources. false is only allowed for OCP clusters. true by default. + :param bool dry_run: Dry run flag is used to check if the operation can be completed, but won't delete. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -7335,26 +7466,27 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get(s number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20017 + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_delete # noqa: E501 - Retrieves the list of labels. # noqa: E501 + Deletes the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param bool best_effort: BestEffort flag is used to check if the cluster deletion should be best-effort mode or not. + :param bool deprovision: If false it will only delete from OCM but not the actual cluster resources. false is only allowed for OCP clusters. true by default. + :param bool dry_run: Dry run flag is used to check if the operation can be completed, but won't delete. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -7364,7 +7496,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_w number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20017, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -7373,8 +7505,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_w all_params = [ 'cluster_id', - 'page', - 'size' + 'best_effort', + 'deprovision', + 'dry_run' ] all_params.extend( [ @@ -7389,14 +7522,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_w if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_delete`") # noqa: E501 collection_formats = {} @@ -7405,10 +7538,12 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_w path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 + if 'best_effort' in local_var_params and local_var_params['best_effort'] is not None: # noqa: E501 + query_params.append(('best_effort', local_var_params['best_effort'])) # noqa: E501 + if 'deprovision' in local_var_params and local_var_params['deprovision'] is not None: # noqa: E501 + query_params.append(('deprovision', local_var_params['deprovision'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dry_run', local_var_params['dry_run'])) # noqa: E501 header_params = {} @@ -7424,14 +7559,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_w auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20017', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -7439,18 +7574,16 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_w _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete(self, cluster_id, label_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get # noqa: E501 - Deletes the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete(cluster_id, label_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str label_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -7458,25 +7591,23 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: DeleteProtection If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete_with_http_info(cluster_id, label_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete_with_http_info(self, cluster_id, label_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get # noqa: E501 - Deletes the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete_with_http_info(cluster_id, label_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str label_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -7486,7 +7617,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(DeleteProtection, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -7494,8 +7625,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label local_var_params = locals() all_params = [ - 'cluster_id', - 'label_id' + 'cluster_id' ] all_params.extend( [ @@ -7510,26 +7640,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete`") # noqa: E501 - # verify the required parameter 'label_id' is set - if self.api_client.client_side_validation and ('label_id' not in local_var_params or # noqa: E501 - local_var_params['label_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `label_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'label_id' in local_var_params: - path_params['label_id'] = local_var_params['label_id'] # noqa: E501 query_params = [] @@ -7547,14 +7671,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels/{label_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/delete_protection', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='DeleteProtection', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -7562,18 +7686,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get(self, cluster_id, label_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch # noqa: E501 - Retrieves the details of the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get(cluster_id, label_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str label_id: (required) + :param DeleteProtection delete_protection: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -7581,25 +7704,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Label + :return: DeleteProtection If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get_with_http_info(cluster_id, label_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get_with_http_info(self, cluster_id, label_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch # noqa: E501 - Retrieves the details of the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get_with_http_info(cluster_id, label_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str label_id: (required) + :param DeleteProtection delete_protection: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -7609,7 +7731,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Label, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(DeleteProtection, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -7618,7 +7740,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label all_params = [ 'cluster_id', - 'label_id' + 'delete_protection' ] all_params.extend( [ @@ -7633,26 +7755,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get`") # noqa: E501 - # verify the required parameter 'label_id' is set - if self.api_client.client_side_validation and ('label_id' not in local_var_params or # noqa: E501 - local_var_params['label_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `label_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_delete_protection_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'label_id' in local_var_params: - path_params['label_id'] = local_var_params['label_id'] # noqa: E501 query_params = [] @@ -7662,22 +7778,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label local_var_files = {} body_params = None + if 'delete_protection' in local_var_params: + body_params = local_var_params['delete_protection'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels/{label_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/delete_protection', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Label', # noqa: E501 + response_type='DeleteProtection', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -7685,19 +7807,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch(self, cluster_id, label_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get # noqa: E501 - Update the label. # noqa: E501 + Retrieves the details of the external configuration. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch(cluster_id, label_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str label_id: (required) - :param Label label: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -7705,26 +7825,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Label + :return: ExternalConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch_with_http_info(cluster_id, label_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch_with_http_info(self, cluster_id, label_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get # noqa: E501 - Update the label. # noqa: E501 + Retrieves the details of the external configuration. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch_with_http_info(cluster_id, label_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str label_id: (required) - :param Label label: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -7734,7 +7852,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Label, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ExternalConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -7742,9 +7860,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label local_var_params = locals() all_params = [ - 'cluster_id', - 'label_id', - 'label' + 'cluster_id' ] all_params.extend( [ @@ -7759,26 +7875,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch`") # noqa: E501 - # verify the required parameter 'label_id' is set - if self.api_client.client_side_validation and ('label_id' not in local_var_params or # noqa: E501 - local_var_params['label_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `label_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'label_id' in local_var_params: - path_params['label_id'] = local_var_params['label_id'] # noqa: E501 query_params = [] @@ -7788,28 +7898,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label local_var_files = {} body_params = None - if 'label' in local_var_params: - body_params = local_var_params['label'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels/{label_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Label', # noqa: E501 + response_type='ExternalConfiguration', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -7817,18 +7921,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get # noqa: E501 - Adds a new label to the cluster. # noqa: E501 + Retrieves the list of labels. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Label label: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -7836,25 +7941,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post( number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Label + :return: InlineResponse20018 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get # noqa: E501 - Adds a new label to the cluster. # noqa: E501 + Retrieves the list of labels. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Label label: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -7864,7 +7970,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Label, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20018, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -7873,7 +7979,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_ all_params = [ 'cluster_id', - 'label' + 'page', + 'size' ] all_params.extend( [ @@ -7888,14 +7995,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_get`") # noqa: E501 collection_formats = {} @@ -7904,6 +8011,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_ path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -7911,28 +8022,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_ local_var_files = {} body_params = None - if 'label' in local_var_params: - body_params = local_var_params['label'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Label', # noqa: E501 + response_type='InlineResponse20018', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -7940,19 +8045,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete(self, cluster_id, label_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete # noqa: E501 - Retrieves the list of manifests. # noqa: E501 + Deletes the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete(cluster_id, label_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str label_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -7960,26 +8064,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ge number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20018 + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete_with_http_info(cluster_id, label_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete_with_http_info(self, cluster_id, label_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete # noqa: E501 - Retrieves the list of manifests. # noqa: E501 + Deletes the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete_with_http_info(cluster_id, label_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str label_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -7989,7 +8092,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ge number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20018, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -7998,8 +8101,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ge all_params = [ 'cluster_id', - 'page', - 'size' + 'label_id' ] all_params.extend( [ @@ -8014,26 +8116,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ge if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete`") # noqa: E501 + # verify the required parameter 'label_id' is set + if self.api_client.client_side_validation and ('label_id' not in local_var_params or # noqa: E501 + local_var_params['label_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `label_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'label_id' in local_var_params: + path_params['label_id'] = local_var_params['label_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -8049,14 +8153,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ge auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels/{label_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20018', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -8064,18 +8168,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ge _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete(self, cluster_id, manifest_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get(self, cluster_id, label_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get # noqa: E501 - Deletes the manifest. # noqa: E501 + Retrieves the details of the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete(cluster_id, manifest_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get(cluster_id, label_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str manifest_id: (required) + :param str label_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -8083,25 +8187,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: Label If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete_with_http_info(cluster_id, manifest_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get_with_http_info(cluster_id, label_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete_with_http_info(self, cluster_id, manifest_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get_with_http_info(self, cluster_id, label_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get # noqa: E501 - Deletes the manifest. # noqa: E501 + Retrieves the details of the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete_with_http_info(cluster_id, manifest_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get_with_http_info(cluster_id, label_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str manifest_id: (required) + :param str label_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -8111,7 +8215,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(Label, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -8120,7 +8224,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma all_params = [ 'cluster_id', - 'manifest_id' + 'label_id' ] all_params.extend( [ @@ -8135,26 +8239,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete`") # noqa: E501 - # verify the required parameter 'manifest_id' is set - if self.api_client.client_side_validation and ('manifest_id' not in local_var_params or # noqa: E501 - local_var_params['manifest_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `manifest_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get`") # noqa: E501 + # verify the required parameter 'label_id' is set + if self.api_client.client_side_validation and ('label_id' not in local_var_params or # noqa: E501 + local_var_params['label_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `label_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'manifest_id' in local_var_params: - path_params['manifest_id'] = local_var_params['manifest_id'] # noqa: E501 + if 'label_id' in local_var_params: + path_params['label_id'] = local_var_params['label_id'] # noqa: E501 query_params = [] @@ -8172,14 +8276,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests/{manifest_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels/{label_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='Label', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -8187,18 +8291,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get(self, cluster_id, manifest_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch(self, cluster_id, label_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch # noqa: E501 - Retrieves the details of the manifest. # noqa: E501 + Update the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get(cluster_id, manifest_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch(cluster_id, label_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str manifest_id: (required) + :param str label_id: (required) + :param Label label: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -8206,25 +8311,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Manifest + :return: Label If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get_with_http_info(cluster_id, manifest_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch_with_http_info(cluster_id, label_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get_with_http_info(self, cluster_id, manifest_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch_with_http_info(self, cluster_id, label_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch # noqa: E501 - Retrieves the details of the manifest. # noqa: E501 + Update the label. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get_with_http_info(cluster_id, manifest_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch_with_http_info(cluster_id, label_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str manifest_id: (required) + :param str label_id: (required) + :param Label label: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -8234,7 +8340,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Manifest, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Label, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -8243,7 +8349,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma all_params = [ 'cluster_id', - 'manifest_id' + 'label_id', + 'label' ] all_params.extend( [ @@ -8258,26 +8365,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get`") # noqa: E501 - # verify the required parameter 'manifest_id' is set - if self.api_client.client_side_validation and ('manifest_id' not in local_var_params or # noqa: E501 - local_var_params['manifest_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `manifest_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch`") # noqa: E501 + # verify the required parameter 'label_id' is set + if self.api_client.client_side_validation and ('label_id' not in local_var_params or # noqa: E501 + local_var_params['label_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `label_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_label_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'manifest_id' in local_var_params: - path_params['manifest_id'] = local_var_params['manifest_id'] # noqa: E501 + if 'label_id' in local_var_params: + path_params['label_id'] = local_var_params['label_id'] # noqa: E501 query_params = [] @@ -8287,22 +8394,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma local_var_files = {} body_params = None + if 'label' in local_var_params: + body_params = local_var_params['label'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests/{manifest_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels/{label_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Manifest', # noqa: E501 + response_type='Label', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -8310,19 +8423,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch(self, cluster_id, manifest_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post # noqa: E501 - Update the manifest. # noqa: E501 + Adds a new label to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch(cluster_id, manifest_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str manifest_id: (required) - :param Manifest manifest: + :param Label label: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -8330,26 +8442,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Manifest + :return: Label If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch_with_http_info(cluster_id, manifest_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch_with_http_info(self, cluster_id, manifest_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post # noqa: E501 - Update the manifest. # noqa: E501 + Adds a new label to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch_with_http_info(cluster_id, manifest_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str manifest_id: (required) - :param Manifest manifest: + :param Label label: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -8359,7 +8470,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Manifest, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Label, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -8368,8 +8479,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma all_params = [ 'cluster_id', - 'manifest_id', - 'manifest' + 'label' ] all_params.extend( [ @@ -8384,26 +8494,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch`") # noqa: E501 - # verify the required parameter 'manifest_id' is set - if self.api_client.client_side_validation and ('manifest_id' not in local_var_params or # noqa: E501 - local_var_params['manifest_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `manifest_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_labels_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'manifest_id' in local_var_params: - path_params['manifest_id'] = local_var_params['manifest_id'] # noqa: E501 query_params = [] @@ -8413,8 +8517,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma local_var_files = {} body_params = None - if 'manifest' in local_var_params: - body_params = local_var_params['manifest'] + if 'label' in local_var_params: + body_params = local_var_params['label'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -8427,14 +8531,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests/{manifest_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/labels', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Manifest', # noqa: E501 + response_type='Label', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -8442,18 +8546,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_ma _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get # noqa: E501 - Adds a new manifest to a cluster. # noqa: E501 + Retrieves the list of manifests. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Manifest manifest: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -8461,25 +8566,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_po number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Manifest + :return: InlineResponse20019 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get # noqa: E501 - Adds a new manifest to a cluster. # noqa: E501 + Retrieves the list of manifests. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Manifest manifest: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -8489,7 +8595,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_po number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Manifest, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20019, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -8498,7 +8604,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_po all_params = [ 'cluster_id', - 'manifest' + 'page', + 'size' ] all_params.extend( [ @@ -8513,14 +8620,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_po if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_get`") # noqa: E501 collection_formats = {} @@ -8529,6 +8636,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_po path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -8536,28 +8647,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_po local_var_files = {} body_params = None - if 'manifest' in local_var_params: - body_params = local_var_params['manifest'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Manifest', # noqa: E501 + response_type='InlineResponse20019', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -8565,19 +8670,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_po _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete(self, cluster_id, manifest_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete # noqa: E501 - Retrieves the list of syncsets. # noqa: E501 + Deletes the manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete(cluster_id, manifest_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str manifest_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -8585,26 +8689,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20019 + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete_with_http_info(cluster_id, manifest_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete_with_http_info(self, cluster_id, manifest_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete # noqa: E501 - Retrieves the list of syncsets. # noqa: E501 + Deletes the manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete_with_http_info(cluster_id, manifest_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str manifest_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -8614,7 +8717,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20019, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -8623,8 +8726,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get all_params = [ 'cluster_id', - 'page', - 'size' + 'manifest_id' ] all_params.extend( [ @@ -8639,26 +8741,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete`") # noqa: E501 + # verify the required parameter 'manifest_id' is set + if self.api_client.client_side_validation and ('manifest_id' not in local_var_params or # noqa: E501 + local_var_params['manifest_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `manifest_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'manifest_id' in local_var_params: + path_params['manifest_id'] = local_var_params['manifest_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -8674,14 +8778,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests/{manifest_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20019', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -8689,18 +8793,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get(self, cluster_id, manifest_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get # noqa: E501 - Adds a new syncset to the cluster. # noqa: E501 + Retrieves the details of the manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get(cluster_id, manifest_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Syncset syncset: + :param str manifest_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -8708,25 +8812,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_pos number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Syncset + :return: Manifest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get_with_http_info(cluster_id, manifest_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get_with_http_info(self, cluster_id, manifest_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get # noqa: E501 - Adds a new syncset to the cluster. # noqa: E501 + Retrieves the details of the manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get_with_http_info(cluster_id, manifest_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Syncset syncset: + :param str manifest_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -8736,7 +8840,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_pos number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Syncset, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Manifest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -8745,7 +8849,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_pos all_params = [ 'cluster_id', - 'syncset' + 'manifest_id' ] all_params.extend( [ @@ -8760,20 +8864,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_pos if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get`") # noqa: E501 + # verify the required parameter 'manifest_id' is set + if self.api_client.client_side_validation and ('manifest_id' not in local_var_params or # noqa: E501 + local_var_params['manifest_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `manifest_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'manifest_id' in local_var_params: + path_params['manifest_id'] = local_var_params['manifest_id'] # noqa: E501 query_params = [] @@ -8783,28 +8893,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_pos local_var_files = {} body_params = None - if 'syncset' in local_var_params: - body_params = local_var_params['syncset'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests/{manifest_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Syncset', # noqa: E501 + response_type='Manifest', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -8812,18 +8916,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_pos _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete(self, cluster_id, syncset_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch(self, cluster_id, manifest_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch # noqa: E501 - Deletes the syncset. # noqa: E501 + Update the manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete(cluster_id, syncset_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch(cluster_id, manifest_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str syncset_id: (required) + :param str manifest_id: (required) + :param Manifest manifest: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -8831,25 +8936,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: Manifest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete_with_http_info(cluster_id, syncset_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch_with_http_info(cluster_id, manifest_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete_with_http_info(self, cluster_id, syncset_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch_with_http_info(self, cluster_id, manifest_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch # noqa: E501 - Deletes the syncset. # noqa: E501 + Update the manifest. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete_with_http_info(cluster_id, syncset_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch_with_http_info(cluster_id, manifest_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str syncset_id: (required) + :param str manifest_id: (required) + :param Manifest manifest: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -8859,7 +8965,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(Manifest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -8868,7 +8974,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn all_params = [ 'cluster_id', - 'syncset_id' + 'manifest_id', + 'manifest' ] all_params.extend( [ @@ -8883,26 +8990,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete`") # noqa: E501 - # verify the required parameter 'syncset_id' is set - if self.api_client.client_side_validation and ('syncset_id' not in local_var_params or # noqa: E501 - local_var_params['syncset_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `syncset_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch`") # noqa: E501 + # verify the required parameter 'manifest_id' is set + if self.api_client.client_side_validation and ('manifest_id' not in local_var_params or # noqa: E501 + local_var_params['manifest_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `manifest_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_manifest_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'syncset_id' in local_var_params: - path_params['syncset_id'] = local_var_params['syncset_id'] # noqa: E501 + if 'manifest_id' in local_var_params: + path_params['manifest_id'] = local_var_params['manifest_id'] # noqa: E501 query_params = [] @@ -8912,22 +9019,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn local_var_files = {} body_params = None + if 'manifest' in local_var_params: + body_params = local_var_params['manifest'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets/{syncset_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests/{manifest_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='Manifest', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -8935,18 +9048,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get(self, cluster_id, syncset_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post # noqa: E501 - Retrieves the details of the syncset. # noqa: E501 + Adds a new manifest to a cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get(cluster_id, syncset_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str syncset_id: (required) + :param Manifest manifest: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -8954,25 +9067,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Syncset + :return: Manifest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get_with_http_info(cluster_id, syncset_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get_with_http_info(self, cluster_id, syncset_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post # noqa: E501 - Retrieves the details of the syncset. # noqa: E501 + Adds a new manifest to a cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get_with_http_info(cluster_id, syncset_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str syncset_id: (required) + :param Manifest manifest: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -8982,7 +9095,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Syncset, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Manifest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -8991,7 +9104,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn all_params = [ 'cluster_id', - 'syncset_id' + 'manifest' ] all_params.extend( [ @@ -9006,26 +9119,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get`") # noqa: E501 - # verify the required parameter 'syncset_id' is set - if self.api_client.client_side_validation and ('syncset_id' not in local_var_params or # noqa: E501 - local_var_params['syncset_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `syncset_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_manifests_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'syncset_id' in local_var_params: - path_params['syncset_id'] = local_var_params['syncset_id'] # noqa: E501 query_params = [] @@ -9035,22 +9142,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn local_var_files = {} body_params = None + if 'manifest' in local_var_params: + body_params = local_var_params['manifest'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets/{syncset_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/manifests', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Syncset', # noqa: E501 + response_type='Manifest', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -9058,19 +9171,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch(self, cluster_id, syncset_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get # noqa: E501 - Update the syncset. # noqa: E501 + Retrieves the list of syncsets. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch(cluster_id, syncset_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str syncset_id: (required) - :param Syncset syncset: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -9078,26 +9191,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Syncset + :return: InlineResponse20020 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch_with_http_info(cluster_id, syncset_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch_with_http_info(self, cluster_id, syncset_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get # noqa: E501 - Update the syncset. # noqa: E501 + Retrieves the list of syncsets. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch_with_http_info(cluster_id, syncset_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str syncset_id: (required) - :param Syncset syncset: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -9107,7 +9220,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Syncset, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20020, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -9116,8 +9229,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn all_params = [ 'cluster_id', - 'syncset_id', - 'syncset' + 'page', + 'size' ] all_params.extend( [ @@ -9132,28 +9245,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch`") # noqa: E501 - # verify the required parameter 'syncset_id' is set - if self.api_client.client_side_validation and ('syncset_id' not in local_var_params or # noqa: E501 - local_var_params['syncset_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `syncset_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'syncset_id' in local_var_params: - path_params['syncset_id'] = local_var_params['syncset_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -9161,28 +9272,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn local_var_files = {} body_params = None - if 'syncset' in local_var_params: - body_params = local_var_params['syncset'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets/{syncset_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Syncset', # noqa: E501 + response_type='InlineResponse20020', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -9190,19 +9295,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syn _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post # noqa: E501 - Retrieves the list of reasons. # noqa: E501 + Adds a new syncset to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param Syncset syncset: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -9210,26 +9314,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get(self, cluster_i number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20020 + :return: Syncset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post # noqa: E501 - Retrieves the list of reasons. # noqa: E501 + Adds a new syncset to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param Syncset syncset: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -9239,7 +9342,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info( number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20020, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Syncset, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -9248,8 +9351,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info( all_params = [ 'cluster_id', - 'page', - 'size' + 'syncset' ] all_params.extend( [ @@ -9264,14 +9366,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info( if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_post`") # noqa: E501 collection_formats = {} @@ -9280,10 +9382,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info( path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -9291,22 +9389,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info( local_var_files = {} body_params = None + if 'syncset' in local_var_params: + body_params = local_var_params['syncset'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/gate_agreements', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20020', # noqa: E501 + response_type='Syncset', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -9314,18 +9418,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info( _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete(self, cluster_id, syncset_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete # noqa: E501 - Adds a new agreed version gate to the cluster. # noqa: E501 + Deletes the syncset. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete(cluster_id, syncset_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param VersionGateAgreement version_gate_agreement: + :param str syncset_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -9333,25 +9437,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post(self, cluster_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: VersionGateAgreement + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete_with_http_info(cluster_id, syncset_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete_with_http_info(self, cluster_id, syncset_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete # noqa: E501 - Adds a new agreed version gate to the cluster. # noqa: E501 + Deletes the syncset. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete_with_http_info(cluster_id, syncset_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param VersionGateAgreement version_gate_agreement: + :param str syncset_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -9361,7 +9465,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(VersionGateAgreement, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -9370,7 +9474,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info all_params = [ 'cluster_id', - 'version_gate_agreement' + 'syncset_id' ] all_params.extend( [ @@ -9385,20 +9489,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete`") # noqa: E501 + # verify the required parameter 'syncset_id' is set + if self.api_client.client_side_validation and ('syncset_id' not in local_var_params or # noqa: E501 + local_var_params['syncset_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `syncset_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'syncset_id' in local_var_params: + path_params['syncset_id'] = local_var_params['syncset_id'] # noqa: E501 query_params = [] @@ -9408,28 +9518,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info local_var_files = {} body_params = None - if 'version_gate_agreement' in local_var_params: - body_params = local_var_params['version_gate_agreement'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/gate_agreements', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets/{syncset_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='VersionGateAgreement', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -9437,18 +9541,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete(self, cluster_id, version_gate_agreement_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get(self, cluster_id, syncset_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get # noqa: E501 - Deletes the version gate agreement. # noqa: E501 + Retrieves the details of the syncset. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete(cluster_id, version_gate_agreement_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get(cluster_id, syncset_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str version_gate_agreement_id: (required) + :param str syncset_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -9456,25 +9560,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: Syncset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete_with_http_info(cluster_id, version_gate_agreement_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get_with_http_info(cluster_id, syncset_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete_with_http_info(self, cluster_id, version_gate_agreement_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get_with_http_info(self, cluster_id, syncset_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get # noqa: E501 - Deletes the version gate agreement. # noqa: E501 + Retrieves the details of the syncset. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete_with_http_info(cluster_id, version_gate_agreement_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get_with_http_info(cluster_id, syncset_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str version_gate_agreement_id: (required) + :param str syncset_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -9484,7 +9588,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(Syncset, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -9493,7 +9597,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem all_params = [ 'cluster_id', - 'version_gate_agreement_id' + 'syncset_id' ] all_params.extend( [ @@ -9508,26 +9612,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete`") # noqa: E501 - # verify the required parameter 'version_gate_agreement_id' is set - if self.api_client.client_side_validation and ('version_gate_agreement_id' not in local_var_params or # noqa: E501 - local_var_params['version_gate_agreement_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `version_gate_agreement_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get`") # noqa: E501 + # verify the required parameter 'syncset_id' is set + if self.api_client.client_side_validation and ('syncset_id' not in local_var_params or # noqa: E501 + local_var_params['syncset_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `syncset_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'version_gate_agreement_id' in local_var_params: - path_params['version_gate_agreement_id'] = local_var_params['version_gate_agreement_id'] # noqa: E501 + if 'syncset_id' in local_var_params: + path_params['syncset_id'] = local_var_params['syncset_id'] # noqa: E501 query_params = [] @@ -9545,14 +9649,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/gate_agreements/{version_gate_agreement_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets/{syncset_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='Syncset', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -9560,18 +9664,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get(self, cluster_id, version_gate_agreement_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch(self, cluster_id, syncset_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch # noqa: E501 - Retrieves the details of the version gate agreement. # noqa: E501 + Update the syncset. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get(cluster_id, version_gate_agreement_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch(cluster_id, syncset_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str version_gate_agreement_id: (required) + :param str syncset_id: (required) + :param Syncset syncset: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -9579,25 +9684,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: VersionGateAgreement + :return: Syncset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get_with_http_info(cluster_id, version_gate_agreement_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch_with_http_info(cluster_id, syncset_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get_with_http_info(self, cluster_id, version_gate_agreement_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch_with_http_info(self, cluster_id, syncset_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch # noqa: E501 - Retrieves the details of the version gate agreement. # noqa: E501 + Update the syncset. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get_with_http_info(cluster_id, version_gate_agreement_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch_with_http_info(cluster_id, syncset_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str version_gate_agreement_id: (required) + :param str syncset_id: (required) + :param Syncset syncset: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -9607,7 +9713,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(VersionGateAgreement, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Syncset, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -9616,7 +9722,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem all_params = [ 'cluster_id', - 'version_gate_agreement_id' + 'syncset_id', + 'syncset' ] all_params.extend( [ @@ -9631,26 +9738,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get`") # noqa: E501 - # verify the required parameter 'version_gate_agreement_id' is set - if self.api_client.client_side_validation and ('version_gate_agreement_id' not in local_var_params or # noqa: E501 - local_var_params['version_gate_agreement_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `version_gate_agreement_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch`") # noqa: E501 + # verify the required parameter 'syncset_id' is set + if self.api_client.client_side_validation and ('syncset_id' not in local_var_params or # noqa: E501 + local_var_params['syncset_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `syncset_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_external_configuration_syncsets_syncset_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'version_gate_agreement_id' in local_var_params: - path_params['version_gate_agreement_id'] = local_var_params['version_gate_agreement_id'] # noqa: E501 + if 'syncset_id' in local_var_params: + path_params['syncset_id'] = local_var_params['syncset_id'] # noqa: E501 query_params = [] @@ -9660,22 +9767,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem local_var_files = {} body_params = None + if 'syncset' in local_var_params: + body_params = local_var_params['syncset'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/gate_agreements/{version_gate_agreement_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/external_configuration/syncsets/{syncset_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='VersionGateAgreement', # noqa: E501 + response_type='Syncset', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -9683,17 +9796,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreem _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get # noqa: E501 - Retrieves the details of the cluster. # noqa: E501 + Retrieves the list of reasons. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -9701,24 +9816,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_get(self, cluster_id, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Cluster + :return: InlineResponse20021 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get # noqa: E501 - Retrieves the details of the cluster. # noqa: E501 + Retrieves the list of reasons. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -9728,7 +9845,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(self, cluster_id number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Cluster, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20021, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -9736,7 +9853,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(self, cluster_id local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'page', + 'size' ] all_params.extend( [ @@ -9751,14 +9870,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(self, cluster_id if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_get`") # noqa: E501 collection_formats = {} @@ -9767,6 +9886,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(self, cluster_id path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -9782,14 +9905,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(self, cluster_id auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/gate_agreements', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Cluster', # noqa: E501 + response_type='InlineResponse20021', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -9797,19 +9920,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(self, cluster_id _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_groups_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post # noqa: E501 - Retrieves the list of groups. # noqa: E501 + Adds a new agreed version gate to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param VersionGateAgreement version_gate_agreement: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -9817,26 +9939,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_get(self, cluster_id, **kwar number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20021 + :return: VersionGateAgreement If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post # noqa: E501 - Retrieves the list of groups. # noqa: E501 + Adds a new agreed version gate to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param VersionGateAgreement version_gate_agreement: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -9846,7 +9967,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(self, clu number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20021, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(VersionGateAgreement, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -9855,8 +9976,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(self, clu all_params = [ 'cluster_id', - 'page', - 'size' + 'version_gate_agreement' ] all_params.extend( [ @@ -9871,14 +9991,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(self, clu if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_post`") # noqa: E501 collection_formats = {} @@ -9887,10 +10007,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(self, clu path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -9898,22 +10014,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(self, clu local_var_files = {} body_params = None + if 'version_gate_agreement' in local_var_params: + body_params = local_var_params['version_gate_agreement'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/gate_agreements', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20021', # noqa: E501 + response_type='VersionGateAgreement', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -9921,18 +10043,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(self, clu _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get(self, cluster_id, group_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete(self, cluster_id, version_gate_agreement_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete # noqa: E501 - Retrieves the details of the group. # noqa: E501 + Deletes the version gate agreement. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get(cluster_id, group_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete(cluster_id, version_gate_agreement_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str group_id: (required) + :param str version_gate_agreement_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -9940,25 +10062,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get(self, cluster_i number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Group + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info(cluster_id, group_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete_with_http_info(cluster_id, version_gate_agreement_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info(self, cluster_id, group_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete_with_http_info(self, cluster_id, version_gate_agreement_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete # noqa: E501 - Retrieves the details of the group. # noqa: E501 + Deletes the version gate agreement. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info(cluster_id, group_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete_with_http_info(cluster_id, version_gate_agreement_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str group_id: (required) + :param str version_gate_agreement_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -9968,7 +10090,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info( number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Group, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -9977,7 +10099,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info( all_params = [ 'cluster_id', - 'group_id' + 'version_gate_agreement_id' ] all_params.extend( [ @@ -9992,26 +10114,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info( if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get`") # noqa: E501 - # verify the required parameter 'group_id' is set - if self.api_client.client_side_validation and ('group_id' not in local_var_params or # noqa: E501 - local_var_params['group_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete`") # noqa: E501 + # verify the required parameter 'version_gate_agreement_id' is set + if self.api_client.client_side_validation and ('version_gate_agreement_id' not in local_var_params or # noqa: E501 + local_var_params['version_gate_agreement_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version_gate_agreement_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'group_id' in local_var_params: - path_params['group_id'] = local_var_params['group_id'] # noqa: E501 + if 'version_gate_agreement_id' in local_var_params: + path_params['version_gate_agreement_id'] = local_var_params['version_gate_agreement_id'] # noqa: E501 query_params = [] @@ -10029,14 +10151,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info( auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/gate_agreements/{version_gate_agreement_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Group', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -10044,20 +10166,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info( _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get(self, cluster_id, group_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get(self, cluster_id, version_gate_agreement_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get # noqa: E501 - Retrieves the list of users. # noqa: E501 + Retrieves the details of the version gate agreement. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get(cluster_id, group_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get(cluster_id, version_gate_agreement_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str group_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str version_gate_agreement_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -10065,27 +10185,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get(self, clu number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20022 + :return: VersionGateAgreement If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http_info(cluster_id, group_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get_with_http_info(cluster_id, version_gate_agreement_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http_info(self, cluster_id, group_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get_with_http_info(self, cluster_id, version_gate_agreement_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get # noqa: E501 - Retrieves the list of users. # noqa: E501 + Retrieves the details of the version gate agreement. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http_info(cluster_id, group_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get_with_http_info(cluster_id, version_gate_agreement_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str group_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str version_gate_agreement_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -10095,7 +10213,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20022, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(VersionGateAgreement, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -10104,9 +10222,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http all_params = [ 'cluster_id', - 'group_id', - 'page', - 'size' + 'version_gate_agreement_id' ] all_params.extend( [ @@ -10121,32 +10237,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get`") # noqa: E501 - # verify the required parameter 'group_id' is set - if self.api_client.client_side_validation and ('group_id' not in local_var_params or # noqa: E501 - local_var_params['group_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get`") # noqa: E501 + # verify the required parameter 'version_gate_agreement_id' is set + if self.api_client.client_side_validation and ('version_gate_agreement_id' not in local_var_params or # noqa: E501 + local_var_params['version_gate_agreement_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version_gate_agreement_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_gate_agreements_version_gate_agreement_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'group_id' in local_var_params: - path_params['group_id'] = local_var_params['group_id'] # noqa: E501 + if 'version_gate_agreement_id' in local_var_params: + path_params['version_gate_agreement_id'] = local_var_params['version_gate_agreement_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -10162,14 +10274,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/gate_agreements/{version_gate_agreement_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20022', # noqa: E501 + response_type='VersionGateAgreement', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -10177,19 +10289,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post(self, cluster_id, group_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_get # noqa: E501 - Adds a new user to the group. # noqa: E501 + Retrieves the details of the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post(cluster_id, group_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str group_id: (required) - :param User user: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -10197,26 +10307,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post(self, cl number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: User + :return: Cluster If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_http_info(cluster_id, group_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_http_info(self, cluster_id, group_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_get # noqa: E501 - Adds a new user to the group. # noqa: E501 + Retrieves the details of the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_http_info(cluster_id, group_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str group_id: (required) - :param User user: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -10226,7 +10334,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_htt number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(User, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Cluster, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -10234,9 +10342,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_htt local_var_params = locals() all_params = [ - 'cluster_id', - 'group_id', - 'user' + 'cluster_id' ] all_params.extend( [ @@ -10251,26 +10357,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_htt if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post`") # noqa: E501 - # verify the required parameter 'group_id' is set - if self.api_client.client_side_validation and ('group_id' not in local_var_params or # noqa: E501 - local_var_params['group_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'group_id' in local_var_params: - path_params['group_id'] = local_var_params['group_id'] # noqa: E501 query_params = [] @@ -10280,28 +10380,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_htt local_var_files = {} body_params = None - if 'user' in local_var_params: - body_params = local_var_params['user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='User', # noqa: E501 + response_type='Cluster', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -10309,19 +10403,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_htt _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete(self, cluster_id, group_id, user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_get # noqa: E501 - Deletes the user. # noqa: E501 + Retrieves the list of groups. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete(cluster_id, group_id, user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str group_id: (required) - :param str user_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -10329,26 +10423,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delet number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: InlineResponse20022 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete_with_http_info(cluster_id, group_id, user_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete_with_http_info(self, cluster_id, group_id, user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_get # noqa: E501 - Deletes the user. # noqa: E501 + Retrieves the list of groups. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete_with_http_info(cluster_id, group_id, user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str group_id: (required) - :param str user_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -10358,7 +10452,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delet number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(InlineResponse20022, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -10367,8 +10461,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delet all_params = [ 'cluster_id', - 'group_id', - 'user_id' + 'page', + 'size' ] all_params.extend( [ @@ -10383,34 +10477,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delet if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete`") # noqa: E501 - # verify the required parameter 'group_id' is set - if self.api_client.client_side_validation and ('group_id' not in local_var_params or # noqa: E501 - local_var_params['group_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete`") # noqa: E501 - # verify the required parameter 'user_id' is set - if self.api_client.client_side_validation and ('user_id' not in local_var_params or # noqa: E501 - local_var_params['user_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'group_id' in local_var_params: - path_params['group_id'] = local_var_params['group_id'] # noqa: E501 - if 'user_id' in local_var_params: - path_params['user_id'] = local_var_params['user_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -10426,14 +10512,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delet auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users/{user_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='InlineResponse20022', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -10441,19 +10527,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delet _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get(self, cluster_id, group_id, user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get(self, cluster_id, group_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get # noqa: E501 - Retrieves the details of the user. # noqa: E501 + Retrieves the details of the group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get(cluster_id, group_id, user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get(cluster_id, group_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str group_id: (required) - :param str user_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -10461,26 +10546,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get(s number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: User + :return: Group If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_with_http_info(cluster_id, group_id, user_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info(cluster_id, group_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_with_http_info(self, cluster_id, group_id, user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info(self, cluster_id, group_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get # noqa: E501 - Retrieves the details of the user. # noqa: E501 + Retrieves the details of the group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_with_http_info(cluster_id, group_id, user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get_with_http_info(cluster_id, group_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str group_id: (required) - :param str user_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -10490,7 +10574,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_w number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(User, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Group, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -10499,8 +10583,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_w all_params = [ 'cluster_id', - 'group_id', - 'user_id' + 'group_id' ] all_params.extend( [ @@ -10515,22 +10598,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_w if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get`") # noqa: E501 # verify the required parameter 'group_id' is set if self.api_client.client_side_validation and ('group_id' not in local_var_params or # noqa: E501 local_var_params['group_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get`") # noqa: E501 - # verify the required parameter 'user_id' is set - if self.api_client.client_side_validation and ('user_id' not in local_var_params or # noqa: E501 - local_var_params['user_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_get`") # noqa: E501 collection_formats = {} @@ -10539,8 +10618,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_w path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 if 'group_id' in local_var_params: path_params['group_id'] = local_var_params['group_id'] # noqa: E501 - if 'user_id' in local_var_params: - path_params['user_id'] = local_var_params['user_id'] # noqa: E501 query_params = [] @@ -10558,14 +10635,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_w auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users/{user_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='User', # noqa: E501 + response_type='Group', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -10573,17 +10650,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_w _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get(self, cluster_id, group_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get # noqa: E501 - Initiates cluster hibernation. While hibernating a cluster will not consume any cloud provider infrastructure but will be counted for quota. # noqa: E501 + Retrieves the list of users. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get(cluster_id, group_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str group_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -10591,24 +10671,27 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post(self, cluster_id, ** number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: InlineResponse20023 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http_info(cluster_id, group_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http_info(self, cluster_id, group_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get # noqa: E501 - Initiates cluster hibernation. While hibernating a cluster will not consume any cloud provider infrastructure but will be counted for quota. # noqa: E501 + Retrieves the list of users. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get_with_http_info(cluster_id, group_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str group_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -10618,7 +10701,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(InlineResponse20023, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -10626,7 +10709,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(self, local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'group_id', + 'page', + 'size' ] all_params.extend( [ @@ -10641,22 +10727,32 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get`") # noqa: E501 + # verify the required parameter 'group_id' is set + if self.api_client.client_side_validation and ('group_id' not in local_var_params or # noqa: E501 + local_var_params['group_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -10672,14 +10768,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(self, auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/hibernate', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='InlineResponse20023', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -10687,17 +10783,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post(self, cluster_id, group_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post # noqa: E501 - Retrieves the Hypershift details for a single cluster. # noqa: E501 + Adds a new user to the group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post(cluster_id, group_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str group_id: (required) + :param User user: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -10705,24 +10803,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get(self, cluster_id, ** number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: HypershiftConfig + :return: User If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_http_info(cluster_id, group_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_http_info(self, cluster_id, group_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post # noqa: E501 - Retrieves the Hypershift details for a single cluster. # noqa: E501 + Adds a new user to the group. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post_with_http_info(cluster_id, group_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str group_id: (required) + :param User user: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -10732,7 +10832,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(HypershiftConfig, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(User, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -10740,7 +10840,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(self, local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'group_id', + 'user' ] all_params.extend( [ @@ -10755,20 +10857,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post`") # noqa: E501 + # verify the required parameter 'group_id' is set + if self.api_client.client_side_validation and ('group_id' not in local_var_params or # noqa: E501 + local_var_params['group_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] # noqa: E501 query_params = [] @@ -10778,22 +10886,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(self, local_var_files = {} body_params = None + if 'user' in local_var_params: + body_params = local_var_params['user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/hypershift', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HypershiftConfig', # noqa: E501 + response_type='User', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -10801,19 +10915,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete(self, cluster_id, group_id, user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete # noqa: E501 - Retrieves the list of identity providers. # noqa: E501 + Deletes the user. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete(cluster_id, group_id, user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str group_id: (required) + :param str user_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -10821,26 +10935,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get(self, cluste number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20023 + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete_with_http_info(cluster_id, group_id, user_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete_with_http_info(self, cluster_id, group_id, user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete # noqa: E501 - Retrieves the list of identity providers. # noqa: E501 + Deletes the user. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete_with_http_info(cluster_id, group_id, user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str group_id: (required) + :param str user_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -10850,7 +10964,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_in number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20023, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -10859,8 +10973,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_in all_params = [ 'cluster_id', - 'page', - 'size' + 'group_id', + 'user_id' ] all_params.extend( [ @@ -10875,26 +10989,34 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_in if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete`") # noqa: E501 + # verify the required parameter 'group_id' is set + if self.api_client.client_side_validation and ('group_id' not in local_var_params or # noqa: E501 + local_var_params['group_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete`") # noqa: E501 + # verify the required parameter 'user_id' is set + if self.api_client.client_side_validation and ('user_id' not in local_var_params or # noqa: E501 + local_var_params['user_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] # noqa: E501 + if 'user_id' in local_var_params: + path_params['user_id'] = local_var_params['user_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -10910,14 +11032,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_in auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users/{user_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20023', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -10925,18 +11047,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_in _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get(self, cluster_id, group_id, user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get # noqa: E501 - Deletes the identity provider. # noqa: E501 + Retrieves the details of the user. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get(cluster_id, group_id, user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) + :param str group_id: (required) + :param str user_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -10944,25 +11067,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: User If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_with_http_info(cluster_id, group_id, user_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_with_http_info(self, cluster_id, group_id, user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get # noqa: E501 - Deletes the identity provider. # noqa: E501 + Retrieves the details of the user. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete_with_http_info(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get_with_http_info(cluster_id, group_id, user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) + :param str group_id: (required) + :param str user_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -10972,7 +11096,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(User, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -10981,7 +11105,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide all_params = [ 'cluster_id', - 'identity_provider_id' + 'group_id', + 'user_id' ] all_params.extend( [ @@ -10996,26 +11121,32 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete`") # noqa: E501 - # verify the required parameter 'identity_provider_id' is set - if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 - local_var_params['identity_provider_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get`") # noqa: E501 + # verify the required parameter 'group_id' is set + if self.api_client.client_side_validation and ('group_id' not in local_var_params or # noqa: E501 + local_var_params['group_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get`") # noqa: E501 + # verify the required parameter 'user_id' is set + if self.api_client.client_side_validation and ('user_id' not in local_var_params or # noqa: E501 + local_var_params['user_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_groups_group_id_users_user_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'identity_provider_id' in local_var_params: - path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 + if 'group_id' in local_var_params: + path_params['group_id'] = local_var_params['group_id'] # noqa: E501 + if 'user_id' in local_var_params: + path_params['user_id'] = local_var_params['user_id'] # noqa: E501 query_params = [] @@ -11033,14 +11164,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/groups/{group_id}/users/{user_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='User', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -11048,18 +11179,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post # noqa: E501 - Retrieves the details of the identity provider. # noqa: E501 + Initiates cluster hibernation. While hibernating a cluster will not consume any cloud provider infrastructure but will be counted for quota. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -11067,25 +11197,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: IdentityProvider + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post # noqa: E501 - Retrieves the details of the identity provider. # noqa: E501 + Initiates cluster hibernation. While hibernating a cluster will not consume any cloud provider infrastructure but will be counted for quota. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get_with_http_info(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -11095,7 +11224,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(IdentityProvider, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -11103,8 +11232,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide local_var_params = locals() all_params = [ - 'cluster_id', - 'identity_provider_id' + 'cluster_id' ] all_params.extend( [ @@ -11119,26 +11247,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get`") # noqa: E501 - # verify the required parameter 'identity_provider_id' is set - if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 - local_var_params['identity_provider_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_hibernate_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'identity_provider_id' in local_var_params: - path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 query_params = [] @@ -11156,14 +11278,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/hibernate', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='IdentityProvider', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -11171,20 +11293,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get # noqa: E501 - Retrieves the list of _HTPasswd_ IDP users. # noqa: E501 + Retrieves the Hypershift details for a single cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -11192,27 +11311,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20024 + :return: HypershiftConfig If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get # noqa: E501 - Retrieves the list of _HTPasswd_ IDP users. # noqa: E501 + Retrieves the Hypershift details for a single cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get_with_http_info(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -11222,7 +11338,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20024, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(HypershiftConfig, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -11230,10 +11346,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide local_var_params = locals() all_params = [ - 'cluster_id', - 'identity_provider_id', - 'page', - 'size' + 'cluster_id' ] all_params.extend( [ @@ -11248,32 +11361,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get`") # noqa: E501 - # verify the required parameter 'identity_provider_id' is set - if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 - local_var_params['identity_provider_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_hypershift_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'identity_provider_id' in local_var_params: - path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -11289,14 +11392,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/hypershift', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20024', # noqa: E501 + response_type='HypershiftConfig', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -11304,19 +11407,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch # noqa: E501 - Deletes the user. # noqa: E501 + Updates the Hypershift details for a single cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) - :param str htpasswd_user_id: (required) + :param HypershiftConfig hypershift_config: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -11324,26 +11426,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: HypershiftConfig If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete_with_http_info(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch # noqa: E501 - Deletes the user. # noqa: E501 + Updates the Hypershift details for a single cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) - :param str htpasswd_user_id: (required) + :param HypershiftConfig hypershift_config: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -11353,7 +11454,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(HypershiftConfig, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -11362,8 +11463,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide all_params = [ 'cluster_id', - 'identity_provider_id', - 'htpasswd_user_id' + 'hypershift_config' ] all_params.extend( [ @@ -11378,32 +11478,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete`") # noqa: E501 - # verify the required parameter 'identity_provider_id' is set - if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 - local_var_params['identity_provider_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete`") # noqa: E501 - # verify the required parameter 'htpasswd_user_id' is set - if self.api_client.client_side_validation and ('htpasswd_user_id' not in local_var_params or # noqa: E501 - local_var_params['htpasswd_user_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `htpasswd_user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_hypershift_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'identity_provider_id' in local_var_params: - path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 - if 'htpasswd_user_id' in local_var_params: - path_params['htpasswd_user_id'] = local_var_params['htpasswd_user_id'] # noqa: E501 query_params = [] @@ -11413,22 +11501,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide local_var_files = {} body_params = None + if 'hypershift_config' in local_var_params: + body_params = local_var_params['hypershift_config'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users/{htpasswd_user_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/hypershift', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='HypershiftConfig', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -11436,19 +11530,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get # noqa: E501 - Retrieves the details of the user. # noqa: E501 + Retrieves the list of identity providers. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) - :param str htpasswd_user_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -11456,26 +11550,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: HTPasswdUser + :return: InlineResponse20024 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get_with_http_info(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get # noqa: E501 - Retrieves the details of the user. # noqa: E501 + Retrieves the list of identity providers. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str identity_provider_id: (required) - :param str htpasswd_user_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -11485,7 +11579,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(HTPasswdUser, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20024, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -11494,8 +11588,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide all_params = [ 'cluster_id', - 'identity_provider_id', - 'htpasswd_user_id' + 'page', + 'size' ] all_params.extend( [ @@ -11510,34 +11604,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get`") # noqa: E501 - # verify the required parameter 'identity_provider_id' is set - if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 - local_var_params['identity_provider_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get`") # noqa: E501 - # verify the required parameter 'htpasswd_user_id' is set - if self.api_client.client_side_validation and ('htpasswd_user_id' not in local_var_params or # noqa: E501 - local_var_params['htpasswd_user_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `htpasswd_user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'identity_provider_id' in local_var_params: - path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 - if 'htpasswd_user_id' in local_var_params: - path_params['htpasswd_user_id'] = local_var_params['htpasswd_user_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -11553,14 +11639,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users/{htpasswd_user_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HTPasswdUser', # noqa: E501 + response_type='InlineResponse20024', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -11568,20 +11654,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete # noqa: E501 - Updates the user's password. The username is not editable # noqa: E501 + Deletes the identity provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str identity_provider_id: (required) - :param str htpasswd_user_id: (required) - :param HTPasswdUser ht_passwd_user: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -11589,27 +11673,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: HTPasswdUser + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch_with_http_info(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete # noqa: E501 - Updates the user's password. The username is not editable # noqa: E501 + Deletes the identity provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete_with_http_info(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str identity_provider_id: (required) - :param str htpasswd_user_id: (required) - :param HTPasswdUser ht_passwd_user: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -11619,7 +11701,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(HTPasswdUser, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -11628,9 +11710,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide all_params = [ 'cluster_id', - 'identity_provider_id', - 'htpasswd_user_id', - 'ht_passwd_user' + 'identity_provider_id' ] all_params.extend( [ @@ -11645,22 +11725,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete`") # noqa: E501 # verify the required parameter 'identity_provider_id' is set if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 local_var_params['identity_provider_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch`") # noqa: E501 - # verify the required parameter 'htpasswd_user_id' is set - if self.api_client.client_side_validation and ('htpasswd_user_id' not in local_var_params or # noqa: E501 - local_var_params['htpasswd_user_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `htpasswd_user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_delete`") # noqa: E501 collection_formats = {} @@ -11669,8 +11745,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 if 'identity_provider_id' in local_var_params: path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 - if 'htpasswd_user_id' in local_var_params: - path_params['htpasswd_user_id'] = local_var_params['htpasswd_user_id'] # noqa: E501 query_params = [] @@ -11680,28 +11754,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide local_var_files = {} body_params = None - if 'ht_passwd_user' in local_var_params: - body_params = local_var_params['ht_passwd_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users/{htpasswd_user_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HTPasswdUser', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -11709,19 +11777,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get # noqa: E501 - Adds multiple new users to the _HTPasswd_ file. # noqa: E501 + Retrieves the details of the identity provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str identity_provider_id: (required) - :param InlineObject inline_object: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -11729,26 +11796,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20025 + :return: IdentityProvider If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get # noqa: E501 - Adds multiple new users to the _HTPasswd_ file. # noqa: E501 + Retrieves the details of the identity provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post_with_http_info(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get_with_http_info(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str identity_provider_id: (required) - :param InlineObject inline_object: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -11758,7 +11824,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20025, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(IdentityProvider, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -11767,8 +11833,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide all_params = [ 'cluster_id', - 'identity_provider_id', - 'inline_object' + 'identity_provider_id' ] all_params.extend( [ @@ -11783,18 +11848,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get`") # noqa: E501 # verify the required parameter 'identity_provider_id' is set if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 local_var_params['identity_provider_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_get`") # noqa: E501 collection_formats = {} @@ -11812,28 +11877,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide local_var_files = {} body_params = None - if 'inline_object' in local_var_params: - body_params = local_var_params['inline_object'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users/import', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20025', # noqa: E501 + response_type='IdentityProvider', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -11841,19 +11900,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get # noqa: E501 - Adds a new user to the _HTPasswd_ file. # noqa: E501 + Retrieves the list of _HTPasswd_ IDP users. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str identity_provider_id: (required) - :param HTPasswdUser ht_passwd_user: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -11861,26 +11921,27 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: HTPasswdUser + :return: InlineResponse20025 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get # noqa: E501 - Adds a new user to the _HTPasswd_ file. # noqa: E501 + Retrieves the list of _HTPasswd_ IDP users. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post_with_http_info(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get_with_http_info(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str identity_provider_id: (required) - :param HTPasswdUser ht_passwd_user: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -11890,7 +11951,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(HTPasswdUser, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20025, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -11900,7 +11961,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide all_params = [ 'cluster_id', 'identity_provider_id', - 'ht_passwd_user' + 'page', + 'size' ] all_params.extend( [ @@ -11915,18 +11977,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get`") # noqa: E501 # verify the required parameter 'identity_provider_id' is set if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 local_var_params['identity_provider_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_get`") # noqa: E501 collection_formats = {} @@ -11937,6 +11999,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -11944,28 +12010,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide local_var_files = {} body_params = None - if 'ht_passwd_user' in local_var_params: - body_params = local_var_params['ht_passwd_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HTPasswdUser', # noqa: E501 + response_type='InlineResponse20025', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -11973,19 +12033,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete # noqa: E501 - Update identity provider in the cluster. # noqa: E501 + Deletes the user. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str identity_provider_id: (required) - :param IdentityProvider identity_provider: + :param str htpasswd_user_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -11993,26 +12053,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: IdentityProvider + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete_with_http_info(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete # noqa: E501 - Update identity provider in the cluster. # noqa: E501 + Deletes the user. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch_with_http_info(cluster_id, identity_provider_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) :param str identity_provider_id: (required) - :param IdentityProvider identity_provider: + :param str htpasswd_user_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -12022,7 +12082,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(IdentityProvider, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -12032,7 +12092,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide all_params = [ 'cluster_id', 'identity_provider_id', - 'identity_provider' + 'htpasswd_user_id' ] all_params.extend( [ @@ -12047,18 +12107,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete`") # noqa: E501 # verify the required parameter 'identity_provider_id' is set if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 local_var_params['identity_provider_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete`") # noqa: E501 + # verify the required parameter 'htpasswd_user_id' is set + if self.api_client.client_side_validation and ('htpasswd_user_id' not in local_var_params or # noqa: E501 + local_var_params['htpasswd_user_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `htpasswd_user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_delete`") # noqa: E501 collection_formats = {} @@ -12067,6 +12131,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 if 'identity_provider_id' in local_var_params: path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 + if 'htpasswd_user_id' in local_var_params: + path_params['htpasswd_user_id'] = local_var_params['htpasswd_user_id'] # noqa: E501 query_params = [] @@ -12076,28 +12142,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide local_var_files = {} body_params = None - if 'identity_provider' in local_var_params: - body_params = local_var_params['identity_provider'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users/{htpasswd_user_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='IdentityProvider', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -12105,18 +12165,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provide _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get # noqa: E501 - Adds a new identity provider to the cluster. # noqa: E501 + Retrieves the details of the user. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param IdentityProvider identity_provider: + :param str identity_provider_id: (required) + :param str htpasswd_user_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -12124,25 +12185,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post(self, clust number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: IdentityProvider + :return: HTPasswdUser If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get_with_http_info(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get # noqa: E501 - Adds a new identity provider to the cluster. # noqa: E501 + Retrieves the details of the user. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param IdentityProvider identity_provider: + :param str identity_provider_id: (required) + :param str htpasswd_user_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -12152,7 +12214,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_i number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(IdentityProvider, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(HTPasswdUser, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -12161,7 +12223,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_i all_params = [ 'cluster_id', - 'identity_provider' + 'identity_provider_id', + 'htpasswd_user_id' ] all_params.extend( [ @@ -12176,20 +12239,32 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_i if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get`") # noqa: E501 + # verify the required parameter 'identity_provider_id' is set + if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 + local_var_params['identity_provider_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get`") # noqa: E501 + # verify the required parameter 'htpasswd_user_id' is set + if self.api_client.client_side_validation and ('htpasswd_user_id' not in local_var_params or # noqa: E501 + local_var_params['htpasswd_user_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `htpasswd_user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'identity_provider_id' in local_var_params: + path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 + if 'htpasswd_user_id' in local_var_params: + path_params['htpasswd_user_id'] = local_var_params['htpasswd_user_id'] # noqa: E501 query_params = [] @@ -12199,28 +12274,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_i local_var_files = {} body_params = None - if 'identity_provider' in local_var_params: - body_params = local_var_params['identity_provider'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users/{htpasswd_user_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='IdentityProvider', # noqa: E501 + response_type='HTPasswdUser', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -12228,19 +12297,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_i _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch # noqa: E501 - Retrieves the list of inflight checks. # noqa: E501 + Updates the user's password. The username is not editable # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str identity_provider_id: (required) + :param str htpasswd_user_id: (required) + :param HTPasswdUser ht_passwd_user: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -12248,26 +12318,27 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get(self, cluster_i number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20026 + :return: HTPasswdUser If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch_with_http_info(self, cluster_id, identity_provider_id, htpasswd_user_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch # noqa: E501 - Retrieves the list of inflight checks. # noqa: E501 + Updates the user's password. The username is not editable # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch_with_http_info(cluster_id, identity_provider_id, htpasswd_user_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str identity_provider_id: (required) + :param str htpasswd_user_id: (required) + :param HTPasswdUser ht_passwd_user: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -12277,7 +12348,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info( number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20026, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(HTPasswdUser, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -12286,8 +12357,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info( all_params = [ 'cluster_id', - 'page', - 'size' + 'identity_provider_id', + 'htpasswd_user_id', + 'ht_passwd_user' ] all_params.extend( [ @@ -12302,26 +12374,34 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info( if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch`") # noqa: E501 + # verify the required parameter 'identity_provider_id' is set + if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 + local_var_params['identity_provider_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch`") # noqa: E501 + # verify the required parameter 'htpasswd_user_id' is set + if self.api_client.client_side_validation and ('htpasswd_user_id' not in local_var_params or # noqa: E501 + local_var_params['htpasswd_user_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `htpasswd_user_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_htpasswd_user_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'identity_provider_id' in local_var_params: + path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 + if 'htpasswd_user_id' in local_var_params: + path_params['htpasswd_user_id'] = local_var_params['htpasswd_user_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -12329,22 +12409,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info( local_var_files = {} body_params = None + if 'ht_passwd_user' in local_var_params: + body_params = local_var_params['ht_passwd_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/inflight_checks', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users/{htpasswd_user_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20026', # noqa: E501 + response_type='HTPasswdUser', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -12352,18 +12438,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info( _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get(self, cluster_id, inflight_check_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post # noqa: E501 - Retrieves the details of the inflight check. # noqa: E501 + Adds multiple new users to the _HTPasswd_ file. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get(cluster_id, inflight_check_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str inflight_check_id: (required) + :param str identity_provider_id: (required) + :param InlineObject inline_object: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -12371,25 +12458,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_g number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InflightCheck + :return: InlineResponse20026 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get_with_http_info(cluster_id, inflight_check_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get_with_http_info(self, cluster_id, inflight_check_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post # noqa: E501 - Retrieves the details of the inflight check. # noqa: E501 + Adds multiple new users to the _HTPasswd_ file. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get_with_http_info(cluster_id, inflight_check_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post_with_http_info(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str inflight_check_id: (required) + :param str identity_provider_id: (required) + :param InlineObject inline_object: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -12399,7 +12487,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_g number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InflightCheck, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20026, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -12408,7 +12496,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_g all_params = [ 'cluster_id', - 'inflight_check_id' + 'identity_provider_id', + 'inline_object' ] all_params.extend( [ @@ -12423,26 +12512,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_g if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get`") # noqa: E501 - # verify the required parameter 'inflight_check_id' is set - if self.api_client.client_side_validation and ('inflight_check_id' not in local_var_params or # noqa: E501 - local_var_params['inflight_check_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `inflight_check_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post`") # noqa: E501 + # verify the required parameter 'identity_provider_id' is set + if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 + local_var_params['identity_provider_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_import_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'inflight_check_id' in local_var_params: - path_params['inflight_check_id'] = local_var_params['inflight_check_id'] # noqa: E501 + if 'identity_provider_id' in local_var_params: + path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 query_params = [] @@ -12452,22 +12541,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_g local_var_files = {} body_params = None + if 'inline_object' in local_var_params: + body_params = local_var_params['inline_object'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/inflight_checks/{inflight_check_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users/import', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InflightCheck', # noqa: E501 + response_type='InlineResponse20026', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -12475,19 +12570,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_g _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post # noqa: E501 - Retrieves the list of ingresses. # noqa: E501 + Adds a new user to the _HTPasswd_ file. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str identity_provider_id: (required) + :param HTPasswdUser ht_passwd_user: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -12495,26 +12590,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get(self, cluster_id, **k number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20027 + :return: HTPasswdUser If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post # noqa: E501 - Retrieves the list of ingresses. # noqa: E501 + Adds a new user to the _HTPasswd_ file. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post_with_http_info(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str identity_provider_id: (required) + :param HTPasswdUser ht_passwd_user: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -12524,7 +12619,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20027, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(HTPasswdUser, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -12533,8 +12628,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(self, all_params = [ 'cluster_id', - 'page', - 'size' + 'identity_provider_id', + 'ht_passwd_user' ] all_params.extend( [ @@ -12549,26 +12644,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post`") # noqa: E501 + # verify the required parameter 'identity_provider_id' is set + if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 + local_var_params['identity_provider_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_htpasswd_users_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'identity_provider_id' in local_var_params: + path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -12576,22 +12673,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(self, local_var_files = {} body_params = None + if 'ht_passwd_user' in local_var_params: + body_params = local_var_params['ht_passwd_user'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20027', # noqa: E501 + response_type='HTPasswdUser', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -12599,18 +12702,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete(self, cluster_id, ingress_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch # noqa: E501 - Deletes the ingress. # noqa: E501 + Update identity provider in the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete(cluster_id, ingress_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str ingress_id: (required) + :param str identity_provider_id: (required) + :param IdentityProvider identity_provider: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -12618,25 +12722,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete(self, c number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: IdentityProvider If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_http_info(cluster_id, ingress_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch_with_http_info(cluster_id, identity_provider_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_http_info(self, cluster_id, ingress_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch_with_http_info(self, cluster_id, identity_provider_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch # noqa: E501 - Deletes the ingress. # noqa: E501 + Update identity provider in the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_http_info(cluster_id, ingress_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch_with_http_info(cluster_id, identity_provider_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str ingress_id: (required) + :param str identity_provider_id: (required) + :param IdentityProvider identity_provider: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -12646,7 +12751,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_ht number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(IdentityProvider, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -12655,7 +12760,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_ht all_params = [ 'cluster_id', - 'ingress_id' + 'identity_provider_id', + 'identity_provider' ] all_params.extend( [ @@ -12670,26 +12776,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_ht if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete`") # noqa: E501 - # verify the required parameter 'ingress_id' is set - if self.api_client.client_side_validation and ('ingress_id' not in local_var_params or # noqa: E501 - local_var_params['ingress_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `ingress_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch`") # noqa: E501 + # verify the required parameter 'identity_provider_id' is set + if self.api_client.client_side_validation and ('identity_provider_id' not in local_var_params or # noqa: E501 + local_var_params['identity_provider_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `identity_provider_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_identity_provider_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'ingress_id' in local_var_params: - path_params['ingress_id'] = local_var_params['ingress_id'] # noqa: E501 + if 'identity_provider_id' in local_var_params: + path_params['identity_provider_id'] = local_var_params['identity_provider_id'] # noqa: E501 query_params = [] @@ -12699,22 +12805,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_ht local_var_files = {} body_params = None + if 'identity_provider' in local_var_params: + body_params = local_var_params['identity_provider'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses/{ingress_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='IdentityProvider', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -12722,18 +12834,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_ht _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get(self, cluster_id, ingress_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post # noqa: E501 - Retrieves the details of the ingress. # noqa: E501 + Adds a new identity provider to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get(cluster_id, ingress_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str ingress_id: (required) + :param IdentityProvider identity_provider: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -12741,25 +12853,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get(self, clus number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Ingress + :return: IdentityProvider If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_info(cluster_id, ingress_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_info(self, cluster_id, ingress_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post # noqa: E501 - Retrieves the details of the ingress. # noqa: E501 + Adds a new identity provider to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_info(cluster_id, ingress_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str ingress_id: (required) + :param IdentityProvider identity_provider: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -12769,7 +12881,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Ingress, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(IdentityProvider, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -12778,7 +12890,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_ all_params = [ 'cluster_id', - 'ingress_id' + 'identity_provider' ] all_params.extend( [ @@ -12793,26 +12905,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get`") # noqa: E501 - # verify the required parameter 'ingress_id' is set - if self.api_client.client_side_validation and ('ingress_id' not in local_var_params or # noqa: E501 - local_var_params['ingress_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `ingress_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_identity_providers_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'ingress_id' in local_var_params: - path_params['ingress_id'] = local_var_params['ingress_id'] # noqa: E501 query_params = [] @@ -12822,22 +12928,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_ local_var_files = {} body_params = None + if 'identity_provider' in local_var_params: + body_params = local_var_params['identity_provider'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses/{ingress_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Ingress', # noqa: E501 + response_type='IdentityProvider', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -12845,19 +12957,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch(self, cluster_id, ingress_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get # noqa: E501 - Updates the ingress. # noqa: E501 + Retrieves the list of inflight checks. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch(cluster_id, ingress_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str ingress_id: (required) - :param Ingress ingress: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -12865,26 +12977,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch(self, cl number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Ingress + :return: InlineResponse20027 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_http_info(cluster_id, ingress_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_http_info(self, cluster_id, ingress_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get # noqa: E501 - Updates the ingress. # noqa: E501 + Retrieves the list of inflight checks. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_http_info(cluster_id, ingress_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str ingress_id: (required) - :param Ingress ingress: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -12894,7 +13006,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_htt number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Ingress, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20027, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -12903,8 +13015,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_htt all_params = [ 'cluster_id', - 'ingress_id', - 'ingress' + 'page', + 'size' ] all_params.extend( [ @@ -12919,28 +13031,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_htt if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch`") # noqa: E501 - # verify the required parameter 'ingress_id' is set - if self.api_client.client_side_validation and ('ingress_id' not in local_var_params or # noqa: E501 - local_var_params['ingress_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `ingress_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'ingress_id' in local_var_params: - path_params['ingress_id'] = local_var_params['ingress_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -12948,28 +13058,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_htt local_var_files = {} body_params = None - if 'ingress' in local_var_params: - body_params = local_var_params['ingress'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses/{ingress_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/inflight_checks', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Ingress', # noqa: E501 + response_type='InlineResponse20027', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -12977,18 +13081,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_htt _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get(self, cluster_id, inflight_check_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get # noqa: E501 - Updates all ingresses # noqa: E501 + Retrieves the details of the inflight check. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get(cluster_id, inflight_check_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param list[Ingress] ingress: + :param str inflight_check_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -12996,25 +13100,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch(self, cluster_id, * number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: list[Ingress] + :return: InflightCheck If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get_with_http_info(cluster_id, inflight_check_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get_with_http_info(self, cluster_id, inflight_check_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get # noqa: E501 - Updates all ingresses # noqa: E501 + Retrieves the details of the inflight check. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get_with_http_info(cluster_id, inflight_check_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param list[Ingress] ingress: + :param str inflight_check_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -13024,7 +13128,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(self number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(list[Ingress], status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InflightCheck, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -13033,7 +13137,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(self all_params = [ 'cluster_id', - 'ingress' + 'inflight_check_id' ] all_params.extend( [ @@ -13048,20 +13152,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(self if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get`") # noqa: E501 + # verify the required parameter 'inflight_check_id' is set + if self.api_client.client_side_validation and ('inflight_check_id' not in local_var_params or # noqa: E501 + local_var_params['inflight_check_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `inflight_check_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_inflight_checks_inflight_check_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'inflight_check_id' in local_var_params: + path_params['inflight_check_id'] = local_var_params['inflight_check_id'] # noqa: E501 query_params = [] @@ -13071,28 +13181,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(self local_var_files = {} body_params = None - if 'ingress' in local_var_params: - body_params = local_var_params['ingress'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/inflight_checks/{inflight_check_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='list[Ingress]', # noqa: E501 + response_type='InflightCheck', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -13100,18 +13204,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(self _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get # noqa: E501 - Adds a new ingress to the cluster. # noqa: E501 + Retrieves the list of ingresses. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Ingress ingress: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -13119,25 +13224,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post(self, cluster_id, ** number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Ingress + :return: InlineResponse20028 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get # noqa: E501 - Adds a new ingress to the cluster. # noqa: E501 + Retrieves the list of ingresses. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Ingress ingress: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -13147,7 +13253,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Ingress, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20028, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -13156,7 +13262,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(self, all_params = [ 'cluster_id', - 'ingress' + 'page', + 'size' ] all_params.extend( [ @@ -13171,14 +13278,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_get`") # noqa: E501 collection_formats = {} @@ -13187,6 +13294,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(self, path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -13194,28 +13305,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(self, local_var_files = {} body_params = None - if 'ingress' in local_var_params: - body_params = local_var_params['ingress'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Ingress', # noqa: E501 + response_type='InlineResponse20028', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -13223,19 +13328,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete(self, cluster_id, ingress_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete # noqa: E501 - Retrieves the list of reasons. # noqa: E501 + Deletes the ingress. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete(cluster_id, ingress_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str ingress_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -13243,26 +13347,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get(self, c number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20028 + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_http_info(cluster_id, ingress_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_http_info(self, cluster_id, ingress_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete # noqa: E501 - Retrieves the list of reasons. # noqa: E501 + Deletes the ingress. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete_with_http_info(cluster_id, ingress_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str ingress_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -13272,7 +13375,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_ht number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20028, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -13281,8 +13384,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_ht all_params = [ 'cluster_id', - 'page', - 'size' + 'ingress_id' ] all_params.extend( [ @@ -13297,26 +13399,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_ht if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete`") # noqa: E501 + # verify the required parameter 'ingress_id' is set + if self.api_client.client_side_validation and ('ingress_id' not in local_var_params or # noqa: E501 + local_var_params['ingress_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ingress_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'ingress_id' in local_var_params: + path_params['ingress_id'] = local_var_params['ingress_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -13332,14 +13436,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_ht auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses/{ingress_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20028', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -13347,18 +13451,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_ht _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete(self, cluster_id, limited_support_reason_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get(self, cluster_id, ingress_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get # noqa: E501 - Deletes the reason. # noqa: E501 + Retrieves the details of the ingress. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete(cluster_id, limited_support_reason_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get(cluster_id, ingress_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str limited_support_reason_id: (required) + :param str ingress_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -13366,25 +13470,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete_with_http_info(cluster_id, limited_support_reason_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_info(cluster_id, ingress_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete_with_http_info(self, cluster_id, limited_support_reason_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_info(self, cluster_id, ingress_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get # noqa: E501 - Deletes the reason. # noqa: E501 + Retrieves the details of the ingress. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete_with_http_info(cluster_id, limited_support_reason_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get_with_http_info(cluster_id, ingress_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str limited_support_reason_id: (required) + :param str ingress_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -13394,7 +13498,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -13403,7 +13507,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup all_params = [ 'cluster_id', - 'limited_support_reason_id' + 'ingress_id' ] all_params.extend( [ @@ -13418,26 +13522,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete`") # noqa: E501 - # verify the required parameter 'limited_support_reason_id' is set - if self.api_client.client_side_validation and ('limited_support_reason_id' not in local_var_params or # noqa: E501 - local_var_params['limited_support_reason_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `limited_support_reason_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get`") # noqa: E501 + # verify the required parameter 'ingress_id' is set + if self.api_client.client_side_validation and ('ingress_id' not in local_var_params or # noqa: E501 + local_var_params['ingress_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ingress_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'limited_support_reason_id' in local_var_params: - path_params['limited_support_reason_id'] = local_var_params['limited_support_reason_id'] # noqa: E501 + if 'ingress_id' in local_var_params: + path_params['ingress_id'] = local_var_params['ingress_id'] # noqa: E501 query_params = [] @@ -13455,14 +13559,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons/{limited_support_reason_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses/{ingress_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='Ingress', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -13470,18 +13574,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get(self, cluster_id, limited_support_reason_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch(self, cluster_id, ingress_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch # noqa: E501 - Retrieves the details of the reason. # noqa: E501 + Updates the ingress. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get(cluster_id, limited_support_reason_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch(cluster_id, ingress_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str limited_support_reason_id: (required) + :param str ingress_id: (required) + :param Ingress ingress: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -13489,25 +13594,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: LimitedSupportReason + :return: Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get_with_http_info(cluster_id, limited_support_reason_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_http_info(cluster_id, ingress_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get_with_http_info(self, cluster_id, limited_support_reason_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_http_info(self, cluster_id, ingress_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch # noqa: E501 - Retrieves the details of the reason. # noqa: E501 + Updates the ingress. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get_with_http_info(cluster_id, limited_support_reason_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch_with_http_info(cluster_id, ingress_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str limited_support_reason_id: (required) + :param str ingress_id: (required) + :param Ingress ingress: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -13517,7 +13623,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(LimitedSupportReason, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -13526,7 +13632,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup all_params = [ 'cluster_id', - 'limited_support_reason_id' + 'ingress_id', + 'ingress' ] all_params.extend( [ @@ -13541,26 +13648,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get`") # noqa: E501 - # verify the required parameter 'limited_support_reason_id' is set - if self.api_client.client_side_validation and ('limited_support_reason_id' not in local_var_params or # noqa: E501 - local_var_params['limited_support_reason_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `limited_support_reason_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch`") # noqa: E501 + # verify the required parameter 'ingress_id' is set + if self.api_client.client_side_validation and ('ingress_id' not in local_var_params or # noqa: E501 + local_var_params['ingress_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `ingress_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_ingress_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'limited_support_reason_id' in local_var_params: - path_params['limited_support_reason_id'] = local_var_params['limited_support_reason_id'] # noqa: E501 + if 'ingress_id' in local_var_params: + path_params['ingress_id'] = local_var_params['ingress_id'] # noqa: E501 query_params = [] @@ -13570,22 +13677,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup local_var_files = {} body_params = None + if 'ingress' in local_var_params: + body_params = local_var_params['ingress'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons/{limited_support_reason_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses/{ingress_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='LimitedSupportReason', # noqa: E501 + response_type='Ingress', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -13593,18 +13706,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_sup _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch # noqa: E501 - Adds a new reason to the cluster. # noqa: E501 + Updates all ingresses # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param LimitedSupportReason limited_support_reason: + :param list[Ingress] ingress: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -13612,25 +13725,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: LimitedSupportReason + :return: list[Ingress] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch # noqa: E501 - Adds a new reason to the cluster. # noqa: E501 + Updates all ingresses # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param LimitedSupportReason limited_support_reason: + :param list[Ingress] ingress: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -13640,7 +13753,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_h number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(LimitedSupportReason, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(list[Ingress], status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -13649,7 +13762,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_h all_params = [ 'cluster_id', - 'limited_support_reason' + 'ingress' ] all_params.extend( [ @@ -13664,14 +13777,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_h if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_patch`") # noqa: E501 collection_formats = {} @@ -13687,8 +13800,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_h local_var_files = {} body_params = None - if 'limited_support_reason' in local_var_params: - body_params = local_var_params['limited_support_reason'] + if 'ingress' in local_var_params: + body_params = local_var_params['ingress'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -13701,14 +13814,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_h auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='LimitedSupportReason', # noqa: E501 + response_type='list[Ingress]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -13716,19 +13829,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_h _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_logs_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_logs_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post # noqa: E501 - Retrieves the list of log links. # noqa: E501 + Adds a new ingress to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param Ingress ingress: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -13736,26 +13848,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_get(self, cluster_id, **kwargs number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20029 + :return: Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_logs_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post # noqa: E501 - Retrieves the list of log links. # noqa: E501 + Adds a new ingress to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param Ingress ingress: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -13765,7 +13876,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(self, clust number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20029, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -13774,8 +13885,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(self, clust all_params = [ 'cluster_id', - 'page', - 'size' + 'ingress' ] all_params.extend( [ @@ -13790,14 +13900,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(self, clust if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_logs_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_logs_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_ingresses_post`") # noqa: E501 collection_formats = {} @@ -13806,10 +13916,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(self, clust path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -13817,22 +13923,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(self, clust local_var_files = {} body_params = None + if 'ingress' in local_var_params: + body_params = local_var_params['ingress'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/logs', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/ingresses', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20029', # noqa: E501 + response_type='Ingress', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -13840,19 +13952,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(self, clust _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete # noqa: E501 - Retrieves the details of the log. # noqa: E501 + Deletes the cluster KubeletConfig # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int offset: Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. - :param int tail: Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -13860,26 +13970,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get(self, cluster_id, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Log + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete # noqa: E501 - Retrieves the details of the log. # noqa: E501 + Deletes the cluster KubeletConfig # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int offset: Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. - :param int tail: Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -13889,7 +13997,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(sel number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Log, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -13897,9 +14005,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(sel local_var_params = locals() all_params = [ - 'cluster_id', - 'offset', - 'tail' + 'cluster_id' ] all_params.extend( [ @@ -13914,14 +14020,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(sel if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_delete`") # noqa: E501 collection_formats = {} @@ -13930,10 +14036,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(sel path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501 - query_params.append(('offset', local_var_params['offset'])) # noqa: E501 - if 'tail' in local_var_params and local_var_params['tail'] is not None: # noqa: E501 - query_params.append(('tail', local_var_params['tail'])) # noqa: E501 header_params = {} @@ -13949,14 +14051,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(sel auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/logs/install', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Log', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -13964,19 +14066,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(sel _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get # noqa: E501 - Retrieves the details of the log. # noqa: E501 + Retrieves the KubeletConfig for a cluster # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int offset: Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. - :param int tail: Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -13984,26 +14084,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get(self, cluster_id number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Log + :return: KubeletConfig If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get # noqa: E501 - Retrieves the details of the log. # noqa: E501 + Retrieves the KubeletConfig for a cluster # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int offset: Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. - :param int tail: Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -14013,7 +14111,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(s number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Log, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(KubeletConfig, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -14021,9 +14119,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(s local_var_params = locals() all_params = [ - 'cluster_id', - 'offset', - 'tail' + 'cluster_id' ] all_params.extend( [ @@ -14038,14 +14134,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(s if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_get`") # noqa: E501 collection_formats = {} @@ -14054,10 +14150,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(s path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501 - query_params.append(('offset', local_var_params['offset'])) # noqa: E501 - if 'tail' in local_var_params and local_var_params['tail'] is not None: # noqa: E501 - query_params.append(('tail', local_var_params['tail'])) # noqa: E501 header_params = {} @@ -14073,14 +14165,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(s auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/logs/uninstall', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Log', # noqa: E501 + response_type='KubeletConfig', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -14088,19 +14180,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(s _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch # noqa: E501 - Retrieves the list of machine pools. # noqa: E501 + Updates the existing cluster KubeletConfig # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param KubeletConfig kubelet_config: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -14108,26 +14199,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get(self, cluster_id, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20030 + :return: KubeletConfig If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch # noqa: E501 - Retrieves the list of machine pools. # noqa: E501 + Updates the existing cluster KubeletConfig # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param KubeletConfig kubelet_config: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -14137,7 +14227,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(se number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20030, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(KubeletConfig, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -14146,8 +14236,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(se all_params = [ 'cluster_id', - 'page', - 'size' + 'kubelet_config' ] all_params.extend( [ @@ -14162,14 +14251,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(se if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_patch`") # noqa: E501 collection_formats = {} @@ -14178,10 +14267,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(se path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -14189,22 +14274,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(se local_var_files = {} body_params = None + if 'kubelet_config' in local_var_params: + body_params = local_var_params['kubelet_config'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20030', # noqa: E501 + response_type='KubeletConfig', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -14212,18 +14303,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(se _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post # noqa: E501 - Deletes the machine pool. # noqa: E501 + Creates a new cluster KubeletConfig # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete(cluster_id, machine_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str machine_pool_id: (required) + :param KubeletConfig kubelet_config: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -14231,25 +14322,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delet number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: KubeletConfig If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete_with_http_info(cluster_id, machine_pool_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete_with_http_info(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post # noqa: E501 - Deletes the machine pool. # noqa: E501 + Creates a new cluster KubeletConfig # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete_with_http_info(cluster_id, machine_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str machine_pool_id: (required) + :param KubeletConfig kubelet_config: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -14259,7 +14350,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delet number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(KubeletConfig, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -14268,7 +14359,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delet all_params = [ 'cluster_id', - 'machine_pool_id' + 'kubelet_config' ] all_params.extend( [ @@ -14283,26 +14374,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delet if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete`") # noqa: E501 - # verify the required parameter 'machine_pool_id' is set - if self.api_client.client_side_validation and ('machine_pool_id' not in local_var_params or # noqa: E501 - local_var_params['machine_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `machine_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_kubelet_config_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'machine_pool_id' in local_var_params: - path_params['machine_pool_id'] = local_var_params['machine_pool_id'] # noqa: E501 query_params = [] @@ -14312,22 +14397,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delet local_var_files = {} body_params = None + if 'kubelet_config' in local_var_params: + body_params = local_var_params['kubelet_config'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools/{machine_pool_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/kubelet_config', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='KubeletConfig', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -14335,18 +14426,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delet _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get # noqa: E501 - Retrieves the details of the machine pool. # noqa: E501 + Retrieves the list of reasons. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get(cluster_id, machine_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str machine_pool_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -14354,25 +14446,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get(s number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: MachinePool + :return: InlineResponse20029 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_with_http_info(cluster_id, machine_pool_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_with_http_info(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get # noqa: E501 - Retrieves the details of the machine pool. # noqa: E501 + Retrieves the list of reasons. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_with_http_info(cluster_id, machine_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str machine_pool_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -14382,7 +14475,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_w number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(MachinePool, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20029, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -14391,7 +14484,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_w all_params = [ 'cluster_id', - 'machine_pool_id' + 'page', + 'size' ] all_params.extend( [ @@ -14406,28 +14500,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_w if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get`") # noqa: E501 - # verify the required parameter 'machine_pool_id' is set - if self.api_client.client_side_validation and ('machine_pool_id' not in local_var_params or # noqa: E501 - local_var_params['machine_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `machine_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'machine_pool_id' in local_var_params: - path_params['machine_pool_id'] = local_var_params['machine_pool_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -14443,14 +14535,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_w auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools/{machine_pool_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='MachinePool', # noqa: E501 + response_type='InlineResponse20029', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -14458,19 +14550,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_w _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete(self, cluster_id, limited_support_reason_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete # noqa: E501 - Updates the machine pool. # noqa: E501 + Deletes the reason. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch(cluster_id, machine_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete(cluster_id, limited_support_reason_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str machine_pool_id: (required) - :param MachinePool machine_pool: + :param str limited_support_reason_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -14478,26 +14569,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: MachinePool + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch_with_http_info(cluster_id, machine_pool_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete_with_http_info(cluster_id, limited_support_reason_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch_with_http_info(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete_with_http_info(self, cluster_id, limited_support_reason_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete # noqa: E501 - Updates the machine pool. # noqa: E501 + Deletes the reason. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch_with_http_info(cluster_id, machine_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete_with_http_info(cluster_id, limited_support_reason_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str machine_pool_id: (required) - :param MachinePool machine_pool: + :param str limited_support_reason_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -14507,7 +14597,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(MachinePool, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -14516,8 +14606,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch all_params = [ 'cluster_id', - 'machine_pool_id', - 'machine_pool' + 'limited_support_reason_id' ] all_params.extend( [ @@ -14532,26 +14621,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch`") # noqa: E501 - # verify the required parameter 'machine_pool_id' is set - if self.api_client.client_side_validation and ('machine_pool_id' not in local_var_params or # noqa: E501 - local_var_params['machine_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `machine_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete`") # noqa: E501 + # verify the required parameter 'limited_support_reason_id' is set + if self.api_client.client_side_validation and ('limited_support_reason_id' not in local_var_params or # noqa: E501 + local_var_params['limited_support_reason_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `limited_support_reason_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'machine_pool_id' in local_var_params: - path_params['machine_pool_id'] = local_var_params['machine_pool_id'] # noqa: E501 + if 'limited_support_reason_id' in local_var_params: + path_params['limited_support_reason_id'] = local_var_params['limited_support_reason_id'] # noqa: E501 query_params = [] @@ -14561,28 +14650,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch local_var_files = {} body_params = None - if 'machine_pool' in local_var_params: - body_params = local_var_params['machine_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools/{machine_pool_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons/{limited_support_reason_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='MachinePool', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -14590,18 +14673,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get(self, cluster_id, limited_support_reason_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get # noqa: E501 - Adds a new machine pool to the cluster. # noqa: E501 + Retrieves the details of the reason. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get(cluster_id, limited_support_reason_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param MachinePool machine_pool: + :param str limited_support_reason_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -14609,25 +14692,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post(self, cluster_id number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: MachinePool + :return: LimitedSupportReason If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get_with_http_info(cluster_id, limited_support_reason_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get_with_http_info(self, cluster_id, limited_support_reason_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get # noqa: E501 - Adds a new machine pool to the cluster. # noqa: E501 + Retrieves the details of the reason. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get_with_http_info(cluster_id, limited_support_reason_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param MachinePool machine_pool: + :param str limited_support_reason_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -14637,7 +14720,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(s number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(MachinePool, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(LimitedSupportReason, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -14646,7 +14729,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(s all_params = [ 'cluster_id', - 'machine_pool' + 'limited_support_reason_id' ] all_params.extend( [ @@ -14661,20 +14744,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(s if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get`") # noqa: E501 + # verify the required parameter 'limited_support_reason_id' is set + if self.api_client.client_side_validation and ('limited_support_reason_id' not in local_var_params or # noqa: E501 + local_var_params['limited_support_reason_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `limited_support_reason_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_limited_support_reason_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'limited_support_reason_id' in local_var_params: + path_params['limited_support_reason_id'] = local_var_params['limited_support_reason_id'] # noqa: E501 query_params = [] @@ -14684,28 +14773,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(s local_var_files = {} body_params = None - if 'machine_pool' in local_var_params: - body_params = local_var_params['machine_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons/{limited_support_reason_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='MachinePool', # noqa: E501 + response_type='LimitedSupportReason', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -14713,16 +14796,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(s _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post # noqa: E501 + Adds a new reason to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param LimitedSupportReason limited_support_reason: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -14730,23 +14815,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get(self, clu number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: AlertsInfo + :return: LimitedSupportReason If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post # noqa: E501 + Adds a new reason to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param LimitedSupportReason limited_support_reason: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -14756,7 +14843,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(AlertsInfo, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(LimitedSupportReason, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -14764,7 +14851,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'limited_support_reason' ] all_params.extend( [ @@ -14779,14 +14867,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_limited_support_reasons_post`") # noqa: E501 collection_formats = {} @@ -14802,22 +14890,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http local_var_files = {} body_params = None + if 'limited_support_reason' in local_var_params: + body_params = local_var_params['limited_support_reason'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/alerts', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/limited_support_reasons', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='AlertsInfo', # noqa: E501 + response_type='LimitedSupportReason', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -14825,16 +14919,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_logs_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_logs_get # noqa: E501 + Retrieves the list of log links. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -14842,23 +14939,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_ge number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ClusterOperatorsInfo + :return: InlineResponse20030 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_logs_get # noqa: E501 + Retrieves the list of log links. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -14868,7 +14968,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_ge number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ClusterOperatorsInfo, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20030, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -14876,7 +14976,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_ge local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'page', + 'size' ] all_params.extend( [ @@ -14891,14 +14993,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_ge if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_logs_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_logs_get`") # noqa: E501 collection_formats = {} @@ -14907,6 +15009,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_ge path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -14922,14 +15028,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_ge auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/cluster_operators', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/logs', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ClusterOperatorsInfo', # noqa: E501 + response_type='InlineResponse20030', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -14937,17 +15043,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_ge _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get # noqa: E501 - Retrieves the metrics. # noqa: E501 + Retrieves the details of the log. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int offset: Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. + :param int tail: Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -14955,24 +15063,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_ro number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: CPUTotalsNodeRoleOSMetricNode + :return: Log If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get # noqa: E501 - Retrieves the metrics. # noqa: E501 + Retrieves the details of the log. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int offset: Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. + :param int tail: Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -14982,7 +15092,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_ro number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(CPUTotalsNodeRoleOSMetricNode, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Log, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -14990,7 +15100,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_ro local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'offset', + 'tail' ] all_params.extend( [ @@ -15005,14 +15117,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_ro if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_logs_install_get`") # noqa: E501 collection_formats = {} @@ -15021,6 +15133,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_ro path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501 + query_params.append(('offset', local_var_params['offset'])) # noqa: E501 + if 'tail' in local_var_params and local_var_params['tail'] is not None: # noqa: E501 + query_params.append(('tail', local_var_params['tail'])) # noqa: E501 header_params = {} @@ -15036,14 +15152,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_ro auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/cpu_total_by_node_roles_os', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/logs/install', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CPUTotalsNodeRoleOSMetricNode', # noqa: E501 + response_type='Log', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -15051,16 +15167,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_ro _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get # noqa: E501 + Retrieves the details of the log. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int offset: Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. + :param int tail: Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -15068,23 +15187,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get(self, clus number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: NodesInfo + :return: Log If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get # noqa: E501 + Retrieves the details of the log. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int offset: Line offset to start logs from. if 0 retreive entire log. If offset > #lines return an empty log. + :param int tail: Returns the number of tail lines from the end of the log. If there are no line breaks or the number of lines < tail return the entire log. Either 'tail' or 'offset' can be set. Not both. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -15094,7 +15216,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(NodesInfo, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Log, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -15102,7 +15224,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_ local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'offset', + 'tail' ] all_params.extend( [ @@ -15117,14 +15241,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_logs_uninstall_get`") # noqa: E501 collection_formats = {} @@ -15133,6 +15257,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_ path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501 + query_params.append(('offset', local_var_params['offset'])) # noqa: E501 + if 'tail' in local_var_params and local_var_params['tail'] is not None: # noqa: E501 + query_params.append(('tail', local_var_params['tail'])) # noqa: E501 header_params = {} @@ -15148,14 +15276,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/nodes', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/logs/uninstall', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='NodesInfo', # noqa: E501 + response_type='Log', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -15163,17 +15291,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get # noqa: E501 - Retrieves the metrics. # noqa: E501 + Retrieves the list of machine pools. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -15181,24 +15311,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: SocketTotalsNodeRoleOSMetricNode + :return: InlineResponse20031 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get # noqa: E501 - Retrieves the metrics. # noqa: E501 + Retrieves the list of machine pools. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -15208,7 +15340,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(SocketTotalsNodeRoleOSMetricNode, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20031, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -15216,7 +15348,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'page', + 'size' ] all_params.extend( [ @@ -15231,14 +15365,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_get`") # noqa: E501 collection_formats = {} @@ -15247,6 +15381,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -15262,14 +15400,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/socket_total_by_node_roles_os', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='SocketTotalsNodeRoleOSMetricNode', # noqa: E501 + response_type='InlineResponse20031', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -15277,19 +15415,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete # noqa: E501 - Retrieves the list of node pools. # noqa: E501 + Deletes the machine pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete(cluster_id, machine_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str machine_pool_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -15297,26 +15434,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get(self, cluster_id, ** number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20031 + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete_with_http_info(cluster_id, machine_pool_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete_with_http_info(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete # noqa: E501 - Retrieves the list of node pools. # noqa: E501 + Deletes the machine pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete_with_http_info(cluster_id, machine_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str machine_pool_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -15326,7 +15462,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20031, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -15335,8 +15471,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(self, all_params = [ 'cluster_id', - 'page', - 'size' + 'machine_pool_id' ] all_params.extend( [ @@ -15351,26 +15486,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete`") # noqa: E501 + # verify the required parameter 'machine_pool_id' is set + if self.api_client.client_side_validation and ('machine_pool_id' not in local_var_params or # noqa: E501 + local_var_params['machine_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `machine_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'machine_pool_id' in local_var_params: + path_params['machine_pool_id'] = local_var_params['machine_pool_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -15386,14 +15523,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(self, auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools/{machine_pool_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20031', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -15401,18 +15538,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get # noqa: E501 - Deletes the node pool. # noqa: E501 + Retrieves the details of the machine pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get(cluster_id, machine_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) + :param str machine_pool_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -15420,25 +15557,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete(self number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: MachinePool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_with_http_info(cluster_id, machine_pool_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_with_http_info(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get # noqa: E501 - Deletes the node pool. # noqa: E501 + Retrieves the details of the machine pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with_http_info(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get_with_http_info(cluster_id, machine_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) + :param str machine_pool_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -15448,7 +15585,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(MachinePool, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -15457,7 +15594,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with all_params = [ 'cluster_id', - 'node_pool_id' + 'machine_pool_id' ] all_params.extend( [ @@ -15472,26 +15609,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete`") # noqa: E501 - # verify the required parameter 'node_pool_id' is set - if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get`") # noqa: E501 + # verify the required parameter 'machine_pool_id' is set + if self.api_client.client_side_validation and ('machine_pool_id' not in local_var_params or # noqa: E501 + local_var_params['machine_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `machine_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'node_pool_id' in local_var_params: - path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 + if 'machine_pool_id' in local_var_params: + path_params['machine_pool_id'] = local_var_params['machine_pool_id'] # noqa: E501 query_params = [] @@ -15509,14 +15646,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools/{machine_pool_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='MachinePool', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -15524,18 +15661,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch # noqa: E501 - Retrieves the details of the node pool. # noqa: E501 + Updates the machine pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch(cluster_id, machine_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) + :param str machine_pool_id: (required) + :param MachinePool machine_pool: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -15543,25 +15681,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get(self, c number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: NodePool + :return: MachinePool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch_with_http_info(cluster_id, machine_pool_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch_with_http_info(self, cluster_id, machine_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch # noqa: E501 - Retrieves the details of the node pool. # noqa: E501 + Updates the machine pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_http_info(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch_with_http_info(cluster_id, machine_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) + :param str machine_pool_id: (required) + :param MachinePool machine_pool: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -15571,7 +15710,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_ht number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(NodePool, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(MachinePool, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -15580,7 +15719,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_ht all_params = [ 'cluster_id', - 'node_pool_id' + 'machine_pool_id', + 'machine_pool' ] all_params.extend( [ @@ -15595,26 +15735,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_ht if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get`") # noqa: E501 - # verify the required parameter 'node_pool_id' is set - if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch`") # noqa: E501 + # verify the required parameter 'machine_pool_id' is set + if self.api_client.client_side_validation and ('machine_pool_id' not in local_var_params or # noqa: E501 + local_var_params['machine_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `machine_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_machine_pool_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'node_pool_id' in local_var_params: - path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 + if 'machine_pool_id' in local_var_params: + path_params['machine_pool_id'] = local_var_params['machine_pool_id'] # noqa: E501 query_params = [] @@ -15624,22 +15764,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_ht local_var_files = {} body_params = None + if 'machine_pool' in local_var_params: + body_params = local_var_params['machine_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools/{machine_pool_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='NodePool', # noqa: E501 + response_type='MachinePool', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -15647,19 +15793,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_ht _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post # noqa: E501 - Updates the node pool. # noqa: E501 + Adds a new machine pool to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param NodePool node_pool: + :param MachinePool machine_pool: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -15667,26 +15812,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: NodePool + :return: MachinePool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post # noqa: E501 - Updates the node pool. # noqa: E501 + Adds a new machine pool to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_http_info(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param NodePool node_pool: + :param MachinePool machine_pool: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -15696,7 +15840,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(NodePool, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(MachinePool, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -15705,8 +15849,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_ all_params = [ 'cluster_id', - 'node_pool_id', - 'node_pool' + 'machine_pool' ] all_params.extend( [ @@ -15721,26 +15864,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch`") # noqa: E501 - # verify the required parameter 'node_pool_id' is set - if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_machine_pools_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'node_pool_id' in local_var_params: - path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 query_params = [] @@ -15750,8 +15887,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_ local_var_files = {} body_params = None - if 'node_pool' in local_var_params: - body_params = local_var_params['node_pool'] + if 'machine_pool' in local_var_params: + body_params = local_var_params['machine_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -15764,14 +15901,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/machine_pools', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='NodePool', # noqa: E501 + response_type='MachinePool', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -15779,20 +15916,16 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get # noqa: E501 - Retrieves the list of upgrade policies for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -15800,27 +15933,23 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20032 + :return: AlertsInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get # noqa: E501 - Retrieves the list of upgrade policies for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get_with_http_info(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -15830,7 +15959,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20032, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(AlertsInfo, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -15838,10 +15967,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol local_var_params = locals() all_params = [ - 'cluster_id', - 'node_pool_id', - 'page', - 'size' + 'cluster_id' ] all_params.extend( [ @@ -15856,32 +15982,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get`") # noqa: E501 - # verify the required parameter 'node_pool_id' is set - if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_alerts_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'node_pool_id' in local_var_params: - path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -15897,14 +16013,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/alerts', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20032', # noqa: E501 + response_type='AlertsInfo', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -15912,19 +16028,16 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get # noqa: E501 - Deletes the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param str node_pool_upgrade_policy_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -15932,26 +16045,23 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: ClusterOperatorsInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete_with_http_info(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get # noqa: E501 - Deletes the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param str node_pool_upgrade_policy_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -15961,7 +16071,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(ClusterOperatorsInfo, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -15969,9 +16079,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol local_var_params = locals() all_params = [ - 'cluster_id', - 'node_pool_id', - 'node_pool_upgrade_policy_id' + 'cluster_id' ] all_params.extend( [ @@ -15986,32 +16094,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete`") # noqa: E501 - # verify the required parameter 'node_pool_id' is set - if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete`") # noqa: E501 - # verify the required parameter 'node_pool_upgrade_policy_id' is set - if self.api_client.client_side_validation and ('node_pool_upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cluster_operators_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'node_pool_id' in local_var_params: - path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 - if 'node_pool_upgrade_policy_id' in local_var_params: - path_params['node_pool_upgrade_policy_id'] = local_var_params['node_pool_upgrade_policy_id'] # noqa: E501 query_params = [] @@ -16029,14 +16125,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies/{node_pool_upgrade_policy_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/cluster_operators', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='ClusterOperatorsInfo', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -16044,19 +16140,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get # noqa: E501 - Retrieves the details of the upgrade policy for the node pool. # noqa: E501 + Retrieves the metrics. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param str node_pool_upgrade_policy_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -16064,26 +16158,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: NodePoolUpgradePolicy + :return: CPUTotalsNodeRoleOSMetricNode If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get_with_http_info(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get # noqa: E501 - Retrieves the details of the upgrade policy for the node pool. # noqa: E501 + Retrieves the metrics. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param str node_pool_upgrade_policy_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -16093,7 +16185,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(NodePoolUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(CPUTotalsNodeRoleOSMetricNode, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -16101,9 +16193,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol local_var_params = locals() all_params = [ - 'cluster_id', - 'node_pool_id', - 'node_pool_upgrade_policy_id' + 'cluster_id' ] all_params.extend( [ @@ -16118,32 +16208,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get`") # noqa: E501 - # verify the required parameter 'node_pool_id' is set - if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get`") # noqa: E501 - # verify the required parameter 'node_pool_upgrade_policy_id' is set - if self.api_client.client_side_validation and ('node_pool_upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_cpu_total_by_node_roles_os_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'node_pool_id' in local_var_params: - path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 - if 'node_pool_upgrade_policy_id' in local_var_params: - path_params['node_pool_upgrade_policy_id'] = local_var_params['node_pool_upgrade_policy_id'] # noqa: E501 query_params = [] @@ -16161,14 +16239,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies/{node_pool_upgrade_policy_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/cpu_total_by_node_roles_os', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='NodePoolUpgradePolicy', # noqa: E501 + response_type='CPUTotalsNodeRoleOSMetricNode', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -16176,20 +16254,16 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get # noqa: E501 - Update the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param str node_pool_upgrade_policy_id: (required) - :param NodePoolUpgradePolicy node_pool_upgrade_policy: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -16197,27 +16271,23 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: NodePoolUpgradePolicy + :return: NodesInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch_with_http_info(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get # noqa: E501 - Update the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param str node_pool_upgrade_policy_id: (required) - :param NodePoolUpgradePolicy node_pool_upgrade_policy: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -16227,7 +16297,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(NodePoolUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(NodesInfo, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -16235,10 +16305,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol local_var_params = locals() all_params = [ - 'cluster_id', - 'node_pool_id', - 'node_pool_upgrade_policy_id', - 'node_pool_upgrade_policy' + 'cluster_id' ] all_params.extend( [ @@ -16253,32 +16320,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch`") # noqa: E501 - # verify the required parameter 'node_pool_id' is set - if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch`") # noqa: E501 - # verify the required parameter 'node_pool_upgrade_policy_id' is set - if self.api_client.client_side_validation and ('node_pool_upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_nodes_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'node_pool_id' in local_var_params: - path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 - if 'node_pool_upgrade_policy_id' in local_var_params: - path_params['node_pool_upgrade_policy_id'] = local_var_params['node_pool_upgrade_policy_id'] # noqa: E501 query_params = [] @@ -16288,28 +16343,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol local_var_files = {} body_params = None - if 'node_pool_upgrade_policy' in local_var_params: - body_params = local_var_params['node_pool_upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies/{node_pool_upgrade_policy_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/nodes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='NodePoolUpgradePolicy', # noqa: E501 + response_type='NodesInfo', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -16317,19 +16366,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get # noqa: E501 - Adds a new upgrade policy to the node pool of the cluster. # noqa: E501 + Retrieves the metrics. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param NodePoolUpgradePolicy node_pool_upgrade_policy: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -16337,26 +16384,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: NodePoolUpgradePolicy + :return: SocketTotalsNodeRoleOSMetricNode If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get # noqa: E501 - Adds a new upgrade policy to the node pool of the cluster. # noqa: E501 + Retrieves the metrics. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post_with_http_info(cluster_id, node_pool_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str node_pool_id: (required) - :param NodePoolUpgradePolicy node_pool_upgrade_policy: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -16366,7 +16411,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(NodePoolUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(SocketTotalsNodeRoleOSMetricNode, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -16374,9 +16419,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol local_var_params = locals() all_params = [ - 'cluster_id', - 'node_pool_id', - 'node_pool_upgrade_policy' + 'cluster_id' ] all_params.extend( [ @@ -16391,26 +16434,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post`") # noqa: E501 - # verify the required parameter 'node_pool_id' is set - if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 - local_var_params['node_pool_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_metric_queries_socket_total_by_node_roles_os_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'node_pool_id' in local_var_params: - path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 query_params = [] @@ -16420,28 +16457,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol local_var_files = {} body_params = None - if 'node_pool_upgrade_policy' in local_var_params: - body_params = local_var_params['node_pool_upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/metric_queries/socket_total_by_node_roles_os', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='NodePoolUpgradePolicy', # noqa: E501 + response_type='SocketTotalsNodeRoleOSMetricNode', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -16449,18 +16480,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_pol _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get # noqa: E501 - Adds a new node pool to the cluster. # noqa: E501 + Retrieves the list of node pools. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param NodePool node_pool: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -16468,25 +16500,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post(self, cluster_id, * number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: NodePool + :return: InlineResponse20032 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get # noqa: E501 - Adds a new node pool to the cluster. # noqa: E501 + Retrieves the list of node pools. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param NodePool node_pool: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -16496,7 +16529,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(self number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(NodePool, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20032, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -16505,7 +16538,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(self all_params = [ 'cluster_id', - 'node_pool' + 'page', + 'size' ] all_params.extend( [ @@ -16520,14 +16554,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(self if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_get`") # noqa: E501 collection_formats = {} @@ -16536,6 +16570,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(self path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -16543,28 +16581,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(self local_var_files = {} body_params = None - if 'node_pool' in local_var_params: - body_params = local_var_params['node_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='NodePool', # noqa: E501 + response_type='InlineResponse20032', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -16572,18 +16604,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(self _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_patch(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete # noqa: E501 - Updates the cluster. # noqa: E501 + Deletes the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_patch(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Cluster cluster: + :param str node_pool_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -16591,25 +16623,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_patch(self, cluster_id, **kwargs): number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Cluster + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete # noqa: E501 - Updates the cluster. # noqa: E501 + Deletes the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete_with_http_info(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param Cluster cluster: + :param str node_pool_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -16619,7 +16651,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(self, cluster_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Cluster, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -16628,7 +16660,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(self, cluster_ all_params = [ 'cluster_id', - 'cluster' + 'node_pool_id' ] all_params.extend( [ @@ -16643,20 +16675,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(self, cluster_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete`") # noqa: E501 + # verify the required parameter 'node_pool_id' is set + if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'node_pool_id' in local_var_params: + path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 query_params = [] @@ -16666,28 +16704,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(self, cluster_ local_var_files = {} body_params = None - if 'cluster' in local_var_params: - body_params = local_var_params['cluster'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Cluster', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -16695,17 +16727,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(self, cluster_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_product_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_product_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get # noqa: E501 - Retrieves the details of the product. # noqa: E501 + Retrieves the details of the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -16713,24 +16746,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_product_get(self, cluster_id, **kwa number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Product + :return: NodePool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_product_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get # noqa: E501 - Retrieves the details of the product. # noqa: E501 + Retrieves the details of the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get_with_http_info(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -16740,7 +16774,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(self, cl number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Product, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(NodePool, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -16748,7 +16782,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(self, cl local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'node_pool_id' ] all_params.extend( [ @@ -16763,20 +16798,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(self, cl if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_product_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_product_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get`") # noqa: E501 + # verify the required parameter 'node_pool_id' is set + if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'node_pool_id' in local_var_params: + path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 query_params = [] @@ -16794,14 +16835,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(self, cl auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/product', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Product', # noqa: E501 + response_type='NodePool', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -16809,17 +16850,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(self, cl _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch # noqa: E501 - Delete the provision shard. # noqa: E501 + Updates the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param NodePool node_pool: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -16827,24 +16870,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete(self, cluste number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: NodePool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch # noqa: E501 - Delete the provision shard. # noqa: E501 + Updates the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch_with_http_info(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param NodePool node_pool: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -16854,7 +16899,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_in number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(NodePool, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -16862,7 +16907,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_in local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'node_pool_id', + 'node_pool' ] all_params.extend( [ @@ -16877,20 +16924,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_in if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch`") # noqa: E501 + # verify the required parameter 'node_pool_id' is set + if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'node_pool_id' in local_var_params: + path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 query_params = [] @@ -16900,22 +16953,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_in local_var_files = {} body_params = None + if 'node_pool' in local_var_params: + body_params = local_var_params['node_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='NodePool', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -16923,17 +16982,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_in _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get # noqa: E501 - Retrieves the details of the provision shard. # noqa: E501 + Retrieves the list of upgrade policies for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -16941,24 +17003,27 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get(self, cluster_i number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ProvisionShard + :return: InlineResponse20033 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get # noqa: E501 - Retrieves the details of the provision shard. # noqa: E501 + Retrieves the list of upgrade policies for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get_with_http_info(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -16968,7 +17033,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info( number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ProvisionShard, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20033, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -16976,7 +17041,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info( local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'node_pool_id', + 'page', + 'size' ] all_params.extend( [ @@ -16991,22 +17059,32 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info( if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get`") # noqa: E501 + # verify the required parameter 'node_pool_id' is set + if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'node_pool_id' in local_var_params: + path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -17022,14 +17100,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info( auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ProvisionShard', # noqa: E501 + response_type='InlineResponse20033', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -17037,18 +17115,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info( _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete # noqa: E501 - Updates the details of the provision shard. # noqa: E501 + Deletes the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param ProvisionShard provision_shard: + :param str node_pool_id: (required) + :param str node_pool_upgrade_policy_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -17056,25 +17135,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch(self, cluster number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ProvisionShard + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete_with_http_info(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete # noqa: E501 - Updates the details of the provision shard. # noqa: E501 + Deletes the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param ProvisionShard provision_shard: + :param str node_pool_id: (required) + :param str node_pool_upgrade_policy_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -17084,7 +17164,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_inf number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ProvisionShard, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -17093,7 +17173,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_inf all_params = [ 'cluster_id', - 'provision_shard' + 'node_pool_id', + 'node_pool_upgrade_policy_id' ] all_params.extend( [ @@ -17108,20 +17189,32 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_inf if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete`") # noqa: E501 + # verify the required parameter 'node_pool_id' is set + if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete`") # noqa: E501 + # verify the required parameter 'node_pool_upgrade_policy_id' is set + if self.api_client.client_side_validation and ('node_pool_upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'node_pool_id' in local_var_params: + path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 + if 'node_pool_upgrade_policy_id' in local_var_params: + path_params['node_pool_upgrade_policy_id'] = local_var_params['node_pool_upgrade_policy_id'] # noqa: E501 query_params = [] @@ -17131,28 +17224,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_inf local_var_files = {} body_params = None - if 'provision_shard' in local_var_params: - body_params = local_var_params['provision_shard'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies/{node_pool_upgrade_policy_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ProvisionShard', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -17160,17 +17247,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_inf _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_resources_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_resources_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get # noqa: E501 - Retrieves a list of resources for a cluster in error state # noqa: E501 + Retrieves the details of the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resources_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param str node_pool_upgrade_policy_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -17178,24 +17267,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_get(self, cluster_id, **k number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ClusterResources + :return: NodePoolUpgradePolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_resources_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get_with_http_info(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get # noqa: E501 - Retrieves a list of resources for a cluster in error state # noqa: E501 + Retrieves the details of the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param str node_pool_upgrade_policy_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -17205,7 +17296,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ClusterResources, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(NodePoolUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -17213,7 +17304,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(self, local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'node_pool_id', + 'node_pool_upgrade_policy_id' ] all_params.extend( [ @@ -17228,20 +17321,32 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_resources_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_resources_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get`") # noqa: E501 + # verify the required parameter 'node_pool_id' is set + if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get`") # noqa: E501 + # verify the required parameter 'node_pool_upgrade_policy_id' is set + if self.api_client.client_side_validation and ('node_pool_upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'node_pool_id' in local_var_params: + path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 + if 'node_pool_upgrade_policy_id' in local_var_params: + path_params['node_pool_upgrade_policy_id'] = local_var_params['node_pool_upgrade_policy_id'] # noqa: E501 query_params = [] @@ -17259,14 +17364,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(self, auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/resources', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies/{node_pool_upgrade_policy_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ClusterResources', # noqa: E501 + response_type='NodePoolUpgradePolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -17274,17 +17379,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch # noqa: E501 - Retrieves currently available cluster resources # noqa: E501 + Update the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param str node_pool_upgrade_policy_id: (required) + :param NodePoolUpgradePolicy node_pool_upgrade_policy: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -17292,24 +17400,27 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get(self, cluster_id number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ClusterResources + :return: NodePoolUpgradePolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch_with_http_info(self, cluster_id, node_pool_id, node_pool_upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch # noqa: E501 - Retrieves currently available cluster resources # noqa: E501 + Update the upgrade policy for the node pool. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch_with_http_info(cluster_id, node_pool_id, node_pool_upgrade_policy_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param str node_pool_upgrade_policy_id: (required) + :param NodePoolUpgradePolicy node_pool_upgrade_policy: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -17319,7 +17430,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(s number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ClusterResources, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(NodePoolUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -17327,7 +17438,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(s local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'node_pool_id', + 'node_pool_upgrade_policy_id', + 'node_pool_upgrade_policy' ] all_params.extend( [ @@ -17342,20 +17456,32 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(s if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch`") # noqa: E501 + # verify the required parameter 'node_pool_id' is set + if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch`") # noqa: E501 + # verify the required parameter 'node_pool_upgrade_policy_id' is set + if self.api_client.client_side_validation and ('node_pool_upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_node_pool_upgrade_policy_id_patch`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'node_pool_id' in local_var_params: + path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 + if 'node_pool_upgrade_policy_id' in local_var_params: + path_params['node_pool_upgrade_policy_id'] = local_var_params['node_pool_upgrade_policy_id'] # noqa: E501 query_params = [] @@ -17365,22 +17491,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(s local_var_files = {} body_params = None + if 'node_pool_upgrade_policy' in local_var_params: + body_params = local_var_params['node_pool_upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/resources/live', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies/{node_pool_upgrade_policy_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ClusterResources', # noqa: E501 + response_type='NodePoolUpgradePolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -17388,17 +17520,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(s _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_resume_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_resume_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post # noqa: E501 - Resumes from Hibernation. # noqa: E501 + Adds a new upgrade policy to the node pool of the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resume_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param NodePoolUpgradePolicy node_pool_upgrade_policy: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -17406,24 +17540,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resume_post(self, cluster_id, **kwa number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: NodePoolUpgradePolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post_with_http_info(cluster_id, node_pool_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_resume_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post_with_http_info(self, cluster_id, node_pool_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post # noqa: E501 - Resumes from Hibernation. # noqa: E501 + Adds a new upgrade policy to the node pool of the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post_with_http_info(cluster_id, node_pool_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param str node_pool_id: (required) + :param NodePoolUpgradePolicy node_pool_upgrade_policy: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -17433,7 +17569,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(self, cl number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(NodePoolUpgradePolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -17441,7 +17577,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(self, cl local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'node_pool_id', + 'node_pool_upgrade_policy' ] all_params.extend( [ @@ -17456,20 +17594,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(self, cl if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_resume_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_resume_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post`") # noqa: E501 + # verify the required parameter 'node_pool_id' is set + if self.api_client.client_side_validation and ('node_pool_id' not in local_var_params or # noqa: E501 + local_var_params['node_pool_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `node_pool_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_node_pool_id_upgrade_policies_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'node_pool_id' in local_var_params: + path_params['node_pool_id'] = local_var_params['node_pool_id'] # noqa: E501 query_params = [] @@ -17479,22 +17623,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(self, cl local_var_files = {} body_params = None + if 'node_pool_upgrade_policy' in local_var_params: + body_params = local_var_params['node_pool_upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/resume', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools/{node_pool_id}/upgrade_policies', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='NodePoolUpgradePolicy', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -17502,16 +17652,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(self, cl _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_status_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_status_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post # noqa: E501 + Adds a new node pool to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_status_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param NodePool node_pool: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -17519,23 +17671,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_status_get(self, cluster_id, **kwar number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ClusterStatus + :return: NodePool If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_status_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post # noqa: E501 + Adds a new node pool to the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) + :param NodePool node_pool: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -17545,7 +17699,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(self, clu number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ClusterStatus, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(NodePool, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -17553,7 +17707,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(self, clu local_var_params = locals() all_params = [ - 'cluster_id' + 'cluster_id', + 'node_pool' ] all_params.extend( [ @@ -17568,14 +17723,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(self, clu if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_status_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_status_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_node_pools_post`") # noqa: E501 collection_formats = {} @@ -17591,22 +17746,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(self, clu local_var_files = {} body_params = None + if 'node_pool' in local_var_params: + body_params = local_var_params['node_pool'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/status', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/node_pools', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ClusterStatus', # noqa: E501 + response_type='NodePool', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -17614,19 +17775,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(self, clu _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_patch(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_patch # noqa: E501 - Retrieves the list of operator roles. # noqa: E501 + Updates the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_patch(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items that will be contained in the returned page. + :param Cluster cluster: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -17634,26 +17794,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get(self, cluste number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20033 + :return: Cluster If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_patch # noqa: E501 - Retrieves the list of operator roles. # noqa: E501 + Updates the cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_patch_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items that will be contained in the returned page. + :param Cluster cluster: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -17663,7 +17822,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_in number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20033, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Cluster, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -17672,8 +17831,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_in all_params = [ 'cluster_id', - 'page', - 'size' + 'cluster' ] all_params.extend( [ @@ -17688,14 +17846,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_in if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_patch`") # noqa: E501 collection_formats = {} @@ -17704,10 +17862,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_in path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -17715,22 +17869,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_in local_var_files = {} body_params = None + if 'cluster' in local_var_params: + body_params = local_var_params['cluster'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20033', # noqa: E501 + response_type='Cluster', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -17738,18 +17898,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_in _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete(self, cluster_id, operator_iam_role_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_get # noqa: E501 - Deletes the operator role. # noqa: E501 + Retrieves the details of the product. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete(cluster_id, operator_iam_role_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str operator_iam_role_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -17757,25 +17916,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_rol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: Product If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete_with_http_info(cluster_id, operator_iam_role_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete_with_http_info(self, cluster_id, operator_iam_role_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_get # noqa: E501 - Deletes the operator role. # noqa: E501 + Retrieves the details of the product. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete_with_http_info(cluster_id, operator_iam_role_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str operator_iam_role_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -17785,7 +17943,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_rol number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(Product, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -17793,8 +17951,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_rol local_var_params = locals() all_params = [ - 'cluster_id', - 'operator_iam_role_id' + 'cluster_id' ] all_params.extend( [ @@ -17809,26 +17966,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_rol if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_product_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete`") # noqa: E501 - # verify the required parameter 'operator_iam_role_id' is set - if self.api_client.client_side_validation and ('operator_iam_role_id' not in local_var_params or # noqa: E501 - local_var_params['operator_iam_role_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `operator_iam_role_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_product_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'operator_iam_role_id' in local_var_params: - path_params['operator_iam_role_id'] = local_var_params['operator_iam_role_id'] # noqa: E501 query_params = [] @@ -17846,14 +17997,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_rol auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles/{operator_iam_role_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/product', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='Product', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -17861,18 +18012,21 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_rol _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get # noqa: E501 - Adds a new operator role to the cluster. # noqa: E501 + Retrieves the list of product minimal versions. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param OperatorIAMRole operator_iam_role: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -17880,25 +18034,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post(self, clust number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: OperatorIAMRole + :return: InlineResponse20034 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get # noqa: E501 - Adds a new operator role to the cluster. # noqa: E501 + Retrieves the list of product minimal versions. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param OperatorIAMRole operator_iam_role: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -17908,7 +18065,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_i number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(OperatorIAMRole, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20034, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -17917,7 +18074,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_i all_params = [ 'cluster_id', - 'operator_iam_role' + 'order', + 'page', + 'search', + 'size' ] all_params.extend( [ @@ -17932,14 +18092,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_i if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_get`") # noqa: E501 collection_formats = {} @@ -17948,6 +18108,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_i path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -17955,28 +18123,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_i local_var_files = {} body_params = None - if 'operator_iam_role' in local_var_params: - body_params = local_var_params['operator_iam_role'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/product/minimal_versions', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='OperatorIAMRole', # noqa: E501 + response_type='InlineResponse20034', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -17984,19 +18146,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_i _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get(self, cluster_id, minimal_version_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get # noqa: E501 - Retrieves the list of tuning configs. # noqa: E501 + Retrieves the details of the product minimal version. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get(cluster_id, minimal_version_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str minimal_version_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -18004,26 +18165,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get(self, cluster_id number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20034 + :return: ProductMinimalVersion If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get_with_http_info(cluster_id, minimal_version_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get_with_http_info(self, cluster_id, minimal_version_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get # noqa: E501 - Retrieves the list of tuning configs. # noqa: E501 + Retrieves the details of the product minimal version. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get_with_http_info(cluster_id, minimal_version_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param str minimal_version_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -18033,7 +18193,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(s number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20034, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ProductMinimalVersion, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -18042,8 +18202,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(s all_params = [ 'cluster_id', - 'page', - 'size' + 'minimal_version_id' ] all_params.extend( [ @@ -18058,26 +18217,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(s if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get`") # noqa: E501 + # verify the required parameter 'minimal_version_id' is set + if self.api_client.client_side_validation and ('minimal_version_id' not in local_var_params or # noqa: E501 + local_var_params['minimal_version_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `minimal_version_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_product_minimal_versions_minimal_version_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'minimal_version_id' in local_var_params: + path_params['minimal_version_id'] = local_var_params['minimal_version_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -18093,14 +18254,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(s auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/product/minimal_versions/{minimal_version_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20034', # noqa: E501 + response_type='ProductMinimalVersion', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -18108,18 +18269,21 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(s _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get # noqa: E501 - Adds a new tuning config to the cluster. # noqa: E501 + Retrieves the list of product technology previews. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param TuningConfig tuning_config: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -18127,25 +18291,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post(self, cluster_i number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: TuningConfig + :return: InlineResponse20035 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get # noqa: E501 - Adds a new tuning config to the cluster. # noqa: E501 + Retrieves the list of product technology previews. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param TuningConfig tuning_config: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -18155,7 +18322,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info( number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(TuningConfig, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20035, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -18164,7 +18331,10 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info( all_params = [ 'cluster_id', - 'tuning_config' + 'order', + 'page', + 'search', + 'size' ] all_params.extend( [ @@ -18179,14 +18349,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info( if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_get`") # noqa: E501 collection_formats = {} @@ -18195,6 +18365,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info( path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -18202,28 +18380,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info( local_var_files = {} body_params = None - if 'tuning_config' in local_var_params: - body_params = local_var_params['tuning_config'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/product/technology_previews', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TuningConfig', # noqa: E501 + response_type='InlineResponse20035', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -18231,18 +18403,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info( _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get(self, cluster_id, technology_preview_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get # noqa: E501 - Deletes the tuning config. # noqa: E501 + Retrieves the details of the product technology preview. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete(cluster_id, tuning_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get(cluster_id, technology_preview_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str tuning_config_id: (required) + :param str technology_preview_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -18250,25 +18422,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_del number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: ProductTechnologyPreview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete_with_http_info(cluster_id, tuning_config_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get_with_http_info(cluster_id, technology_preview_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete_with_http_info(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get_with_http_info(self, cluster_id, technology_preview_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get # noqa: E501 - Deletes the tuning config. # noqa: E501 + Retrieves the details of the product technology preview. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete_with_http_info(cluster_id, tuning_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get_with_http_info(cluster_id, technology_preview_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str tuning_config_id: (required) + :param str technology_preview_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -18278,7 +18450,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_del number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(ProductTechnologyPreview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -18287,7 +18459,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_del all_params = [ 'cluster_id', - 'tuning_config_id' + 'technology_preview_id' ] all_params.extend( [ @@ -18302,26 +18474,26 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_del if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete`") # noqa: E501 - # verify the required parameter 'tuning_config_id' is set - if self.api_client.client_side_validation and ('tuning_config_id' not in local_var_params or # noqa: E501 - local_var_params['tuning_config_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `tuning_config_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get`") # noqa: E501 + # verify the required parameter 'technology_preview_id' is set + if self.api_client.client_side_validation and ('technology_preview_id' not in local_var_params or # noqa: E501 + local_var_params['technology_preview_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `technology_preview_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_product_technology_previews_technology_preview_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'tuning_config_id' in local_var_params: - path_params['tuning_config_id'] = local_var_params['tuning_config_id'] # noqa: E501 + if 'technology_preview_id' in local_var_params: + path_params['technology_preview_id'] = local_var_params['technology_preview_id'] # noqa: E501 query_params = [] @@ -18339,14 +18511,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_del auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs/{tuning_config_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/product/technology_previews/{technology_preview_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='ProductTechnologyPreview', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -18354,18 +18526,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_del _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete # noqa: E501 - Retrieves the details of the tuning config. # noqa: E501 + Delete the provision shard. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get(cluster_id, tuning_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str tuning_config_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -18373,25 +18544,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: TuningConfig + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get_with_http_info(cluster_id, tuning_config_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get_with_http_info(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete # noqa: E501 - Retrieves the details of the tuning config. # noqa: E501 + Delete the provision shard. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get_with_http_info(cluster_id, tuning_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str tuning_config_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -18401,7 +18571,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(TuningConfig, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -18409,8 +18579,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get local_var_params = locals() all_params = [ - 'cluster_id', - 'tuning_config_id' + 'cluster_id' ] all_params.extend( [ @@ -18425,26 +18594,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get`") # noqa: E501 - # verify the required parameter 'tuning_config_id' is set - if self.api_client.client_side_validation and ('tuning_config_id' not in local_var_params or # noqa: E501 - local_var_params['tuning_config_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `tuning_config_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_delete`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'tuning_config_id' in local_var_params: - path_params['tuning_config_id'] = local_var_params['tuning_config_id'] # noqa: E501 query_params = [] @@ -18462,14 +18625,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs/{tuning_config_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TuningConfig', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -18477,19 +18640,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get # noqa: E501 - Updates the tuning config. # noqa: E501 + Retrieves the details of the provision shard. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch(cluster_id, tuning_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str tuning_config_id: (required) - :param TuningConfig tuning_config: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -18497,26 +18658,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_pat number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: TuningConfig + :return: ProvisionShard If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch_with_http_info(cluster_id, tuning_config_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch_with_http_info(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get # noqa: E501 - Updates the tuning config. # noqa: E501 + Retrieves the details of the provision shard. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch_with_http_info(cluster_id, tuning_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str tuning_config_id: (required) - :param TuningConfig tuning_config: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -18526,7 +18685,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_pat number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(TuningConfig, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ProvisionShard, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -18534,9 +18693,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_pat local_var_params = locals() all_params = [ - 'cluster_id', - 'tuning_config_id', - 'tuning_config' + 'cluster_id' ] all_params.extend( [ @@ -18551,26 +18708,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_pat if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch`") # noqa: E501 - # verify the required parameter 'tuning_config_id' is set - if self.api_client.client_side_validation and ('tuning_config_id' not in local_var_params or # noqa: E501 - local_var_params['tuning_config_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `tuning_config_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'tuning_config_id' in local_var_params: - path_params['tuning_config_id'] = local_var_params['tuning_config_id'] # noqa: E501 query_params = [] @@ -18580,28 +18731,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_pat local_var_files = {} body_params = None - if 'tuning_config' in local_var_params: - body_params = local_var_params['tuning_config'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs/{tuning_config_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TuningConfig', # noqa: E501 + response_type='ProvisionShard', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -18609,19 +18754,18 @@ def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_pat _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch # noqa: E501 - Retrieves the list of upgrade policies. # noqa: E501 + Updates the details of the provision shard. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param ProvisionShard provision_shard: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -18629,26 +18773,25 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get(self, cluster_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20035 + :return: ProvisionShard If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch # noqa: E501 - Retrieves the list of upgrade policies. # noqa: E501 + Updates the details of the provision shard. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param ProvisionShard provision_shard: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -18658,7 +18801,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20035, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ProvisionShard, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -18667,8 +18810,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info all_params = [ 'cluster_id', - 'page', - 'size' + 'provision_shard' ] all_params.extend( [ @@ -18683,14 +18825,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_provision_shard_patch`") # noqa: E501 collection_formats = {} @@ -18699,10 +18841,6 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -18710,22 +18848,28 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info local_var_files = {} body_params = None + if 'provision_shard' in local_var_params: + body_params = local_var_params['provision_shard'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/provision_shard', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20035', # noqa: E501 + response_type='ProvisionShard', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -18733,18 +18877,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_resources_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_resources_get # noqa: E501 - Adds a new upgrade policy to the cluster. # noqa: E501 + Retrieves a list of resources for a cluster in error state # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resources_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param UpgradePolicy upgrade_policy: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -18752,25 +18895,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post(self, cluster number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: UpgradePolicy + :return: ClusterResources If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_resources_get # noqa: E501 - Adds a new upgrade policy to the cluster. # noqa: E501 + Retrieves a list of resources for a cluster in error state # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_info(cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resources_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param UpgradePolicy upgrade_policy: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -18780,7 +18922,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_inf number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(UpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ClusterResources, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -18788,8 +18930,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_inf local_var_params = locals() all_params = [ - 'cluster_id', - 'upgrade_policy' + 'cluster_id' ] all_params.extend( [ @@ -18804,14 +18945,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_inf if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_resources_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_resources_get`") # noqa: E501 collection_formats = {} @@ -18827,28 +18968,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_inf local_var_files = {} body_params = None - if 'upgrade_policy' in local_var_params: - body_params = local_var_params['upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies', 'POST', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/resources', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='UpgradePolicy', # noqa: E501 + response_type='ClusterResources', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -18856,18 +18991,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_inf _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get # noqa: E501 - Deletes the upgrade policy. # noqa: E501 + Retrieves currently available cluster resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str upgrade_policy_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -18875,25 +19009,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: ClusterResources If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get # noqa: E501 - Deletes the upgrade policy. # noqa: E501 + Retrieves currently available cluster resources # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str upgrade_policy_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -18903,7 +19036,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(ClusterResources, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -18911,8 +19044,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ local_var_params = locals() all_params = [ - 'cluster_id', - 'upgrade_policy_id' + 'cluster_id' ] all_params.extend( [ @@ -18927,26 +19059,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete`") # noqa: E501 - # verify the required parameter 'upgrade_policy_id' is set - if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_resources_live_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'upgrade_policy_id' in local_var_params: - path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 query_params = [] @@ -18964,14 +19090,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}', 'DELETE', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/resources/live', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='ClusterResources', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -18979,18 +19105,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_resume_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_resume_post # noqa: E501 - Retrieves the details of the upgrade policy. # noqa: E501 + Resumes from Hibernation. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resume_post(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str upgrade_policy_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -18998,25 +19123,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: UpgradePolicy + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_resume_post # noqa: E501 - Retrieves the details of the upgrade policy. # noqa: E501 + Resumes from Hibernation. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_resume_post_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str upgrade_policy_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -19026,7 +19150,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(UpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -19034,8 +19158,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ local_var_params = locals() all_params = [ - 'cluster_id', - 'upgrade_policy_id' + 'cluster_id' ] all_params.extend( [ @@ -19050,26 +19173,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_resume_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get`") # noqa: E501 - # verify the required parameter 'upgrade_policy_id' is set - if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_resume_post`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'upgrade_policy_id' in local_var_params: - path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 query_params = [] @@ -19087,14 +19204,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}', 'GET', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/resume', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='UpgradePolicy', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -19102,19 +19219,16 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_status_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_status_get # noqa: E501 - Update the upgrade policy. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_status_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str upgrade_policy_id: (required) - :param UpgradePolicy upgrade_policy: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -19122,26 +19236,23 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: UpgradePolicy + :return: ClusterStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_status_get # noqa: E501 - Update the upgrade policy. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_status_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str upgrade_policy_id: (required) - :param UpgradePolicy upgrade_policy: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -19151,7 +19262,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(UpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ClusterStatus, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -19159,9 +19270,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ local_var_params = locals() all_params = [ - 'cluster_id', - 'upgrade_policy_id', - 'upgrade_policy' + 'cluster_id' ] all_params.extend( [ @@ -19176,26 +19285,20 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch" % key + " to method api_clusters_mgmt_v1_clusters_cluster_id_status_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'cluster_id' is set if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch`") # noqa: E501 - # verify the required parameter 'upgrade_policy_id' is set - if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch`") # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_status_get`") # noqa: E501 collection_formats = {} path_params = {} if 'cluster_id' in local_var_params: path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'upgrade_policy_id' in local_var_params: - path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 query_params = [] @@ -19205,28 +19308,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ local_var_files = {} body_params = None - if 'upgrade_policy' in local_var_params: - body_params = local_var_params['upgrade_policy'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}', 'PATCH', + '/api/clusters_mgmt/v1/clusters/{cluster_id}/status', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='UpgradePolicy', # noqa: E501 + response_type='ClusterStatus', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -19234,18 +19331,19 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get # noqa: E501 - Retrieves the details of the upgrade policy state. # noqa: E501 + Retrieves the list of operator roles. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str upgrade_policy_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -19253,25 +19351,2713 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: UpgradePolicyState + :return: InlineResponse20036 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_info(cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get # noqa: E501 + def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get # noqa: E501 - Retrieves the details of the upgrade policy state. # noqa: E501 + Retrieves the list of operator roles. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get_with_http_info(cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str cluster_id: (required) - :param str upgrade_policy_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items that will be contained in the returned page. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse20036, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'page', + 'size' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + + query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20036', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete(self, cluster_id, operator_iam_role_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete # noqa: E501 + + Deletes the operator role. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete(cluster_id, operator_iam_role_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str operator_iam_role_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete_with_http_info(cluster_id, operator_iam_role_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete_with_http_info(self, cluster_id, operator_iam_role_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete # noqa: E501 + + Deletes the operator role. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete_with_http_info(cluster_id, operator_iam_role_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str operator_iam_role_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'operator_iam_role_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete`") # noqa: E501 + # verify the required parameter 'operator_iam_role_id' is set + if self.api_client.client_side_validation and ('operator_iam_role_id' not in local_var_params or # noqa: E501 + local_var_params['operator_iam_role_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `operator_iam_role_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_operator_iam_role_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'operator_iam_role_id' in local_var_params: + path_params['operator_iam_role_id'] = local_var_params['operator_iam_role_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles/{operator_iam_role_id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post # noqa: E501 + + Adds a new operator role to the cluster. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param OperatorIAMRole operator_iam_role: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: OperatorIAMRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post # noqa: E501 + + Adds a new operator role to the cluster. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post_with_http_info(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param OperatorIAMRole operator_iam_role: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(OperatorIAMRole, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'operator_iam_role' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_sts_operator_roles_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'operator_iam_role' in local_var_params: + body_params = local_var_params['operator_iam_role'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/sts_operator_roles', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='OperatorIAMRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: StsSupportJumpRole + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get_with_http_info(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(StsSupportJumpRole, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_sts_support_jump_role_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/sts_support_jump_role', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StsSupportJumpRole', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get # noqa: E501 + + Retrieves the list of tuning configs. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse20037 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get # noqa: E501 + + Retrieves the list of tuning configs. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get_with_http_info(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse20037, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'page', + 'size' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + + query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20037', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post # noqa: E501 + + Adds a new tuning config to the cluster. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param TuningConfig tuning_config: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: TuningConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post # noqa: E501 + + Adds a new tuning config to the cluster. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post_with_http_info(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param TuningConfig tuning_config: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(TuningConfig, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'tuning_config' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'tuning_config' in local_var_params: + body_params = local_var_params['tuning_config'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TuningConfig', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete # noqa: E501 + + Deletes the tuning config. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete(cluster_id, tuning_config_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str tuning_config_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete_with_http_info(cluster_id, tuning_config_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete_with_http_info(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete # noqa: E501 + + Deletes the tuning config. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete_with_http_info(cluster_id, tuning_config_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str tuning_config_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'tuning_config_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete`") # noqa: E501 + # verify the required parameter 'tuning_config_id' is set + if self.api_client.client_side_validation and ('tuning_config_id' not in local_var_params or # noqa: E501 + local_var_params['tuning_config_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `tuning_config_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'tuning_config_id' in local_var_params: + path_params['tuning_config_id'] = local_var_params['tuning_config_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs/{tuning_config_id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get # noqa: E501 + + Retrieves the details of the tuning config. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get(cluster_id, tuning_config_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str tuning_config_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: TuningConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get_with_http_info(cluster_id, tuning_config_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get_with_http_info(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get # noqa: E501 + + Retrieves the details of the tuning config. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get_with_http_info(cluster_id, tuning_config_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str tuning_config_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(TuningConfig, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'tuning_config_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get`") # noqa: E501 + # verify the required parameter 'tuning_config_id' is set + if self.api_client.client_side_validation and ('tuning_config_id' not in local_var_params or # noqa: E501 + local_var_params['tuning_config_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `tuning_config_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'tuning_config_id' in local_var_params: + path_params['tuning_config_id'] = local_var_params['tuning_config_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs/{tuning_config_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TuningConfig', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch # noqa: E501 + + Updates the tuning config. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch(cluster_id, tuning_config_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str tuning_config_id: (required) + :param TuningConfig tuning_config: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: TuningConfig + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch_with_http_info(cluster_id, tuning_config_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch_with_http_info(self, cluster_id, tuning_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch # noqa: E501 + + Updates the tuning config. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch_with_http_info(cluster_id, tuning_config_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str tuning_config_id: (required) + :param TuningConfig tuning_config: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(TuningConfig, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'tuning_config_id', + 'tuning_config' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch`") # noqa: E501 + # verify the required parameter 'tuning_config_id' is set + if self.api_client.client_side_validation and ('tuning_config_id' not in local_var_params or # noqa: E501 + local_var_params['tuning_config_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `tuning_config_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_tuning_configs_tuning_config_id_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'tuning_config_id' in local_var_params: + path_params['tuning_config_id'] = local_var_params['tuning_config_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'tuning_config' in local_var_params: + body_params = local_var_params['tuning_config'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/tuning_configs/{tuning_config_id}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TuningConfig', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get # noqa: E501 + + Retrieves the list of upgrade policies. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse20038 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get # noqa: E501 + + Retrieves the list of upgrade policies. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get_with_http_info(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse20038, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'page', + 'size' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + + query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20038', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post # noqa: E501 + + Adds a new upgrade policy to the cluster. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param UpgradePolicy upgrade_policy: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: UpgradePolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_info(cluster_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post # noqa: E501 + + Adds a new upgrade policy to the cluster. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post_with_http_info(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param UpgradePolicy upgrade_policy: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(UpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'upgrade_policy' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'upgrade_policy' in local_var_params: + body_params = local_var_params['upgrade_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UpgradePolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete # noqa: E501 + + Deletes the upgrade policy. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete # noqa: E501 + + Deletes the upgrade policy. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'upgrade_policy_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete`") # noqa: E501 + # verify the required parameter 'upgrade_policy_id' is set + if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'upgrade_policy_id' in local_var_params: + path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get # noqa: E501 + + Retrieves the details of the upgrade policy. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: UpgradePolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get # noqa: E501 + + Retrieves the details of the upgrade policy. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(UpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'upgrade_policy_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get`") # noqa: E501 + # verify the required parameter 'upgrade_policy_id' is set + if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'upgrade_policy_id' in local_var_params: + path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UpgradePolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch # noqa: E501 + + Update the upgrade policy. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param UpgradePolicy upgrade_policy: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: UpgradePolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch # noqa: E501 + + Update the upgrade policy. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param UpgradePolicy upgrade_policy: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(UpgradePolicy, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'upgrade_policy_id', + 'upgrade_policy' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch`") # noqa: E501 + # verify the required parameter 'upgrade_policy_id' is set + if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'upgrade_policy_id' in local_var_params: + path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'upgrade_policy' in local_var_params: + body_params = local_var_params['upgrade_policy'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UpgradePolicy', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get # noqa: E501 + + Retrieves the details of the upgrade policy state. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: UpgradePolicyState + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get # noqa: E501 + + Retrieves the details of the upgrade policy state. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(UpgradePolicyState, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'upgrade_policy_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get`") # noqa: E501 + # verify the required parameter 'upgrade_policy_id' is set + if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'upgrade_policy_id' in local_var_params: + path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}/state', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UpgradePolicyState', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch # noqa: E501 + + Update the upgrade policy state. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param UpgradePolicyState upgrade_policy_state: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: UpgradePolicyState + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch # noqa: E501 + + Update the upgrade policy state. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param str upgrade_policy_id: (required) + :param UpgradePolicyState upgrade_policy_state: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(UpgradePolicyState, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id', + 'upgrade_policy_id', + 'upgrade_policy_state' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch`") # noqa: E501 + # verify the required parameter 'upgrade_policy_id' is set + if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 + local_var_params['upgrade_policy_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + if 'upgrade_policy_id' in local_var_params: + path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'upgrade_policy_state' in local_var_params: + body_params = local_var_params['upgrade_policy_state'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}/state', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='UpgradePolicyState', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_cluster_id_vpc_get(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_vpc_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_vpc_get(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: CloudVPC + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_cluster_id_vpc_get_with_http_info(cluster_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_cluster_id_vpc_get_with_http_info(self, cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_cluster_id_vpc_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_vpc_get_with_http_info(cluster_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str cluster_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(CloudVPC, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_cluster_id_vpc_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'cluster_id' is set + if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 + local_var_params['cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_vpc_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'cluster_id' in local_var_params: + path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters/{cluster_id}/vpc', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CloudVPC', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_get # noqa: E501 + + Retrieves the list of clusters. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_get(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to sort the clusters descending by region identifier the value should be: ```sql region.id desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse20012 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_get_with_http_info(**kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_get # noqa: E501 + + Retrieves the list of clusters. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to sort the clusters descending by region identifier the value should be: ```sql region.id desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse20012, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'order', + 'page', + 'search', + 'size' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20012', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_clusters_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_post # noqa: E501 + + Provision a new cluster and add it to the collection of clusters. See the `register_cluster` method for adding an existing cluster. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_post(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param Cluster cluster: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Cluster + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_clusters_post_with_http_info(**kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_clusters_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_clusters_post # noqa: E501 + + Provision a new cluster and add it to the collection of clusters. See the `register_cluster` method for adding an existing cluster. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_clusters_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param Cluster cluster: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(Cluster, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'cluster' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_clusters_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'cluster' in local_var_params: + body_params = local_var_params['cluster'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/clusters', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Cluster', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete(self, dns_domain_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete # noqa: E501 + + Delete the DNS domain. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete(dns_domain_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str dns_domain_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(dns_domain_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(self, dns_domain_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete # noqa: E501 + + Delete the DNS domain. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(dns_domain_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str dns_domain_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'dns_domain_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_domain_id' is set + if self.api_client.client_side_validation and ('dns_domain_id' not in local_var_params or # noqa: E501 + local_var_params['dns_domain_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_domain_id` when calling `api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'dns_domain_id' in local_var_params: + path_params['dns_domain_id'] = local_var_params['dns_domain_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/dns_domains/{dns_domain_id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get(self, dns_domain_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_dns_domain_id_get # noqa: E501 + + Retrieves the details of the DNS domain. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_get(dns_domain_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str dns_domain_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: DNSDomain + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(dns_domain_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(self, dns_domain_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_dns_domain_id_get # noqa: E501 + + Retrieves the details of the DNS domain. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(dns_domain_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str dns_domain_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(DNSDomain, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'dns_domain_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_dns_domains_dns_domain_id_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_domain_id' is set + if self.api_client.client_side_validation and ('dns_domain_id' not in local_var_params or # noqa: E501 + local_var_params['dns_domain_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_domain_id` when calling `api_clusters_mgmt_v1_dns_domains_dns_domain_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'dns_domain_id' in local_var_params: + path_params['dns_domain_id'] = local_var_params['dns_domain_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/dns_domains/{dns_domain_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DNSDomain', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch(self, dns_domain_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch # noqa: E501 + + Updates the details of the DNS domain. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch(dns_domain_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str dns_domain_id: (required) + :param DNSDomain dns_domain: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: DNSDomain + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(dns_domain_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(self, dns_domain_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch # noqa: E501 + + Updates the details of the DNS domain. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(dns_domain_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str dns_domain_id: (required) + :param DNSDomain dns_domain: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(DNSDomain, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'dns_domain_id', + 'dns_domain' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'dns_domain_id' is set + if self.api_client.client_side_validation and ('dns_domain_id' not in local_var_params or # noqa: E501 + local_var_params['dns_domain_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `dns_domain_id` when calling `api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'dns_domain_id' in local_var_params: + path_params['dns_domain_id'] = local_var_params['dns_domain_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'dns_domain' in local_var_params: + body_params = local_var_params['dns_domain'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/dns_domains/{dns_domain_id}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DNSDomain', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_dns_domains_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_dns_domains_get(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the dns domain instead of the names of the columns of a table. For example, in order to retrieve all the dns domains with a ID starting with `02a5` should be: ```sql id like '02a5%' ``` If the parameter isn't provided, or if the value is empty, then all the dns domains that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse20039 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_dns_domains_get_with_http_info(**kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_dns_domains_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_dns_domains_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the dns domain instead of the names of the columns of a table. For example, in order to retrieve all the dns domains with a ID starting with `02a5` should be: ```sql id like '02a5%' ``` If the parameter isn't provided, or if the value is empty, then all the dns domains that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -19281,7 +22067,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(UpgradePolicyState, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20039, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -19289,8 +22075,9 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ local_var_params = locals() all_params = [ - 'cluster_id', - 'upgrade_policy_id' + 'page', + 'search', + 'size' ] all_params.extend( [ @@ -19305,28 +22092,22 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get" % key + " to method api_clusters_mgmt_v1_dns_domains_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'cluster_id' is set - if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 - local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get`") # noqa: E501 - # verify the required parameter 'upgrade_policy_id' is set - if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_get`") # noqa: E501 collection_formats = {} path_params = {} - if 'cluster_id' in local_var_params: - path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'upgrade_policy_id' in local_var_params: - path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -19342,14 +22123,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}/state', 'GET', + '/api/clusters_mgmt/v1/dns_domains', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='UpgradePolicyState', # noqa: E501 + response_type='InlineResponse20039', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -19357,19 +22138,17 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch # noqa: E501 + def api_clusters_mgmt_v1_dns_domains_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_post # noqa: E501 - Update the upgrade policy state. # noqa: E501 + Adds a DNS domain. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_dns_domains_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str cluster_id: (required) - :param str upgrade_policy_id: (required) - :param UpgradePolicyState upgrade_policy_state: + :param DNSDomain dns_domain: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -19377,26 +22156,24 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: UpgradePolicyState + :return: DNSDomain If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch_with_http_info(cluster_id, upgrade_policy_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_dns_domains_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch_with_http_info(self, cluster_id, upgrade_policy_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch # noqa: E501 + def api_clusters_mgmt_v1_dns_domains_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_dns_domains_post # noqa: E501 - Update the upgrade policy state. # noqa: E501 + Adds a DNS domain. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch_with_http_info(cluster_id, upgrade_policy_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_dns_domains_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str cluster_id: (required) - :param str upgrade_policy_id: (required) - :param UpgradePolicyState upgrade_policy_state: + :param DNSDomain dns_domain: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -19406,7 +22183,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(UpgradePolicyState, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(DNSDomain, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -19414,9 +22191,7 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ local_var_params = locals() all_params = [ - 'cluster_id', - 'upgrade_policy_id', - 'upgrade_policy_state' + 'dns_domain' ] all_params.extend( [ @@ -19431,26 +22206,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch" % key + " to method api_clusters_mgmt_v1_dns_domains_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'cluster_id' is set - if self.api_client.client_side_validation and ('cluster_id' not in local_var_params or # noqa: E501 - local_var_params['cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `cluster_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch`") # noqa: E501 - # verify the required parameter 'upgrade_policy_id' is set - if self.api_client.client_side_validation and ('upgrade_policy_id' not in local_var_params or # noqa: E501 - local_var_params['upgrade_policy_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `upgrade_policy_id` when calling `api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_state_patch`") # noqa: E501 collection_formats = {} path_params = {} - if 'cluster_id' in local_var_params: - path_params['cluster_id'] = local_var_params['cluster_id'] # noqa: E501 - if 'upgrade_policy_id' in local_var_params: - path_params['upgrade_policy_id'] = local_var_params['upgrade_policy_id'] # noqa: E501 query_params = [] @@ -19460,8 +22223,8 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ local_var_files = {} body_params = None - if 'upgrade_policy_state' in local_var_params: - body_params = local_var_params['upgrade_policy_state'] + if 'dns_domain' in local_var_params: + body_params = local_var_params['dns_domain'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -19474,14 +22237,14 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters/{cluster_id}/upgrade_policies/{upgrade_policy_id}/state', 'PATCH', + '/api/clusters_mgmt/v1/dns_domains', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='UpgradePolicyState', # noqa: E501 + response_type='DNSDomain', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -19489,20 +22252,16 @@ def api_clusters_mgmt_v1_clusters_cluster_id_upgrade_policies_upgrade_policy_id_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_get # noqa: E501 + def api_clusters_mgmt_v1_environment_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_environment_get # noqa: E501 - Retrieves the list of clusters. # noqa: E501 + Retrieves the details of the environment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_environment_get(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to sort the clusters descending by region identifier the value should be: ```sql region.id desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -19510,27 +22269,23 @@ def api_clusters_mgmt_v1_clusters_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20011 + :return: Environment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_environment_get_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_get # noqa: E501 + def api_clusters_mgmt_v1_environment_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_environment_get # noqa: E501 - Retrieves the list of clusters. # noqa: E501 + Retrieves the details of the environment. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_environment_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to sort the clusters descending by region identifier the value should be: ```sql region.id desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the cluster instead of the names of the columns of a table. For example, in order to retrieve all the clusters with a name starting with `my` in the `us-east-1` region the value should be: ```sql name like 'my%' and region.id = 'us-east-1' ``` If the parameter isn't provided, or if the value is empty, then all the clusters that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -19540,7 +22295,7 @@ def api_clusters_mgmt_v1_clusters_get_with_http_info(self, **kwargs): # noqa: E number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20011, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Environment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -19548,10 +22303,6 @@ def api_clusters_mgmt_v1_clusters_get_with_http_info(self, **kwargs): # noqa: E local_var_params = locals() all_params = [ - 'order', - 'page', - 'search', - 'size' ] all_params.extend( [ @@ -19566,7 +22317,7 @@ def api_clusters_mgmt_v1_clusters_get_with_http_info(self, **kwargs): # noqa: E if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_get" % key + " to method api_clusters_mgmt_v1_environment_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -19576,14 +22327,6 @@ def api_clusters_mgmt_v1_clusters_get_with_http_info(self, **kwargs): # noqa: E path_params = {} query_params = [] - if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 - query_params.append(('order', local_var_params['order'])) # noqa: E501 - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 - query_params.append(('search', local_var_params['search'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -19599,14 +22342,14 @@ def api_clusters_mgmt_v1_clusters_get_with_http_info(self, **kwargs): # noqa: E auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters', 'GET', + '/api/clusters_mgmt/v1/environment', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20011', # noqa: E501 + response_type='Environment', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -19614,17 +22357,17 @@ def api_clusters_mgmt_v1_clusters_get_with_http_info(self, **kwargs): # noqa: E _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_clusters_post(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_post # noqa: E501 + def api_clusters_mgmt_v1_environment_patch(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_environment_patch # noqa: E501 - Provision a new cluster and add it to the collection of clusters. See the `register_cluster` method for adding an existing cluster. # noqa: E501 + Updates the environment. Attributes that can be updated are: - `last_upgrade_available_check` - `last_limited_support_check` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_post(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_environment_patch(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param Cluster cluster: + :param Environment environment: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -19632,24 +22375,24 @@ def api_clusters_mgmt_v1_clusters_post(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Cluster + :return: Environment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_clusters_post_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_environment_patch_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_clusters_post_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_clusters_post # noqa: E501 + def api_clusters_mgmt_v1_environment_patch_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_environment_patch # noqa: E501 - Provision a new cluster and add it to the collection of clusters. See the `register_cluster` method for adding an existing cluster. # noqa: E501 + Updates the environment. Attributes that can be updated are: - `last_upgrade_available_check` - `last_limited_support_check` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_clusters_post_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_environment_patch_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param Cluster cluster: + :param Environment environment: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -19659,7 +22402,7 @@ def api_clusters_mgmt_v1_clusters_post_with_http_info(self, **kwargs): # noqa: number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Cluster, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Environment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -19667,7 +22410,7 @@ def api_clusters_mgmt_v1_clusters_post_with_http_info(self, **kwargs): # noqa: local_var_params = locals() all_params = [ - 'cluster' + 'environment' ] all_params.extend( [ @@ -19682,7 +22425,7 @@ def api_clusters_mgmt_v1_clusters_post_with_http_info(self, **kwargs): # noqa: if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_clusters_post" % key + " to method api_clusters_mgmt_v1_environment_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -19699,8 +22442,8 @@ def api_clusters_mgmt_v1_clusters_post_with_http_info(self, **kwargs): # noqa: local_var_files = {} body_params = None - if 'cluster' in local_var_params: - body_params = local_var_params['cluster'] + if 'environment' in local_var_params: + body_params = local_var_params['environment'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -19713,14 +22456,14 @@ def api_clusters_mgmt_v1_clusters_post_with_http_info(self, **kwargs): # noqa: auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/clusters', 'POST', + '/api/clusters_mgmt/v1/environment', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Cluster', # noqa: E501 + response_type='Environment', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -19728,17 +22471,17 @@ def api_clusters_mgmt_v1_clusters_post_with_http_info(self, **kwargs): # noqa: _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete(self, dns_domain_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete # noqa: E501 + def api_clusters_mgmt_v1_events_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_events_post # noqa: E501 - Delete the DNS domain. # noqa: E501 + Adds a new event to be tracked. When sending a new event request, it gets tracked in Prometheus, Pendo, CloudWatch, or whichever analytics client is configured as part of clusters service. This allows for reporting on events that happen outside of a regular API request, but are found to be useful for understanding customer needs and possible blockers. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete(dns_domain_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_events_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str dns_domain_id: (required) + :param Event event: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -19746,24 +22489,24 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete(self, dns_domain_id, * number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(dns_domain_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_events_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(self, dns_domain_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete # noqa: E501 + def api_clusters_mgmt_v1_events_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_events_post # noqa: E501 - Delete the DNS domain. # noqa: E501 + Adds a new event to be tracked. When sending a new event request, it gets tracked in Prometheus, Pendo, CloudWatch, or whichever analytics client is configured as part of clusters service. This allows for reporting on events that happen outside of a regular API request, but are found to be useful for understanding customer needs and possible blockers. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(dns_domain_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_events_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str dns_domain_id: (required) + :param Event event: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -19773,7 +22516,7 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(self, d number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(Event, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -19781,7 +22524,7 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(self, d local_var_params = locals() all_params = [ - 'dns_domain_id' + 'event' ] all_params.extend( [ @@ -19796,20 +22539,14 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(self, d if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete" % key + " to method api_clusters_mgmt_v1_events_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'dns_domain_id' is set - if self.api_client.client_side_validation and ('dns_domain_id' not in local_var_params or # noqa: E501 - local_var_params['dns_domain_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `dns_domain_id` when calling `api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete`") # noqa: E501 collection_formats = {} path_params = {} - if 'dns_domain_id' in local_var_params: - path_params['dns_domain_id'] = local_var_params['dns_domain_id'] # noqa: E501 query_params = [] @@ -19819,22 +22556,28 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(self, d local_var_files = {} body_params = None + if 'event' in local_var_params: + body_params = local_var_params['event'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/dns_domains/{dns_domain_id}', 'DELETE', + '/api/clusters_mgmt/v1/events', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='Event', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -19842,17 +22585,17 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_delete_with_http_info(self, d _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get(self, dns_domain_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_dns_domain_id_get # noqa: E501 + def api_clusters_mgmt_v1_flavours_flavour_id_get(self, flavour_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_flavours_flavour_id_get # noqa: E501 - Retrieves the details of the DNS domain. # noqa: E501 + Retrieves the details of the cluster flavour. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_get(dns_domain_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_flavours_flavour_id_get(flavour_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str dns_domain_id: (required) + :param str flavour_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -19860,24 +22603,24 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get(self, dns_domain_id, **kw number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: DNSDomain + :return: Flavour If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(dns_domain_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(flavour_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(self, dns_domain_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_dns_domain_id_get # noqa: E501 + def api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(self, flavour_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_flavours_flavour_id_get # noqa: E501 - Retrieves the details of the DNS domain. # noqa: E501 + Retrieves the details of the cluster flavour. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(dns_domain_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(flavour_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str dns_domain_id: (required) + :param str flavour_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -19887,7 +22630,7 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(self, dns_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(DNSDomain, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Flavour, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -19895,7 +22638,7 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(self, dns_ local_var_params = locals() all_params = [ - 'dns_domain_id' + 'flavour_id' ] all_params.extend( [ @@ -19910,20 +22653,20 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(self, dns_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_dns_domains_dns_domain_id_get" % key + " to method api_clusters_mgmt_v1_flavours_flavour_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'dns_domain_id' is set - if self.api_client.client_side_validation and ('dns_domain_id' not in local_var_params or # noqa: E501 - local_var_params['dns_domain_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `dns_domain_id` when calling `api_clusters_mgmt_v1_dns_domains_dns_domain_id_get`") # noqa: E501 + # verify the required parameter 'flavour_id' is set + if self.api_client.client_side_validation and ('flavour_id' not in local_var_params or # noqa: E501 + local_var_params['flavour_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `flavour_id` when calling `api_clusters_mgmt_v1_flavours_flavour_id_get`") # noqa: E501 collection_formats = {} path_params = {} - if 'dns_domain_id' in local_var_params: - path_params['dns_domain_id'] = local_var_params['dns_domain_id'] # noqa: E501 + if 'flavour_id' in local_var_params: + path_params['flavour_id'] = local_var_params['flavour_id'] # noqa: E501 query_params = [] @@ -19941,14 +22684,14 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(self, dns_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/dns_domains/{dns_domain_id}', 'GET', + '/api/clusters_mgmt/v1/flavours/{flavour_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DNSDomain', # noqa: E501 + response_type='Flavour', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -19956,18 +22699,18 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_get_with_http_info(self, dns_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch(self, dns_domain_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch # noqa: E501 + def api_clusters_mgmt_v1_flavours_flavour_id_patch(self, flavour_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_flavours_flavour_id_patch # noqa: E501 - Updates the details of the DNS domain. # noqa: E501 + Updates the flavour. Attributes that can be updated are: - `aws.infra_volume` - `aws.infra_instance_type` - `gcp.infra_instance_type` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch(dns_domain_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_flavours_flavour_id_patch(flavour_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str dns_domain_id: (required) - :param DNSDomain dns_domain: + :param str flavour_id: (required) + :param Flavour flavour: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -19975,25 +22718,25 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch(self, dns_domain_id, ** number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: DNSDomain + :return: Flavour If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(dns_domain_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(flavour_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(self, dns_domain_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch # noqa: E501 + def api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(self, flavour_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_flavours_flavour_id_patch # noqa: E501 - Updates the details of the DNS domain. # noqa: E501 + Updates the flavour. Attributes that can be updated are: - `aws.infra_volume` - `aws.infra_instance_type` - `gcp.infra_instance_type` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(dns_domain_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(flavour_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str dns_domain_id: (required) - :param DNSDomain dns_domain: + :param str flavour_id: (required) + :param Flavour flavour: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -20003,7 +22746,7 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(self, dn number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(DNSDomain, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Flavour, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -20011,8 +22754,8 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(self, dn local_var_params = locals() all_params = [ - 'dns_domain_id', - 'dns_domain' + 'flavour_id', + 'flavour' ] all_params.extend( [ @@ -20027,20 +22770,20 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(self, dn if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch" % key + " to method api_clusters_mgmt_v1_flavours_flavour_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'dns_domain_id' is set - if self.api_client.client_side_validation and ('dns_domain_id' not in local_var_params or # noqa: E501 - local_var_params['dns_domain_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `dns_domain_id` when calling `api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch`") # noqa: E501 + # verify the required parameter 'flavour_id' is set + if self.api_client.client_side_validation and ('flavour_id' not in local_var_params or # noqa: E501 + local_var_params['flavour_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `flavour_id` when calling `api_clusters_mgmt_v1_flavours_flavour_id_patch`") # noqa: E501 collection_formats = {} path_params = {} - if 'dns_domain_id' in local_var_params: - path_params['dns_domain_id'] = local_var_params['dns_domain_id'] # noqa: E501 + if 'flavour_id' in local_var_params: + path_params['flavour_id'] = local_var_params['flavour_id'] # noqa: E501 query_params = [] @@ -20050,8 +22793,8 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(self, dn local_var_files = {} body_params = None - if 'dns_domain' in local_var_params: - body_params = local_var_params['dns_domain'] + if 'flavour' in local_var_params: + body_params = local_var_params['flavour'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -20064,14 +22807,14 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(self, dn auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/dns_domains/{dns_domain_id}', 'PATCH', + '/api/clusters_mgmt/v1/flavours/{flavour_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DNSDomain', # noqa: E501 + response_type='Flavour', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -20079,17 +22822,18 @@ def api_clusters_mgmt_v1_dns_domains_dns_domain_id_patch_with_http_info(self, dn _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_dns_domains_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_get # noqa: E501 + def api_clusters_mgmt_v1_flavours_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_flavours_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_flavours_get(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to sort the flavours descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the dns domain instead of the names of the columns of a table. For example, in order to retrieve all the dns domains with a ID starting with `02a5` should be: ```sql id like '02a5%' ``` If the parameter isn't provided, or if the value is empty, then all the dns domains that the user has permission to see will be returned. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to retrieve all the flavours with a name starting with `my`the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the flavours that the user has permission to see will be returned. :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response @@ -20098,24 +22842,25 @@ def api_clusters_mgmt_v1_dns_domains_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20036 + :return: InlineResponse20040 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_dns_domains_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_flavours_get_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_dns_domains_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_get # noqa: E501 + def api_clusters_mgmt_v1_flavours_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_flavours_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_flavours_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to sort the flavours descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the dns domain instead of the names of the columns of a table. For example, in order to retrieve all the dns domains with a ID starting with `02a5` should be: ```sql id like '02a5%' ``` If the parameter isn't provided, or if the value is empty, then all the dns domains that the user has permission to see will be returned. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to retrieve all the flavours with a name starting with `my`the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the flavours that the user has permission to see will be returned. :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers @@ -20126,7 +22871,7 @@ def api_clusters_mgmt_v1_dns_domains_get_with_http_info(self, **kwargs): # noqa number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20036, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20040, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -20134,6 +22879,7 @@ def api_clusters_mgmt_v1_dns_domains_get_with_http_info(self, **kwargs): # noqa local_var_params = locals() all_params = [ + 'order', 'page', 'search', 'size' @@ -20151,7 +22897,7 @@ def api_clusters_mgmt_v1_dns_domains_get_with_http_info(self, **kwargs): # noqa if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_dns_domains_get" % key + " to method api_clusters_mgmt_v1_flavours_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -20161,6 +22907,8 @@ def api_clusters_mgmt_v1_dns_domains_get_with_http_info(self, **kwargs): # noqa path_params = {} query_params = [] + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 @@ -20182,14 +22930,14 @@ def api_clusters_mgmt_v1_dns_domains_get_with_http_info(self, **kwargs): # noqa auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/dns_domains', 'GET', + '/api/clusters_mgmt/v1/flavours', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20036', # noqa: E501 + response_type='InlineResponse20040', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -20197,17 +22945,17 @@ def api_clusters_mgmt_v1_dns_domains_get_with_http_info(self, **kwargs): # noqa _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_dns_domains_post(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_post # noqa: E501 + def api_clusters_mgmt_v1_flavours_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_flavours_post # noqa: E501 - Adds a DNS domain. # noqa: E501 + Adds a new cluster flavour. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_post(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_flavours_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param DNSDomain dns_domain: + :param Flavour flavour: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -20215,24 +22963,24 @@ def api_clusters_mgmt_v1_dns_domains_post(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: DNSDomain + :return: Flavour If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_dns_domains_post_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_flavours_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_dns_domains_post_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_dns_domains_post # noqa: E501 + def api_clusters_mgmt_v1_flavours_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_flavours_post # noqa: E501 - Adds a DNS domain. # noqa: E501 + Adds a new cluster flavour. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_dns_domains_post_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_flavours_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param DNSDomain dns_domain: + :param Flavour flavour: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -20242,7 +22990,7 @@ def api_clusters_mgmt_v1_dns_domains_post_with_http_info(self, **kwargs): # noq number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(DNSDomain, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Flavour, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -20250,7 +22998,7 @@ def api_clusters_mgmt_v1_dns_domains_post_with_http_info(self, **kwargs): # noq local_var_params = locals() all_params = [ - 'dns_domain' + 'flavour' ] all_params.extend( [ @@ -20265,7 +23013,7 @@ def api_clusters_mgmt_v1_dns_domains_post_with_http_info(self, **kwargs): # noq if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_dns_domains_post" % key + " to method api_clusters_mgmt_v1_flavours_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -20282,8 +23030,8 @@ def api_clusters_mgmt_v1_dns_domains_post_with_http_info(self, **kwargs): # noq local_var_files = {} body_params = None - if 'dns_domain' in local_var_params: - body_params = local_var_params['dns_domain'] + if 'flavour' in local_var_params: + body_params = local_var_params['flavour'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -20296,14 +23044,14 @@ def api_clusters_mgmt_v1_dns_domains_post_with_http_info(self, **kwargs): # noq auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/dns_domains', 'POST', + '/api/clusters_mgmt/v1/flavours', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='DNSDomain', # noqa: E501 + response_type='Flavour', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -20311,16 +23059,19 @@ def api_clusters_mgmt_v1_dns_domains_post_with_http_info(self, **kwargs): # noq _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_environment_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_environment_get # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post # noqa: E501 - Retrieves the details of the environment. # noqa: E501 + Retrieves the list of encryption keys. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_environment_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. + :param CloudProviderData cloud_provider_data: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -20328,23 +23079,26 @@ def api_clusters_mgmt_v1_environment_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Environment + :return: InlineResponse20041 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_environment_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_environment_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_environment_get # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post # noqa: E501 - Retrieves the details of the environment. # noqa: E501 + Retrieves the list of encryption keys. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_environment_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. + :param CloudProviderData cloud_provider_data: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -20354,7 +23108,7 @@ def api_clusters_mgmt_v1_environment_get_with_http_info(self, **kwargs): # noqa number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Environment, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20041, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -20362,6 +23116,9 @@ def api_clusters_mgmt_v1_environment_get_with_http_info(self, **kwargs): # noqa local_var_params = locals() all_params = [ + 'page', + 'size', + 'cloud_provider_data' ] all_params.extend( [ @@ -20376,7 +23133,7 @@ def api_clusters_mgmt_v1_environment_get_with_http_info(self, **kwargs): # noqa if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_environment_get" % key + " to method api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -20386,6 +23143,10 @@ def api_clusters_mgmt_v1_environment_get_with_http_info(self, **kwargs): # noqa path_params = {} query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -20393,22 +23154,28 @@ def api_clusters_mgmt_v1_environment_get_with_http_info(self, **kwargs): # noqa local_var_files = {} body_params = None + if 'cloud_provider_data' in local_var_params: + body_params = local_var_params['cloud_provider_data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/environment', 'GET', + '/api/clusters_mgmt/v1/gcp_inquiries/encryption_keys', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Environment', # noqa: E501 + response_type='InlineResponse20041', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -20416,17 +23183,19 @@ def api_clusters_mgmt_v1_environment_get_with_http_info(self, **kwargs): # noqa _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_environment_patch(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_environment_patch # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_key_rings_post # noqa: E501 - Updates the environment. Attributes that can be updated are: - `last_upgrade_available_check` - `last_limited_support_check` # noqa: E501 + Retrieves the list of available key rings of the cloud provider. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_environment_patch(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_key_rings_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param Environment environment: + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. + :param CloudProviderData cloud_provider_data: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -20434,24 +23203,26 @@ def api_clusters_mgmt_v1_environment_patch(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Environment + :return: InlineResponse20042 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_environment_patch_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_environment_patch_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_environment_patch # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_key_rings_post # noqa: E501 - Updates the environment. Attributes that can be updated are: - `last_upgrade_available_check` - `last_limited_support_check` # noqa: E501 + Retrieves the list of available key rings of the cloud provider. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_environment_patch_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param Environment environment: + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. + :param CloudProviderData cloud_provider_data: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -20461,7 +23232,7 @@ def api_clusters_mgmt_v1_environment_patch_with_http_info(self, **kwargs): # no number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Environment, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20042, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -20469,7 +23240,9 @@ def api_clusters_mgmt_v1_environment_patch_with_http_info(self, **kwargs): # no local_var_params = locals() all_params = [ - 'environment' + 'page', + 'size', + 'cloud_provider_data' ] all_params.extend( [ @@ -20484,7 +23257,7 @@ def api_clusters_mgmt_v1_environment_patch_with_http_info(self, **kwargs): # no if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_environment_patch" % key + " to method api_clusters_mgmt_v1_gcp_inquiries_key_rings_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -20494,6 +23267,10 @@ def api_clusters_mgmt_v1_environment_patch_with_http_info(self, **kwargs): # no path_params = {} query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -20501,8 +23278,8 @@ def api_clusters_mgmt_v1_environment_patch_with_http_info(self, **kwargs): # no local_var_files = {} body_params = None - if 'environment' in local_var_params: - body_params = local_var_params['environment'] + if 'cloud_provider_data' in local_var_params: + body_params = local_var_params['cloud_provider_data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -20515,14 +23292,14 @@ def api_clusters_mgmt_v1_environment_patch_with_http_info(self, **kwargs): # no auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/environment', 'PATCH', + '/api/clusters_mgmt/v1/gcp_inquiries/key_rings', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Environment', # noqa: E501 + response_type='InlineResponse20042', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -20530,17 +23307,19 @@ def api_clusters_mgmt_v1_environment_patch_with_http_info(self, **kwargs): # no _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_events_post(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_events_post # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_machine_types_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_machine_types_post # noqa: E501 - Adds a new event to be tracked. When sending a new event request, it gets tracked in Prometheus, Pendo, CloudWatch, or whichever analytics client is configured as part of clusters service. This allows for reporting on events that happen outside of a regular API request, but are found to be useful for understanding customer needs and possible blockers. # noqa: E501 + Retrieves the list of machine types in the provided region. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_events_post(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_machine_types_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param Event event: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Maximum number of items that will be contained in the returned page. + :param CloudProviderData cloud_provider_data: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -20548,24 +23327,26 @@ def api_clusters_mgmt_v1_events_post(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Event + :return: InlineResponse2003 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_events_post_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_gcp_inquiries_machine_types_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_events_post_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_events_post # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_machine_types_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_machine_types_post # noqa: E501 - Adds a new event to be tracked. When sending a new event request, it gets tracked in Prometheus, Pendo, CloudWatch, or whichever analytics client is configured as part of clusters service. This allows for reporting on events that happen outside of a regular API request, but are found to be useful for understanding customer needs and possible blockers. # noqa: E501 + Retrieves the list of machine types in the provided region. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_events_post_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_machine_types_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param Event event: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Maximum number of items that will be contained in the returned page. + :param CloudProviderData cloud_provider_data: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -20575,7 +23356,7 @@ def api_clusters_mgmt_v1_events_post_with_http_info(self, **kwargs): # noqa: E5 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Event, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse2003, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -20583,7 +23364,9 @@ def api_clusters_mgmt_v1_events_post_with_http_info(self, **kwargs): # noqa: E5 local_var_params = locals() all_params = [ - 'event' + 'page', + 'size', + 'cloud_provider_data' ] all_params.extend( [ @@ -20598,7 +23381,7 @@ def api_clusters_mgmt_v1_events_post_with_http_info(self, **kwargs): # noqa: E5 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_events_post" % key + " to method api_clusters_mgmt_v1_gcp_inquiries_machine_types_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -20608,6 +23391,10 @@ def api_clusters_mgmt_v1_events_post_with_http_info(self, **kwargs): # noqa: E5 path_params = {} query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -20615,8 +23402,8 @@ def api_clusters_mgmt_v1_events_post_with_http_info(self, **kwargs): # noqa: E5 local_var_files = {} body_params = None - if 'event' in local_var_params: - body_params = local_var_params['event'] + if 'cloud_provider_data' in local_var_params: + body_params = local_var_params['cloud_provider_data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -20629,14 +23416,14 @@ def api_clusters_mgmt_v1_events_post_with_http_info(self, **kwargs): # noqa: E5 auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/events', 'POST', + '/api/clusters_mgmt/v1/gcp_inquiries/machine_types', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Event', # noqa: E501 + response_type='InlineResponse2003', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -20644,17 +23431,19 @@ def api_clusters_mgmt_v1_events_post_with_http_info(self, **kwargs): # noqa: E5 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_flavours_flavour_id_get(self, flavour_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_flavours_flavour_id_get # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_regions_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_regions_post # noqa: E501 - Retrieves the details of the cluster flavour. # noqa: E501 + Retrieves the list of available regions of the cloud provider. IMPORTANT: This list doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_flavours_flavour_id_get(flavour_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_regions_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str flavour_id: (required) + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. + :param CloudProviderData cloud_provider_data: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -20662,24 +23451,26 @@ def api_clusters_mgmt_v1_flavours_flavour_id_get(self, flavour_id, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Flavour + :return: InlineResponse2004 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(flavour_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(self, flavour_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_flavours_flavour_id_get # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_regions_post # noqa: E501 - Retrieves the details of the cluster flavour. # noqa: E501 + Retrieves the list of available regions of the cloud provider. IMPORTANT: This list doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(flavour_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str flavour_id: (required) + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. + :param CloudProviderData cloud_provider_data: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -20689,7 +23480,7 @@ def api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(self, flavour_id number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Flavour, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse2004, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -20697,7 +23488,9 @@ def api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(self, flavour_id local_var_params = locals() all_params = [ - 'flavour_id' + 'page', + 'size', + 'cloud_provider_data' ] all_params.extend( [ @@ -20712,22 +23505,20 @@ def api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(self, flavour_id if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_flavours_flavour_id_get" % key + " to method api_clusters_mgmt_v1_gcp_inquiries_regions_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'flavour_id' is set - if self.api_client.client_side_validation and ('flavour_id' not in local_var_params or # noqa: E501 - local_var_params['flavour_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `flavour_id` when calling `api_clusters_mgmt_v1_flavours_flavour_id_get`") # noqa: E501 collection_formats = {} path_params = {} - if 'flavour_id' in local_var_params: - path_params['flavour_id'] = local_var_params['flavour_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -20735,22 +23526,28 @@ def api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(self, flavour_id local_var_files = {} body_params = None + if 'cloud_provider_data' in local_var_params: + body_params = local_var_params['cloud_provider_data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/flavours/{flavour_id}', 'GET', + '/api/clusters_mgmt/v1/gcp_inquiries/regions', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Flavour', # noqa: E501 + response_type='InlineResponse2004', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -20758,18 +23555,19 @@ def api_clusters_mgmt_v1_flavours_flavour_id_get_with_http_info(self, flavour_id _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_flavours_flavour_id_patch(self, flavour_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_flavours_flavour_id_patch # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_vpcs_post # noqa: E501 - Updates the flavour. Attributes that can be updated are: - `aws.infra_volume` - `aws.infra_instance_type` - `gcp.infra_instance_type` # noqa: E501 + Retrieves the list of available vpcs of the cloud provider for specific region. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available vpcs of the provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_flavours_flavour_id_patch(flavour_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_vpcs_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str flavour_id: (required) - :param Flavour flavour: + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. + :param CloudProviderData cloud_provider_data: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -20777,25 +23575,26 @@ def api_clusters_mgmt_v1_flavours_flavour_id_patch(self, flavour_id, **kwargs): number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Flavour + :return: InlineResponse2008 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(flavour_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(self, flavour_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_flavours_flavour_id_patch # noqa: E501 + def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_gcp_inquiries_vpcs_post # noqa: E501 - Updates the flavour. Attributes that can be updated are: - `aws.infra_volume` - `aws.infra_instance_type` - `gcp.infra_instance_type` # noqa: E501 + Retrieves the list of available vpcs of the cloud provider for specific region. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available vpcs of the provider. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(flavour_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str flavour_id: (required) - :param Flavour flavour: + :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. + :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. + :param CloudProviderData cloud_provider_data: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -20805,7 +23604,7 @@ def api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(self, flavour_ number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Flavour, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse2008, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -20813,8 +23612,9 @@ def api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(self, flavour_ local_var_params = locals() all_params = [ - 'flavour_id', - 'flavour' + 'page', + 'size', + 'cloud_provider_data' ] all_params.extend( [ @@ -20829,22 +23629,20 @@ def api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(self, flavour_ if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_flavours_flavour_id_patch" % key + " to method api_clusters_mgmt_v1_gcp_inquiries_vpcs_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'flavour_id' is set - if self.api_client.client_side_validation and ('flavour_id' not in local_var_params or # noqa: E501 - local_var_params['flavour_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `flavour_id` when calling `api_clusters_mgmt_v1_flavours_flavour_id_patch`") # noqa: E501 collection_formats = {} path_params = {} - if 'flavour_id' in local_var_params: - path_params['flavour_id'] = local_var_params['flavour_id'] # noqa: E501 query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -20852,8 +23650,8 @@ def api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(self, flavour_ local_var_files = {} body_params = None - if 'flavour' in local_var_params: - body_params = local_var_params['flavour'] + if 'cloud_provider_data' in local_var_params: + body_params = local_var_params['cloud_provider_data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -20866,14 +23664,14 @@ def api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(self, flavour_ auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/flavours/{flavour_id}', 'PATCH', + '/api/clusters_mgmt/v1/gcp_inquiries/vpcs', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Flavour', # noqa: E501 + response_type='InlineResponse2008', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -20881,19 +23679,16 @@ def api_clusters_mgmt_v1_flavours_flavour_id_patch_with_http_info(self, flavour_ _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_flavours_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_flavours_get # noqa: E501 + def api_clusters_mgmt_v1_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_get # noqa: E501 + Retrieves the version metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_flavours_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_get(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to sort the flavours descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to retrieve all the flavours with a name starting with `my`the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the flavours that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -20901,26 +23696,23 @@ def api_clusters_mgmt_v1_flavours_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20037 + :return: Metadata If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_flavours_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_get_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_flavours_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_flavours_get # noqa: E501 + def api_clusters_mgmt_v1_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_get # noqa: E501 + Retrieves the version metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_flavours_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to sort the flavours descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the flavour instead of the names of the columns of a table. For example, in order to retrieve all the flavours with a name starting with `my`the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the flavours that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -20930,7 +23722,7 @@ def api_clusters_mgmt_v1_flavours_get_with_http_info(self, **kwargs): # noqa: E number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20037, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Metadata, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -20938,10 +23730,6 @@ def api_clusters_mgmt_v1_flavours_get_with_http_info(self, **kwargs): # noqa: E local_var_params = locals() all_params = [ - 'order', - 'page', - 'search', - 'size' ] all_params.extend( [ @@ -20956,7 +23744,7 @@ def api_clusters_mgmt_v1_flavours_get_with_http_info(self, **kwargs): # noqa: E if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_flavours_get" % key + " to method api_clusters_mgmt_v1_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -20966,14 +23754,6 @@ def api_clusters_mgmt_v1_flavours_get_with_http_info(self, **kwargs): # noqa: E path_params = {} query_params = [] - if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 - query_params.append(('order', local_var_params['order'])) # noqa: E501 - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 - query_params.append(('search', local_var_params['search'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -20989,14 +23769,14 @@ def api_clusters_mgmt_v1_flavours_get_with_http_info(self, **kwargs): # noqa: E auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/flavours', 'GET', + '/api/clusters_mgmt/v1', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20037', # noqa: E501 + response_type='Metadata', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -21004,17 +23784,18 @@ def api_clusters_mgmt_v1_flavours_get_with_http_info(self, **kwargs): # noqa: E _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_flavours_post(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_flavours_post # noqa: E501 + def api_clusters_mgmt_v1_limited_support_reason_templates_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_limited_support_reason_templates_get # noqa: E501 - Adds a new cluster flavour. # noqa: E501 + Retrieves the list of templates. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_flavours_post(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_limited_support_reason_templates_get(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param Flavour flavour: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -21022,24 +23803,25 @@ def api_clusters_mgmt_v1_flavours_post(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Flavour + :return: InlineResponse20043 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_flavours_post_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_flavours_post_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_flavours_post # noqa: E501 + def api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_limited_support_reason_templates_get # noqa: E501 - Adds a new cluster flavour. # noqa: E501 + Retrieves the list of templates. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_flavours_post_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param Flavour flavour: + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -21049,7 +23831,7 @@ def api_clusters_mgmt_v1_flavours_post_with_http_info(self, **kwargs): # noqa: number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Flavour, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20043, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -21057,7 +23839,8 @@ def api_clusters_mgmt_v1_flavours_post_with_http_info(self, **kwargs): # noqa: local_var_params = locals() all_params = [ - 'flavour' + 'page', + 'size' ] all_params.extend( [ @@ -21072,7 +23855,7 @@ def api_clusters_mgmt_v1_flavours_post_with_http_info(self, **kwargs): # noqa: if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_flavours_post" % key + " to method api_clusters_mgmt_v1_limited_support_reason_templates_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -21082,6 +23865,10 @@ def api_clusters_mgmt_v1_flavours_post_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -21089,28 +23876,22 @@ def api_clusters_mgmt_v1_flavours_post_with_http_info(self, **kwargs): # noqa: local_var_files = {} body_params = None - if 'flavour' in local_var_params: - body_params = local_var_params['flavour'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/flavours', 'POST', + '/api/clusters_mgmt/v1/limited_support_reason_templates', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Flavour', # noqa: E501 + response_type='InlineResponse20043', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -21118,19 +23899,17 @@ def api_clusters_mgmt_v1_flavours_post_with_http_info(self, **kwargs): # noqa: _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post # noqa: E501 + def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get(self, limited_support_reason_template_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get # noqa: E501 - Retrieves the list of encryption keys. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 + Retrieves the details of the template. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get(limited_support_reason_template_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. - :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. - :param CloudProviderData cloud_provider_data: + :param str limited_support_reason_template_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -21138,26 +23917,24 @@ def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post(self, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20038 + :return: LimitedSupportReasonTemplate If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get_with_http_info(limited_support_reason_template_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post # noqa: E501 + def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get_with_http_info(self, limited_support_reason_template_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get # noqa: E501 - Retrieves the list of encryption keys. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 + Retrieves the details of the template. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get_with_http_info(limited_support_reason_template_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. - :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. - :param CloudProviderData cloud_provider_data: + :param str limited_support_reason_template_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -21167,7 +23944,7 @@ def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20038, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(LimitedSupportReasonTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -21175,9 +23952,7 @@ def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(self, local_var_params = locals() all_params = [ - 'page', - 'size', - 'cloud_provider_data' + 'limited_support_reason_template_id' ] all_params.extend( [ @@ -21192,20 +23967,22 @@ def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post" % key + " to method api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'limited_support_reason_template_id' is set + if self.api_client.client_side_validation and ('limited_support_reason_template_id' not in local_var_params or # noqa: E501 + local_var_params['limited_support_reason_template_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `limited_support_reason_template_id` when calling `api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get`") # noqa: E501 collection_formats = {} path_params = {} + if 'limited_support_reason_template_id' in local_var_params: + path_params['limited_support_reason_template_id'] = local_var_params['limited_support_reason_template_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -21213,28 +23990,22 @@ def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(self, local_var_files = {} body_params = None - if 'cloud_provider_data' in local_var_params: - body_params = local_var_params['cloud_provider_data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/gcp_inquiries/encryption_keys', 'POST', + '/api/clusters_mgmt/v1/limited_support_reason_templates/{limited_support_reason_template_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20038', # noqa: E501 + response_type='LimitedSupportReasonTemplate', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -21242,19 +24013,20 @@ def api_clusters_mgmt_v1_gcp_inquiries_encryption_keys_post_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_gcp_inquiries_key_rings_post # noqa: E501 + def api_clusters_mgmt_v1_machine_types_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_machine_types_get # noqa: E501 - Retrieves the list of available key rings of the cloud provider. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 + Retrieves the list of machine types. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_key_rings_post(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_machine_types_get(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. - :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. - :param CloudProviderData cloud_provider_data: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to sort the machine types descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to retrieve all the machine types with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the machine types that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -21262,26 +24034,27 @@ def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post(self, **kwargs): # noqa: number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20039 + :return: InlineResponse20044 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_machine_types_get_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_gcp_inquiries_key_rings_post # noqa: E501 + def api_clusters_mgmt_v1_machine_types_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_machine_types_get # noqa: E501 - Retrieves the list of available key rings of the cloud provider. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 + Retrieves the list of machine types. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_machine_types_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. - :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. - :param CloudProviderData cloud_provider_data: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to sort the machine types descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to retrieve all the machine types with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the machine types that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -21291,7 +24064,7 @@ def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(self, **kwa number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20039, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20044, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -21299,9 +24072,10 @@ def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(self, **kwa local_var_params = locals() all_params = [ + 'order', 'page', - 'size', - 'cloud_provider_data' + 'search', + 'size' ] all_params.extend( [ @@ -21316,7 +24090,7 @@ def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(self, **kwa if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_gcp_inquiries_key_rings_post" % key + " to method api_clusters_mgmt_v1_machine_types_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -21326,8 +24100,12 @@ def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(self, **kwa path_params = {} query_params = [] + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 query_params.append(('size', local_var_params['size'])) # noqa: E501 @@ -21337,28 +24115,22 @@ def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(self, **kwa local_var_files = {} body_params = None - if 'cloud_provider_data' in local_var_params: - body_params = local_var_params['cloud_provider_data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/gcp_inquiries/key_rings', 'POST', + '/api/clusters_mgmt/v1/machine_types', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20039', # noqa: E501 + response_type='InlineResponse20044', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -21366,19 +24138,17 @@ def api_clusters_mgmt_v1_gcp_inquiries_key_rings_post_with_http_info(self, **kwa _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_gcp_inquiries_regions_post(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_gcp_inquiries_regions_post # noqa: E501 + def api_clusters_mgmt_v1_machine_types_machine_type_id_get(self, machine_type_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_machine_types_machine_type_id_get # noqa: E501 - Retrieves the list of available regions of the cloud provider. IMPORTANT: This list doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 + Retrieves the details of the machine type. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_regions_post(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_machine_types_machine_type_id_get(machine_type_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. - :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. - :param CloudProviderData cloud_provider_data: + :param str machine_type_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -21386,26 +24156,24 @@ def api_clusters_mgmt_v1_gcp_inquiries_regions_post(self, **kwargs): # noqa: E5 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse2004 + :return: MachineType If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(machine_type_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_gcp_inquiries_regions_post # noqa: E501 + def api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(self, machine_type_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_machine_types_machine_type_id_get # noqa: E501 - Retrieves the list of available regions of the cloud provider. IMPORTANT: This list doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available regions of the provider. # noqa: E501 + Retrieves the details of the machine type. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(machine_type_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. - :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. - :param CloudProviderData cloud_provider_data: + :param str machine_type_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -21415,7 +24183,7 @@ def api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(self, **kwarg number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse2004, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(MachineType, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -21423,9 +24191,7 @@ def api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(self, **kwarg local_var_params = locals() all_params = [ - 'page', - 'size', - 'cloud_provider_data' + 'machine_type_id' ] all_params.extend( [ @@ -21440,20 +24206,22 @@ def api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(self, **kwarg if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_gcp_inquiries_regions_post" % key + " to method api_clusters_mgmt_v1_machine_types_machine_type_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'machine_type_id' is set + if self.api_client.client_side_validation and ('machine_type_id' not in local_var_params or # noqa: E501 + local_var_params['machine_type_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `machine_type_id` when calling `api_clusters_mgmt_v1_machine_types_machine_type_id_get`") # noqa: E501 collection_formats = {} path_params = {} + if 'machine_type_id' in local_var_params: + path_params['machine_type_id'] = local_var_params['machine_type_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -21461,28 +24229,22 @@ def api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(self, **kwarg local_var_files = {} body_params = None - if 'cloud_provider_data' in local_var_params: - body_params = local_var_params['cloud_provider_data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/gcp_inquiries/regions', 'POST', + '/api/clusters_mgmt/v1/machine_types/{machine_type_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2004', # noqa: E501 + response_type='MachineType', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -21490,19 +24252,17 @@ def api_clusters_mgmt_v1_gcp_inquiries_regions_post_with_http_info(self, **kwarg _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_gcp_inquiries_vpcs_post # noqa: E501 + def api_clusters_mgmt_v1_network_verifications_network_verification_id_get(self, network_verification_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_network_verifications_network_verification_id_get # noqa: E501 - Retrieves the list of available vpcs of the cloud provider for specific region. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available vpcs of the provider. # noqa: E501 + Retrieves the details of a subnet network verification. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_vpcs_post(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_network_verifications_network_verification_id_get(network_verification_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. - :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. - :param CloudProviderData cloud_provider_data: + :param str network_verification_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -21510,26 +24270,24 @@ def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse2007 + :return: SubnetNetworkVerification If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_network_verifications_network_verification_id_get_with_http_info(network_verification_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_gcp_inquiries_vpcs_post # noqa: E501 + def api_clusters_mgmt_v1_network_verifications_network_verification_id_get_with_http_info(self, network_verification_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_network_verifications_network_verification_id_get # noqa: E501 - Retrieves the list of available vpcs of the cloud provider for specific region. IMPORTANT: This collection doesn't currently support paging or searching, so the returned `page` will always be 1 and `size` and `total` will always be the total number of available vpcs of the provider. # noqa: E501 + Retrieves the details of a subnet network verification. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_network_verifications_network_verification_id_get_with_http_info(network_verification_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. - :param int size: Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. - :param CloudProviderData cloud_provider_data: + :param str network_verification_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -21539,7 +24297,7 @@ def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(self, **kwargs): number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse2007, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(SubnetNetworkVerification, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -21547,9 +24305,7 @@ def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(self, **kwargs): local_var_params = locals() all_params = [ - 'page', - 'size', - 'cloud_provider_data' + 'network_verification_id' ] all_params.extend( [ @@ -21564,20 +24320,22 @@ def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(self, **kwargs): if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_gcp_inquiries_vpcs_post" % key + " to method api_clusters_mgmt_v1_network_verifications_network_verification_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'network_verification_id' is set + if self.api_client.client_side_validation and ('network_verification_id' not in local_var_params or # noqa: E501 + local_var_params['network_verification_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `network_verification_id` when calling `api_clusters_mgmt_v1_network_verifications_network_verification_id_get`") # noqa: E501 collection_formats = {} path_params = {} + if 'network_verification_id' in local_var_params: + path_params['network_verification_id'] = local_var_params['network_verification_id'] # noqa: E501 query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -21585,28 +24343,22 @@ def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(self, **kwargs): local_var_files = {} body_params = None - if 'cloud_provider_data' in local_var_params: - body_params = local_var_params['cloud_provider_data'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/gcp_inquiries/vpcs', 'POST', + '/api/clusters_mgmt/v1/network_verifications/{network_verification_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse2007', # noqa: E501 + response_type='SubnetNetworkVerification', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -21614,16 +24366,17 @@ def api_clusters_mgmt_v1_gcp_inquiries_vpcs_post_with_http_info(self, **kwargs): _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_get # noqa: E501 + def api_clusters_mgmt_v1_network_verifications_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_network_verifications_post # noqa: E501 - Retrieves the version metadata. # noqa: E501 + Creates an entry for a network verification for each subnet supplied setting then to initial state. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_network_verifications_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param NetworkVerification network_verification: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -21631,23 +24384,24 @@ def api_clusters_mgmt_v1_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Metadata + :return: NetworkVerification If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_network_verifications_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_get # noqa: E501 + def api_clusters_mgmt_v1_network_verifications_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_network_verifications_post # noqa: E501 - Retrieves the version metadata. # noqa: E501 + Creates an entry for a network verification for each subnet supplied setting then to initial state. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_network_verifications_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param NetworkVerification network_verification: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -21657,7 +24411,7 @@ def api_clusters_mgmt_v1_get_with_http_info(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Metadata, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(NetworkVerification, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -21665,6 +24419,7 @@ def api_clusters_mgmt_v1_get_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() all_params = [ + 'network_verification' ] all_params.extend( [ @@ -21679,7 +24434,7 @@ def api_clusters_mgmt_v1_get_with_http_info(self, **kwargs): # noqa: E501 if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_get" % key + " to method api_clusters_mgmt_v1_network_verifications_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -21696,22 +24451,28 @@ def api_clusters_mgmt_v1_get_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None + if 'network_verification' in local_var_params: + body_params = local_var_params['network_verification'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1', 'GET', + '/api/clusters_mgmt/v1/network_verifications', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Metadata', # noqa: E501 + response_type='NetworkVerification', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -21719,13 +24480,13 @@ def api_clusters_mgmt_v1_get_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_limited_support_reason_templates_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_limited_support_reason_templates_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_get # noqa: E501 - Retrieves the list of templates. # noqa: E501 + Retrieves the list of oidc configs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_limited_support_reason_templates_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_get(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -21738,20 +24499,20 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_get(self, **kwargs): number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20040 + :return: InlineResponse20045 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_oidc_configs_get_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_limited_support_reason_templates_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_get # noqa: E501 - Retrieves the list of templates. # noqa: E501 + Retrieves the list of oidc configs. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously @@ -21766,7 +24527,7 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(sel number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20040, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20045, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -21790,7 +24551,7 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(sel if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_limited_support_reason_templates_get" % key + " to method api_clusters_mgmt_v1_oidc_configs_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -21819,14 +24580,14 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(sel auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/limited_support_reason_templates', 'GET', + '/api/clusters_mgmt/v1/oidc_configs', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20040', # noqa: E501 + response_type='InlineResponse20045', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -21834,17 +24595,17 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_get_with_http_info(sel _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get(self, limited_support_reason_template_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete(self, oidc_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete # noqa: E501 - Retrieves the details of the template. # noqa: E501 + Deletes the OidcConfig. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get(limited_support_reason_template_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete(oidc_config_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str limited_support_reason_template_id: (required) + :param str oidc_config_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -21852,24 +24613,24 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: LimitedSupportReasonTemplate + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get_with_http_info(limited_support_reason_template_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(oidc_config_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get_with_http_info(self, limited_support_reason_template_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(self, oidc_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete # noqa: E501 - Retrieves the details of the template. # noqa: E501 + Deletes the OidcConfig. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get_with_http_info(limited_support_reason_template_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(oidc_config_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str limited_support_reason_template_id: (required) + :param str oidc_config_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -21879,7 +24640,7 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(LimitedSupportReasonTemplate, status_code(int), headers(HTTPHeaderDict)) + :return: None If the method is called asynchronously, returns the request thread. """ @@ -21887,7 +24648,7 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason local_var_params = locals() all_params = [ - 'limited_support_reason_template_id' + 'oidc_config_id' ] all_params.extend( [ @@ -21902,20 +24663,20 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get" % key + " to method api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'limited_support_reason_template_id' is set - if self.api_client.client_side_validation and ('limited_support_reason_template_id' not in local_var_params or # noqa: E501 - local_var_params['limited_support_reason_template_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `limited_support_reason_template_id` when calling `api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason_template_id_get`") # noqa: E501 + # verify the required parameter 'oidc_config_id' is set + if self.api_client.client_side_validation and ('oidc_config_id' not in local_var_params or # noqa: E501 + local_var_params['oidc_config_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `oidc_config_id` when calling `api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete`") # noqa: E501 collection_formats = {} - path_params = {} - if 'limited_support_reason_template_id' in local_var_params: - path_params['limited_support_reason_template_id'] = local_var_params['limited_support_reason_template_id'] # noqa: E501 + path_params = {} + if 'oidc_config_id' in local_var_params: + path_params['oidc_config_id'] = local_var_params['oidc_config_id'] # noqa: E501 query_params = [] @@ -21933,14 +24694,14 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/limited_support_reason_templates/{limited_support_reason_template_id}', 'GET', + '/api/clusters_mgmt/v1/oidc_configs/{oidc_config_id}', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='LimitedSupportReasonTemplate', # noqa: E501 + response_type=None, # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -21948,20 +24709,17 @@ def api_clusters_mgmt_v1_limited_support_reason_templates_limited_support_reason _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_machine_types_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_machine_types_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get(self, oidc_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get # noqa: E501 - Retrieves the list of machine types. # noqa: E501 + Retrieves the details of an OidcConfig. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_machine_types_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get(oidc_config_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to sort the machine types descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to retrieve all the machine types with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the machine types that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. + :param str oidc_config_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -21969,27 +24727,24 @@ def api_clusters_mgmt_v1_machine_types_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20041 + :return: OidcConfig If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_machine_types_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(oidc_config_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_machine_types_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_machine_types_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(self, oidc_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get # noqa: E501 - Retrieves the list of machine types. # noqa: E501 + Retrieves the details of an OidcConfig. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_machine_types_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(oidc_config_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to sort the machine types descending by name identifier the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the machine type instead of the names of the columns of a table. For example, in order to retrieve all the machine types with a name starting with `A` the value should be: ```sql name like 'A%' ``` If the parameter isn't provided, or if the value is empty, then all the machine types that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. + :param str oidc_config_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -21999,7 +24754,7 @@ def api_clusters_mgmt_v1_machine_types_get_with_http_info(self, **kwargs): # no number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20041, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(OidcConfig, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -22007,10 +24762,7 @@ def api_clusters_mgmt_v1_machine_types_get_with_http_info(self, **kwargs): # no local_var_params = locals() all_params = [ - 'order', - 'page', - 'search', - 'size' + 'oidc_config_id' ] all_params.extend( [ @@ -22025,24 +24777,22 @@ def api_clusters_mgmt_v1_machine_types_get_with_http_info(self, **kwargs): # no if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_machine_types_get" % key + " to method api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'oidc_config_id' is set + if self.api_client.client_side_validation and ('oidc_config_id' not in local_var_params or # noqa: E501 + local_var_params['oidc_config_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `oidc_config_id` when calling `api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get`") # noqa: E501 collection_formats = {} path_params = {} + if 'oidc_config_id' in local_var_params: + path_params['oidc_config_id'] = local_var_params['oidc_config_id'] # noqa: E501 query_params = [] - if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 - query_params.append(('order', local_var_params['order'])) # noqa: E501 - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 - query_params.append(('search', local_var_params['search'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -22058,14 +24808,14 @@ def api_clusters_mgmt_v1_machine_types_get_with_http_info(self, **kwargs): # no auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/machine_types', 'GET', + '/api/clusters_mgmt/v1/oidc_configs/{oidc_config_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20041', # noqa: E501 + response_type='OidcConfig', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -22073,17 +24823,18 @@ def api_clusters_mgmt_v1_machine_types_get_with_http_info(self, **kwargs): # no _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_machine_types_machine_type_id_get(self, machine_type_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_machine_types_machine_type_id_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch(self, oidc_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch # noqa: E501 - Retrieves the details of the machine type. # noqa: E501 + Updates attributes of an OidcConfig. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_machine_types_machine_type_id_get(machine_type_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch(oidc_config_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str machine_type_id: (required) + :param str oidc_config_id: (required) + :param OidcConfig oidc_config: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -22091,24 +24842,25 @@ def api_clusters_mgmt_v1_machine_types_machine_type_id_get(self, machine_type_id number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: MachineType + :return: OidcConfig If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(machine_type_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(oidc_config_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(self, machine_type_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_machine_types_machine_type_id_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(self, oidc_config_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch # noqa: E501 - Retrieves the details of the machine type. # noqa: E501 + Updates attributes of an OidcConfig. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(machine_type_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(oidc_config_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str machine_type_id: (required) + :param str oidc_config_id: (required) + :param OidcConfig oidc_config: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -22118,7 +24870,7 @@ def api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(MachineType, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(OidcConfig, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -22126,7 +24878,8 @@ def api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(self, local_var_params = locals() all_params = [ - 'machine_type_id' + 'oidc_config_id', + 'oidc_config' ] all_params.extend( [ @@ -22141,20 +24894,20 @@ def api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_machine_types_machine_type_id_get" % key + " to method api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'machine_type_id' is set - if self.api_client.client_side_validation and ('machine_type_id' not in local_var_params or # noqa: E501 - local_var_params['machine_type_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `machine_type_id` when calling `api_clusters_mgmt_v1_machine_types_machine_type_id_get`") # noqa: E501 + # verify the required parameter 'oidc_config_id' is set + if self.api_client.client_side_validation and ('oidc_config_id' not in local_var_params or # noqa: E501 + local_var_params['oidc_config_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `oidc_config_id` when calling `api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch`") # noqa: E501 collection_formats = {} path_params = {} - if 'machine_type_id' in local_var_params: - path_params['machine_type_id'] = local_var_params['machine_type_id'] # noqa: E501 + if 'oidc_config_id' in local_var_params: + path_params['oidc_config_id'] = local_var_params['oidc_config_id'] # noqa: E501 query_params = [] @@ -22164,22 +24917,28 @@ def api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(self, local_var_files = {} body_params = None + if 'oidc_config' in local_var_params: + body_params = local_var_params['oidc_config'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/machine_types/{machine_type_id}', 'GET', + '/api/clusters_mgmt/v1/oidc_configs/{oidc_config_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='MachineType', # noqa: E501 + response_type='OidcConfig', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -22187,18 +24946,17 @@ def api_clusters_mgmt_v1_machine_types_machine_type_id_get_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_oidc_configs_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_post(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_post # noqa: E501 - Retrieves the list of oidc configs. # noqa: E501 + Creates a hosting under Red Hat's S3 bucket for byo oidc configuration. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_post(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param OidcConfig oidc_config: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -22206,25 +24964,24 @@ def api_clusters_mgmt_v1_oidc_configs_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20042 + :return: OidcConfig If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_oidc_configs_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_oidc_configs_post_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_oidc_configs_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_get # noqa: E501 + def api_clusters_mgmt_v1_oidc_configs_post_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_oidc_configs_post # noqa: E501 - Retrieves the list of oidc configs. # noqa: E501 + Creates a hosting under Red Hat's S3 bucket for byo oidc configuration. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_oidc_configs_post_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param int page: Index of the requested page, where one corresponds to the first page. - :param int size: Number of items contained in the returned page. + :param OidcConfig oidc_config: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -22234,7 +24991,7 @@ def api_clusters_mgmt_v1_oidc_configs_get_with_http_info(self, **kwargs): # noq number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20042, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(OidcConfig, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -22242,8 +24999,7 @@ def api_clusters_mgmt_v1_oidc_configs_get_with_http_info(self, **kwargs): # noq local_var_params = locals() all_params = [ - 'page', - 'size' + 'oidc_config' ] all_params.extend( [ @@ -22258,7 +25014,7 @@ def api_clusters_mgmt_v1_oidc_configs_get_with_http_info(self, **kwargs): # noq if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_oidc_configs_get" % key + " to method api_clusters_mgmt_v1_oidc_configs_post" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -22268,10 +25024,6 @@ def api_clusters_mgmt_v1_oidc_configs_get_with_http_info(self, **kwargs): # noq path_params = {} query_params = [] - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -22279,22 +25031,28 @@ def api_clusters_mgmt_v1_oidc_configs_get_with_http_info(self, **kwargs): # noq local_var_files = {} body_params = None + if 'oidc_config' in local_var_params: + body_params = local_var_params['oidc_config'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/oidc_configs', 'GET', + '/api/clusters_mgmt/v1/oidc_configs', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20042', # noqa: E501 + response_type='OidcConfig', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -22302,17 +25060,20 @@ def api_clusters_mgmt_v1_oidc_configs_get_with_http_info(self, **kwargs): # noq _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete(self, oidc_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete # noqa: E501 + def api_clusters_mgmt_v1_pending_delete_clusters_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_pending_delete_clusters_get # noqa: E501 - Deletes the OidcConfig. # noqa: E501 + Retrieves the list of pending delete clusters. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete(oidc_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_get(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str oidc_config_id: (required) + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to sort the pending delete clusters descending by creation timestamp (i.e. their deletion time) the value should be: ```sql creation_timestamp desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to retrieve all the pending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required: ```sql creation_timestamp > '2023-03-01T00:00:00Z' ``` If the parameter isn't provided, or if the value is empty, then all the pending delete clusters that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -22320,24 +25081,27 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete(self, oidc_config_id number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: InlineResponse20046 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(oidc_config_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(self, oidc_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete # noqa: E501 + def api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_pending_delete_clusters_get # noqa: E501 - Deletes the OidcConfig. # noqa: E501 + Retrieves the list of pending delete clusters. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(oidc_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str oidc_config_id: (required) + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to sort the pending delete clusters descending by creation timestamp (i.e. their deletion time) the value should be: ```sql creation_timestamp desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to retrieve all the pending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required: ```sql creation_timestamp > '2023-03-01T00:00:00Z' ``` If the parameter isn't provided, or if the value is empty, then all the pending delete clusters that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -22347,7 +25111,7 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: None + :return: tuple(InlineResponse20046, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -22355,7 +25119,10 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(self, local_var_params = locals() all_params = [ - 'oidc_config_id' + 'order', + 'page', + 'search', + 'size' ] all_params.extend( [ @@ -22370,22 +25137,24 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete" % key + " to method api_clusters_mgmt_v1_pending_delete_clusters_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'oidc_config_id' is set - if self.api_client.client_side_validation and ('oidc_config_id' not in local_var_params or # noqa: E501 - local_var_params['oidc_config_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `oidc_config_id` when calling `api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete`") # noqa: E501 collection_formats = {} path_params = {} - if 'oidc_config_id' in local_var_params: - path_params['oidc_config_id'] = local_var_params['oidc_config_id'] # noqa: E501 query_params = [] + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -22401,14 +25170,14 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(self, auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/oidc_configs/{oidc_config_id}', 'DELETE', + '/api/clusters_mgmt/v1/pending_delete_clusters', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='InlineResponse20046', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -22416,17 +25185,17 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_delete_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get(self, oidc_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get # noqa: E501 + def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get(self, pending_delete_cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get # noqa: E501 - Retrieves the details of an OidcConfig. # noqa: E501 + Retrieves the details of the pending delete cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get(oidc_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get(pending_delete_cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str oidc_config_id: (required) + :param str pending_delete_cluster_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -22434,24 +25203,24 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get(self, oidc_config_id, * number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: OidcConfig + :return: PendingDeleteCluster If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(oidc_config_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_with_http_info(pending_delete_cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(self, oidc_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get # noqa: E501 + def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_with_http_info(self, pending_delete_cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get # noqa: E501 - Retrieves the details of an OidcConfig. # noqa: E501 + Retrieves the details of the pending delete cluster. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(oidc_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_with_http_info(pending_delete_cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str oidc_config_id: (required) + :param str pending_delete_cluster_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -22461,7 +25230,7 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(self, oi number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(OidcConfig, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(PendingDeleteCluster, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -22469,7 +25238,7 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(self, oi local_var_params = locals() all_params = [ - 'oidc_config_id' + 'pending_delete_cluster_id' ] all_params.extend( [ @@ -22484,20 +25253,20 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(self, oi if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get" % key + " to method api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'oidc_config_id' is set - if self.api_client.client_side_validation and ('oidc_config_id' not in local_var_params or # noqa: E501 - local_var_params['oidc_config_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `oidc_config_id` when calling `api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get`") # noqa: E501 + # verify the required parameter 'pending_delete_cluster_id' is set + if self.api_client.client_side_validation and ('pending_delete_cluster_id' not in local_var_params or # noqa: E501 + local_var_params['pending_delete_cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `pending_delete_cluster_id` when calling `api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get`") # noqa: E501 collection_formats = {} path_params = {} - if 'oidc_config_id' in local_var_params: - path_params['oidc_config_id'] = local_var_params['oidc_config_id'] # noqa: E501 + if 'pending_delete_cluster_id' in local_var_params: + path_params['pending_delete_cluster_id'] = local_var_params['pending_delete_cluster_id'] # noqa: E501 query_params = [] @@ -22515,14 +25284,14 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(self, oi auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/oidc_configs/{oidc_config_id}', 'GET', + '/api/clusters_mgmt/v1/pending_delete_clusters/{pending_delete_cluster_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='OidcConfig', # noqa: E501 + response_type='PendingDeleteCluster', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -22530,18 +25299,18 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_get_with_http_info(self, oi _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch(self, oidc_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch # noqa: E501 + def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch(self, pending_delete_cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch # noqa: E501 - Updates attributes of an OidcConfig. # noqa: E501 + Updates the pending delete cluster entry. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch(oidc_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch(pending_delete_cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str oidc_config_id: (required) - :param OidcConfig oidc_config: + :param str pending_delete_cluster_id: (required) + :param PendingDeleteCluster pending_delete_cluster: :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -22549,25 +25318,25 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch(self, oidc_config_id, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: OidcConfig + :return: PendingDeleteCluster If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(oidc_config_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch_with_http_info(pending_delete_cluster_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(self, oidc_config_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch # noqa: E501 + def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch_with_http_info(self, pending_delete_cluster_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch # noqa: E501 - Updates attributes of an OidcConfig. # noqa: E501 + Updates the pending delete cluster entry. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(oidc_config_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch_with_http_info(pending_delete_cluster_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str oidc_config_id: (required) - :param OidcConfig oidc_config: + :param str pending_delete_cluster_id: (required) + :param PendingDeleteCluster pending_delete_cluster: :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -22577,7 +25346,7 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(self, number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(OidcConfig, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(PendingDeleteCluster, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -22585,8 +25354,8 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(self, local_var_params = locals() all_params = [ - 'oidc_config_id', - 'oidc_config' + 'pending_delete_cluster_id', + 'pending_delete_cluster' ] all_params.extend( [ @@ -22601,20 +25370,20 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(self, if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch" % key + " to method api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'oidc_config_id' is set - if self.api_client.client_side_validation and ('oidc_config_id' not in local_var_params or # noqa: E501 - local_var_params['oidc_config_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `oidc_config_id` when calling `api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch`") # noqa: E501 + # verify the required parameter 'pending_delete_cluster_id' is set + if self.api_client.client_side_validation and ('pending_delete_cluster_id' not in local_var_params or # noqa: E501 + local_var_params['pending_delete_cluster_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `pending_delete_cluster_id` when calling `api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch`") # noqa: E501 collection_formats = {} path_params = {} - if 'oidc_config_id' in local_var_params: - path_params['oidc_config_id'] = local_var_params['oidc_config_id'] # noqa: E501 + if 'pending_delete_cluster_id' in local_var_params: + path_params['pending_delete_cluster_id'] = local_var_params['pending_delete_cluster_id'] # noqa: E501 query_params = [] @@ -22624,8 +25393,8 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(self, local_var_files = {} body_params = None - if 'oidc_config' in local_var_params: - body_params = local_var_params['oidc_config'] + if 'pending_delete_cluster' in local_var_params: + body_params = local_var_params['pending_delete_cluster'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -22638,14 +25407,14 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(self, auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/oidc_configs/{oidc_config_id}', 'PATCH', + '/api/clusters_mgmt/v1/pending_delete_clusters/{pending_delete_cluster_id}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='OidcConfig', # noqa: E501 + response_type='PendingDeleteCluster', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -22653,17 +25422,20 @@ def api_clusters_mgmt_v1_oidc_configs_oidc_config_id_patch_with_http_info(self, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_oidc_configs_post(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_post # noqa: E501 + def api_clusters_mgmt_v1_products_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_get # noqa: E501 - Creates a hosting under Red Hat's S3 bucket for byo oidc configuration # noqa: E501 + Retrieves the list of products. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_post(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_get(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param OidcConfig oidc_config: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -22671,24 +25443,27 @@ def api_clusters_mgmt_v1_oidc_configs_post(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: OidcConfig + :return: InlineResponse20047 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_oidc_configs_post_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_products_get_with_http_info(**kwargs) # noqa: E501 - def api_clusters_mgmt_v1_oidc_configs_post_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_oidc_configs_post # noqa: E501 + def api_clusters_mgmt_v1_products_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_get # noqa: E501 - Creates a hosting under Red Hat's S3 bucket for byo oidc configuration # noqa: E501 + Retrieves the list of products. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_oidc_configs_post_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_get_with_http_info(async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param OidcConfig oidc_config: + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -22698,7 +25473,7 @@ def api_clusters_mgmt_v1_oidc_configs_post_with_http_info(self, **kwargs): # no number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(OidcConfig, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20047, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -22706,7 +25481,10 @@ def api_clusters_mgmt_v1_oidc_configs_post_with_http_info(self, **kwargs): # no local_var_params = locals() all_params = [ - 'oidc_config' + 'order', + 'page', + 'search', + 'size' ] all_params.extend( [ @@ -22721,7 +25499,7 @@ def api_clusters_mgmt_v1_oidc_configs_post_with_http_info(self, **kwargs): # no if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_oidc_configs_post" % key + " to method api_clusters_mgmt_v1_products_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] @@ -22731,6 +25509,14 @@ def api_clusters_mgmt_v1_oidc_configs_post_with_http_info(self, **kwargs): # no path_params = {} query_params = [] + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -22738,28 +25524,22 @@ def api_clusters_mgmt_v1_oidc_configs_post_with_http_info(self, **kwargs): # no local_var_files = {} body_params = None - if 'oidc_config' in local_var_params: - body_params = local_var_params['oidc_config'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/oidc_configs', 'POST', + '/api/clusters_mgmt/v1/products', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='OidcConfig', # noqa: E501 + response_type='InlineResponse20047', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -22767,20 +25547,17 @@ def api_clusters_mgmt_v1_oidc_configs_post_with_http_info(self, **kwargs): # no _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_pending_delete_clusters_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_pending_delete_clusters_get # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_get(self, product_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_get # noqa: E501 - Retrieves the list of pending delete clusters. # noqa: E501 + Retrieves the details of the product. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_get(product_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to sort the pending delete clusters descending by creation timestamp (i.e. their deletion time) the value should be: ```sql creation_timestamp desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to retrieve all the pending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required: ```sql creation_timestamp > '2023-03-01T00:00:00Z' ``` If the parameter isn't provided, or if the value is empty, then all the pending delete clusters that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. + :param str product_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -22788,27 +25565,24 @@ def api_clusters_mgmt_v1_pending_delete_clusters_get(self, **kwargs): # noqa: E number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20043 + :return: Product If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_products_product_id_get_with_http_info(product_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_pending_delete_clusters_get # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_get_with_http_info(self, product_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_get # noqa: E501 - Retrieves the list of pending delete clusters. # noqa: E501 + Retrieves the details of the product. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_get_with_http_info(product_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to sort the pending delete clusters descending by creation timestamp (i.e. their deletion time) the value should be: ```sql creation_timestamp desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. - :param int page: Index of the requested page, where one corresponds to the first page. - :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of a SQL statement, but using the names of the attributes of the pending delete cluster instead of the names of the columns of a table. For example, in order to retrieve all the pending delete clusters with creation time later than 2023-03-01T00:00:00Z the following is required: ```sql creation_timestamp > '2023-03-01T00:00:00Z' ``` If the parameter isn't provided, or if the value is empty, then all the pending delete clusters that the user has permission to see will be returned. - :param int size: Maximum number of items that will be contained in the returned page. + :param str product_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -22818,7 +25592,7 @@ def api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(self, **kwar number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20043, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(Product, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -22826,10 +25600,7 @@ def api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(self, **kwar local_var_params = locals() all_params = [ - 'order', - 'page', - 'search', - 'size' + 'product_id' ] all_params.extend( [ @@ -22844,24 +25615,22 @@ def api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(self, **kwar if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_pending_delete_clusters_get" % key + " to method api_clusters_mgmt_v1_products_product_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'product_id' is set + if self.api_client.client_side_validation and ('product_id' not in local_var_params or # noqa: E501 + local_var_params['product_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `product_id` when calling `api_clusters_mgmt_v1_products_product_id_get`") # noqa: E501 collection_formats = {} path_params = {} + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] # noqa: E501 query_params = [] - if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 - query_params.append(('order', local_var_params['order'])) # noqa: E501 - if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 - query_params.append(('page', local_var_params['page'])) # noqa: E501 - if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 - query_params.append(('search', local_var_params['search'])) # noqa: E501 - if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 - query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -22877,14 +25646,14 @@ def api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(self, **kwar auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/pending_delete_clusters', 'GET', + '/api/clusters_mgmt/v1/products/{product_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20043', # noqa: E501 + response_type='Product', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -22892,17 +25661,21 @@ def api_clusters_mgmt_v1_pending_delete_clusters_get_with_http_info(self, **kwar _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get(self, pending_delete_cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_minimal_versions_get(self, product_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_minimal_versions_get # noqa: E501 - Retrieves the details of the pending delete cluster. # noqa: E501 + Retrieves the list of product minimal versions. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get(pending_delete_cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_minimal_versions_get(product_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str pending_delete_cluster_id: (required) + :param str product_id: (required) + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -22910,24 +25683,28 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get(s number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: PendingDeleteCluster + :return: InlineResponse20034 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_with_http_info(pending_delete_cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_products_product_id_minimal_versions_get_with_http_info(product_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_with_http_info(self, pending_delete_cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_minimal_versions_get_with_http_info(self, product_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_minimal_versions_get # noqa: E501 - Retrieves the details of the pending delete cluster. # noqa: E501 + Retrieves the list of product minimal versions. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_with_http_info(pending_delete_cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_minimal_versions_get_with_http_info(product_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str pending_delete_cluster_id: (required) + :param str product_id: (required) + :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. + :param int page: Index of the requested page, where one corresponds to the first page. + :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. + :param int size: Maximum number of items that will be contained in the returned page. :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -22937,7 +25714,7 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_w number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(PendingDeleteCluster, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20034, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -22945,7 +25722,11 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_w local_var_params = locals() all_params = [ - 'pending_delete_cluster_id' + 'product_id', + 'order', + 'page', + 'search', + 'size' ] all_params.extend( [ @@ -22960,22 +25741,30 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_w if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get" % key + " to method api_clusters_mgmt_v1_products_product_id_minimal_versions_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'pending_delete_cluster_id' is set - if self.api_client.client_side_validation and ('pending_delete_cluster_id' not in local_var_params or # noqa: E501 - local_var_params['pending_delete_cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `pending_delete_cluster_id` when calling `api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get`") # noqa: E501 + # verify the required parameter 'product_id' is set + if self.api_client.client_side_validation and ('product_id' not in local_var_params or # noqa: E501 + local_var_params['product_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `product_id` when calling `api_clusters_mgmt_v1_products_product_id_minimal_versions_get`") # noqa: E501 collection_formats = {} path_params = {} - if 'pending_delete_cluster_id' in local_var_params: - path_params['pending_delete_cluster_id'] = local_var_params['pending_delete_cluster_id'] # noqa: E501 + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] # noqa: E501 query_params = [] + if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 + query_params.append(('order', local_var_params['order'])) # noqa: E501 + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'search' in local_var_params and local_var_params['search'] is not None: # noqa: E501 + query_params.append(('search', local_var_params['search'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} @@ -22991,14 +25780,14 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_w auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/pending_delete_clusters/{pending_delete_cluster_id}', 'GET', + '/api/clusters_mgmt/v1/products/{product_id}/minimal_versions', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PendingDeleteCluster', # noqa: E501 + response_type='InlineResponse20034', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -23006,18 +25795,18 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_get_w _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch(self, pending_delete_cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get(self, product_id, minimal_version_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get # noqa: E501 - Updates the pending delete cluster entry. # noqa: E501 + Retrieves the details of the product minimal version. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch(pending_delete_cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get(product_id, minimal_version_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str pending_delete_cluster_id: (required) - :param PendingDeleteCluster pending_delete_cluster: + :param str product_id: (required) + :param str minimal_version_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -23025,25 +25814,25 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: PendingDeleteCluster + :return: ProductMinimalVersion If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch_with_http_info(pending_delete_cluster_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get_with_http_info(product_id, minimal_version_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch_with_http_info(self, pending_delete_cluster_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get_with_http_info(self, product_id, minimal_version_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get # noqa: E501 - Updates the pending delete cluster entry. # noqa: E501 + Retrieves the details of the product minimal version. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch_with_http_info(pending_delete_cluster_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get_with_http_info(product_id, minimal_version_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously - :param str pending_delete_cluster_id: (required) - :param PendingDeleteCluster pending_delete_cluster: + :param str product_id: (required) + :param str minimal_version_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -23053,7 +25842,7 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(PendingDeleteCluster, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ProductMinimalVersion, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -23061,8 +25850,8 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch local_var_params = locals() all_params = [ - 'pending_delete_cluster_id', - 'pending_delete_cluster' + 'product_id', + 'minimal_version_id' ] all_params.extend( [ @@ -23077,20 +25866,26 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch" % key + " to method api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] - # verify the required parameter 'pending_delete_cluster_id' is set - if self.api_client.client_side_validation and ('pending_delete_cluster_id' not in local_var_params or # noqa: E501 - local_var_params['pending_delete_cluster_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `pending_delete_cluster_id` when calling `api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch`") # noqa: E501 + # verify the required parameter 'product_id' is set + if self.api_client.client_side_validation and ('product_id' not in local_var_params or # noqa: E501 + local_var_params['product_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `product_id` when calling `api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get`") # noqa: E501 + # verify the required parameter 'minimal_version_id' is set + if self.api_client.client_side_validation and ('minimal_version_id' not in local_var_params or # noqa: E501 + local_var_params['minimal_version_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `minimal_version_id` when calling `api_clusters_mgmt_v1_products_product_id_minimal_versions_minimal_version_id_get`") # noqa: E501 collection_formats = {} path_params = {} - if 'pending_delete_cluster_id' in local_var_params: - path_params['pending_delete_cluster_id'] = local_var_params['pending_delete_cluster_id'] # noqa: E501 + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] # noqa: E501 + if 'minimal_version_id' in local_var_params: + path_params['minimal_version_id'] = local_var_params['minimal_version_id'] # noqa: E501 query_params = [] @@ -23100,28 +25895,22 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch local_var_files = {} body_params = None - if 'pending_delete_cluster' in local_var_params: - body_params = local_var_params['pending_delete_cluster'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - # Authentication setting auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/pending_delete_clusters/{pending_delete_cluster_id}', 'PATCH', + '/api/clusters_mgmt/v1/products/{product_id}/minimal_versions/{minimal_version_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PendingDeleteCluster', # noqa: E501 + response_type='ProductMinimalVersion', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -23129,16 +25918,17 @@ def api_clusters_mgmt_v1_pending_delete_clusters_pending_delete_cluster_id_patch _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_products_get(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_products_get # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_technology_previews_get(self, product_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_technology_previews_get # noqa: E501 - Retrieves the list of products. # noqa: E501 + Retrieves the list of product technology previews. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_products_get(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_technology_previews_get(product_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param str product_id: (required) :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. :param int page: Index of the requested page, where one corresponds to the first page. :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. @@ -23150,23 +25940,24 @@ def api_clusters_mgmt_v1_products_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20044 + :return: InlineResponse20035 If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_products_get_with_http_info(**kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_products_product_id_technology_previews_get_with_http_info(product_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_products_get_with_http_info(self, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_products_get # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_technology_previews_get_with_http_info(self, product_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_technology_previews_get # noqa: E501 - Retrieves the list of products. # noqa: E501 + Retrieves the list of product technology previews. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_products_get_with_http_info(async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_technology_previews_get_with_http_info(product_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously + :param str product_id: (required) :param str order: Order criteria. The syntax of this parameter is similar to the syntax of the _order by_ clause of a SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to sort the products descending by name the value should be: ```sql name desc ``` If the parameter isn't provided, or if the value is empty, then the order of the results is undefined. :param int page: Index of the requested page, where one corresponds to the first page. :param str search: Search criteria. The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the product instead of the names of the columns of a table. For example, in order to retrieve all the products with a name starting with `my` the value should be: ```sql name like 'my%' ``` If the parameter isn't provided, or if the value is empty, then all the products that the user has permission to see will be returned. @@ -23180,7 +25971,7 @@ def api_clusters_mgmt_v1_products_get_with_http_info(self, **kwargs): # noqa: E number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20044, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20035, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -23188,6 +25979,7 @@ def api_clusters_mgmt_v1_products_get_with_http_info(self, **kwargs): # noqa: E local_var_params = locals() all_params = [ + 'product_id', 'order', 'page', 'search', @@ -23206,14 +25998,20 @@ def api_clusters_mgmt_v1_products_get_with_http_info(self, **kwargs): # noqa: E if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_products_get" % key + " to method api_clusters_mgmt_v1_products_product_id_technology_previews_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] + # verify the required parameter 'product_id' is set + if self.api_client.client_side_validation and ('product_id' not in local_var_params or # noqa: E501 + local_var_params['product_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `product_id` when calling `api_clusters_mgmt_v1_products_product_id_technology_previews_get`") # noqa: E501 collection_formats = {} path_params = {} + if 'product_id' in local_var_params: + path_params['product_id'] = local_var_params['product_id'] # noqa: E501 query_params = [] if 'order' in local_var_params and local_var_params['order'] is not None: # noqa: E501 @@ -23239,14 +26037,14 @@ def api_clusters_mgmt_v1_products_get_with_http_info(self, **kwargs): # noqa: E auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/products', 'GET', + '/api/clusters_mgmt/v1/products/{product_id}/technology_previews', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20044', # noqa: E501 + response_type='InlineResponse20035', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -23254,17 +26052,18 @@ def api_clusters_mgmt_v1_products_get_with_http_info(self, **kwargs): # noqa: E _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def api_clusters_mgmt_v1_products_product_id_get(self, product_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_products_product_id_get # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get(self, product_id, technology_preview_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get # noqa: E501 - Retrieves the details of the product. # noqa: E501 + Retrieves the details of the product technology preview. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_products_product_id_get(product_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get(product_id, technology_preview_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str product_id: (required) + :param str technology_preview_id: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. @@ -23272,24 +26071,25 @@ def api_clusters_mgmt_v1_products_product_id_get(self, product_id, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: Product + :return: ProductTechnologyPreview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.api_clusters_mgmt_v1_products_product_id_get_with_http_info(product_id, **kwargs) # noqa: E501 + return self.api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get_with_http_info(product_id, technology_preview_id, **kwargs) # noqa: E501 - def api_clusters_mgmt_v1_products_product_id_get_with_http_info(self, product_id, **kwargs): # noqa: E501 - """api_clusters_mgmt_v1_products_product_id_get # noqa: E501 + def api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get_with_http_info(self, product_id, technology_preview_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get # noqa: E501 - Retrieves the details of the product. # noqa: E501 + Retrieves the details of the product technology preview. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.api_clusters_mgmt_v1_products_product_id_get_with_http_info(product_id, async_req=True) + >>> thread = api.api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get_with_http_info(product_id, technology_preview_id, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str product_id: (required) + :param str technology_preview_id: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will @@ -23299,7 +26099,7 @@ def api_clusters_mgmt_v1_products_product_id_get_with_http_info(self, product_id number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(Product, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(ProductTechnologyPreview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -23307,7 +26107,8 @@ def api_clusters_mgmt_v1_products_product_id_get_with_http_info(self, product_id local_var_params = locals() all_params = [ - 'product_id' + 'product_id', + 'technology_preview_id' ] all_params.extend( [ @@ -23322,20 +26123,26 @@ def api_clusters_mgmt_v1_products_product_id_get_with_http_info(self, product_id if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method api_clusters_mgmt_v1_products_product_id_get" % key + " to method api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'product_id' is set if self.api_client.client_side_validation and ('product_id' not in local_var_params or # noqa: E501 local_var_params['product_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `product_id` when calling `api_clusters_mgmt_v1_products_product_id_get`") # noqa: E501 + raise ApiValueError("Missing the required parameter `product_id` when calling `api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get`") # noqa: E501 + # verify the required parameter 'technology_preview_id' is set + if self.api_client.client_side_validation and ('technology_preview_id' not in local_var_params or # noqa: E501 + local_var_params['technology_preview_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `technology_preview_id` when calling `api_clusters_mgmt_v1_products_product_id_technology_previews_technology_preview_id_get`") # noqa: E501 collection_formats = {} path_params = {} if 'product_id' in local_var_params: path_params['product_id'] = local_var_params['product_id'] # noqa: E501 + if 'technology_preview_id' in local_var_params: + path_params['technology_preview_id'] = local_var_params['technology_preview_id'] # noqa: E501 query_params = [] @@ -23353,14 +26160,14 @@ def api_clusters_mgmt_v1_products_product_id_get_with_http_info(self, product_id auth_settings = ['bearer'] # noqa: E501 return self.api_client.call_api( - '/api/clusters_mgmt/v1/products/{product_id}', 'GET', + '/api/clusters_mgmt/v1/products/{product_id}/technology_previews/{technology_preview_id}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='Product', # noqa: E501 + response_type='ProductTechnologyPreview', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -23387,7 +26194,7 @@ def api_clusters_mgmt_v1_provision_shards_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20045 + :return: InlineResponse20048 If the method is called asynchronously, returns the request thread. """ @@ -23415,7 +26222,7 @@ def api_clusters_mgmt_v1_provision_shards_get_with_http_info(self, **kwargs): # number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20045, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20048, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -23478,7 +26285,7 @@ def api_clusters_mgmt_v1_provision_shards_get_with_http_info(self, **kwargs): # body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20045', # noqa: E501 + response_type='InlineResponse20048', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -23951,6 +26758,235 @@ def api_clusters_mgmt_v1_provision_shards_provision_shard_id_patch_with_http_inf _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) + def api_clusters_mgmt_v1_trusted_ip_addresses_get(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_trusted_ip_addresses_get # noqa: E501 + + Retrieves the list of trusted ip addresses. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_trusted_ip_addresses_get(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse20049 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_trusted_ip_addresses_get_with_http_info(**kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_trusted_ip_addresses_get_with_http_info(self, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_trusted_ip_addresses_get # noqa: E501 + + Retrieves the list of trusted ip addresses. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_trusted_ip_addresses_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int page: Index of the requested page, where one corresponds to the first page. + :param int size: Number of items contained in the returned page. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse20049, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'page', + 'size' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_trusted_ip_addresses_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 + query_params.append(('page', local_var_params['page'])) # noqa: E501 + if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 + query_params.append(('size', local_var_params['size'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/trusted_ip_addresses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20049', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get(self, trusted_ip_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get # noqa: E501 + + Retrieves the trusted ip adresses. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get(trusted_ip_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str trusted_ip_id: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: TrustedIp + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get_with_http_info(trusted_ip_id, **kwargs) # noqa: E501 + + def api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get_with_http_info(self, trusted_ip_id, **kwargs): # noqa: E501 + """api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get # noqa: E501 + + Retrieves the trusted ip adresses. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get_with_http_info(trusted_ip_id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str trusted_ip_id: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(TrustedIp, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [ + 'trusted_ip_id' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'trusted_ip_id' is set + if self.api_client.client_side_validation and ('trusted_ip_id' not in local_var_params or # noqa: E501 + local_var_params['trusted_ip_id'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `trusted_ip_id` when calling `api_clusters_mgmt_v1_trusted_ip_addresses_trusted_ip_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'trusted_ip_id' in local_var_params: + path_params['trusted_ip_id'] = local_var_params['trusted_ip_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['bearer'] # noqa: E501 + + return self.api_client.call_api( + '/api/clusters_mgmt/v1/trusted_ip_addresses/{trusted_ip_id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TrustedIp', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + def api_clusters_mgmt_v1_version_gates_get(self, **kwargs): # noqa: E501 """api_clusters_mgmt_v1_version_gates_get # noqa: E501 @@ -23972,7 +27008,7 @@ def api_clusters_mgmt_v1_version_gates_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20046 + :return: InlineResponse20050 If the method is called asynchronously, returns the request thread. """ @@ -24002,7 +27038,7 @@ def api_clusters_mgmt_v1_version_gates_get_with_http_info(self, **kwargs): # no number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20046, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20050, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -24068,7 +27104,7 @@ def api_clusters_mgmt_v1_version_gates_get_with_http_info(self, **kwargs): # no body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20046', # noqa: E501 + response_type='InlineResponse20050', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 @@ -24439,7 +27475,7 @@ def api_clusters_mgmt_v1_versions_get(self, **kwargs): # noqa: E501 number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: InlineResponse20047 + :return: InlineResponse20051 If the method is called asynchronously, returns the request thread. """ @@ -24469,7 +27505,7 @@ def api_clusters_mgmt_v1_versions_get_with_http_info(self, **kwargs): # noqa: E number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(InlineResponse20047, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(InlineResponse20051, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -24535,7 +27571,7 @@ def api_clusters_mgmt_v1_versions_get_with_http_info(self, **kwargs): # noqa: E body=body_params, post_params=form_params, files=local_var_files, - response_type='InlineResponse20047', # noqa: E501 + response_type='InlineResponse20051', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 diff --git a/ocm_client/models/__init__.py b/ocm_client/models/__init__.py index 3a6dbd8..0d54da3 100644 --- a/ocm_client/models/__init__.py +++ b/ocm_client/models/__init__.py @@ -15,6 +15,7 @@ from __future__ import absolute_import # import models into model package +from ocm_client.models.ami_override import AMIOverride from ocm_client.models.aws import AWS from ocm_client.models.aws_flavour import AWSFlavour from ocm_client.models.aws_infrastructure_access_role import AWSInfrastructureAccessRole @@ -23,7 +24,9 @@ from ocm_client.models.aws_infrastructure_access_role_state import AWSInfrastructureAccessRoleState from ocm_client.models.aws_machine_pool import AWSMachinePool from ocm_client.models.aws_node_pool import AWSNodePool +from ocm_client.models.awssts_account_role import AWSSTSAccountRole from ocm_client.models.awssts_policy import AWSSTSPolicy +from ocm_client.models.awssts_role import AWSSTSRole from ocm_client.models.aws_spot_market_options import AWSSpotMarketOptions from ocm_client.models.aws_volume import AWSVolume from ocm_client.models.add_on import AddOn @@ -50,8 +53,12 @@ from ocm_client.models.alert_severity import AlertSeverity from ocm_client.models.alerts_info import AlertsInfo from ocm_client.models.audit_log import AuditLog +from ocm_client.models.autoscaler_resource_limits import AutoscalerResourceLimits +from ocm_client.models.autoscaler_resource_limits_gpu_limit import AutoscalerResourceLimitsGPULimit +from ocm_client.models.autoscaler_scale_down_config import AutoscalerScaleDownConfig from ocm_client.models.aws_etcd_encryption import AwsEtcdEncryption from ocm_client.models.billing_model import BillingModel +from ocm_client.models.billing_model_item import BillingModelItem from ocm_client.models.byo_oidc import ByoOidc from ocm_client.models.ccs import CCS from ocm_client.models.cpu_total_node_role_os_metric_node import CPUTotalNodeRoleOSMetricNode @@ -62,6 +69,7 @@ from ocm_client.models.cloud_vpc import CloudVPC from ocm_client.models.cluster import Cluster from ocm_client.models.cluster_api import ClusterAPI +from ocm_client.models.cluster_autoscaler import ClusterAutoscaler from ocm_client.models.cluster_configuration_mode import ClusterConfigurationMode from ocm_client.models.cluster_console import ClusterConsole from ocm_client.models.cluster_credentials import ClusterCredentials @@ -93,8 +101,10 @@ from ocm_client.models.gcp import GCP from ocm_client.models.gcp_encryption_key import GCPEncryptionKey from ocm_client.models.gcp_flavour import GCPFlavour +from ocm_client.models.gcp_image_override import GCPImageOverride from ocm_client.models.gcp_network import GCPNetwork from ocm_client.models.gcp_volume import GCPVolume +from ocm_client.models.gcp_security import GcpSecurity from ocm_client.models.github_identity_provider import GithubIdentityProvider from ocm_client.models.gitlab_identity_provider import GitlabIdentityProvider from ocm_client.models.google_identity_provider import GoogleIdentityProvider @@ -106,6 +116,7 @@ from ocm_client.models.identity_provider import IdentityProvider from ocm_client.models.identity_provider_mapping_method import IdentityProviderMappingMethod from ocm_client.models.identity_provider_type import IdentityProviderType +from ocm_client.models.image_overrides import ImageOverrides from ocm_client.models.inflight_check import InflightCheck from ocm_client.models.inflight_check_state import InflightCheckState from ocm_client.models.ingress import Ingress @@ -153,13 +164,18 @@ from ocm_client.models.inline_response20045 import InlineResponse20045 from ocm_client.models.inline_response20046 import InlineResponse20046 from ocm_client.models.inline_response20047 import InlineResponse20047 +from ocm_client.models.inline_response20048 import InlineResponse20048 +from ocm_client.models.inline_response20049 import InlineResponse20049 from ocm_client.models.inline_response2005 import InlineResponse2005 +from ocm_client.models.inline_response20050 import InlineResponse20050 +from ocm_client.models.inline_response20051 import InlineResponse20051 from ocm_client.models.inline_response2006 import InlineResponse2006 from ocm_client.models.inline_response2007 import InlineResponse2007 from ocm_client.models.inline_response2008 import InlineResponse2008 from ocm_client.models.inline_response2009 import InlineResponse2009 from ocm_client.models.instance_iam_roles import InstanceIAMRoles from ocm_client.models.key_ring import KeyRing +from ocm_client.models.kubelet_config import KubeletConfig from ocm_client.models.ldap_attributes import LDAPAttributes from ocm_client.models.ldap_identity_provider import LDAPIdentityProvider from ocm_client.models.label import Label @@ -177,7 +193,9 @@ from ocm_client.models.managed_service import ManagedService from ocm_client.models.manifest import Manifest from ocm_client.models.metadata import Metadata +from ocm_client.models.namespace_ownership_policy import NamespaceOwnershipPolicy from ocm_client.models.network import Network +from ocm_client.models.network_verification import NetworkVerification from ocm_client.models.node_info import NodeInfo from ocm_client.models.node_pool import NodePool from ocm_client.models.node_pool_autoscaling import NodePoolAutoscaling @@ -196,25 +214,36 @@ from ocm_client.models.private_link_principal import PrivateLinkPrincipal from ocm_client.models.private_link_principals import PrivateLinkPrincipals from ocm_client.models.product import Product +from ocm_client.models.product_minimal_version import ProductMinimalVersion +from ocm_client.models.product_technology_preview import ProductTechnologyPreview from ocm_client.models.provision_shard import ProvisionShard +from ocm_client.models.provision_shard_topology import ProvisionShardTopology from ocm_client.models.proxy import Proxy +from ocm_client.models.resource_range import ResourceRange from ocm_client.models.root_volume import RootVolume from ocm_client.models.sts import STS from ocm_client.models.sts_credential_request import STSCredentialRequest from ocm_client.models.sts_operator import STSOperator +from ocm_client.models.schedule_type import ScheduleType +from ocm_client.models.security_group import SecurityGroup from ocm_client.models.server_config import ServerConfig from ocm_client.models.socket_total_node_role_os_metric_node import SocketTotalNodeRoleOSMetricNode from ocm_client.models.socket_totals_node_role_os_metric_node import SocketTotalsNodeRoleOSMetricNode +from ocm_client.models.sts_support_jump_role import StsSupportJumpRole +from ocm_client.models.subnet_network_verification import SubnetNetworkVerification from ocm_client.models.subnetwork import Subnetwork from ocm_client.models.subscription import Subscription from ocm_client.models.syncset import Syncset from ocm_client.models.taint import Taint +from ocm_client.models.trusted_ip import TrustedIp from ocm_client.models.tuning_config import TuningConfig from ocm_client.models.upgrade_policy import UpgradePolicy from ocm_client.models.upgrade_policy_state import UpgradePolicyState from ocm_client.models.upgrade_policy_state_value import UpgradePolicyStateValue +from ocm_client.models.upgrade_type import UpgradeType from ocm_client.models.user import User from ocm_client.models.value import Value from ocm_client.models.version import Version from ocm_client.models.version_gate import VersionGate from ocm_client.models.version_gate_agreement import VersionGateAgreement +from ocm_client.models.wildcard_policy import WildcardPolicy diff --git a/ocm_client/models/ami_override.py b/ocm_client/models/ami_override.py new file mode 100644 index 0000000..a668a14 --- /dev/null +++ b/ocm_client/models/ami_override.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class AMIOverride(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'ami': 'str', + 'product': 'Product', + 'region': 'CloudRegion' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'ami': 'ami', + 'product': 'product', + 'region': 'region' + } + + def __init__(self, kind=None, id=None, href=None, ami=None, product=None, region=None, local_vars_configuration=None): # noqa: E501 + """AMIOverride - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._ami = None + self._product = None + self._region = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if ami is not None: + self.ami = ami + if product is not None: + self.product = product + if region is not None: + self.region = region + + @property + def kind(self): + """Gets the kind of this AMIOverride. # noqa: E501 + + Indicates the type of this object. Will be 'AMIOverride' if this is a complete object or 'AMIOverrideLink' if it is just a link. # noqa: E501 + + :return: The kind of this AMIOverride. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this AMIOverride. + + Indicates the type of this object. Will be 'AMIOverride' if this is a complete object or 'AMIOverrideLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this AMIOverride. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this AMIOverride. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this AMIOverride. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AMIOverride. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this AMIOverride. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this AMIOverride. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this AMIOverride. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this AMIOverride. + + Self link. # noqa: E501 + + :param href: The href of this AMIOverride. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def ami(self): + """Gets the ami of this AMIOverride. # noqa: E501 + + AMI is the id of the Amazon Machine Image. # noqa: E501 + + :return: The ami of this AMIOverride. # noqa: E501 + :rtype: str + """ + return self._ami + + @ami.setter + def ami(self, ami): + """Sets the ami of this AMIOverride. + + AMI is the id of the Amazon Machine Image. # noqa: E501 + + :param ami: The ami of this AMIOverride. # noqa: E501 + :type: str + """ + + self._ami = ami + + @property + def product(self): + """Gets the product of this AMIOverride. # noqa: E501 + + + :return: The product of this AMIOverride. # noqa: E501 + :rtype: Product + """ + return self._product + + @product.setter + def product(self, product): + """Sets the product of this AMIOverride. + + + :param product: The product of this AMIOverride. # noqa: E501 + :type: Product + """ + + self._product = product + + @property + def region(self): + """Gets the region of this AMIOverride. # noqa: E501 + + + :return: The region of this AMIOverride. # noqa: E501 + :rtype: CloudRegion + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this AMIOverride. + + + :param region: The region of this AMIOverride. # noqa: E501 + :type: CloudRegion + """ + + self._region = region + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AMIOverride): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AMIOverride): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/autoscaler_resource_limits.py b/ocm_client/models/autoscaler_resource_limits.py new file mode 100644 index 0000000..6d68e72 --- /dev/null +++ b/ocm_client/models/autoscaler_resource_limits.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class AutoscalerResourceLimits(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'gpus': 'list[AutoscalerResourceLimitsGPULimit]', + 'cores': 'ResourceRange', + 'max_nodes_total': 'int', + 'memory': 'ResourceRange' + } + + attribute_map = { + 'gpus': 'gpus', + 'cores': 'cores', + 'max_nodes_total': 'max_nodes_total', + 'memory': 'memory' + } + + def __init__(self, gpus=None, cores=None, max_nodes_total=None, memory=None, local_vars_configuration=None): # noqa: E501 + """AutoscalerResourceLimits - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._gpus = None + self._cores = None + self._max_nodes_total = None + self._memory = None + self.discriminator = None + + if gpus is not None: + self.gpus = gpus + if cores is not None: + self.cores = cores + if max_nodes_total is not None: + self.max_nodes_total = max_nodes_total + if memory is not None: + self.memory = memory + + @property + def gpus(self): + """Gets the gpus of this AutoscalerResourceLimits. # noqa: E501 + + Minimum and maximum number of different GPUs in cluster, in the format ::. Cluster autoscaler will not scale the cluster beyond these numbers. Can be passed multiple times. # noqa: E501 + + :return: The gpus of this AutoscalerResourceLimits. # noqa: E501 + :rtype: list[AutoscalerResourceLimitsGPULimit] + """ + return self._gpus + + @gpus.setter + def gpus(self, gpus): + """Sets the gpus of this AutoscalerResourceLimits. + + Minimum and maximum number of different GPUs in cluster, in the format ::. Cluster autoscaler will not scale the cluster beyond these numbers. Can be passed multiple times. # noqa: E501 + + :param gpus: The gpus of this AutoscalerResourceLimits. # noqa: E501 + :type: list[AutoscalerResourceLimitsGPULimit] + """ + + self._gpus = gpus + + @property + def cores(self): + """Gets the cores of this AutoscalerResourceLimits. # noqa: E501 + + + :return: The cores of this AutoscalerResourceLimits. # noqa: E501 + :rtype: ResourceRange + """ + return self._cores + + @cores.setter + def cores(self, cores): + """Sets the cores of this AutoscalerResourceLimits. + + + :param cores: The cores of this AutoscalerResourceLimits. # noqa: E501 + :type: ResourceRange + """ + + self._cores = cores + + @property + def max_nodes_total(self): + """Gets the max_nodes_total of this AutoscalerResourceLimits. # noqa: E501 + + Maximum number of nodes in all node groups. Cluster autoscaler will not grow the cluster beyond this number. # noqa: E501 + + :return: The max_nodes_total of this AutoscalerResourceLimits. # noqa: E501 + :rtype: int + """ + return self._max_nodes_total + + @max_nodes_total.setter + def max_nodes_total(self, max_nodes_total): + """Sets the max_nodes_total of this AutoscalerResourceLimits. + + Maximum number of nodes in all node groups. Cluster autoscaler will not grow the cluster beyond this number. # noqa: E501 + + :param max_nodes_total: The max_nodes_total of this AutoscalerResourceLimits. # noqa: E501 + :type: int + """ + + self._max_nodes_total = max_nodes_total + + @property + def memory(self): + """Gets the memory of this AutoscalerResourceLimits. # noqa: E501 + + + :return: The memory of this AutoscalerResourceLimits. # noqa: E501 + :rtype: ResourceRange + """ + return self._memory + + @memory.setter + def memory(self, memory): + """Sets the memory of this AutoscalerResourceLimits. + + + :param memory: The memory of this AutoscalerResourceLimits. # noqa: E501 + :type: ResourceRange + """ + + self._memory = memory + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AutoscalerResourceLimits): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AutoscalerResourceLimits): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/autoscaler_resource_limits_gpu_limit.py b/ocm_client/models/autoscaler_resource_limits_gpu_limit.py new file mode 100644 index 0000000..afeb535 --- /dev/null +++ b/ocm_client/models/autoscaler_resource_limits_gpu_limit.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class AutoscalerResourceLimitsGPULimit(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'range': 'ResourceRange', + 'type': 'str' + } + + attribute_map = { + 'range': 'range', + 'type': 'type' + } + + def __init__(self, range=None, type=None, local_vars_configuration=None): # noqa: E501 + """AutoscalerResourceLimitsGPULimit - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._range = None + self._type = None + self.discriminator = None + + if range is not None: + self.range = range + if type is not None: + self.type = type + + @property + def range(self): + """Gets the range of this AutoscalerResourceLimitsGPULimit. # noqa: E501 + + + :return: The range of this AutoscalerResourceLimitsGPULimit. # noqa: E501 + :rtype: ResourceRange + """ + return self._range + + @range.setter + def range(self, range): + """Sets the range of this AutoscalerResourceLimitsGPULimit. + + + :param range: The range of this AutoscalerResourceLimitsGPULimit. # noqa: E501 + :type: ResourceRange + """ + + self._range = range + + @property + def type(self): + """Gets the type of this AutoscalerResourceLimitsGPULimit. # noqa: E501 + + The type of GPU to associate with the minimum and maximum limits. This value is used by the Cluster Autoscaler to identify Nodes that will have GPU capacity by searching for it as a label value on the Node objects. For example, Nodes that carry the label key `cluster-api/accelerator` with the label value being the same as the Type field will be counted towards the resource limits by the Cluster Autoscaler. # noqa: E501 + + :return: The type of this AutoscalerResourceLimitsGPULimit. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this AutoscalerResourceLimitsGPULimit. + + The type of GPU to associate with the minimum and maximum limits. This value is used by the Cluster Autoscaler to identify Nodes that will have GPU capacity by searching for it as a label value on the Node objects. For example, Nodes that carry the label key `cluster-api/accelerator` with the label value being the same as the Type field will be counted towards the resource limits by the Cluster Autoscaler. # noqa: E501 + + :param type: The type of this AutoscalerResourceLimitsGPULimit. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AutoscalerResourceLimitsGPULimit): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AutoscalerResourceLimitsGPULimit): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/autoscaler_scale_down_config.py b/ocm_client/models/autoscaler_scale_down_config.py new file mode 100644 index 0000000..5a03bc1 --- /dev/null +++ b/ocm_client/models/autoscaler_scale_down_config.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class AutoscalerScaleDownConfig(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'delay_after_add': 'str', + 'delay_after_delete': 'str', + 'delay_after_failure': 'str', + 'enabled': 'bool', + 'unneeded_time': 'str', + 'utilization_threshold': 'str' + } + + attribute_map = { + 'delay_after_add': 'delay_after_add', + 'delay_after_delete': 'delay_after_delete', + 'delay_after_failure': 'delay_after_failure', + 'enabled': 'enabled', + 'unneeded_time': 'unneeded_time', + 'utilization_threshold': 'utilization_threshold' + } + + def __init__(self, delay_after_add=None, delay_after_delete=None, delay_after_failure=None, enabled=None, unneeded_time=None, utilization_threshold=None, local_vars_configuration=None): # noqa: E501 + """AutoscalerScaleDownConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._delay_after_add = None + self._delay_after_delete = None + self._delay_after_failure = None + self._enabled = None + self._unneeded_time = None + self._utilization_threshold = None + self.discriminator = None + + if delay_after_add is not None: + self.delay_after_add = delay_after_add + if delay_after_delete is not None: + self.delay_after_delete = delay_after_delete + if delay_after_failure is not None: + self.delay_after_failure = delay_after_failure + if enabled is not None: + self.enabled = enabled + if unneeded_time is not None: + self.unneeded_time = unneeded_time + if utilization_threshold is not None: + self.utilization_threshold = utilization_threshold + + @property + def delay_after_add(self): + """Gets the delay_after_add of this AutoscalerScaleDownConfig. # noqa: E501 + + How long after scale up that scale down evaluation resumes. # noqa: E501 + + :return: The delay_after_add of this AutoscalerScaleDownConfig. # noqa: E501 + :rtype: str + """ + return self._delay_after_add + + @delay_after_add.setter + def delay_after_add(self, delay_after_add): + """Sets the delay_after_add of this AutoscalerScaleDownConfig. + + How long after scale up that scale down evaluation resumes. # noqa: E501 + + :param delay_after_add: The delay_after_add of this AutoscalerScaleDownConfig. # noqa: E501 + :type: str + """ + + self._delay_after_add = delay_after_add + + @property + def delay_after_delete(self): + """Gets the delay_after_delete of this AutoscalerScaleDownConfig. # noqa: E501 + + How long after node deletion that scale down evaluation resumes, defaults to scan-interval. # noqa: E501 + + :return: The delay_after_delete of this AutoscalerScaleDownConfig. # noqa: E501 + :rtype: str + """ + return self._delay_after_delete + + @delay_after_delete.setter + def delay_after_delete(self, delay_after_delete): + """Sets the delay_after_delete of this AutoscalerScaleDownConfig. + + How long after node deletion that scale down evaluation resumes, defaults to scan-interval. # noqa: E501 + + :param delay_after_delete: The delay_after_delete of this AutoscalerScaleDownConfig. # noqa: E501 + :type: str + """ + + self._delay_after_delete = delay_after_delete + + @property + def delay_after_failure(self): + """Gets the delay_after_failure of this AutoscalerScaleDownConfig. # noqa: E501 + + How long after scale down failure that scale down evaluation resumes. # noqa: E501 + + :return: The delay_after_failure of this AutoscalerScaleDownConfig. # noqa: E501 + :rtype: str + """ + return self._delay_after_failure + + @delay_after_failure.setter + def delay_after_failure(self, delay_after_failure): + """Sets the delay_after_failure of this AutoscalerScaleDownConfig. + + How long after scale down failure that scale down evaluation resumes. # noqa: E501 + + :param delay_after_failure: The delay_after_failure of this AutoscalerScaleDownConfig. # noqa: E501 + :type: str + """ + + self._delay_after_failure = delay_after_failure + + @property + def enabled(self): + """Gets the enabled of this AutoscalerScaleDownConfig. # noqa: E501 + + Should cluster-autoscaler scale down the cluster. # noqa: E501 + + :return: The enabled of this AutoscalerScaleDownConfig. # noqa: E501 + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this AutoscalerScaleDownConfig. + + Should cluster-autoscaler scale down the cluster. # noqa: E501 + + :param enabled: The enabled of this AutoscalerScaleDownConfig. # noqa: E501 + :type: bool + """ + + self._enabled = enabled + + @property + def unneeded_time(self): + """Gets the unneeded_time of this AutoscalerScaleDownConfig. # noqa: E501 + + How long a node should be unneeded before it is eligible for scale down. # noqa: E501 + + :return: The unneeded_time of this AutoscalerScaleDownConfig. # noqa: E501 + :rtype: str + """ + return self._unneeded_time + + @unneeded_time.setter + def unneeded_time(self, unneeded_time): + """Sets the unneeded_time of this AutoscalerScaleDownConfig. + + How long a node should be unneeded before it is eligible for scale down. # noqa: E501 + + :param unneeded_time: The unneeded_time of this AutoscalerScaleDownConfig. # noqa: E501 + :type: str + """ + + self._unneeded_time = unneeded_time + + @property + def utilization_threshold(self): + """Gets the utilization_threshold of this AutoscalerScaleDownConfig. # noqa: E501 + + Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down. # noqa: E501 + + :return: The utilization_threshold of this AutoscalerScaleDownConfig. # noqa: E501 + :rtype: str + """ + return self._utilization_threshold + + @utilization_threshold.setter + def utilization_threshold(self, utilization_threshold): + """Sets the utilization_threshold of this AutoscalerScaleDownConfig. + + Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down. # noqa: E501 + + :param utilization_threshold: The utilization_threshold of this AutoscalerScaleDownConfig. # noqa: E501 + :type: str + """ + + self._utilization_threshold = utilization_threshold + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AutoscalerScaleDownConfig): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AutoscalerScaleDownConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/aws.py b/ocm_client/models/aws.py index ce9c938..c58d618 100644 --- a/ocm_client/models/aws.py +++ b/ocm_client/models/aws.py @@ -38,10 +38,15 @@ class AWS(object): 'sts': 'STS', 'access_key_id': 'str', 'account_id': 'str', + 'additional_compute_security_group_ids': 'list[str]', + 'additional_control_plane_security_group_ids': 'list[str]', + 'additional_infra_security_group_ids': 'list[str]', 'audit_log': 'AuditLog', 'billing_account_id': 'str', 'ec2_metadata_http_tokens': 'Ec2MetadataHttpTokens', 'etcd_encryption': 'AwsEtcdEncryption', + 'private_hosted_zone_id': 'str', + 'private_hosted_zone_role_arn': 'str', 'private_link': 'bool', 'private_link_configuration': 'PrivateLinkClusterConfiguration', 'secret_access_key': 'str', @@ -54,10 +59,15 @@ class AWS(object): 'sts': 'sts', 'access_key_id': 'access_key_id', 'account_id': 'account_id', + 'additional_compute_security_group_ids': 'additional_compute_security_group_ids', + 'additional_control_plane_security_group_ids': 'additional_control_plane_security_group_ids', + 'additional_infra_security_group_ids': 'additional_infra_security_group_ids', 'audit_log': 'audit_log', 'billing_account_id': 'billing_account_id', 'ec2_metadata_http_tokens': 'ec2_metadata_http_tokens', 'etcd_encryption': 'etcd_encryption', + 'private_hosted_zone_id': 'private_hosted_zone_id', + 'private_hosted_zone_role_arn': 'private_hosted_zone_role_arn', 'private_link': 'private_link', 'private_link_configuration': 'private_link_configuration', 'secret_access_key': 'secret_access_key', @@ -65,7 +75,7 @@ class AWS(object): 'tags': 'tags' } - def __init__(self, kms_key_arn=None, sts=None, access_key_id=None, account_id=None, audit_log=None, billing_account_id=None, ec2_metadata_http_tokens=None, etcd_encryption=None, private_link=None, private_link_configuration=None, secret_access_key=None, subnet_ids=None, tags=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, kms_key_arn=None, sts=None, access_key_id=None, account_id=None, additional_compute_security_group_ids=None, additional_control_plane_security_group_ids=None, additional_infra_security_group_ids=None, audit_log=None, billing_account_id=None, ec2_metadata_http_tokens=None, etcd_encryption=None, private_hosted_zone_id=None, private_hosted_zone_role_arn=None, private_link=None, private_link_configuration=None, secret_access_key=None, subnet_ids=None, tags=None, local_vars_configuration=None): # noqa: E501 """AWS - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -75,10 +85,15 @@ def __init__(self, kms_key_arn=None, sts=None, access_key_id=None, account_id=No self._sts = None self._access_key_id = None self._account_id = None + self._additional_compute_security_group_ids = None + self._additional_control_plane_security_group_ids = None + self._additional_infra_security_group_ids = None self._audit_log = None self._billing_account_id = None self._ec2_metadata_http_tokens = None self._etcd_encryption = None + self._private_hosted_zone_id = None + self._private_hosted_zone_role_arn = None self._private_link = None self._private_link_configuration = None self._secret_access_key = None @@ -94,6 +109,12 @@ def __init__(self, kms_key_arn=None, sts=None, access_key_id=None, account_id=No self.access_key_id = access_key_id if account_id is not None: self.account_id = account_id + if additional_compute_security_group_ids is not None: + self.additional_compute_security_group_ids = additional_compute_security_group_ids + if additional_control_plane_security_group_ids is not None: + self.additional_control_plane_security_group_ids = additional_control_plane_security_group_ids + if additional_infra_security_group_ids is not None: + self.additional_infra_security_group_ids = additional_infra_security_group_ids if audit_log is not None: self.audit_log = audit_log if billing_account_id is not None: @@ -102,6 +123,10 @@ def __init__(self, kms_key_arn=None, sts=None, access_key_id=None, account_id=No self.ec2_metadata_http_tokens = ec2_metadata_http_tokens if etcd_encryption is not None: self.etcd_encryption = etcd_encryption + if private_hosted_zone_id is not None: + self.private_hosted_zone_id = private_hosted_zone_id + if private_hosted_zone_role_arn is not None: + self.private_hosted_zone_role_arn = private_hosted_zone_role_arn if private_link is not None: self.private_link = private_link if private_link_configuration is not None: @@ -203,6 +228,75 @@ def account_id(self, account_id): self._account_id = account_id + @property + def additional_compute_security_group_ids(self): + """Gets the additional_compute_security_group_ids of this AWS. # noqa: E501 + + Additional AWS Security Groups to be added to default worker (compute) machine pool. # noqa: E501 + + :return: The additional_compute_security_group_ids of this AWS. # noqa: E501 + :rtype: list[str] + """ + return self._additional_compute_security_group_ids + + @additional_compute_security_group_ids.setter + def additional_compute_security_group_ids(self, additional_compute_security_group_ids): + """Sets the additional_compute_security_group_ids of this AWS. + + Additional AWS Security Groups to be added to default worker (compute) machine pool. # noqa: E501 + + :param additional_compute_security_group_ids: The additional_compute_security_group_ids of this AWS. # noqa: E501 + :type: list[str] + """ + + self._additional_compute_security_group_ids = additional_compute_security_group_ids + + @property + def additional_control_plane_security_group_ids(self): + """Gets the additional_control_plane_security_group_ids of this AWS. # noqa: E501 + + Additional AWS Security Groups to be added to default control plane machine pool. # noqa: E501 + + :return: The additional_control_plane_security_group_ids of this AWS. # noqa: E501 + :rtype: list[str] + """ + return self._additional_control_plane_security_group_ids + + @additional_control_plane_security_group_ids.setter + def additional_control_plane_security_group_ids(self, additional_control_plane_security_group_ids): + """Sets the additional_control_plane_security_group_ids of this AWS. + + Additional AWS Security Groups to be added to default control plane machine pool. # noqa: E501 + + :param additional_control_plane_security_group_ids: The additional_control_plane_security_group_ids of this AWS. # noqa: E501 + :type: list[str] + """ + + self._additional_control_plane_security_group_ids = additional_control_plane_security_group_ids + + @property + def additional_infra_security_group_ids(self): + """Gets the additional_infra_security_group_ids of this AWS. # noqa: E501 + + Additional AWS Security Groups to be added to default infra machine pool. # noqa: E501 + + :return: The additional_infra_security_group_ids of this AWS. # noqa: E501 + :rtype: list[str] + """ + return self._additional_infra_security_group_ids + + @additional_infra_security_group_ids.setter + def additional_infra_security_group_ids(self, additional_infra_security_group_ids): + """Sets the additional_infra_security_group_ids of this AWS. + + Additional AWS Security Groups to be added to default infra machine pool. # noqa: E501 + + :param additional_infra_security_group_ids: The additional_infra_security_group_ids of this AWS. # noqa: E501 + :type: list[str] + """ + + self._additional_infra_security_group_ids = additional_infra_security_group_ids + @property def audit_log(self): """Gets the audit_log of this AWS. # noqa: E501 @@ -289,6 +383,52 @@ def etcd_encryption(self, etcd_encryption): self._etcd_encryption = etcd_encryption + @property + def private_hosted_zone_id(self): + """Gets the private_hosted_zone_id of this AWS. # noqa: E501 + + ID of private hosted zone. # noqa: E501 + + :return: The private_hosted_zone_id of this AWS. # noqa: E501 + :rtype: str + """ + return self._private_hosted_zone_id + + @private_hosted_zone_id.setter + def private_hosted_zone_id(self, private_hosted_zone_id): + """Sets the private_hosted_zone_id of this AWS. + + ID of private hosted zone. # noqa: E501 + + :param private_hosted_zone_id: The private_hosted_zone_id of this AWS. # noqa: E501 + :type: str + """ + + self._private_hosted_zone_id = private_hosted_zone_id + + @property + def private_hosted_zone_role_arn(self): + """Gets the private_hosted_zone_role_arn of this AWS. # noqa: E501 + + Role ARN for private hosted zone. # noqa: E501 + + :return: The private_hosted_zone_role_arn of this AWS. # noqa: E501 + :rtype: str + """ + return self._private_hosted_zone_role_arn + + @private_hosted_zone_role_arn.setter + def private_hosted_zone_role_arn(self, private_hosted_zone_role_arn): + """Sets the private_hosted_zone_role_arn of this AWS. + + Role ARN for private hosted zone. # noqa: E501 + + :param private_hosted_zone_role_arn: The private_hosted_zone_role_arn of this AWS. # noqa: E501 + :type: str + """ + + self._private_hosted_zone_role_arn = private_hosted_zone_role_arn + @property def private_link(self): """Gets the private_link of this AWS. # noqa: E501 diff --git a/ocm_client/models/aws_machine_pool.py b/ocm_client/models/aws_machine_pool.py index 9e15357..eeec679 100644 --- a/ocm_client/models/aws_machine_pool.py +++ b/ocm_client/models/aws_machine_pool.py @@ -37,6 +37,7 @@ class AWSMachinePool(object): 'kind': 'str', 'id': 'str', 'href': 'str', + 'additional_security_group_ids': 'list[str]', 'spot_market_options': 'AWSSpotMarketOptions' } @@ -44,10 +45,11 @@ class AWSMachinePool(object): 'kind': 'kind', 'id': 'id', 'href': 'href', + 'additional_security_group_ids': 'additional_security_group_ids', 'spot_market_options': 'spot_market_options' } - def __init__(self, kind=None, id=None, href=None, spot_market_options=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, kind=None, id=None, href=None, additional_security_group_ids=None, spot_market_options=None, local_vars_configuration=None): # noqa: E501 """AWSMachinePool - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -56,6 +58,7 @@ def __init__(self, kind=None, id=None, href=None, spot_market_options=None, loca self._kind = None self._id = None self._href = None + self._additional_security_group_ids = None self._spot_market_options = None self.discriminator = None @@ -65,6 +68,8 @@ def __init__(self, kind=None, id=None, href=None, spot_market_options=None, loca self.id = id if href is not None: self.href = href + if additional_security_group_ids is not None: + self.additional_security_group_ids = additional_security_group_ids if spot_market_options is not None: self.spot_market_options = spot_market_options @@ -137,6 +142,29 @@ def href(self, href): self._href = href + @property + def additional_security_group_ids(self): + """Gets the additional_security_group_ids of this AWSMachinePool. # noqa: E501 + + Additional AWS Security Groups to be added machine pool. Note that machine pools can only be worker node at the time. # noqa: E501 + + :return: The additional_security_group_ids of this AWSMachinePool. # noqa: E501 + :rtype: list[str] + """ + return self._additional_security_group_ids + + @additional_security_group_ids.setter + def additional_security_group_ids(self, additional_security_group_ids): + """Sets the additional_security_group_ids of this AWSMachinePool. + + Additional AWS Security Groups to be added machine pool. Note that machine pools can only be worker node at the time. # noqa: E501 + + :param additional_security_group_ids: The additional_security_group_ids of this AWSMachinePool. # noqa: E501 + :type: list[str] + """ + + self._additional_security_group_ids = additional_security_group_ids + @property def spot_market_options(self): """Gets the spot_market_options of this AWSMachinePool. # noqa: E501 diff --git a/ocm_client/models/awssts_account_role.py b/ocm_client/models/awssts_account_role.py new file mode 100644 index 0000000..ea90f7e --- /dev/null +++ b/ocm_client/models/awssts_account_role.py @@ -0,0 +1,151 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class AWSSTSAccountRole(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'items': 'list[AWSSTSRole]', + 'prefix': 'str' + } + + attribute_map = { + 'items': 'items', + 'prefix': 'prefix' + } + + def __init__(self, items=None, prefix=None, local_vars_configuration=None): # noqa: E501 + """AWSSTSAccountRole - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._items = None + self._prefix = None + self.discriminator = None + + if items is not None: + self.items = items + if prefix is not None: + self.prefix = prefix + + @property + def items(self): + """Gets the items of this AWSSTSAccountRole. # noqa: E501 + + The list of STS Roles for this Account Role # noqa: E501 + + :return: The items of this AWSSTSAccountRole. # noqa: E501 + :rtype: list[AWSSTSRole] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this AWSSTSAccountRole. + + The list of STS Roles for this Account Role # noqa: E501 + + :param items: The items of this AWSSTSAccountRole. # noqa: E501 + :type: list[AWSSTSRole] + """ + + self._items = items + + @property + def prefix(self): + """Gets the prefix of this AWSSTSAccountRole. # noqa: E501 + + The Prefix for this Account Role # noqa: E501 + + :return: The prefix of this AWSSTSAccountRole. # noqa: E501 + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """Sets the prefix of this AWSSTSAccountRole. + + The Prefix for this Account Role # noqa: E501 + + :param prefix: The prefix of this AWSSTSAccountRole. # noqa: E501 + :type: str + """ + + self._prefix = prefix + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AWSSTSAccountRole): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AWSSTSAccountRole): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/awssts_role.py b/ocm_client/models/awssts_role.py new file mode 100644 index 0000000..07d97ac --- /dev/null +++ b/ocm_client/models/awssts_role.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class AWSSTSRole(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'hcp_managed_policies': 'bool', + 'is_admin': 'bool', + 'managed_policies': 'bool', + 'arn': 'str', + 'type': 'str', + 'role_version': 'str' + } + + attribute_map = { + 'hcp_managed_policies': 'hcpManagedPolicies', + 'is_admin': 'isAdmin', + 'managed_policies': 'managedPolicies', + 'arn': 'arn', + 'type': 'type', + 'role_version': 'roleVersion' + } + + def __init__(self, hcp_managed_policies=None, is_admin=None, managed_policies=None, arn=None, type=None, role_version=None, local_vars_configuration=None): # noqa: E501 + """AWSSTSRole - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._hcp_managed_policies = None + self._is_admin = None + self._managed_policies = None + self._arn = None + self._type = None + self._role_version = None + self.discriminator = None + + if hcp_managed_policies is not None: + self.hcp_managed_policies = hcp_managed_policies + if is_admin is not None: + self.is_admin = is_admin + if managed_policies is not None: + self.managed_policies = managed_policies + if arn is not None: + self.arn = arn + if type is not None: + self.type = type + if role_version is not None: + self.role_version = role_version + + @property + def hcp_managed_policies(self): + """Gets the hcp_managed_policies of this AWSSTSRole. # noqa: E501 + + Does this Role have HCP Managed Policies? # noqa: E501 + + :return: The hcp_managed_policies of this AWSSTSRole. # noqa: E501 + :rtype: bool + """ + return self._hcp_managed_policies + + @hcp_managed_policies.setter + def hcp_managed_policies(self, hcp_managed_policies): + """Sets the hcp_managed_policies of this AWSSTSRole. + + Does this Role have HCP Managed Policies? # noqa: E501 + + :param hcp_managed_policies: The hcp_managed_policies of this AWSSTSRole. # noqa: E501 + :type: bool + """ + + self._hcp_managed_policies = hcp_managed_policies + + @property + def is_admin(self): + """Gets the is_admin of this AWSSTSRole. # noqa: E501 + + Does this role have Admin permission? # noqa: E501 + + :return: The is_admin of this AWSSTSRole. # noqa: E501 + :rtype: bool + """ + return self._is_admin + + @is_admin.setter + def is_admin(self, is_admin): + """Sets the is_admin of this AWSSTSRole. + + Does this role have Admin permission? # noqa: E501 + + :param is_admin: The is_admin of this AWSSTSRole. # noqa: E501 + :type: bool + """ + + self._is_admin = is_admin + + @property + def managed_policies(self): + """Gets the managed_policies of this AWSSTSRole. # noqa: E501 + + Does this Role have Managed Policies? # noqa: E501 + + :return: The managed_policies of this AWSSTSRole. # noqa: E501 + :rtype: bool + """ + return self._managed_policies + + @managed_policies.setter + def managed_policies(self, managed_policies): + """Sets the managed_policies of this AWSSTSRole. + + Does this Role have Managed Policies? # noqa: E501 + + :param managed_policies: The managed_policies of this AWSSTSRole. # noqa: E501 + :type: bool + """ + + self._managed_policies = managed_policies + + @property + def arn(self): + """Gets the arn of this AWSSTSRole. # noqa: E501 + + The AWS ARN for this Role # noqa: E501 + + :return: The arn of this AWSSTSRole. # noqa: E501 + :rtype: str + """ + return self._arn + + @arn.setter + def arn(self, arn): + """Sets the arn of this AWSSTSRole. + + The AWS ARN for this Role # noqa: E501 + + :param arn: The arn of this AWSSTSRole. # noqa: E501 + :type: str + """ + + self._arn = arn + + @property + def type(self): + """Gets the type of this AWSSTSRole. # noqa: E501 + + The type of this Role # noqa: E501 + + :return: The type of this AWSSTSRole. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this AWSSTSRole. + + The type of this Role # noqa: E501 + + :param type: The type of this AWSSTSRole. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def role_version(self): + """Gets the role_version of this AWSSTSRole. # noqa: E501 + + The Openshift Version for this Role # noqa: E501 + + :return: The role_version of this AWSSTSRole. # noqa: E501 + :rtype: str + """ + return self._role_version + + @role_version.setter + def role_version(self, role_version): + """Sets the role_version of this AWSSTSRole. + + The Openshift Version for this Role # noqa: E501 + + :param role_version: The role_version of this AWSSTSRole. # noqa: E501 + :type: str + """ + + self._role_version = role_version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AWSSTSRole): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, AWSSTSRole): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/billing_model.py b/ocm_client/models/billing_model.py index b7aa380..7223ae0 100644 --- a/ocm_client/models/billing_model.py +++ b/ocm_client/models/billing_model.py @@ -31,11 +31,12 @@ class BillingModel(object): """ MARKETPLACE = "marketplace" MARKETPLACE_AWS = "marketplace-aws" + MARKETPLACE_GCP = "marketplace-gcp" MARKETPLACE_RHM = "marketplace-rhm" MARKETPLACE_AZURE = "marketplace-azure" STANDARD = "standard" - allowable_values = [MARKETPLACE, MARKETPLACE_AWS, MARKETPLACE_RHM, MARKETPLACE_AZURE, STANDARD] # noqa: E501 + allowable_values = [MARKETPLACE, MARKETPLACE_AWS, MARKETPLACE_GCP, MARKETPLACE_RHM, MARKETPLACE_AZURE, STANDARD] # noqa: E501 """ Attributes: diff --git a/ocm_client/models/billing_model_item.py b/ocm_client/models/billing_model_item.py new file mode 100644 index 0000000..2a8e6fd --- /dev/null +++ b/ocm_client/models/billing_model_item.py @@ -0,0 +1,291 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class BillingModelItem(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'billing_model_type': 'str', + 'description': 'str', + 'display_name': 'str', + 'marketplace': 'str' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'billing_model_type': 'billing_model_type', + 'description': 'description', + 'display_name': 'display_name', + 'marketplace': 'marketplace' + } + + def __init__(self, kind=None, id=None, href=None, billing_model_type=None, description=None, display_name=None, marketplace=None, local_vars_configuration=None): # noqa: E501 + """BillingModelItem - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._billing_model_type = None + self._description = None + self._display_name = None + self._marketplace = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if billing_model_type is not None: + self.billing_model_type = billing_model_type + if description is not None: + self.description = description + if display_name is not None: + self.display_name = display_name + if marketplace is not None: + self.marketplace = marketplace + + @property + def kind(self): + """Gets the kind of this BillingModelItem. # noqa: E501 + + Indicates the type of this object. Will be 'BillingModelItem' if this is a complete object or 'BillingModelItemLink' if it is just a link. # noqa: E501 + + :return: The kind of this BillingModelItem. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this BillingModelItem. + + Indicates the type of this object. Will be 'BillingModelItem' if this is a complete object or 'BillingModelItemLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this BillingModelItem. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this BillingModelItem. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this BillingModelItem. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this BillingModelItem. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this BillingModelItem. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this BillingModelItem. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this BillingModelItem. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this BillingModelItem. + + Self link. # noqa: E501 + + :param href: The href of this BillingModelItem. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def billing_model_type(self): + """Gets the billing_model_type of this BillingModelItem. # noqa: E501 + + BillingModelType is the type of the BillingModel. e.g. standard, marketplace. # noqa: E501 + + :return: The billing_model_type of this BillingModelItem. # noqa: E501 + :rtype: str + """ + return self._billing_model_type + + @billing_model_type.setter + def billing_model_type(self, billing_model_type): + """Sets the billing_model_type of this BillingModelItem. + + BillingModelType is the type of the BillingModel. e.g. standard, marketplace. # noqa: E501 + + :param billing_model_type: The billing_model_type of this BillingModelItem. # noqa: E501 + :type: str + """ + + self._billing_model_type = billing_model_type + + @property + def description(self): + """Gets the description of this BillingModelItem. # noqa: E501 + + Single line description of the billing model. # noqa: E501 + + :return: The description of this BillingModelItem. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this BillingModelItem. + + Single line description of the billing model. # noqa: E501 + + :param description: The description of this BillingModelItem. # noqa: E501 + :type: str + """ + + self._description = description + + @property + def display_name(self): + """Gets the display_name of this BillingModelItem. # noqa: E501 + + User friendly display name of the billing model. # noqa: E501 + + :return: The display_name of this BillingModelItem. # noqa: E501 + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """Sets the display_name of this BillingModelItem. + + User friendly display name of the billing model. # noqa: E501 + + :param display_name: The display_name of this BillingModelItem. # noqa: E501 + :type: str + """ + + self._display_name = display_name + + @property + def marketplace(self): + """Gets the marketplace of this BillingModelItem. # noqa: E501 + + Indicates the marketplace of the billing model. e.g. gcp, aws, etc. # noqa: E501 + + :return: The marketplace of this BillingModelItem. # noqa: E501 + :rtype: str + """ + return self._marketplace + + @marketplace.setter + def marketplace(self, marketplace): + """Sets the marketplace of this BillingModelItem. + + Indicates the marketplace of the billing model. e.g. gcp, aws, etc. # noqa: E501 + + :param marketplace: The marketplace of this BillingModelItem. # noqa: E501 + :type: str + """ + + self._marketplace = marketplace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BillingModelItem): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, BillingModelItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/cloud_provider.py b/ocm_client/models/cloud_provider.py index 1239084..73241a5 100644 --- a/ocm_client/models/cloud_provider.py +++ b/ocm_client/models/cloud_provider.py @@ -38,7 +38,8 @@ class CloudProvider(object): 'id': 'str', 'href': 'str', 'display_name': 'str', - 'name': 'str' + 'name': 'str', + 'regions': 'list[CloudRegion]' } attribute_map = { @@ -46,10 +47,11 @@ class CloudProvider(object): 'id': 'id', 'href': 'href', 'display_name': 'display_name', - 'name': 'name' + 'name': 'name', + 'regions': 'regions' } - def __init__(self, kind=None, id=None, href=None, display_name=None, name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, kind=None, id=None, href=None, display_name=None, name=None, regions=None, local_vars_configuration=None): # noqa: E501 """CloudProvider - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -60,6 +62,7 @@ def __init__(self, kind=None, id=None, href=None, display_name=None, name=None, self._href = None self._display_name = None self._name = None + self._regions = None self.discriminator = None if kind is not None: @@ -72,6 +75,8 @@ def __init__(self, kind=None, id=None, href=None, display_name=None, name=None, self.display_name = display_name if name is not None: self.name = name + if regions is not None: + self.regions = regions @property def kind(self): @@ -188,6 +193,29 @@ def name(self, name): self._name = name + @property + def regions(self): + """Gets the regions of this CloudProvider. # noqa: E501 + + (optional) Provider's regions - only included when listing providers with `fetchRegions=true`. # noqa: E501 + + :return: The regions of this CloudProvider. # noqa: E501 + :rtype: list[CloudRegion] + """ + return self._regions + + @regions.setter + def regions(self, regions): + """Sets the regions of this CloudProvider. + + (optional) Provider's regions - only included when listing providers with `fetchRegions=true`. # noqa: E501 + + :param regions: The regions of this CloudProvider. # noqa: E501 + :type: list[CloudRegion] + """ + + self._regions = regions + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/ocm_client/models/cloud_region.py b/ocm_client/models/cloud_region.py index 0bcf932..7a8ff3d 100644 --- a/ocm_client/models/cloud_region.py +++ b/ocm_client/models/cloud_region.py @@ -38,9 +38,12 @@ class CloudRegion(object): 'id': 'str', 'href': 'str', 'ccs_only': 'bool', + 'kms_location_id': 'str', + 'kms_location_name': 'str', 'cloud_provider': 'CloudProvider', 'display_name': 'str', 'enabled': 'bool', + 'govcloud': 'bool', 'name': 'str', 'supports_hypershift': 'bool', 'supports_multi_az': 'bool' @@ -51,15 +54,18 @@ class CloudRegion(object): 'id': 'id', 'href': 'href', 'ccs_only': 'ccs_only', + 'kms_location_id': 'kms_location_id', + 'kms_location_name': 'kms_location_name', 'cloud_provider': 'cloud_provider', 'display_name': 'display_name', 'enabled': 'enabled', + 'govcloud': 'govcloud', 'name': 'name', 'supports_hypershift': 'supports_hypershift', 'supports_multi_az': 'supports_multi_az' } - def __init__(self, kind=None, id=None, href=None, ccs_only=None, cloud_provider=None, display_name=None, enabled=None, name=None, supports_hypershift=None, supports_multi_az=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, kind=None, id=None, href=None, ccs_only=None, kms_location_id=None, kms_location_name=None, cloud_provider=None, display_name=None, enabled=None, govcloud=None, name=None, supports_hypershift=None, supports_multi_az=None, local_vars_configuration=None): # noqa: E501 """CloudRegion - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -69,9 +75,12 @@ def __init__(self, kind=None, id=None, href=None, ccs_only=None, cloud_provider= self._id = None self._href = None self._ccs_only = None + self._kms_location_id = None + self._kms_location_name = None self._cloud_provider = None self._display_name = None self._enabled = None + self._govcloud = None self._name = None self._supports_hypershift = None self._supports_multi_az = None @@ -85,12 +94,18 @@ def __init__(self, kind=None, id=None, href=None, ccs_only=None, cloud_provider= self.href = href if ccs_only is not None: self.ccs_only = ccs_only + if kms_location_id is not None: + self.kms_location_id = kms_location_id + if kms_location_name is not None: + self.kms_location_name = kms_location_name if cloud_provider is not None: self.cloud_provider = cloud_provider if display_name is not None: self.display_name = display_name if enabled is not None: self.enabled = enabled + if govcloud is not None: + self.govcloud = govcloud if name is not None: self.name = name if supports_hypershift is not None: @@ -190,6 +205,52 @@ def ccs_only(self, ccs_only): self._ccs_only = ccs_only + @property + def kms_location_id(self): + """Gets the kms_location_id of this CloudRegion. # noqa: E501 + + (GCP only) Comma-separated list of KMS location IDs that can be used with this region. E.g. \"global,nam4,us\". Order is not guaranteed. # noqa: E501 + + :return: The kms_location_id of this CloudRegion. # noqa: E501 + :rtype: str + """ + return self._kms_location_id + + @kms_location_id.setter + def kms_location_id(self, kms_location_id): + """Sets the kms_location_id of this CloudRegion. + + (GCP only) Comma-separated list of KMS location IDs that can be used with this region. E.g. \"global,nam4,us\". Order is not guaranteed. # noqa: E501 + + :param kms_location_id: The kms_location_id of this CloudRegion. # noqa: E501 + :type: str + """ + + self._kms_location_id = kms_location_id + + @property + def kms_location_name(self): + """Gets the kms_location_name of this CloudRegion. # noqa: E501 + + (GCP only) Comma-separated list of display names corresponding to KMSLocationID. E.g. \"Global,nam4 (Iowa, South Carolina, and Oklahoma),US\". Order is not guaranteed but will match KMSLocationID. Unfortunately, this API doesn't allow robust splitting - Contact ocm-feedback@redhat.com if you want to rely on this. # noqa: E501 + + :return: The kms_location_name of this CloudRegion. # noqa: E501 + :rtype: str + """ + return self._kms_location_name + + @kms_location_name.setter + def kms_location_name(self, kms_location_name): + """Sets the kms_location_name of this CloudRegion. + + (GCP only) Comma-separated list of display names corresponding to KMSLocationID. E.g. \"Global,nam4 (Iowa, South Carolina, and Oklahoma),US\". Order is not guaranteed but will match KMSLocationID. Unfortunately, this API doesn't allow robust splitting - Contact ocm-feedback@redhat.com if you want to rely on this. # noqa: E501 + + :param kms_location_name: The kms_location_name of this CloudRegion. # noqa: E501 + :type: str + """ + + self._kms_location_name = kms_location_name + @property def cloud_provider(self): """Gets the cloud_provider of this CloudRegion. # noqa: E501 @@ -238,7 +299,7 @@ def display_name(self, display_name): def enabled(self): """Gets the enabled of this CloudRegion. # noqa: E501 - Whether the region is enabled for deploying an OSD cluster. # noqa: E501 + Whether the region is enabled for deploying a managed cluster. # noqa: E501 :return: The enabled of this CloudRegion. # noqa: E501 :rtype: bool @@ -249,7 +310,7 @@ def enabled(self): def enabled(self, enabled): """Sets the enabled of this CloudRegion. - Whether the region is enabled for deploying an OSD cluster. # noqa: E501 + Whether the region is enabled for deploying a managed cluster. # noqa: E501 :param enabled: The enabled of this CloudRegion. # noqa: E501 :type: bool @@ -257,6 +318,29 @@ def enabled(self, enabled): self._enabled = enabled + @property + def govcloud(self): + """Gets the govcloud of this CloudRegion. # noqa: E501 + + Whether the region is an AWS GovCloud region. # noqa: E501 + + :return: The govcloud of this CloudRegion. # noqa: E501 + :rtype: bool + """ + return self._govcloud + + @govcloud.setter + def govcloud(self, govcloud): + """Sets the govcloud of this CloudRegion. + + Whether the region is an AWS GovCloud region. # noqa: E501 + + :param govcloud: The govcloud of this CloudRegion. # noqa: E501 + :type: bool + """ + + self._govcloud = govcloud + @property def name(self): """Gets the name of this CloudRegion. # noqa: E501 diff --git a/ocm_client/models/cloud_vpc.py b/ocm_client/models/cloud_vpc.py index bc62cb8..cb2bb36 100644 --- a/ocm_client/models/cloud_vpc.py +++ b/ocm_client/models/cloud_vpc.py @@ -34,45 +34,83 @@ class CloudVPC(object): and the value is json key in definition. """ openapi_types = { + 'aws_security_groups': 'list[SecurityGroup]', 'aws_subnets': 'list[Subnetwork]', + 'cidr_block': 'str', 'id': 'str', 'name': 'str', + 'red_hat_managed': 'bool', 'subnets': 'list[str]' } attribute_map = { + 'aws_security_groups': 'aws_security_groups', 'aws_subnets': 'aws_subnets', + 'cidr_block': 'cidr_block', 'id': 'id', 'name': 'name', + 'red_hat_managed': 'red_hat_managed', 'subnets': 'subnets' } - def __init__(self, aws_subnets=None, id=None, name=None, subnets=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, aws_security_groups=None, aws_subnets=None, cidr_block=None, id=None, name=None, red_hat_managed=None, subnets=None, local_vars_configuration=None): # noqa: E501 """CloudVPC - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._aws_security_groups = None self._aws_subnets = None + self._cidr_block = None self._id = None self._name = None + self._red_hat_managed = None self._subnets = None self.discriminator = None + if aws_security_groups is not None: + self.aws_security_groups = aws_security_groups if aws_subnets is not None: self.aws_subnets = aws_subnets + if cidr_block is not None: + self.cidr_block = cidr_block if id is not None: self.id = id if name is not None: self.name = name + if red_hat_managed is not None: + self.red_hat_managed = red_hat_managed if subnets is not None: self.subnets = subnets + @property + def aws_security_groups(self): + """Gets the aws_security_groups of this CloudVPC. # noqa: E501 + + List of AWS security groups with details. # noqa: E501 + + :return: The aws_security_groups of this CloudVPC. # noqa: E501 + :rtype: list[SecurityGroup] + """ + return self._aws_security_groups + + @aws_security_groups.setter + def aws_security_groups(self, aws_security_groups): + """Sets the aws_security_groups of this CloudVPC. + + List of AWS security groups with details. # noqa: E501 + + :param aws_security_groups: The aws_security_groups of this CloudVPC. # noqa: E501 + :type: list[SecurityGroup] + """ + + self._aws_security_groups = aws_security_groups + @property def aws_subnets(self): """Gets the aws_subnets of this CloudVPC. # noqa: E501 - List of subnetworks # noqa: E501 + List of AWS subnetworks with details. # noqa: E501 :return: The aws_subnets of this CloudVPC. # noqa: E501 :rtype: list[Subnetwork] @@ -83,7 +121,7 @@ def aws_subnets(self): def aws_subnets(self, aws_subnets): """Sets the aws_subnets of this CloudVPC. - List of subnetworks # noqa: E501 + List of AWS subnetworks with details. # noqa: E501 :param aws_subnets: The aws_subnets of this CloudVPC. # noqa: E501 :type: list[Subnetwork] @@ -91,11 +129,34 @@ def aws_subnets(self, aws_subnets): self._aws_subnets = aws_subnets + @property + def cidr_block(self): + """Gets the cidr_block of this CloudVPC. # noqa: E501 + + CIDR block of the virtual private cloud. # noqa: E501 + + :return: The cidr_block of this CloudVPC. # noqa: E501 + :rtype: str + """ + return self._cidr_block + + @cidr_block.setter + def cidr_block(self, cidr_block): + """Sets the cidr_block of this CloudVPC. + + CIDR block of the virtual private cloud. # noqa: E501 + + :param cidr_block: The cidr_block of this CloudVPC. # noqa: E501 + :type: str + """ + + self._cidr_block = cidr_block + @property def id(self): """Gets the id of this CloudVPC. # noqa: E501 - ID of virtual private cloud # noqa: E501 + ID of virtual private cloud. # noqa: E501 :return: The id of this CloudVPC. # noqa: E501 :rtype: str @@ -106,7 +167,7 @@ def id(self): def id(self, id): """Sets the id of this CloudVPC. - ID of virtual private cloud # noqa: E501 + ID of virtual private cloud. # noqa: E501 :param id: The id of this CloudVPC. # noqa: E501 :type: str @@ -118,7 +179,7 @@ def id(self, id): def name(self): """Gets the name of this CloudVPC. # noqa: E501 - Name of virtual private cloud according to its `Name` tag on AWS # noqa: E501 + Name of virtual private cloud according to its `Name` tag on AWS. # noqa: E501 :return: The name of this CloudVPC. # noqa: E501 :rtype: str @@ -129,7 +190,7 @@ def name(self): def name(self, name): """Sets the name of this CloudVPC. - Name of virtual private cloud according to its `Name` tag on AWS # noqa: E501 + Name of virtual private cloud according to its `Name` tag on AWS. # noqa: E501 :param name: The name of this CloudVPC. # noqa: E501 :type: str @@ -137,6 +198,29 @@ def name(self, name): self._name = name + @property + def red_hat_managed(self): + """Gets the red_hat_managed of this CloudVPC. # noqa: E501 + + If the resource is RH managed. # noqa: E501 + + :return: The red_hat_managed of this CloudVPC. # noqa: E501 + :rtype: bool + """ + return self._red_hat_managed + + @red_hat_managed.setter + def red_hat_managed(self, red_hat_managed): + """Sets the red_hat_managed of this CloudVPC. + + If the resource is RH managed. # noqa: E501 + + :param red_hat_managed: The red_hat_managed of this CloudVPC. # noqa: E501 + :type: bool + """ + + self._red_hat_managed = red_hat_managed + @property def subnets(self): """Gets the subnets of this CloudVPC. # noqa: E501 diff --git a/ocm_client/models/cluster.py b/ocm_client/models/cluster.py index a1a2ffa..aa76e24 100644 --- a/ocm_client/models/cluster.py +++ b/ocm_client/models/cluster.py @@ -48,6 +48,7 @@ class Cluster(object): 'gcp_network': 'GCPNetwork', 'additional_trust_bundle': 'str', 'addons': 'list[AddOnInstallation]', + 'autoscaler': 'ClusterAutoscaler', 'billing_model': 'BillingModel', 'byo_oidc': 'ByoOidc', 'cloud_provider': 'CloudProvider', @@ -68,6 +69,7 @@ class Cluster(object): 'inflight_checks': 'list[InflightCheck]', 'infra_id': 'str', 'ingresses': 'list[Ingress]', + 'kubelet_config': 'KubeletConfig', 'load_balancer_quota': 'int', 'machine_pools': 'list[MachinePool]', 'managed': 'bool', @@ -106,6 +108,7 @@ class Cluster(object): 'gcp_network': 'gcp_network', 'additional_trust_bundle': 'additional_trust_bundle', 'addons': 'addons', + 'autoscaler': 'autoscaler', 'billing_model': 'billing_model', 'byo_oidc': 'byo_oidc', 'cloud_provider': 'cloud_provider', @@ -126,6 +129,7 @@ class Cluster(object): 'inflight_checks': 'inflight_checks', 'infra_id': 'infra_id', 'ingresses': 'ingresses', + 'kubelet_config': 'kubelet_config', 'load_balancer_quota': 'load_balancer_quota', 'machine_pools': 'machine_pools', 'managed': 'managed', @@ -149,7 +153,7 @@ class Cluster(object): 'version': 'version' } - def __init__(self, kind=None, id=None, href=None, api=None, aws=None, aws_infrastructure_access_role_grants=None, ccs=None, dns=None, fips=None, gcp=None, gcp_encryption_key=None, gcp_network=None, additional_trust_bundle=None, addons=None, billing_model=None, byo_oidc=None, cloud_provider=None, console=None, creation_timestamp=None, delete_protection=None, disable_user_workload_monitoring=None, etcd_encryption=None, expiration_timestamp=None, external_id=None, external_configuration=None, flavour=None, groups=None, health_state=None, htpasswd=None, hypershift=None, identity_providers=None, inflight_checks=None, infra_id=None, ingresses=None, load_balancer_quota=None, machine_pools=None, managed=None, managed_service=None, multi_az=None, name=None, network=None, node_drain_grace_period=None, node_pools=None, nodes=None, openshift_version=None, product=None, properties=None, provision_shard=None, proxy=None, region=None, state=None, status=None, storage_quota=None, subscription=None, version=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, kind=None, id=None, href=None, api=None, aws=None, aws_infrastructure_access_role_grants=None, ccs=None, dns=None, fips=None, gcp=None, gcp_encryption_key=None, gcp_network=None, additional_trust_bundle=None, addons=None, autoscaler=None, billing_model=None, byo_oidc=None, cloud_provider=None, console=None, creation_timestamp=None, delete_protection=None, disable_user_workload_monitoring=None, etcd_encryption=None, expiration_timestamp=None, external_id=None, external_configuration=None, flavour=None, groups=None, health_state=None, htpasswd=None, hypershift=None, identity_providers=None, inflight_checks=None, infra_id=None, ingresses=None, kubelet_config=None, load_balancer_quota=None, machine_pools=None, managed=None, managed_service=None, multi_az=None, name=None, network=None, node_drain_grace_period=None, node_pools=None, nodes=None, openshift_version=None, product=None, properties=None, provision_shard=None, proxy=None, region=None, state=None, status=None, storage_quota=None, subscription=None, version=None, local_vars_configuration=None): # noqa: E501 """Cluster - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -169,6 +173,7 @@ def __init__(self, kind=None, id=None, href=None, api=None, aws=None, aws_infras self._gcp_network = None self._additional_trust_bundle = None self._addons = None + self._autoscaler = None self._billing_model = None self._byo_oidc = None self._cloud_provider = None @@ -189,6 +194,7 @@ def __init__(self, kind=None, id=None, href=None, api=None, aws=None, aws_infras self._inflight_checks = None self._infra_id = None self._ingresses = None + self._kubelet_config = None self._load_balancer_quota = None self._machine_pools = None self._managed = None @@ -240,6 +246,8 @@ def __init__(self, kind=None, id=None, href=None, api=None, aws=None, aws_infras self.additional_trust_bundle = additional_trust_bundle if addons is not None: self.addons = addons + if autoscaler is not None: + self.autoscaler = autoscaler if billing_model is not None: self.billing_model = billing_model if byo_oidc is not None: @@ -280,6 +288,8 @@ def __init__(self, kind=None, id=None, href=None, api=None, aws=None, aws_infras self.infra_id = infra_id if ingresses is not None: self.ingresses = ingresses + if kubelet_config is not None: + self.kubelet_config = kubelet_config if load_balancer_quota is not None: self.load_balancer_quota = load_balancer_quota if machine_pools is not None: @@ -631,6 +641,27 @@ def addons(self, addons): self._addons = addons + @property + def autoscaler(self): + """Gets the autoscaler of this Cluster. # noqa: E501 + + + :return: The autoscaler of this Cluster. # noqa: E501 + :rtype: ClusterAutoscaler + """ + return self._autoscaler + + @autoscaler.setter + def autoscaler(self, autoscaler): + """Sets the autoscaler of this Cluster. + + + :param autoscaler: The autoscaler of this Cluster. # noqa: E501 + :type: ClusterAutoscaler + """ + + self._autoscaler = autoscaler + @property def billing_model(self): """Gets the billing_model of this Cluster. # noqa: E501 @@ -1071,6 +1102,27 @@ def ingresses(self, ingresses): self._ingresses = ingresses + @property + def kubelet_config(self): + """Gets the kubelet_config of this Cluster. # noqa: E501 + + + :return: The kubelet_config of this Cluster. # noqa: E501 + :rtype: KubeletConfig + """ + return self._kubelet_config + + @kubelet_config.setter + def kubelet_config(self, kubelet_config): + """Sets the kubelet_config of this Cluster. + + + :param kubelet_config: The kubelet_config of this Cluster. # noqa: E501 + :type: KubeletConfig + """ + + self._kubelet_config = kubelet_config + @property def load_balancer_quota(self): """Gets the load_balancer_quota of this Cluster. # noqa: E501 diff --git a/ocm_client/models/cluster_autoscaler.py b/ocm_client/models/cluster_autoscaler.py new file mode 100644 index 0000000..6f15615 --- /dev/null +++ b/ocm_client/models/cluster_autoscaler.py @@ -0,0 +1,455 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class ClusterAutoscaler(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'balance_similar_node_groups': 'bool', + 'balancing_ignored_labels': 'list[str]', + 'ignore_daemonsets_utilization': 'bool', + 'log_verbosity': 'int', + 'max_node_provision_time': 'str', + 'max_pod_grace_period': 'int', + 'pod_priority_threshold': 'int', + 'resource_limits': 'AutoscalerResourceLimits', + 'scale_down': 'AutoscalerScaleDownConfig', + 'skip_nodes_with_local_storage': 'bool' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'balance_similar_node_groups': 'balance_similar_node_groups', + 'balancing_ignored_labels': 'balancing_ignored_labels', + 'ignore_daemonsets_utilization': 'ignore_daemonsets_utilization', + 'log_verbosity': 'log_verbosity', + 'max_node_provision_time': 'max_node_provision_time', + 'max_pod_grace_period': 'max_pod_grace_period', + 'pod_priority_threshold': 'pod_priority_threshold', + 'resource_limits': 'resource_limits', + 'scale_down': 'scale_down', + 'skip_nodes_with_local_storage': 'skip_nodes_with_local_storage' + } + + def __init__(self, kind=None, id=None, href=None, balance_similar_node_groups=None, balancing_ignored_labels=None, ignore_daemonsets_utilization=None, log_verbosity=None, max_node_provision_time=None, max_pod_grace_period=None, pod_priority_threshold=None, resource_limits=None, scale_down=None, skip_nodes_with_local_storage=None, local_vars_configuration=None): # noqa: E501 + """ClusterAutoscaler - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._balance_similar_node_groups = None + self._balancing_ignored_labels = None + self._ignore_daemonsets_utilization = None + self._log_verbosity = None + self._max_node_provision_time = None + self._max_pod_grace_period = None + self._pod_priority_threshold = None + self._resource_limits = None + self._scale_down = None + self._skip_nodes_with_local_storage = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if balance_similar_node_groups is not None: + self.balance_similar_node_groups = balance_similar_node_groups + if balancing_ignored_labels is not None: + self.balancing_ignored_labels = balancing_ignored_labels + if ignore_daemonsets_utilization is not None: + self.ignore_daemonsets_utilization = ignore_daemonsets_utilization + if log_verbosity is not None: + self.log_verbosity = log_verbosity + if max_node_provision_time is not None: + self.max_node_provision_time = max_node_provision_time + if max_pod_grace_period is not None: + self.max_pod_grace_period = max_pod_grace_period + if pod_priority_threshold is not None: + self.pod_priority_threshold = pod_priority_threshold + if resource_limits is not None: + self.resource_limits = resource_limits + if scale_down is not None: + self.scale_down = scale_down + if skip_nodes_with_local_storage is not None: + self.skip_nodes_with_local_storage = skip_nodes_with_local_storage + + @property + def kind(self): + """Gets the kind of this ClusterAutoscaler. # noqa: E501 + + Indicates the type of this object. Will be 'ClusterAutoscaler' if this is a complete object or 'ClusterAutoscalerLink' if it is just a link. # noqa: E501 + + :return: The kind of this ClusterAutoscaler. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this ClusterAutoscaler. + + Indicates the type of this object. Will be 'ClusterAutoscaler' if this is a complete object or 'ClusterAutoscalerLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this ClusterAutoscaler. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this ClusterAutoscaler. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this ClusterAutoscaler. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ClusterAutoscaler. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this ClusterAutoscaler. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this ClusterAutoscaler. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this ClusterAutoscaler. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this ClusterAutoscaler. + + Self link. # noqa: E501 + + :param href: The href of this ClusterAutoscaler. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def balance_similar_node_groups(self): + """Gets the balance_similar_node_groups of this ClusterAutoscaler. # noqa: E501 + + BalanceSimilarNodeGroups enables/disables the `--balance-similar-node-groups` cluster-autoscaler feature. This feature will automatically identify node groups with the same instance type and the same set of labels and try to keep the respective sizes of those node groups balanced. # noqa: E501 + + :return: The balance_similar_node_groups of this ClusterAutoscaler. # noqa: E501 + :rtype: bool + """ + return self._balance_similar_node_groups + + @balance_similar_node_groups.setter + def balance_similar_node_groups(self, balance_similar_node_groups): + """Sets the balance_similar_node_groups of this ClusterAutoscaler. + + BalanceSimilarNodeGroups enables/disables the `--balance-similar-node-groups` cluster-autoscaler feature. This feature will automatically identify node groups with the same instance type and the same set of labels and try to keep the respective sizes of those node groups balanced. # noqa: E501 + + :param balance_similar_node_groups: The balance_similar_node_groups of this ClusterAutoscaler. # noqa: E501 + :type: bool + """ + + self._balance_similar_node_groups = balance_similar_node_groups + + @property + def balancing_ignored_labels(self): + """Gets the balancing_ignored_labels of this ClusterAutoscaler. # noqa: E501 + + This option specifies labels that cluster autoscaler should ignore when considering node group similarity. For example, if you have nodes with \"topology.ebs.csi.aws.com/zone\" label, you can add name of this label here to prevent cluster autoscaler from splitting nodes into different node groups based on its value. # noqa: E501 + + :return: The balancing_ignored_labels of this ClusterAutoscaler. # noqa: E501 + :rtype: list[str] + """ + return self._balancing_ignored_labels + + @balancing_ignored_labels.setter + def balancing_ignored_labels(self, balancing_ignored_labels): + """Sets the balancing_ignored_labels of this ClusterAutoscaler. + + This option specifies labels that cluster autoscaler should ignore when considering node group similarity. For example, if you have nodes with \"topology.ebs.csi.aws.com/zone\" label, you can add name of this label here to prevent cluster autoscaler from splitting nodes into different node groups based on its value. # noqa: E501 + + :param balancing_ignored_labels: The balancing_ignored_labels of this ClusterAutoscaler. # noqa: E501 + :type: list[str] + """ + + self._balancing_ignored_labels = balancing_ignored_labels + + @property + def ignore_daemonsets_utilization(self): + """Gets the ignore_daemonsets_utilization of this ClusterAutoscaler. # noqa: E501 + + Should CA ignore DaemonSet pods when calculating resource utilization for scaling down. false by default. # noqa: E501 + + :return: The ignore_daemonsets_utilization of this ClusterAutoscaler. # noqa: E501 + :rtype: bool + """ + return self._ignore_daemonsets_utilization + + @ignore_daemonsets_utilization.setter + def ignore_daemonsets_utilization(self, ignore_daemonsets_utilization): + """Sets the ignore_daemonsets_utilization of this ClusterAutoscaler. + + Should CA ignore DaemonSet pods when calculating resource utilization for scaling down. false by default. # noqa: E501 + + :param ignore_daemonsets_utilization: The ignore_daemonsets_utilization of this ClusterAutoscaler. # noqa: E501 + :type: bool + """ + + self._ignore_daemonsets_utilization = ignore_daemonsets_utilization + + @property + def log_verbosity(self): + """Gets the log_verbosity of this ClusterAutoscaler. # noqa: E501 + + Sets the autoscaler log level. Default value is 1, level 4 is recommended for DEBUGGING and level 6 will enable almost everything. # noqa: E501 + + :return: The log_verbosity of this ClusterAutoscaler. # noqa: E501 + :rtype: int + """ + return self._log_verbosity + + @log_verbosity.setter + def log_verbosity(self, log_verbosity): + """Sets the log_verbosity of this ClusterAutoscaler. + + Sets the autoscaler log level. Default value is 1, level 4 is recommended for DEBUGGING and level 6 will enable almost everything. # noqa: E501 + + :param log_verbosity: The log_verbosity of this ClusterAutoscaler. # noqa: E501 + :type: int + """ + + self._log_verbosity = log_verbosity + + @property + def max_node_provision_time(self): + """Gets the max_node_provision_time of this ClusterAutoscaler. # noqa: E501 + + Maximum time CA waits for node to be provisioned. # noqa: E501 + + :return: The max_node_provision_time of this ClusterAutoscaler. # noqa: E501 + :rtype: str + """ + return self._max_node_provision_time + + @max_node_provision_time.setter + def max_node_provision_time(self, max_node_provision_time): + """Sets the max_node_provision_time of this ClusterAutoscaler. + + Maximum time CA waits for node to be provisioned. # noqa: E501 + + :param max_node_provision_time: The max_node_provision_time of this ClusterAutoscaler. # noqa: E501 + :type: str + """ + + self._max_node_provision_time = max_node_provision_time + + @property + def max_pod_grace_period(self): + """Gets the max_pod_grace_period of this ClusterAutoscaler. # noqa: E501 + + Gives pods graceful termination time before scaling down. # noqa: E501 + + :return: The max_pod_grace_period of this ClusterAutoscaler. # noqa: E501 + :rtype: int + """ + return self._max_pod_grace_period + + @max_pod_grace_period.setter + def max_pod_grace_period(self, max_pod_grace_period): + """Sets the max_pod_grace_period of this ClusterAutoscaler. + + Gives pods graceful termination time before scaling down. # noqa: E501 + + :param max_pod_grace_period: The max_pod_grace_period of this ClusterAutoscaler. # noqa: E501 + :type: int + """ + + self._max_pod_grace_period = max_pod_grace_period + + @property + def pod_priority_threshold(self): + """Gets the pod_priority_threshold of this ClusterAutoscaler. # noqa: E501 + + To allow users to schedule \"best-effort\" pods, which shouldn't trigger Cluster Autoscaler actions, but only run when there are spare resources available, More info: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-does-cluster-autoscaler-work-with-pod-priority-and-preemption. # noqa: E501 + + :return: The pod_priority_threshold of this ClusterAutoscaler. # noqa: E501 + :rtype: int + """ + return self._pod_priority_threshold + + @pod_priority_threshold.setter + def pod_priority_threshold(self, pod_priority_threshold): + """Sets the pod_priority_threshold of this ClusterAutoscaler. + + To allow users to schedule \"best-effort\" pods, which shouldn't trigger Cluster Autoscaler actions, but only run when there are spare resources available, More info: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#how-does-cluster-autoscaler-work-with-pod-priority-and-preemption. # noqa: E501 + + :param pod_priority_threshold: The pod_priority_threshold of this ClusterAutoscaler. # noqa: E501 + :type: int + """ + + self._pod_priority_threshold = pod_priority_threshold + + @property + def resource_limits(self): + """Gets the resource_limits of this ClusterAutoscaler. # noqa: E501 + + + :return: The resource_limits of this ClusterAutoscaler. # noqa: E501 + :rtype: AutoscalerResourceLimits + """ + return self._resource_limits + + @resource_limits.setter + def resource_limits(self, resource_limits): + """Sets the resource_limits of this ClusterAutoscaler. + + + :param resource_limits: The resource_limits of this ClusterAutoscaler. # noqa: E501 + :type: AutoscalerResourceLimits + """ + + self._resource_limits = resource_limits + + @property + def scale_down(self): + """Gets the scale_down of this ClusterAutoscaler. # noqa: E501 + + + :return: The scale_down of this ClusterAutoscaler. # noqa: E501 + :rtype: AutoscalerScaleDownConfig + """ + return self._scale_down + + @scale_down.setter + def scale_down(self, scale_down): + """Sets the scale_down of this ClusterAutoscaler. + + + :param scale_down: The scale_down of this ClusterAutoscaler. # noqa: E501 + :type: AutoscalerScaleDownConfig + """ + + self._scale_down = scale_down + + @property + def skip_nodes_with_local_storage(self): + """Gets the skip_nodes_with_local_storage of this ClusterAutoscaler. # noqa: E501 + + Enables/Disables `--skip-nodes-with-local-storage` CA feature flag. If true cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath. true by default at autoscaler. # noqa: E501 + + :return: The skip_nodes_with_local_storage of this ClusterAutoscaler. # noqa: E501 + :rtype: bool + """ + return self._skip_nodes_with_local_storage + + @skip_nodes_with_local_storage.setter + def skip_nodes_with_local_storage(self, skip_nodes_with_local_storage): + """Sets the skip_nodes_with_local_storage of this ClusterAutoscaler. + + Enables/Disables `--skip-nodes-with-local-storage` CA feature flag. If true cluster autoscaler will never delete nodes with pods with local storage, e.g. EmptyDir or HostPath. true by default at autoscaler. # noqa: E501 + + :param skip_nodes_with_local_storage: The skip_nodes_with_local_storage of this ClusterAutoscaler. # noqa: E501 + :type: bool + """ + + self._skip_nodes_with_local_storage = skip_nodes_with_local_storage + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ClusterAutoscaler): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ClusterAutoscaler): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/control_plane_upgrade_policy.py b/ocm_client/models/control_plane_upgrade_policy.py index 7612e32..c713b2e 100644 --- a/ocm_client/models/control_plane_upgrade_policy.py +++ b/ocm_client/models/control_plane_upgrade_policy.py @@ -43,9 +43,9 @@ class ControlPlaneUpgradePolicy(object): 'last_update_timestamp': 'datetime', 'next_run': 'datetime', 'schedule': 'str', - 'schedule_type': 'str', + 'schedule_type': 'ScheduleType', 'state': 'UpgradePolicyState', - 'upgrade_type': 'str', + 'upgrade_type': 'UpgradeType', 'version': 'str' } @@ -324,10 +324,9 @@ def schedule(self, schedule): def schedule_type(self): """Gets the schedule_type of this ControlPlaneUpgradePolicy. # noqa: E501 - Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring). # noqa: E501 :return: The schedule_type of this ControlPlaneUpgradePolicy. # noqa: E501 - :rtype: str + :rtype: ScheduleType """ return self._schedule_type @@ -335,10 +334,9 @@ def schedule_type(self): def schedule_type(self, schedule_type): """Sets the schedule_type of this ControlPlaneUpgradePolicy. - Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring). # noqa: E501 :param schedule_type: The schedule_type of this ControlPlaneUpgradePolicy. # noqa: E501 - :type: str + :type: ScheduleType """ self._schedule_type = schedule_type @@ -368,10 +366,9 @@ def state(self, state): def upgrade_type(self): """Gets the upgrade_type of this ControlPlaneUpgradePolicy. # noqa: E501 - Upgrade type specify the type of the upgrade. Can only be \"ControlPlane\". # noqa: E501 :return: The upgrade_type of this ControlPlaneUpgradePolicy. # noqa: E501 - :rtype: str + :rtype: UpgradeType """ return self._upgrade_type @@ -379,10 +376,9 @@ def upgrade_type(self): def upgrade_type(self, upgrade_type): """Sets the upgrade_type of this ControlPlaneUpgradePolicy. - Upgrade type specify the type of the upgrade. Can only be \"ControlPlane\". # noqa: E501 :param upgrade_type: The upgrade_type of this ControlPlaneUpgradePolicy. # noqa: E501 - :type: str + :type: UpgradeType """ self._upgrade_type = upgrade_type diff --git a/ocm_client/models/dns_domain.py b/ocm_client/models/dns_domain.py index a270546..4aa7257 100644 --- a/ocm_client/models/dns_domain.py +++ b/ocm_client/models/dns_domain.py @@ -37,21 +37,23 @@ class DNSDomain(object): 'kind': 'str', 'id': 'str', 'href': 'str', - 'cluster_link': 'ClusterLink', - 'organization_link': 'OrganizationLink', - 'reserved_at': 'datetime' + 'cluster': 'ClusterLink', + 'organization': 'OrganizationLink', + 'reserved_at_timestamp': 'datetime', + 'user_defined': 'bool' } attribute_map = { 'kind': 'kind', 'id': 'id', 'href': 'href', - 'cluster_link': 'cluster_link', - 'organization_link': 'organization_link', - 'reserved_at': 'reserved_at' + 'cluster': 'cluster', + 'organization': 'organization', + 'reserved_at_timestamp': 'reserved_at_timestamp', + 'user_defined': 'user_defined' } - def __init__(self, kind=None, id=None, href=None, cluster_link=None, organization_link=None, reserved_at=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, kind=None, id=None, href=None, cluster=None, organization=None, reserved_at_timestamp=None, user_defined=None, local_vars_configuration=None): # noqa: E501 """DNSDomain - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -60,9 +62,10 @@ def __init__(self, kind=None, id=None, href=None, cluster_link=None, organizatio self._kind = None self._id = None self._href = None - self._cluster_link = None - self._organization_link = None - self._reserved_at = None + self._cluster = None + self._organization = None + self._reserved_at_timestamp = None + self._user_defined = None self.discriminator = None if kind is not None: @@ -71,12 +74,14 @@ def __init__(self, kind=None, id=None, href=None, cluster_link=None, organizatio self.id = id if href is not None: self.href = href - if cluster_link is not None: - self.cluster_link = cluster_link - if organization_link is not None: - self.organization_link = organization_link - if reserved_at is not None: - self.reserved_at = reserved_at + if cluster is not None: + self.cluster = cluster + if organization is not None: + self.organization = organization + if reserved_at_timestamp is not None: + self.reserved_at_timestamp = reserved_at_timestamp + if user_defined is not None: + self.user_defined = user_defined @property def kind(self): @@ -148,69 +153,92 @@ def href(self, href): self._href = href @property - def cluster_link(self): - """Gets the cluster_link of this DNSDomain. # noqa: E501 + def cluster(self): + """Gets the cluster of this DNSDomain. # noqa: E501 - :return: The cluster_link of this DNSDomain. # noqa: E501 + :return: The cluster of this DNSDomain. # noqa: E501 :rtype: ClusterLink """ - return self._cluster_link + return self._cluster - @cluster_link.setter - def cluster_link(self, cluster_link): - """Sets the cluster_link of this DNSDomain. + @cluster.setter + def cluster(self, cluster): + """Sets the cluster of this DNSDomain. - :param cluster_link: The cluster_link of this DNSDomain. # noqa: E501 + :param cluster: The cluster of this DNSDomain. # noqa: E501 :type: ClusterLink """ - self._cluster_link = cluster_link + self._cluster = cluster @property - def organization_link(self): - """Gets the organization_link of this DNSDomain. # noqa: E501 + def organization(self): + """Gets the organization of this DNSDomain. # noqa: E501 - :return: The organization_link of this DNSDomain. # noqa: E501 + :return: The organization of this DNSDomain. # noqa: E501 :rtype: OrganizationLink """ - return self._organization_link + return self._organization - @organization_link.setter - def organization_link(self, organization_link): - """Sets the organization_link of this DNSDomain. + @organization.setter + def organization(self, organization): + """Sets the organization of this DNSDomain. - :param organization_link: The organization_link of this DNSDomain. # noqa: E501 + :param organization: The organization of this DNSDomain. # noqa: E501 :type: OrganizationLink """ - self._organization_link = organization_link + self._organization = organization @property - def reserved_at(self): - """Gets the reserved_at of this DNSDomain. # noqa: E501 + def reserved_at_timestamp(self): + """Gets the reserved_at_timestamp of this DNSDomain. # noqa: E501 Date and time when the DNS domain was reserved. # noqa: E501 - :return: The reserved_at of this DNSDomain. # noqa: E501 + :return: The reserved_at_timestamp of this DNSDomain. # noqa: E501 :rtype: datetime """ - return self._reserved_at + return self._reserved_at_timestamp - @reserved_at.setter - def reserved_at(self, reserved_at): - """Sets the reserved_at of this DNSDomain. + @reserved_at_timestamp.setter + def reserved_at_timestamp(self, reserved_at_timestamp): + """Sets the reserved_at_timestamp of this DNSDomain. Date and time when the DNS domain was reserved. # noqa: E501 - :param reserved_at: The reserved_at of this DNSDomain. # noqa: E501 + :param reserved_at_timestamp: The reserved_at_timestamp of this DNSDomain. # noqa: E501 :type: datetime """ - self._reserved_at = reserved_at + self._reserved_at_timestamp = reserved_at_timestamp + + @property + def user_defined(self): + """Gets the user_defined of this DNSDomain. # noqa: E501 + + Indicates if this dns domain is user defined. # noqa: E501 + + :return: The user_defined of this DNSDomain. # noqa: E501 + :rtype: bool + """ + return self._user_defined + + @user_defined.setter + def user_defined(self, user_defined): + """Sets the user_defined of this DNSDomain. + + Indicates if this dns domain is user defined. # noqa: E501 + + :param user_defined: The user_defined of this DNSDomain. # noqa: E501 + :type: bool + """ + + self._user_defined = user_defined def to_dict(self): """Returns the model properties as a dict""" diff --git a/ocm_client/models/environment.py b/ocm_client/models/environment.py index f1d93e3..c19a6e2 100644 --- a/ocm_client/models/environment.py +++ b/ocm_client/models/environment.py @@ -34,28 +34,33 @@ class Environment(object): and the value is json key in definition. """ openapi_types = { + 'backplane_url': 'str', 'last_limited_support_check': 'datetime', 'last_upgrade_available_check': 'datetime', 'name': 'str' } attribute_map = { + 'backplane_url': 'backplane_url', 'last_limited_support_check': 'last_limited_support_check', 'last_upgrade_available_check': 'last_upgrade_available_check', 'name': 'name' } - def __init__(self, last_limited_support_check=None, last_upgrade_available_check=None, name=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, backplane_url=None, last_limited_support_check=None, last_upgrade_available_check=None, name=None, local_vars_configuration=None): # noqa: E501 """Environment - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._backplane_url = None self._last_limited_support_check = None self._last_upgrade_available_check = None self._name = None self.discriminator = None + if backplane_url is not None: + self.backplane_url = backplane_url if last_limited_support_check is not None: self.last_limited_support_check = last_limited_support_check if last_upgrade_available_check is not None: @@ -63,6 +68,29 @@ def __init__(self, last_limited_support_check=None, last_upgrade_available_check if name is not None: self.name = name + @property + def backplane_url(self): + """Gets the backplane_url of this Environment. # noqa: E501 + + the backplane url for the environment # noqa: E501 + + :return: The backplane_url of this Environment. # noqa: E501 + :rtype: str + """ + return self._backplane_url + + @backplane_url.setter + def backplane_url(self, backplane_url): + """Sets the backplane_url of this Environment. + + the backplane url for the environment # noqa: E501 + + :param backplane_url: The backplane_url of this Environment. # noqa: E501 + :type: str + """ + + self._backplane_url = backplane_url + @property def last_limited_support_check(self): """Gets the last_limited_support_check of this Environment. # noqa: E501 diff --git a/ocm_client/models/gcp.py b/ocm_client/models/gcp.py index c1d2ea8..1d40cf3 100644 --- a/ocm_client/models/gcp.py +++ b/ocm_client/models/gcp.py @@ -42,6 +42,7 @@ class GCP(object): 'private_key': 'str', 'private_key_id': 'str', 'project_id': 'str', + 'security': 'GcpSecurity', 'token_uri': 'str', 'type': 'str' } @@ -55,11 +56,12 @@ class GCP(object): 'private_key': 'private_key', 'private_key_id': 'private_key_id', 'project_id': 'project_id', + 'security': 'security', 'token_uri': 'token_uri', 'type': 'type' } - def __init__(self, auth_uri=None, auth_provider_x509_cert_url=None, client_id=None, client_x509_cert_url=None, client_email=None, private_key=None, private_key_id=None, project_id=None, token_uri=None, type=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, auth_uri=None, auth_provider_x509_cert_url=None, client_id=None, client_x509_cert_url=None, client_email=None, private_key=None, private_key_id=None, project_id=None, security=None, token_uri=None, type=None, local_vars_configuration=None): # noqa: E501 """GCP - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -73,6 +75,7 @@ def __init__(self, auth_uri=None, auth_provider_x509_cert_url=None, client_id=No self._private_key = None self._private_key_id = None self._project_id = None + self._security = None self._token_uri = None self._type = None self.discriminator = None @@ -93,6 +96,8 @@ def __init__(self, auth_uri=None, auth_provider_x509_cert_url=None, client_id=No self.private_key_id = private_key_id if project_id is not None: self.project_id = project_id + if security is not None: + self.security = security if token_uri is not None: self.token_uri = token_uri if type is not None: @@ -282,6 +287,27 @@ def project_id(self, project_id): self._project_id = project_id + @property + def security(self): + """Gets the security of this GCP. # noqa: E501 + + + :return: The security of this GCP. # noqa: E501 + :rtype: GcpSecurity + """ + return self._security + + @security.setter + def security(self, security): + """Sets the security of this GCP. + + + :param security: The security of this GCP. # noqa: E501 + :type: GcpSecurity + """ + + self._security = security + @property def token_uri(self): """Gets the token_uri of this GCP. # noqa: E501 diff --git a/ocm_client/models/gcp_image_override.py b/ocm_client/models/gcp_image_override.py new file mode 100644 index 0000000..fbbb8fd --- /dev/null +++ b/ocm_client/models/gcp_image_override.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class GCPImageOverride(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'billing_model': 'BillingModelItem', + 'image_id': 'str', + 'product': 'Product', + 'project_id': 'str' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'billing_model': 'billing_model', + 'image_id': 'image_id', + 'product': 'product', + 'project_id': 'project_id' + } + + def __init__(self, kind=None, id=None, href=None, billing_model=None, image_id=None, product=None, project_id=None, local_vars_configuration=None): # noqa: E501 + """GCPImageOverride - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._billing_model = None + self._image_id = None + self._product = None + self._project_id = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if billing_model is not None: + self.billing_model = billing_model + if image_id is not None: + self.image_id = image_id + if product is not None: + self.product = product + if project_id is not None: + self.project_id = project_id + + @property + def kind(self): + """Gets the kind of this GCPImageOverride. # noqa: E501 + + Indicates the type of this object. Will be 'GCPImageOverride' if this is a complete object or 'GCPImageOverrideLink' if it is just a link. # noqa: E501 + + :return: The kind of this GCPImageOverride. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this GCPImageOverride. + + Indicates the type of this object. Will be 'GCPImageOverride' if this is a complete object or 'GCPImageOverrideLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this GCPImageOverride. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this GCPImageOverride. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this GCPImageOverride. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GCPImageOverride. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this GCPImageOverride. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this GCPImageOverride. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this GCPImageOverride. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this GCPImageOverride. + + Self link. # noqa: E501 + + :param href: The href of this GCPImageOverride. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def billing_model(self): + """Gets the billing_model of this GCPImageOverride. # noqa: E501 + + + :return: The billing_model of this GCPImageOverride. # noqa: E501 + :rtype: BillingModelItem + """ + return self._billing_model + + @billing_model.setter + def billing_model(self, billing_model): + """Sets the billing_model of this GCPImageOverride. + + + :param billing_model: The billing_model of this GCPImageOverride. # noqa: E501 + :type: BillingModelItem + """ + + self._billing_model = billing_model + + @property + def image_id(self): + """Gets the image_id of this GCPImageOverride. # noqa: E501 + + ImageID is the id of the Google Cloud Platform image. # noqa: E501 + + :return: The image_id of this GCPImageOverride. # noqa: E501 + :rtype: str + """ + return self._image_id + + @image_id.setter + def image_id(self, image_id): + """Sets the image_id of this GCPImageOverride. + + ImageID is the id of the Google Cloud Platform image. # noqa: E501 + + :param image_id: The image_id of this GCPImageOverride. # noqa: E501 + :type: str + """ + + self._image_id = image_id + + @property + def product(self): + """Gets the product of this GCPImageOverride. # noqa: E501 + + + :return: The product of this GCPImageOverride. # noqa: E501 + :rtype: Product + """ + return self._product + + @product.setter + def product(self, product): + """Sets the product of this GCPImageOverride. + + + :param product: The product of this GCPImageOverride. # noqa: E501 + :type: Product + """ + + self._product = product + + @property + def project_id(self): + """Gets the project_id of this GCPImageOverride. # noqa: E501 + + ProjectID is the id of the Google Cloud Platform project that hosts the image. # noqa: E501 + + :return: The project_id of this GCPImageOverride. # noqa: E501 + :rtype: str + """ + return self._project_id + + @project_id.setter + def project_id(self, project_id): + """Sets the project_id of this GCPImageOverride. + + ProjectID is the id of the Google Cloud Platform project that hosts the image. # noqa: E501 + + :param project_id: The project_id of this GCPImageOverride. # noqa: E501 + :type: str + """ + + self._project_id = project_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GCPImageOverride): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GCPImageOverride): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/gcp_network.py b/ocm_client/models/gcp_network.py index 950d49f..00e7cb6 100644 --- a/ocm_client/models/gcp_network.py +++ b/ocm_client/models/gcp_network.py @@ -35,29 +35,34 @@ class GCPNetwork(object): """ openapi_types = { 'vpc_name': 'str', + 'vpc_project_id': 'str', 'compute_subnet': 'str', 'control_plane_subnet': 'str' } attribute_map = { 'vpc_name': 'vpc_name', + 'vpc_project_id': 'vpc_project_id', 'compute_subnet': 'compute_subnet', 'control_plane_subnet': 'control_plane_subnet' } - def __init__(self, vpc_name=None, compute_subnet=None, control_plane_subnet=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, vpc_name=None, vpc_project_id=None, compute_subnet=None, control_plane_subnet=None, local_vars_configuration=None): # noqa: E501 """GCPNetwork - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._vpc_name = None + self._vpc_project_id = None self._compute_subnet = None self._control_plane_subnet = None self.discriminator = None if vpc_name is not None: self.vpc_name = vpc_name + if vpc_project_id is not None: + self.vpc_project_id = vpc_project_id if compute_subnet is not None: self.compute_subnet = compute_subnet if control_plane_subnet is not None: @@ -86,6 +91,29 @@ def vpc_name(self, vpc_name): self._vpc_name = vpc_name + @property + def vpc_project_id(self): + """Gets the vpc_project_id of this GCPNetwork. # noqa: E501 + + The name of the host project where the shared VPC exists. # noqa: E501 + + :return: The vpc_project_id of this GCPNetwork. # noqa: E501 + :rtype: str + """ + return self._vpc_project_id + + @vpc_project_id.setter + def vpc_project_id(self, vpc_project_id): + """Sets the vpc_project_id of this GCPNetwork. + + The name of the host project where the shared VPC exists. # noqa: E501 + + :param vpc_project_id: The vpc_project_id of this GCPNetwork. # noqa: E501 + :type: str + """ + + self._vpc_project_id = vpc_project_id + @property def compute_subnet(self): """Gets the compute_subnet of this GCPNetwork. # noqa: E501 diff --git a/ocm_client/models/gcp_security.py b/ocm_client/models/gcp_security.py new file mode 100644 index 0000000..9fe5b5c --- /dev/null +++ b/ocm_client/models/gcp_security.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class GcpSecurity(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'secure_boot': 'bool' + } + + attribute_map = { + 'secure_boot': 'secure_boot' + } + + def __init__(self, secure_boot=None, local_vars_configuration=None): # noqa: E501 + """GcpSecurity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._secure_boot = None + self.discriminator = None + + if secure_boot is not None: + self.secure_boot = secure_boot + + @property + def secure_boot(self): + """Gets the secure_boot of this GcpSecurity. # noqa: E501 + + Determines if Shielded VM feature \"Secure Boot\" should be set for the nodes of the cluster. # noqa: E501 + + :return: The secure_boot of this GcpSecurity. # noqa: E501 + :rtype: bool + """ + return self._secure_boot + + @secure_boot.setter + def secure_boot(self, secure_boot): + """Sets the secure_boot of this GcpSecurity. + + Determines if Shielded VM feature \"Secure Boot\" should be set for the nodes of the cluster. # noqa: E501 + + :param secure_boot: The secure_boot of this GcpSecurity. # noqa: E501 + :type: bool + """ + + self._secure_boot = secure_boot + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GcpSecurity): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, GcpSecurity): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/ht_passwd_user.py b/ocm_client/models/ht_passwd_user.py index b4358e1..431f7f5 100644 --- a/ocm_client/models/ht_passwd_user.py +++ b/ocm_client/models/ht_passwd_user.py @@ -35,29 +35,34 @@ class HTPasswdUser(object): """ openapi_types = { 'id': 'str', + 'hashed_password': 'str', 'password': 'str', 'username': 'str' } attribute_map = { 'id': 'id', + 'hashed_password': 'hashed_password', 'password': 'password', 'username': 'username' } - def __init__(self, id=None, password=None, username=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, id=None, hashed_password=None, password=None, username=None, local_vars_configuration=None): # noqa: E501 """HTPasswdUser - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration self._id = None + self._hashed_password = None self._password = None self._username = None self.discriminator = None if id is not None: self.id = id + if hashed_password is not None: + self.hashed_password = hashed_password if password is not None: self.password = password if username is not None: @@ -86,11 +91,34 @@ def id(self, id): self._id = id + @property + def hashed_password(self): + """Gets the hashed_password of this HTPasswdUser. # noqa: E501 + + HTPasswd Hashed Password for a user in the _HTPasswd_ data file. The value of this field is set as-is in the _HTPasswd_ data file for the HTPasswd IDP # noqa: E501 + + :return: The hashed_password of this HTPasswdUser. # noqa: E501 + :rtype: str + """ + return self._hashed_password + + @hashed_password.setter + def hashed_password(self, hashed_password): + """Sets the hashed_password of this HTPasswdUser. + + HTPasswd Hashed Password for a user in the _HTPasswd_ data file. The value of this field is set as-is in the _HTPasswd_ data file for the HTPasswd IDP # noqa: E501 + + :param hashed_password: The hashed_password of this HTPasswdUser. # noqa: E501 + :type: str + """ + + self._hashed_password = hashed_password + @property def password(self): """Gets the password of this HTPasswdUser. # noqa: E501 - Password for a secondary user in the _HTPasswd_ data file. # noqa: E501 + Password in plain-text for a user in the _HTPasswd_ data file. The value of this field is hashed before setting it in the _HTPasswd_ data file for the HTPasswd IDP # noqa: E501 :return: The password of this HTPasswdUser. # noqa: E501 :rtype: str @@ -101,7 +129,7 @@ def password(self): def password(self, password): """Sets the password of this HTPasswdUser. - Password for a secondary user in the _HTPasswd_ data file. # noqa: E501 + Password in plain-text for a user in the _HTPasswd_ data file. The value of this field is hashed before setting it in the _HTPasswd_ data file for the HTPasswd IDP # noqa: E501 :param password: The password of this HTPasswdUser. # noqa: E501 :type: str diff --git a/ocm_client/models/image_overrides.py b/ocm_client/models/image_overrides.py new file mode 100644 index 0000000..2dacce0 --- /dev/null +++ b/ocm_client/models/image_overrides.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class ImageOverrides(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'aws': 'list[AMIOverride]', + 'gcp': 'list[GCPImageOverride]' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'aws': 'aws', + 'gcp': 'gcp' + } + + def __init__(self, kind=None, id=None, href=None, aws=None, gcp=None, local_vars_configuration=None): # noqa: E501 + """ImageOverrides - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._aws = None + self._gcp = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if aws is not None: + self.aws = aws + if gcp is not None: + self.gcp = gcp + + @property + def kind(self): + """Gets the kind of this ImageOverrides. # noqa: E501 + + Indicates the type of this object. Will be 'ImageOverrides' if this is a complete object or 'ImageOverridesLink' if it is just a link. # noqa: E501 + + :return: The kind of this ImageOverrides. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this ImageOverrides. + + Indicates the type of this object. Will be 'ImageOverrides' if this is a complete object or 'ImageOverridesLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this ImageOverrides. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this ImageOverrides. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this ImageOverrides. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ImageOverrides. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this ImageOverrides. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this ImageOverrides. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this ImageOverrides. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this ImageOverrides. + + Self link. # noqa: E501 + + :param href: The href of this ImageOverrides. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def aws(self): + """Gets the aws of this ImageOverrides. # noqa: E501 + + + :return: The aws of this ImageOverrides. # noqa: E501 + :rtype: list[AMIOverride] + """ + return self._aws + + @aws.setter + def aws(self, aws): + """Sets the aws of this ImageOverrides. + + + :param aws: The aws of this ImageOverrides. # noqa: E501 + :type: list[AMIOverride] + """ + + self._aws = aws + + @property + def gcp(self): + """Gets the gcp of this ImageOverrides. # noqa: E501 + + + :return: The gcp of this ImageOverrides. # noqa: E501 + :rtype: list[GCPImageOverride] + """ + return self._gcp + + @gcp.setter + def gcp(self, gcp): + """Sets the gcp of this ImageOverrides. + + + :param gcp: The gcp of this ImageOverrides. # noqa: E501 + :type: list[GCPImageOverride] + """ + + self._gcp = gcp + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ImageOverrides): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ImageOverrides): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/ingress.py b/ocm_client/models/ingress.py index 2c0d759..e75ee63 100644 --- a/ocm_client/models/ingress.py +++ b/ocm_client/models/ingress.py @@ -38,10 +38,15 @@ class Ingress(object): 'id': 'str', 'href': 'str', 'dns_name': 'str', + 'cluster_routes_hostname': 'str', + 'cluster_routes_tls_secret_ref': 'str', 'default': 'bool', + 'excluded_namespaces': 'list[str]', 'listening': 'ListeningMethod', 'load_balancer_type': 'LoadBalancerFlavor', - 'route_selectors': 'dict(str, str)' + 'route_namespace_ownership_policy': 'NamespaceOwnershipPolicy', + 'route_selectors': 'dict(str, str)', + 'route_wildcard_policy': 'WildcardPolicy' } attribute_map = { @@ -49,13 +54,18 @@ class Ingress(object): 'id': 'id', 'href': 'href', 'dns_name': 'dns_name', + 'cluster_routes_hostname': 'cluster_routes_hostname', + 'cluster_routes_tls_secret_ref': 'cluster_routes_tls_secret_ref', 'default': 'default', + 'excluded_namespaces': 'excluded_namespaces', 'listening': 'listening', 'load_balancer_type': 'load_balancer_type', - 'route_selectors': 'route_selectors' + 'route_namespace_ownership_policy': 'route_namespace_ownership_policy', + 'route_selectors': 'route_selectors', + 'route_wildcard_policy': 'route_wildcard_policy' } - def __init__(self, kind=None, id=None, href=None, dns_name=None, default=None, listening=None, load_balancer_type=None, route_selectors=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, kind=None, id=None, href=None, dns_name=None, cluster_routes_hostname=None, cluster_routes_tls_secret_ref=None, default=None, excluded_namespaces=None, listening=None, load_balancer_type=None, route_namespace_ownership_policy=None, route_selectors=None, route_wildcard_policy=None, local_vars_configuration=None): # noqa: E501 """Ingress - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -65,10 +75,15 @@ def __init__(self, kind=None, id=None, href=None, dns_name=None, default=None, l self._id = None self._href = None self._dns_name = None + self._cluster_routes_hostname = None + self._cluster_routes_tls_secret_ref = None self._default = None + self._excluded_namespaces = None self._listening = None self._load_balancer_type = None + self._route_namespace_ownership_policy = None self._route_selectors = None + self._route_wildcard_policy = None self.discriminator = None if kind is not None: @@ -79,14 +94,24 @@ def __init__(self, kind=None, id=None, href=None, dns_name=None, default=None, l self.href = href if dns_name is not None: self.dns_name = dns_name + if cluster_routes_hostname is not None: + self.cluster_routes_hostname = cluster_routes_hostname + if cluster_routes_tls_secret_ref is not None: + self.cluster_routes_tls_secret_ref = cluster_routes_tls_secret_ref if default is not None: self.default = default + if excluded_namespaces is not None: + self.excluded_namespaces = excluded_namespaces if listening is not None: self.listening = listening if load_balancer_type is not None: self.load_balancer_type = load_balancer_type + if route_namespace_ownership_policy is not None: + self.route_namespace_ownership_policy = route_namespace_ownership_policy if route_selectors is not None: self.route_selectors = route_selectors + if route_wildcard_policy is not None: + self.route_wildcard_policy = route_wildcard_policy @property def kind(self): @@ -180,6 +205,52 @@ def dns_name(self, dns_name): self._dns_name = dns_name + @property + def cluster_routes_hostname(self): + """Gets the cluster_routes_hostname of this Ingress. # noqa: E501 + + Cluster routes hostname. # noqa: E501 + + :return: The cluster_routes_hostname of this Ingress. # noqa: E501 + :rtype: str + """ + return self._cluster_routes_hostname + + @cluster_routes_hostname.setter + def cluster_routes_hostname(self, cluster_routes_hostname): + """Sets the cluster_routes_hostname of this Ingress. + + Cluster routes hostname. # noqa: E501 + + :param cluster_routes_hostname: The cluster_routes_hostname of this Ingress. # noqa: E501 + :type: str + """ + + self._cluster_routes_hostname = cluster_routes_hostname + + @property + def cluster_routes_tls_secret_ref(self): + """Gets the cluster_routes_tls_secret_ref of this Ingress. # noqa: E501 + + Cluster routes TLS Secret reference. # noqa: E501 + + :return: The cluster_routes_tls_secret_ref of this Ingress. # noqa: E501 + :rtype: str + """ + return self._cluster_routes_tls_secret_ref + + @cluster_routes_tls_secret_ref.setter + def cluster_routes_tls_secret_ref(self, cluster_routes_tls_secret_ref): + """Sets the cluster_routes_tls_secret_ref of this Ingress. + + Cluster routes TLS Secret reference. # noqa: E501 + + :param cluster_routes_tls_secret_ref: The cluster_routes_tls_secret_ref of this Ingress. # noqa: E501 + :type: str + """ + + self._cluster_routes_tls_secret_ref = cluster_routes_tls_secret_ref + @property def default(self): """Gets the default of this Ingress. # noqa: E501 @@ -203,6 +274,29 @@ def default(self, default): self._default = default + @property + def excluded_namespaces(self): + """Gets the excluded_namespaces of this Ingress. # noqa: E501 + + A set of excluded namespaces for the ingress. # noqa: E501 + + :return: The excluded_namespaces of this Ingress. # noqa: E501 + :rtype: list[str] + """ + return self._excluded_namespaces + + @excluded_namespaces.setter + def excluded_namespaces(self, excluded_namespaces): + """Sets the excluded_namespaces of this Ingress. + + A set of excluded namespaces for the ingress. # noqa: E501 + + :param excluded_namespaces: The excluded_namespaces of this Ingress. # noqa: E501 + :type: list[str] + """ + + self._excluded_namespaces = excluded_namespaces + @property def listening(self): """Gets the listening of this Ingress. # noqa: E501 @@ -245,6 +339,27 @@ def load_balancer_type(self, load_balancer_type): self._load_balancer_type = load_balancer_type + @property + def route_namespace_ownership_policy(self): + """Gets the route_namespace_ownership_policy of this Ingress. # noqa: E501 + + + :return: The route_namespace_ownership_policy of this Ingress. # noqa: E501 + :rtype: NamespaceOwnershipPolicy + """ + return self._route_namespace_ownership_policy + + @route_namespace_ownership_policy.setter + def route_namespace_ownership_policy(self, route_namespace_ownership_policy): + """Sets the route_namespace_ownership_policy of this Ingress. + + + :param route_namespace_ownership_policy: The route_namespace_ownership_policy of this Ingress. # noqa: E501 + :type: NamespaceOwnershipPolicy + """ + + self._route_namespace_ownership_policy = route_namespace_ownership_policy + @property def route_selectors(self): """Gets the route_selectors of this Ingress. # noqa: E501 @@ -268,6 +383,27 @@ def route_selectors(self, route_selectors): self._route_selectors = route_selectors + @property + def route_wildcard_policy(self): + """Gets the route_wildcard_policy of this Ingress. # noqa: E501 + + + :return: The route_wildcard_policy of this Ingress. # noqa: E501 + :rtype: WildcardPolicy + """ + return self._route_wildcard_policy + + @route_wildcard_policy.setter + def route_wildcard_policy(self, route_wildcard_policy): + """Sets the route_wildcard_policy of this Ingress. + + + :param route_wildcard_policy: The route_wildcard_policy of this Ingress. # noqa: E501 + :type: WildcardPolicy + """ + + self._route_wildcard_policy = route_wildcard_policy + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/ocm_client/models/inline_response20010.py b/ocm_client/models/inline_response20010.py index 2db80f6..66e107d 100644 --- a/ocm_client/models/inline_response20010.py +++ b/ocm_client/models/inline_response20010.py @@ -72,7 +72,7 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20010. # noqa: E501 - Retrieved list of cloud providers. # noqa: E501 + Retrieved list of cloud regions. # noqa: E501 :return: The items of this InlineResponse20010. # noqa: E501 :rtype: list[CloudRegion] @@ -83,7 +83,7 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20010. - Retrieved list of cloud providers. # noqa: E501 + Retrieved list of cloud regions. # noqa: E501 :param items: The items of this InlineResponse20010. # noqa: E501 :type: list[CloudRegion] @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20010. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. # noqa: E501 :return: The total of this InlineResponse20010. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20010. - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. # noqa: E501 :param total: The total of this InlineResponse20010. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20011.py b/ocm_client/models/inline_response20011.py index f8cbf0d..a8daa15 100644 --- a/ocm_client/models/inline_response20011.py +++ b/ocm_client/models/inline_response20011.py @@ -34,7 +34,7 @@ class InlineResponse20011(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Cluster]', + 'items': 'list[CloudRegion]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20011. # noqa: E501 - Retrieved list of clusters. # noqa: E501 + Retrieved list of cloud providers. # noqa: E501 :return: The items of this InlineResponse20011. # noqa: E501 - :rtype: list[Cluster] + :rtype: list[CloudRegion] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20011. - Retrieved list of clusters. # noqa: E501 + Retrieved list of cloud providers. # noqa: E501 :param items: The items of this InlineResponse20011. # noqa: E501 - :type: list[Cluster] + :type: list[CloudRegion] """ self._items = items @@ -95,7 +95,7 @@ def items(self, items): def page(self): """Gets the page of this InlineResponse20011. # noqa: E501 - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :return: The page of this InlineResponse20011. # noqa: E501 :rtype: int @@ -106,7 +106,7 @@ def page(self): def page(self, page): """Sets the page of this InlineResponse20011. - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :param page: The page of this InlineResponse20011. # noqa: E501 :type: int @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20011. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 :return: The size of this InlineResponse20011. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20011. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 :param size: The size of this InlineResponse20011. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20011. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 :return: The total of this InlineResponse20011. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20011. - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 :param total: The total of this InlineResponse20011. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20012.py b/ocm_client/models/inline_response20012.py index fc13253..d19c4de 100644 --- a/ocm_client/models/inline_response20012.py +++ b/ocm_client/models/inline_response20012.py @@ -34,7 +34,7 @@ class InlineResponse20012(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[AddonUpgradePolicy]', + 'items': 'list[Cluster]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20012. # noqa: E501 - Retrieved list of addon upgrade policy. # noqa: E501 + Retrieved list of clusters. # noqa: E501 :return: The items of this InlineResponse20012. # noqa: E501 - :rtype: list[AddonUpgradePolicy] + :rtype: list[Cluster] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20012. - Retrieved list of addon upgrade policy. # noqa: E501 + Retrieved list of clusters. # noqa: E501 :param items: The items of this InlineResponse20012. # noqa: E501 - :type: list[AddonUpgradePolicy] + :type: list[Cluster] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20012. # noqa: E501 - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20012. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20012. - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20012. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20012. # noqa: E501 - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :return: The total of this InlineResponse20012. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20012. - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :param total: The total of this InlineResponse20012. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20013.py b/ocm_client/models/inline_response20013.py index 1cd7df1..161f033 100644 --- a/ocm_client/models/inline_response20013.py +++ b/ocm_client/models/inline_response20013.py @@ -34,7 +34,7 @@ class InlineResponse20013(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[AddOnInstallation]', + 'items': 'list[AddonUpgradePolicy]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20013. # noqa: E501 - Retrieved list of add-on installations. # noqa: E501 + Retrieved list of addon upgrade policy. # noqa: E501 :return: The items of this InlineResponse20013. # noqa: E501 - :rtype: list[AddOnInstallation] + :rtype: list[AddonUpgradePolicy] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20013. - Retrieved list of add-on installations. # noqa: E501 + Retrieved list of addon upgrade policy. # noqa: E501 :param items: The items of this InlineResponse20013. # noqa: E501 - :type: list[AddOnInstallation] + :type: list[AddonUpgradePolicy] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20013. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20013. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20013. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20013. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20013. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :return: The total of this InlineResponse20013. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20013. - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :param total: The total of this InlineResponse20013. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20014.py b/ocm_client/models/inline_response20014.py index aa78f9b..2176079 100644 --- a/ocm_client/models/inline_response20014.py +++ b/ocm_client/models/inline_response20014.py @@ -34,7 +34,7 @@ class InlineResponse20014(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[PrivateLinkPrincipal]', + 'items': 'list[AddOnInstallation]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20014. # noqa: E501 - Retrieved list of principals. # noqa: E501 + Retrieved list of add-on installations. # noqa: E501 :return: The items of this InlineResponse20014. # noqa: E501 - :rtype: list[PrivateLinkPrincipal] + :rtype: list[AddOnInstallation] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20014. - Retrieved list of principals. # noqa: E501 + Retrieved list of add-on installations. # noqa: E501 :param items: The items of this InlineResponse20014. # noqa: E501 - :type: list[PrivateLinkPrincipal] + :type: list[AddOnInstallation] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20014. # noqa: E501 - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20014. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20014. - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20014. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20014. # noqa: E501 - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :return: The total of this InlineResponse20014. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20014. - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :param total: The total of this InlineResponse20014. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20015.py b/ocm_client/models/inline_response20015.py index dda476a..04e7422 100644 --- a/ocm_client/models/inline_response20015.py +++ b/ocm_client/models/inline_response20015.py @@ -34,7 +34,7 @@ class InlineResponse20015(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[AWSInfrastructureAccessRoleGrant]', + 'items': 'list[PrivateLinkPrincipal]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20015. # noqa: E501 - Retrieved list of AWS infrastructure access role grants. # noqa: E501 + Retrieved list of principals. # noqa: E501 :return: The items of this InlineResponse20015. # noqa: E501 - :rtype: list[AWSInfrastructureAccessRoleGrant] + :rtype: list[PrivateLinkPrincipal] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20015. - Retrieved list of AWS infrastructure access role grants. # noqa: E501 + Retrieved list of principals. # noqa: E501 :param items: The items of this InlineResponse20015. # noqa: E501 - :type: list[AWSInfrastructureAccessRoleGrant] + :type: list[PrivateLinkPrincipal] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20015. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20015. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20015. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20015. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20015. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :return: The total of this InlineResponse20015. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20015. - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :param total: The total of this InlineResponse20015. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20016.py b/ocm_client/models/inline_response20016.py index 811fd22..7a40397 100644 --- a/ocm_client/models/inline_response20016.py +++ b/ocm_client/models/inline_response20016.py @@ -34,7 +34,7 @@ class InlineResponse20016(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[ControlPlaneUpgradePolicy]', + 'items': 'list[AWSInfrastructureAccessRoleGrant]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20016. # noqa: E501 - Retrieved list of upgrade policy. # noqa: E501 + Retrieved list of AWS infrastructure access role grants. # noqa: E501 :return: The items of this InlineResponse20016. # noqa: E501 - :rtype: list[ControlPlaneUpgradePolicy] + :rtype: list[AWSInfrastructureAccessRoleGrant] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20016. - Retrieved list of upgrade policy. # noqa: E501 + Retrieved list of AWS infrastructure access role grants. # noqa: E501 :param items: The items of this InlineResponse20016. # noqa: E501 - :type: list[ControlPlaneUpgradePolicy] + :type: list[AWSInfrastructureAccessRoleGrant] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20016. # noqa: E501 - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20016. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20016. - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20016. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20016. # noqa: E501 - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :return: The total of this InlineResponse20016. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20016. - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :param total: The total of this InlineResponse20016. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20017.py b/ocm_client/models/inline_response20017.py index 561d455..f96a326 100644 --- a/ocm_client/models/inline_response20017.py +++ b/ocm_client/models/inline_response20017.py @@ -34,7 +34,7 @@ class InlineResponse20017(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Label]', + 'items': 'list[ControlPlaneUpgradePolicy]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20017. # noqa: E501 - Retrieved list of labels. # noqa: E501 + Retrieved list of upgrade policy. # noqa: E501 :return: The items of this InlineResponse20017. # noqa: E501 - :rtype: list[Label] + :rtype: list[ControlPlaneUpgradePolicy] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20017. - Retrieved list of labels. # noqa: E501 + Retrieved list of upgrade policy. # noqa: E501 :param items: The items of this InlineResponse20017. # noqa: E501 - :type: list[Label] + :type: list[ControlPlaneUpgradePolicy] """ self._items = items diff --git a/ocm_client/models/inline_response20018.py b/ocm_client/models/inline_response20018.py index a24f954..bec7f44 100644 --- a/ocm_client/models/inline_response20018.py +++ b/ocm_client/models/inline_response20018.py @@ -34,7 +34,7 @@ class InlineResponse20018(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Manifest]', + 'items': 'list[Label]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20018. # noqa: E501 - Retrieved list of Manifests. # noqa: E501 + Retrieved list of labels. # noqa: E501 :return: The items of this InlineResponse20018. # noqa: E501 - :rtype: list[Manifest] + :rtype: list[Label] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20018. - Retrieved list of Manifests. # noqa: E501 + Retrieved list of labels. # noqa: E501 :param items: The items of this InlineResponse20018. # noqa: E501 - :type: list[Manifest] + :type: list[Label] """ self._items = items diff --git a/ocm_client/models/inline_response20019.py b/ocm_client/models/inline_response20019.py index 812d8da..2ca4f67 100644 --- a/ocm_client/models/inline_response20019.py +++ b/ocm_client/models/inline_response20019.py @@ -34,7 +34,7 @@ class InlineResponse20019(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Syncset]', + 'items': 'list[Manifest]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20019. # noqa: E501 - Retrieved list of syncsets. # noqa: E501 + Retrieved list of Manifests. # noqa: E501 :return: The items of this InlineResponse20019. # noqa: E501 - :rtype: list[Syncset] + :rtype: list[Manifest] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20019. - Retrieved list of syncsets. # noqa: E501 + Retrieved list of Manifests. # noqa: E501 :param items: The items of this InlineResponse20019. # noqa: E501 - :type: list[Syncset] + :type: list[Manifest] """ self._items = items diff --git a/ocm_client/models/inline_response20020.py b/ocm_client/models/inline_response20020.py index 5396e71..d158407 100644 --- a/ocm_client/models/inline_response20020.py +++ b/ocm_client/models/inline_response20020.py @@ -34,7 +34,7 @@ class InlineResponse20020(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[VersionGateAgreement]', + 'items': 'list[Syncset]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20020. # noqa: E501 - Retrieved list of version gate agreement. # noqa: E501 + Retrieved list of syncsets. # noqa: E501 :return: The items of this InlineResponse20020. # noqa: E501 - :rtype: list[VersionGateAgreement] + :rtype: list[Syncset] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20020. - Retrieved list of version gate agreement. # noqa: E501 + Retrieved list of syncsets. # noqa: E501 :param items: The items of this InlineResponse20020. # noqa: E501 - :type: list[VersionGateAgreement] + :type: list[Syncset] """ self._items = items diff --git a/ocm_client/models/inline_response20021.py b/ocm_client/models/inline_response20021.py index 8602001..7ca520a 100644 --- a/ocm_client/models/inline_response20021.py +++ b/ocm_client/models/inline_response20021.py @@ -34,7 +34,7 @@ class InlineResponse20021(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Group]', + 'items': 'list[VersionGateAgreement]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20021. # noqa: E501 - Retrieved list of groups. # noqa: E501 + Retrieved list of version gate agreement. # noqa: E501 :return: The items of this InlineResponse20021. # noqa: E501 - :rtype: list[Group] + :rtype: list[VersionGateAgreement] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20021. - Retrieved list of groups. # noqa: E501 + Retrieved list of version gate agreement. # noqa: E501 :param items: The items of this InlineResponse20021. # noqa: E501 - :type: list[Group] + :type: list[VersionGateAgreement] """ self._items = items diff --git a/ocm_client/models/inline_response20022.py b/ocm_client/models/inline_response20022.py index b4d101e..0ce76b8 100644 --- a/ocm_client/models/inline_response20022.py +++ b/ocm_client/models/inline_response20022.py @@ -34,7 +34,7 @@ class InlineResponse20022(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[User]', + 'items': 'list[Group]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20022. # noqa: E501 - Retrieved list of users. # noqa: E501 + Retrieved list of groups. # noqa: E501 :return: The items of this InlineResponse20022. # noqa: E501 - :rtype: list[User] + :rtype: list[Group] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20022. - Retrieved list of users. # noqa: E501 + Retrieved list of groups. # noqa: E501 :param items: The items of this InlineResponse20022. # noqa: E501 - :type: list[User] + :type: list[Group] """ self._items = items diff --git a/ocm_client/models/inline_response20023.py b/ocm_client/models/inline_response20023.py index 6657001..62dbdd5 100644 --- a/ocm_client/models/inline_response20023.py +++ b/ocm_client/models/inline_response20023.py @@ -34,7 +34,7 @@ class InlineResponse20023(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[IdentityProvider]', + 'items': 'list[User]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20023. # noqa: E501 - Retrieved list of identity providers. # noqa: E501 + Retrieved list of users. # noqa: E501 :return: The items of this InlineResponse20023. # noqa: E501 - :rtype: list[IdentityProvider] + :rtype: list[User] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20023. - Retrieved list of identity providers. # noqa: E501 + Retrieved list of users. # noqa: E501 :param items: The items of this InlineResponse20023. # noqa: E501 - :type: list[IdentityProvider] + :type: list[User] """ self._items = items diff --git a/ocm_client/models/inline_response20024.py b/ocm_client/models/inline_response20024.py index b877950..3dc748f 100644 --- a/ocm_client/models/inline_response20024.py +++ b/ocm_client/models/inline_response20024.py @@ -34,7 +34,7 @@ class InlineResponse20024(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[HTPasswdUser]', + 'items': 'list[IdentityProvider]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20024. # noqa: E501 - Retrieved list of users of the IDP. # noqa: E501 + Retrieved list of identity providers. # noqa: E501 :return: The items of this InlineResponse20024. # noqa: E501 - :rtype: list[HTPasswdUser] + :rtype: list[IdentityProvider] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20024. - Retrieved list of users of the IDP. # noqa: E501 + Retrieved list of identity providers. # noqa: E501 :param items: The items of this InlineResponse20024. # noqa: E501 - :type: list[HTPasswdUser] + :type: list[IdentityProvider] """ self._items = items diff --git a/ocm_client/models/inline_response20025.py b/ocm_client/models/inline_response20025.py index 45fd728..c51ba3e 100644 --- a/ocm_client/models/inline_response20025.py +++ b/ocm_client/models/inline_response20025.py @@ -72,7 +72,7 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20025. # noqa: E501 - Updated list of users of the IDP. # noqa: E501 + Retrieved list of users of the IDP. # noqa: E501 :return: The items of this InlineResponse20025. # noqa: E501 :rtype: list[HTPasswdUser] @@ -83,7 +83,7 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20025. - Updated list of users of the IDP. # noqa: E501 + Retrieved list of users of the IDP. # noqa: E501 :param items: The items of this InlineResponse20025. # noqa: E501 :type: list[HTPasswdUser] diff --git a/ocm_client/models/inline_response20026.py b/ocm_client/models/inline_response20026.py index 13eee2e..4b22690 100644 --- a/ocm_client/models/inline_response20026.py +++ b/ocm_client/models/inline_response20026.py @@ -34,7 +34,7 @@ class InlineResponse20026(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[InflightCheck]', + 'items': 'list[HTPasswdUser]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20026. # noqa: E501 - Retrieved list of inflight checks. # noqa: E501 + Updated list of users of the IDP. # noqa: E501 :return: The items of this InlineResponse20026. # noqa: E501 - :rtype: list[InflightCheck] + :rtype: list[HTPasswdUser] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20026. - Retrieved list of inflight checks. # noqa: E501 + Updated list of users of the IDP. # noqa: E501 :param items: The items of this InlineResponse20026. # noqa: E501 - :type: list[InflightCheck] + :type: list[HTPasswdUser] """ self._items = items diff --git a/ocm_client/models/inline_response20027.py b/ocm_client/models/inline_response20027.py index 242f465..d19e048 100644 --- a/ocm_client/models/inline_response20027.py +++ b/ocm_client/models/inline_response20027.py @@ -34,7 +34,7 @@ class InlineResponse20027(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Ingress]', + 'items': 'list[InflightCheck]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20027. # noqa: E501 - Retrieved list of ingresses. # noqa: E501 + Retrieved list of inflight checks. # noqa: E501 :return: The items of this InlineResponse20027. # noqa: E501 - :rtype: list[Ingress] + :rtype: list[InflightCheck] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20027. - Retrieved list of ingresses. # noqa: E501 + Retrieved list of inflight checks. # noqa: E501 :param items: The items of this InlineResponse20027. # noqa: E501 - :type: list[Ingress] + :type: list[InflightCheck] """ self._items = items diff --git a/ocm_client/models/inline_response20028.py b/ocm_client/models/inline_response20028.py index 94c5d25..b50859f 100644 --- a/ocm_client/models/inline_response20028.py +++ b/ocm_client/models/inline_response20028.py @@ -34,7 +34,7 @@ class InlineResponse20028(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[LimitedSupportReason]', + 'items': 'list[Ingress]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20028. # noqa: E501 - Retrieved list of template. # noqa: E501 + Retrieved list of ingresses. # noqa: E501 :return: The items of this InlineResponse20028. # noqa: E501 - :rtype: list[LimitedSupportReason] + :rtype: list[Ingress] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20028. - Retrieved list of template. # noqa: E501 + Retrieved list of ingresses. # noqa: E501 :param items: The items of this InlineResponse20028. # noqa: E501 - :type: list[LimitedSupportReason] + :type: list[Ingress] """ self._items = items diff --git a/ocm_client/models/inline_response20029.py b/ocm_client/models/inline_response20029.py index 9773794..674540e 100644 --- a/ocm_client/models/inline_response20029.py +++ b/ocm_client/models/inline_response20029.py @@ -34,7 +34,7 @@ class InlineResponse20029(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Log]', + 'items': 'list[LimitedSupportReason]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20029. # noqa: E501 - Retrieved list of log links. # noqa: E501 + Retrieved list of template. # noqa: E501 :return: The items of this InlineResponse20029. # noqa: E501 - :rtype: list[Log] + :rtype: list[LimitedSupportReason] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20029. - Retrieved list of log links. # noqa: E501 + Retrieved list of template. # noqa: E501 :param items: The items of this InlineResponse20029. # noqa: E501 - :type: list[Log] + :type: list[LimitedSupportReason] """ self._items = items diff --git a/ocm_client/models/inline_response20030.py b/ocm_client/models/inline_response20030.py index 0019be0..ad904e9 100644 --- a/ocm_client/models/inline_response20030.py +++ b/ocm_client/models/inline_response20030.py @@ -34,7 +34,7 @@ class InlineResponse20030(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[MachinePool]', + 'items': 'list[Log]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20030. # noqa: E501 - Retrieved list of machine pools. # noqa: E501 + Retrieved list of log links. # noqa: E501 :return: The items of this InlineResponse20030. # noqa: E501 - :rtype: list[MachinePool] + :rtype: list[Log] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20030. - Retrieved list of machine pools. # noqa: E501 + Retrieved list of log links. # noqa: E501 :param items: The items of this InlineResponse20030. # noqa: E501 - :type: list[MachinePool] + :type: list[Log] """ self._items = items diff --git a/ocm_client/models/inline_response20031.py b/ocm_client/models/inline_response20031.py index 5ae0a1e..44d9ed7 100644 --- a/ocm_client/models/inline_response20031.py +++ b/ocm_client/models/inline_response20031.py @@ -34,7 +34,7 @@ class InlineResponse20031(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[NodePool]', + 'items': 'list[MachinePool]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20031. # noqa: E501 - Retrieved list of node pools. # noqa: E501 + Retrieved list of machine pools. # noqa: E501 :return: The items of this InlineResponse20031. # noqa: E501 - :rtype: list[NodePool] + :rtype: list[MachinePool] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20031. - Retrieved list of node pools. # noqa: E501 + Retrieved list of machine pools. # noqa: E501 :param items: The items of this InlineResponse20031. # noqa: E501 - :type: list[NodePool] + :type: list[MachinePool] """ self._items = items diff --git a/ocm_client/models/inline_response20032.py b/ocm_client/models/inline_response20032.py index cd0b005..9328f29 100644 --- a/ocm_client/models/inline_response20032.py +++ b/ocm_client/models/inline_response20032.py @@ -34,7 +34,7 @@ class InlineResponse20032(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[NodePoolUpgradePolicy]', + 'items': 'list[NodePool]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20032. # noqa: E501 - Retrieved list of upgrade policy. # noqa: E501 + Retrieved list of node pools. # noqa: E501 :return: The items of this InlineResponse20032. # noqa: E501 - :rtype: list[NodePoolUpgradePolicy] + :rtype: list[NodePool] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20032. - Retrieved list of upgrade policy. # noqa: E501 + Retrieved list of node pools. # noqa: E501 :param items: The items of this InlineResponse20032. # noqa: E501 - :type: list[NodePoolUpgradePolicy] + :type: list[NodePool] """ self._items = items diff --git a/ocm_client/models/inline_response20033.py b/ocm_client/models/inline_response20033.py index 0019bb9..f47de94 100644 --- a/ocm_client/models/inline_response20033.py +++ b/ocm_client/models/inline_response20033.py @@ -34,7 +34,7 @@ class InlineResponse20033(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[OperatorIAMRole]', + 'items': 'list[NodePoolUpgradePolicy]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20033. # noqa: E501 - Retrieved list of operator roles. # noqa: E501 + Retrieved list of upgrade policy. # noqa: E501 :return: The items of this InlineResponse20033. # noqa: E501 - :rtype: list[OperatorIAMRole] + :rtype: list[NodePoolUpgradePolicy] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20033. - Retrieved list of operator roles. # noqa: E501 + Retrieved list of upgrade policy. # noqa: E501 :param items: The items of this InlineResponse20033. # noqa: E501 - :type: list[OperatorIAMRole] + :type: list[NodePoolUpgradePolicy] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20033. # noqa: E501 - Number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20033. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20033. - Number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20033. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20033. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :return: The total of this InlineResponse20033. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20033. - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :param total: The total of this InlineResponse20033. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20034.py b/ocm_client/models/inline_response20034.py index 13b5899..81a4227 100644 --- a/ocm_client/models/inline_response20034.py +++ b/ocm_client/models/inline_response20034.py @@ -34,7 +34,7 @@ class InlineResponse20034(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[TuningConfig]', + 'items': 'list[ProductMinimalVersion]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20034. # noqa: E501 - Retrieved list of tuning configs. # noqa: E501 + Retrieved list of product minimal versions. # noqa: E501 :return: The items of this InlineResponse20034. # noqa: E501 - :rtype: list[TuningConfig] + :rtype: list[ProductMinimalVersion] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20034. - Retrieved list of tuning configs. # noqa: E501 + Retrieved list of product minimal versions. # noqa: E501 :param items: The items of this InlineResponse20034. # noqa: E501 - :type: list[TuningConfig] + :type: list[ProductMinimalVersion] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20034. # noqa: E501 - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20034. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20034. - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20034. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20034. # noqa: E501 - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :return: The total of this InlineResponse20034. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20034. - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :param total: The total of this InlineResponse20034. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20035.py b/ocm_client/models/inline_response20035.py index a49ab5d..1045758 100644 --- a/ocm_client/models/inline_response20035.py +++ b/ocm_client/models/inline_response20035.py @@ -34,7 +34,7 @@ class InlineResponse20035(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[UpgradePolicy]', + 'items': 'list[ProductTechnologyPreview]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20035. # noqa: E501 - Retrieved list of upgrade policy. # noqa: E501 + Retrieved list of product technology previews. # noqa: E501 :return: The items of this InlineResponse20035. # noqa: E501 - :rtype: list[UpgradePolicy] + :rtype: list[ProductTechnologyPreview] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20035. - Retrieved list of upgrade policy. # noqa: E501 + Retrieved list of product technology previews. # noqa: E501 :param items: The items of this InlineResponse20035. # noqa: E501 - :type: list[UpgradePolicy] + :type: list[ProductTechnologyPreview] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20035. # noqa: E501 - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20035. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20035. - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20035. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20035. # noqa: E501 - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :return: The total of this InlineResponse20035. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20035. - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :param total: The total of this InlineResponse20035. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20036.py b/ocm_client/models/inline_response20036.py index e2b3de6..55297aa 100644 --- a/ocm_client/models/inline_response20036.py +++ b/ocm_client/models/inline_response20036.py @@ -34,7 +34,7 @@ class InlineResponse20036(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[DNSDomain]', + 'items': 'list[OperatorIAMRole]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20036. # noqa: E501 - Retrieved a list of DNS domains. # noqa: E501 + Retrieved list of operator roles. # noqa: E501 :return: The items of this InlineResponse20036. # noqa: E501 - :rtype: list[DNSDomain] + :rtype: list[OperatorIAMRole] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20036. - Retrieved a list of DNS domains. # noqa: E501 + Retrieved list of operator roles. # noqa: E501 :param items: The items of this InlineResponse20036. # noqa: E501 - :type: list[DNSDomain] + :type: list[OperatorIAMRole] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20036. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20036. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20036. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20036. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20036. # noqa: E501 - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :return: The total of this InlineResponse20036. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20036. - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :param total: The total of this InlineResponse20036. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20037.py b/ocm_client/models/inline_response20037.py index ef4276e..59c48c0 100644 --- a/ocm_client/models/inline_response20037.py +++ b/ocm_client/models/inline_response20037.py @@ -34,7 +34,7 @@ class InlineResponse20037(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Flavour]', + 'items': 'list[TuningConfig]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20037. # noqa: E501 - Retrieved list of flavours. # noqa: E501 + Retrieved list of tuning configs. # noqa: E501 :return: The items of this InlineResponse20037. # noqa: E501 - :rtype: list[Flavour] + :rtype: list[TuningConfig] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20037. - Retrieved list of flavours. # noqa: E501 + Retrieved list of tuning configs. # noqa: E501 :param items: The items of this InlineResponse20037. # noqa: E501 - :type: list[Flavour] + :type: list[TuningConfig] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20037. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20037. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20037. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20037. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20037. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :return: The total of this InlineResponse20037. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20037. - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :param total: The total of this InlineResponse20037. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20038.py b/ocm_client/models/inline_response20038.py index c314732..0ce35df 100644 --- a/ocm_client/models/inline_response20038.py +++ b/ocm_client/models/inline_response20038.py @@ -34,7 +34,7 @@ class InlineResponse20038(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[EncryptionKey]', + 'items': 'list[UpgradePolicy]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20038. # noqa: E501 - Retrieved list of encryption keys. # noqa: E501 + Retrieved list of upgrade policy. # noqa: E501 :return: The items of this InlineResponse20038. # noqa: E501 - :rtype: list[EncryptionKey] + :rtype: list[UpgradePolicy] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20038. - Retrieved list of encryption keys. # noqa: E501 + Retrieved list of upgrade policy. # noqa: E501 :param items: The items of this InlineResponse20038. # noqa: E501 - :type: list[EncryptionKey] + :type: list[UpgradePolicy] """ self._items = items @@ -95,7 +95,7 @@ def items(self, items): def page(self): """Gets the page of this InlineResponse20038. # noqa: E501 - Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 + Index of the requested page, where one corresponds to the first page. # noqa: E501 :return: The page of this InlineResponse20038. # noqa: E501 :rtype: int @@ -106,7 +106,7 @@ def page(self): def page(self, page): """Sets the page of this InlineResponse20038. - Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 + Index of the requested page, where one corresponds to the first page. # noqa: E501 :param page: The page of this InlineResponse20038. # noqa: E501 :type: int @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20038. # noqa: E501 - Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20038. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20038. - Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20038. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20038. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. # noqa: E501 + Total number of items of the collection. # noqa: E501 :return: The total of this InlineResponse20038. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20038. - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. # noqa: E501 + Total number of items of the collection. # noqa: E501 :param total: The total of this InlineResponse20038. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20039.py b/ocm_client/models/inline_response20039.py index c016212..92cae05 100644 --- a/ocm_client/models/inline_response20039.py +++ b/ocm_client/models/inline_response20039.py @@ -34,7 +34,7 @@ class InlineResponse20039(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[KeyRing]', + 'items': 'list[DNSDomain]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20039. # noqa: E501 - Retrieved list of key rings. # noqa: E501 + Retrieved a list of DNS domains. # noqa: E501 :return: The items of this InlineResponse20039. # noqa: E501 - :rtype: list[KeyRing] + :rtype: list[DNSDomain] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20039. - Retrieved list of key rings. # noqa: E501 + Retrieved a list of DNS domains. # noqa: E501 :param items: The items of this InlineResponse20039. # noqa: E501 - :type: list[KeyRing] + :type: list[DNSDomain] """ self._items = items @@ -95,7 +95,7 @@ def items(self, items): def page(self): """Gets the page of this InlineResponse20039. # noqa: E501 - Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 + Index of the requested page, where one corresponds to the first page. # noqa: E501 :return: The page of this InlineResponse20039. # noqa: E501 :rtype: int @@ -106,7 +106,7 @@ def page(self): def page(self, page): """Sets the page of this InlineResponse20039. - Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 + Index of the requested page, where one corresponds to the first page. # noqa: E501 :param page: The page of this InlineResponse20039. # noqa: E501 :type: int @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20039. # noqa: E501 - Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20039. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20039. - Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20039. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20039. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available key rings of the provider. # noqa: E501 + Total number of items of the collection. # noqa: E501 :return: The total of this InlineResponse20039. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20039. - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available key rings of the provider. # noqa: E501 + Total number of items of the collection. # noqa: E501 :param total: The total of this InlineResponse20039. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20040.py b/ocm_client/models/inline_response20040.py index 5032d6d..ca850d7 100644 --- a/ocm_client/models/inline_response20040.py +++ b/ocm_client/models/inline_response20040.py @@ -34,7 +34,7 @@ class InlineResponse20040(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[LimitedSupportReasonTemplate]', + 'items': 'list[Flavour]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20040. # noqa: E501 - Retrieved list of template. # noqa: E501 + Retrieved list of flavours. # noqa: E501 :return: The items of this InlineResponse20040. # noqa: E501 - :rtype: list[LimitedSupportReasonTemplate] + :rtype: list[Flavour] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20040. - Retrieved list of template. # noqa: E501 + Retrieved list of flavours. # noqa: E501 :param items: The items of this InlineResponse20040. # noqa: E501 - :type: list[LimitedSupportReasonTemplate] + :type: list[Flavour] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20040. # noqa: E501 - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20040. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20040. - Number of items contained in the returned page. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20040. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20040. # noqa: E501 - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :return: The total of this InlineResponse20040. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20040. - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :param total: The total of this InlineResponse20040. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20041.py b/ocm_client/models/inline_response20041.py index 13c12fd..2b34255 100644 --- a/ocm_client/models/inline_response20041.py +++ b/ocm_client/models/inline_response20041.py @@ -34,7 +34,7 @@ class InlineResponse20041(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[MachineType]', + 'items': 'list[EncryptionKey]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20041. # noqa: E501 - Retrieved list of cloud providers. # noqa: E501 + Retrieved list of encryption keys. # noqa: E501 :return: The items of this InlineResponse20041. # noqa: E501 - :rtype: list[MachineType] + :rtype: list[EncryptionKey] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20041. - Retrieved list of cloud providers. # noqa: E501 + Retrieved list of encryption keys. # noqa: E501 :param items: The items of this InlineResponse20041. # noqa: E501 - :type: list[MachineType] + :type: list[EncryptionKey] """ self._items = items @@ -95,7 +95,7 @@ def items(self, items): def page(self): """Gets the page of this InlineResponse20041. # noqa: E501 - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :return: The page of this InlineResponse20041. # noqa: E501 :rtype: int @@ -106,7 +106,7 @@ def page(self): def page(self, page): """Sets the page of this InlineResponse20041. - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :param page: The page of this InlineResponse20041. # noqa: E501 :type: int @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20041. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 :return: The size of this InlineResponse20041. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20041. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 :param size: The size of this InlineResponse20041. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20041. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. # noqa: E501 :return: The total of this InlineResponse20041. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20041. - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. # noqa: E501 :param total: The total of this InlineResponse20041. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20042.py b/ocm_client/models/inline_response20042.py index cb082ae..9619c02 100644 --- a/ocm_client/models/inline_response20042.py +++ b/ocm_client/models/inline_response20042.py @@ -34,7 +34,7 @@ class InlineResponse20042(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[OidcConfig]', + 'items': 'list[KeyRing]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20042. # noqa: E501 - Retrieved list of identity providers. # noqa: E501 + Retrieved list of key rings. # noqa: E501 :return: The items of this InlineResponse20042. # noqa: E501 - :rtype: list[OidcConfig] + :rtype: list[KeyRing] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20042. - Retrieved list of identity providers. # noqa: E501 + Retrieved list of key rings. # noqa: E501 :param items: The items of this InlineResponse20042. # noqa: E501 - :type: list[OidcConfig] + :type: list[KeyRing] """ self._items = items @@ -95,7 +95,7 @@ def items(self, items): def page(self): """Gets the page of this InlineResponse20042. # noqa: E501 - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :return: The page of this InlineResponse20042. # noqa: E501 :rtype: int @@ -106,7 +106,7 @@ def page(self): def page(self, page): """Sets the page of this InlineResponse20042. - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :param page: The page of this InlineResponse20042. # noqa: E501 :type: int @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20042. # noqa: E501 - Number of items contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. # noqa: E501 :return: The size of this InlineResponse20042. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20042. - Number of items contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of key rings of the provider. # noqa: E501 :param size: The size of this InlineResponse20042. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20042. # noqa: E501 - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available key rings of the provider. # noqa: E501 :return: The total of this InlineResponse20042. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20042. - Total number of items of the collection. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available key rings of the provider. # noqa: E501 :param total: The total of this InlineResponse20042. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20043.py b/ocm_client/models/inline_response20043.py index f9c912a..70dc1cb 100644 --- a/ocm_client/models/inline_response20043.py +++ b/ocm_client/models/inline_response20043.py @@ -34,7 +34,7 @@ class InlineResponse20043(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[PendingDeleteCluster]', + 'items': 'list[LimitedSupportReasonTemplate]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20043. # noqa: E501 - Retrieved list of pending delete clusters. # noqa: E501 + Retrieved list of template. # noqa: E501 :return: The items of this InlineResponse20043. # noqa: E501 - :rtype: list[PendingDeleteCluster] + :rtype: list[LimitedSupportReasonTemplate] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20043. - Retrieved list of pending delete clusters. # noqa: E501 + Retrieved list of template. # noqa: E501 :param items: The items of this InlineResponse20043. # noqa: E501 - :type: list[PendingDeleteCluster] + :type: list[LimitedSupportReasonTemplate] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20043. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20043. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20043. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20043. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse20043. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :return: The total of this InlineResponse20043. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse20043. - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection. # noqa: E501 :param total: The total of this InlineResponse20043. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20044.py b/ocm_client/models/inline_response20044.py index 7390b29..ca90206 100644 --- a/ocm_client/models/inline_response20044.py +++ b/ocm_client/models/inline_response20044.py @@ -34,7 +34,7 @@ class InlineResponse20044(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Product]', + 'items': 'list[MachineType]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20044. # noqa: E501 - Retrieved list of products. # noqa: E501 + Retrieved list of cloud providers. # noqa: E501 :return: The items of this InlineResponse20044. # noqa: E501 - :rtype: list[Product] + :rtype: list[MachineType] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20044. - Retrieved list of products. # noqa: E501 + Retrieved list of cloud providers. # noqa: E501 :param items: The items of this InlineResponse20044. # noqa: E501 - :type: list[Product] + :type: list[MachineType] """ self._items = items diff --git a/ocm_client/models/inline_response20045.py b/ocm_client/models/inline_response20045.py index e036a1b..906502b 100644 --- a/ocm_client/models/inline_response20045.py +++ b/ocm_client/models/inline_response20045.py @@ -34,7 +34,7 @@ class InlineResponse20045(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[ProvisionShard]', + 'items': 'list[OidcConfig]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20045. # noqa: E501 - Retrieved a list of provision shards. # noqa: E501 + Retrieved list of identity providers. # noqa: E501 :return: The items of this InlineResponse20045. # noqa: E501 - :rtype: list[ProvisionShard] + :rtype: list[OidcConfig] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20045. - Retrieved a list of provision shards. # noqa: E501 + Retrieved list of identity providers. # noqa: E501 :param items: The items of this InlineResponse20045. # noqa: E501 - :type: list[ProvisionShard] + :type: list[OidcConfig] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20045. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20045. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20045. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20045. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20046.py b/ocm_client/models/inline_response20046.py index 5ae3aa9..8a7024b 100644 --- a/ocm_client/models/inline_response20046.py +++ b/ocm_client/models/inline_response20046.py @@ -34,7 +34,7 @@ class InlineResponse20046(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[VersionGate]', + 'items': 'list[PendingDeleteCluster]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20046. # noqa: E501 - Retrieved list of version gates. # noqa: E501 + Retrieved list of pending delete clusters. # noqa: E501 :return: The items of this InlineResponse20046. # noqa: E501 - :rtype: list[VersionGate] + :rtype: list[PendingDeleteCluster] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20046. - Retrieved list of version gates. # noqa: E501 + Retrieved list of pending delete clusters. # noqa: E501 :param items: The items of this InlineResponse20046. # noqa: E501 - :type: list[VersionGate] + :type: list[PendingDeleteCluster] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20046. # noqa: E501 - Maximum number of items that will be contained in the returned page. Default value is `100`. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20046. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20046. - Maximum number of items that will be contained in the returned page. Default value is `100`. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20046. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20047.py b/ocm_client/models/inline_response20047.py index 060caa0..3305d5c 100644 --- a/ocm_client/models/inline_response20047.py +++ b/ocm_client/models/inline_response20047.py @@ -34,7 +34,7 @@ class InlineResponse20047(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[Version]', + 'items': 'list[Product]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse20047. # noqa: E501 - Retrieved list of versions. # noqa: E501 + Retrieved list of products. # noqa: E501 :return: The items of this InlineResponse20047. # noqa: E501 - :rtype: list[Version] + :rtype: list[Product] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse20047. - Retrieved list of versions. # noqa: E501 + Retrieved list of products. # noqa: E501 :param items: The items of this InlineResponse20047. # noqa: E501 - :type: list[Version] + :type: list[Product] """ self._items = items @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse20047. # noqa: E501 - Maximum number of items that will be contained in the returned page. Default value is `100`. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse20047. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse20047. - Maximum number of items that will be contained in the returned page. Default value is `100`. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse20047. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20048.py b/ocm_client/models/inline_response20048.py new file mode 100644 index 0000000..f23eb4f --- /dev/null +++ b/ocm_client/models/inline_response20048.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class InlineResponse20048(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'items': 'list[ProvisionShard]', + 'page': 'int', + 'size': 'int', + 'total': 'int' + } + + attribute_map = { + 'items': 'items', + 'page': 'page', + 'size': 'size', + 'total': 'total' + } + + def __init__(self, items=None, page=None, size=None, total=None, local_vars_configuration=None): # noqa: E501 + """InlineResponse20048 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._items = None + self._page = None + self._size = None + self._total = None + self.discriminator = None + + if items is not None: + self.items = items + if page is not None: + self.page = page + if size is not None: + self.size = size + if total is not None: + self.total = total + + @property + def items(self): + """Gets the items of this InlineResponse20048. # noqa: E501 + + Retrieved a list of provision shards. # noqa: E501 + + :return: The items of this InlineResponse20048. # noqa: E501 + :rtype: list[ProvisionShard] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this InlineResponse20048. + + Retrieved a list of provision shards. # noqa: E501 + + :param items: The items of this InlineResponse20048. # noqa: E501 + :type: list[ProvisionShard] + """ + + self._items = items + + @property + def page(self): + """Gets the page of this InlineResponse20048. # noqa: E501 + + Index of the requested page, where one corresponds to the first page. # noqa: E501 + + :return: The page of this InlineResponse20048. # noqa: E501 + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this InlineResponse20048. + + Index of the requested page, where one corresponds to the first page. # noqa: E501 + + :param page: The page of this InlineResponse20048. # noqa: E501 + :type: int + """ + + self._page = page + + @property + def size(self): + """Gets the size of this InlineResponse20048. # noqa: E501 + + Maximum number of items that will be contained in the returned page. # noqa: E501 + + :return: The size of this InlineResponse20048. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this InlineResponse20048. + + Maximum number of items that will be contained in the returned page. # noqa: E501 + + :param size: The size of this InlineResponse20048. # noqa: E501 + :type: int + """ + + self._size = size + + @property + def total(self): + """Gets the total of this InlineResponse20048. # noqa: E501 + + Total number of items of the collection. # noqa: E501 + + :return: The total of this InlineResponse20048. # noqa: E501 + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this InlineResponse20048. + + Total number of items of the collection. # noqa: E501 + + :param total: The total of this InlineResponse20048. # noqa: E501 + :type: int + """ + + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20048): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, InlineResponse20048): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/inline_response20049.py b/ocm_client/models/inline_response20049.py new file mode 100644 index 0000000..eb936ca --- /dev/null +++ b/ocm_client/models/inline_response20049.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class InlineResponse20049(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'items': 'list[TrustedIp]', + 'page': 'int', + 'size': 'int', + 'total': 'int' + } + + attribute_map = { + 'items': 'items', + 'page': 'page', + 'size': 'size', + 'total': 'total' + } + + def __init__(self, items=None, page=None, size=None, total=None, local_vars_configuration=None): # noqa: E501 + """InlineResponse20049 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._items = None + self._page = None + self._size = None + self._total = None + self.discriminator = None + + if items is not None: + self.items = items + if page is not None: + self.page = page + if size is not None: + self.size = size + if total is not None: + self.total = total + + @property + def items(self): + """Gets the items of this InlineResponse20049. # noqa: E501 + + Retrieved list of trusted ip addresses. # noqa: E501 + + :return: The items of this InlineResponse20049. # noqa: E501 + :rtype: list[TrustedIp] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this InlineResponse20049. + + Retrieved list of trusted ip addresses. # noqa: E501 + + :param items: The items of this InlineResponse20049. # noqa: E501 + :type: list[TrustedIp] + """ + + self._items = items + + @property + def page(self): + """Gets the page of this InlineResponse20049. # noqa: E501 + + Index of the requested page, where one corresponds to the first page. # noqa: E501 + + :return: The page of this InlineResponse20049. # noqa: E501 + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this InlineResponse20049. + + Index of the requested page, where one corresponds to the first page. # noqa: E501 + + :param page: The page of this InlineResponse20049. # noqa: E501 + :type: int + """ + + self._page = page + + @property + def size(self): + """Gets the size of this InlineResponse20049. # noqa: E501 + + Number of items contained in the returned page. # noqa: E501 + + :return: The size of this InlineResponse20049. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this InlineResponse20049. + + Number of items contained in the returned page. # noqa: E501 + + :param size: The size of this InlineResponse20049. # noqa: E501 + :type: int + """ + + self._size = size + + @property + def total(self): + """Gets the total of this InlineResponse20049. # noqa: E501 + + Total number of items of the collection. # noqa: E501 + + :return: The total of this InlineResponse20049. # noqa: E501 + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this InlineResponse20049. + + Total number of items of the collection. # noqa: E501 + + :param total: The total of this InlineResponse20049. # noqa: E501 + :type: int + """ + + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20049): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, InlineResponse20049): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/inline_response2005.py b/ocm_client/models/inline_response2005.py index 45d79bc..debd2ce 100644 --- a/ocm_client/models/inline_response2005.py +++ b/ocm_client/models/inline_response2005.py @@ -34,31 +34,36 @@ class InlineResponse2005(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[STSCredentialRequest]', + 'aws_account_id': 'str', + 'items': 'list[AWSSTSAccountRole]', 'page': 'int', 'size': 'int', 'total': 'int' } attribute_map = { + 'aws_account_id': 'aws_account_id', 'items': 'items', 'page': 'page', 'size': 'size', 'total': 'total' } - def __init__(self, items=None, page=None, size=None, total=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, aws_account_id=None, items=None, page=None, size=None, total=None, local_vars_configuration=None): # noqa: E501 """InlineResponse2005 - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._aws_account_id = None self._items = None self._page = None self._size = None self._total = None self.discriminator = None + if aws_account_id is not None: + self.aws_account_id = aws_account_id if items is not None: self.items = items if page is not None: @@ -68,14 +73,37 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf if total is not None: self.total = total + @property + def aws_account_id(self): + """Gets the aws_account_id of this InlineResponse2005. # noqa: E501 + + The AWS Account Id for the STS Account Roles # noqa: E501 + + :return: The aws_account_id of this InlineResponse2005. # noqa: E501 + :rtype: str + """ + return self._aws_account_id + + @aws_account_id.setter + def aws_account_id(self, aws_account_id): + """Sets the aws_account_id of this InlineResponse2005. + + The AWS Account Id for the STS Account Roles # noqa: E501 + + :param aws_account_id: The aws_account_id of this InlineResponse2005. # noqa: E501 + :type: str + """ + + self._aws_account_id = aws_account_id + @property def items(self): """Gets the items of this InlineResponse2005. # noqa: E501 - Retrieved list of CredRequest. # noqa: E501 + Retrieved list of STS Account Roles # noqa: E501 :return: The items of this InlineResponse2005. # noqa: E501 - :rtype: list[STSCredentialRequest] + :rtype: list[AWSSTSAccountRole] """ return self._items @@ -83,10 +111,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse2005. - Retrieved list of CredRequest. # noqa: E501 + Retrieved list of STS Account Roles # noqa: E501 :param items: The items of this InlineResponse2005. # noqa: E501 - :type: list[STSCredentialRequest] + :type: list[AWSSTSAccountRole] """ self._items = items @@ -95,7 +123,7 @@ def items(self, items): def page(self): """Gets the page of this InlineResponse2005. # noqa: E501 - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :return: The page of this InlineResponse2005. # noqa: E501 :rtype: int @@ -106,7 +134,7 @@ def page(self): def page(self, page): """Sets the page of this InlineResponse2005. - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :param page: The page of this InlineResponse2005. # noqa: E501 :type: int @@ -118,7 +146,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse2005. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of be the total number of STS account roles. # noqa: E501 :return: The size of this InlineResponse2005. # noqa: E501 :rtype: int @@ -129,7 +157,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse2005. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of be the total number of STS account roles. # noqa: E501 :param size: The size of this InlineResponse2005. # noqa: E501 :type: int @@ -141,7 +169,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse2005. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of STS account roles # noqa: E501 :return: The total of this InlineResponse2005. # noqa: E501 :rtype: int @@ -152,7 +180,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse2005. - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of STS account roles # noqa: E501 :param total: The total of this InlineResponse2005. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response20050.py b/ocm_client/models/inline_response20050.py new file mode 100644 index 0000000..a2d5eb0 --- /dev/null +++ b/ocm_client/models/inline_response20050.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class InlineResponse20050(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'items': 'list[VersionGate]', + 'page': 'int', + 'size': 'int', + 'total': 'int' + } + + attribute_map = { + 'items': 'items', + 'page': 'page', + 'size': 'size', + 'total': 'total' + } + + def __init__(self, items=None, page=None, size=None, total=None, local_vars_configuration=None): # noqa: E501 + """InlineResponse20050 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._items = None + self._page = None + self._size = None + self._total = None + self.discriminator = None + + if items is not None: + self.items = items + if page is not None: + self.page = page + if size is not None: + self.size = size + if total is not None: + self.total = total + + @property + def items(self): + """Gets the items of this InlineResponse20050. # noqa: E501 + + Retrieved list of version gates. # noqa: E501 + + :return: The items of this InlineResponse20050. # noqa: E501 + :rtype: list[VersionGate] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this InlineResponse20050. + + Retrieved list of version gates. # noqa: E501 + + :param items: The items of this InlineResponse20050. # noqa: E501 + :type: list[VersionGate] + """ + + self._items = items + + @property + def page(self): + """Gets the page of this InlineResponse20050. # noqa: E501 + + Index of the requested page, where one corresponds to the first page. # noqa: E501 + + :return: The page of this InlineResponse20050. # noqa: E501 + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this InlineResponse20050. + + Index of the requested page, where one corresponds to the first page. # noqa: E501 + + :param page: The page of this InlineResponse20050. # noqa: E501 + :type: int + """ + + self._page = page + + @property + def size(self): + """Gets the size of this InlineResponse20050. # noqa: E501 + + Maximum number of items that will be contained in the returned page. Default value is `100`. # noqa: E501 + + :return: The size of this InlineResponse20050. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this InlineResponse20050. + + Maximum number of items that will be contained in the returned page. Default value is `100`. # noqa: E501 + + :param size: The size of this InlineResponse20050. # noqa: E501 + :type: int + """ + + self._size = size + + @property + def total(self): + """Gets the total of this InlineResponse20050. # noqa: E501 + + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + + :return: The total of this InlineResponse20050. # noqa: E501 + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this InlineResponse20050. + + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + + :param total: The total of this InlineResponse20050. # noqa: E501 + :type: int + """ + + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20050): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, InlineResponse20050): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/inline_response20051.py b/ocm_client/models/inline_response20051.py new file mode 100644 index 0000000..c5745c9 --- /dev/null +++ b/ocm_client/models/inline_response20051.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class InlineResponse20051(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'items': 'list[Version]', + 'page': 'int', + 'size': 'int', + 'total': 'int' + } + + attribute_map = { + 'items': 'items', + 'page': 'page', + 'size': 'size', + 'total': 'total' + } + + def __init__(self, items=None, page=None, size=None, total=None, local_vars_configuration=None): # noqa: E501 + """InlineResponse20051 - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._items = None + self._page = None + self._size = None + self._total = None + self.discriminator = None + + if items is not None: + self.items = items + if page is not None: + self.page = page + if size is not None: + self.size = size + if total is not None: + self.total = total + + @property + def items(self): + """Gets the items of this InlineResponse20051. # noqa: E501 + + Retrieved list of versions. # noqa: E501 + + :return: The items of this InlineResponse20051. # noqa: E501 + :rtype: list[Version] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this InlineResponse20051. + + Retrieved list of versions. # noqa: E501 + + :param items: The items of this InlineResponse20051. # noqa: E501 + :type: list[Version] + """ + + self._items = items + + @property + def page(self): + """Gets the page of this InlineResponse20051. # noqa: E501 + + Index of the requested page, where one corresponds to the first page. # noqa: E501 + + :return: The page of this InlineResponse20051. # noqa: E501 + :rtype: int + """ + return self._page + + @page.setter + def page(self, page): + """Sets the page of this InlineResponse20051. + + Index of the requested page, where one corresponds to the first page. # noqa: E501 + + :param page: The page of this InlineResponse20051. # noqa: E501 + :type: int + """ + + self._page = page + + @property + def size(self): + """Gets the size of this InlineResponse20051. # noqa: E501 + + Maximum number of items that will be contained in the returned page. Default value is `100`. # noqa: E501 + + :return: The size of this InlineResponse20051. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this InlineResponse20051. + + Maximum number of items that will be contained in the returned page. Default value is `100`. # noqa: E501 + + :param size: The size of this InlineResponse20051. # noqa: E501 + :type: int + """ + + self._size = size + + @property + def total(self): + """Gets the total of this InlineResponse20051. # noqa: E501 + + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + + :return: The total of this InlineResponse20051. # noqa: E501 + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this InlineResponse20051. + + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + + :param total: The total of this InlineResponse20051. # noqa: E501 + :type: int + """ + + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20051): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, InlineResponse20051): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/inline_response2006.py b/ocm_client/models/inline_response2006.py index 510601e..2327302 100644 --- a/ocm_client/models/inline_response2006.py +++ b/ocm_client/models/inline_response2006.py @@ -34,7 +34,7 @@ class InlineResponse2006(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[AWSSTSPolicy]', + 'items': 'list[STSCredentialRequest]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse2006. # noqa: E501 - Retrieved list of policies. # noqa: E501 + Retrieved list of CredRequest. # noqa: E501 :return: The items of this InlineResponse2006. # noqa: E501 - :rtype: list[AWSSTSPolicy] + :rtype: list[STSCredentialRequest] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse2006. - Retrieved list of policies. # noqa: E501 + Retrieved list of CredRequest. # noqa: E501 :param items: The items of this InlineResponse2006. # noqa: E501 - :type: list[AWSSTSPolicy] + :type: list[STSCredentialRequest] """ self._items = items diff --git a/ocm_client/models/inline_response2007.py b/ocm_client/models/inline_response2007.py index 069effa..6f23b7a 100644 --- a/ocm_client/models/inline_response2007.py +++ b/ocm_client/models/inline_response2007.py @@ -34,7 +34,7 @@ class InlineResponse2007(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[CloudVPC]', + 'items': 'list[AWSSTSPolicy]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse2007. # noqa: E501 - Retrieved list of cloud VPC. # noqa: E501 + Retrieved list of policies. # noqa: E501 :return: The items of this InlineResponse2007. # noqa: E501 - :rtype: list[CloudVPC] + :rtype: list[AWSSTSPolicy] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse2007. - Retrieved list of cloud VPC. # noqa: E501 + Retrieved list of policies. # noqa: E501 :param items: The items of this InlineResponse2007. # noqa: E501 - :type: list[CloudVPC] + :type: list[AWSSTSPolicy] """ self._items = items @@ -95,7 +95,7 @@ def items(self, items): def page(self): """Gets the page of this InlineResponse2007. # noqa: E501 - Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 + Index of the requested page, where one corresponds to the first page. # noqa: E501 :return: The page of this InlineResponse2007. # noqa: E501 :rtype: int @@ -106,7 +106,7 @@ def page(self): def page(self, page): """Sets the page of this InlineResponse2007. - Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 + Index of the requested page, where one corresponds to the first page. # noqa: E501 :param page: The page of this InlineResponse2007. # noqa: E501 :type: int @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse2007. # noqa: E501 - Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse2007. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse2007. - Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse2007. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse2007. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available vpcs of the provider. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :return: The total of this InlineResponse2007. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse2007. - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available vpcs of the provider. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :param total: The total of this InlineResponse2007. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response2008.py b/ocm_client/models/inline_response2008.py index e1a69c4..b766ee1 100644 --- a/ocm_client/models/inline_response2008.py +++ b/ocm_client/models/inline_response2008.py @@ -34,7 +34,7 @@ class InlineResponse2008(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[CloudProvider]', + 'items': 'list[CloudVPC]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse2008. # noqa: E501 - Retrieved list of cloud providers. # noqa: E501 + Retrieved list of cloud VPC. # noqa: E501 :return: The items of this InlineResponse2008. # noqa: E501 - :rtype: list[CloudProvider] + :rtype: list[CloudVPC] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse2008. - Retrieved list of cloud providers. # noqa: E501 + Retrieved list of cloud VPC. # noqa: E501 :param items: The items of this InlineResponse2008. # noqa: E501 - :type: list[CloudProvider] + :type: list[CloudVPC] """ self._items = items @@ -95,7 +95,7 @@ def items(self, items): def page(self): """Gets the page of this InlineResponse2008. # noqa: E501 - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :return: The page of this InlineResponse2008. # noqa: E501 :rtype: int @@ -106,7 +106,7 @@ def page(self): def page(self, page): """Sets the page of this InlineResponse2008. - Index of the requested page, where one corresponds to the first page. # noqa: E501 + Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 :param page: The page of this InlineResponse2008. # noqa: E501 :type: int @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse2008. # noqa: E501 - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. # noqa: E501 :return: The size of this InlineResponse2008. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse2008. - Maximum number of items that will be contained in the returned page. # noqa: E501 + Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of vpcs of the provider. # noqa: E501 :param size: The size of this InlineResponse2008. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse2008. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available vpcs of the provider. # noqa: E501 :return: The total of this InlineResponse2008. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse2008. - Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available vpcs of the provider. # noqa: E501 :param total: The total of this InlineResponse2008. # noqa: E501 :type: int diff --git a/ocm_client/models/inline_response2009.py b/ocm_client/models/inline_response2009.py index caf0bd9..6bea063 100644 --- a/ocm_client/models/inline_response2009.py +++ b/ocm_client/models/inline_response2009.py @@ -34,7 +34,7 @@ class InlineResponse2009(object): and the value is json key in definition. """ openapi_types = { - 'items': 'list[CloudRegion]', + 'items': 'list[CloudProvider]', 'page': 'int', 'size': 'int', 'total': 'int' @@ -72,10 +72,10 @@ def __init__(self, items=None, page=None, size=None, total=None, local_vars_conf def items(self): """Gets the items of this InlineResponse2009. # noqa: E501 - Retrieved list of cloud regions. # noqa: E501 + Retrieved list of cloud providers. # noqa: E501 :return: The items of this InlineResponse2009. # noqa: E501 - :rtype: list[CloudRegion] + :rtype: list[CloudProvider] """ return self._items @@ -83,10 +83,10 @@ def items(self): def items(self, items): """Sets the items of this InlineResponse2009. - Retrieved list of cloud regions. # noqa: E501 + Retrieved list of cloud providers. # noqa: E501 :param items: The items of this InlineResponse2009. # noqa: E501 - :type: list[CloudRegion] + :type: list[CloudProvider] """ self._items = items @@ -95,7 +95,7 @@ def items(self, items): def page(self): """Gets the page of this InlineResponse2009. # noqa: E501 - Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 + Index of the requested page, where one corresponds to the first page. # noqa: E501 :return: The page of this InlineResponse2009. # noqa: E501 :rtype: int @@ -106,7 +106,7 @@ def page(self): def page(self, page): """Sets the page of this InlineResponse2009. - Index of the returned page, where one corresponds to the first page. As this collection doesn't support paging the result will always be `1`. # noqa: E501 + Index of the requested page, where one corresponds to the first page. # noqa: E501 :param page: The page of this InlineResponse2009. # noqa: E501 :type: int @@ -118,7 +118,7 @@ def page(self, page): def size(self): """Gets the size of this InlineResponse2009. # noqa: E501 - Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :return: The size of this InlineResponse2009. # noqa: E501 :rtype: int @@ -129,7 +129,7 @@ def size(self): def size(self, size): """Sets the size of this InlineResponse2009. - Number of items that will be contained in the returned page. As this collection doesn't support paging or searching the result will always be the total number of regions of the provider. # noqa: E501 + Maximum number of items that will be contained in the returned page. # noqa: E501 :param size: The size of this InlineResponse2009. # noqa: E501 :type: int @@ -141,7 +141,7 @@ def size(self, size): def total(self): """Gets the total of this InlineResponse2009. # noqa: E501 - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :return: The total of this InlineResponse2009. # noqa: E501 :rtype: int @@ -152,7 +152,7 @@ def total(self): def total(self, total): """Sets the total of this InlineResponse2009. - Total number of items of the collection that match the search criteria, regardless of the size of the page. As this collection doesn't support paging or searching the result will always be the total number of available regions of the provider. # noqa: E501 + Total number of items of the collection that match the search criteria, regardless of the size of the page. # noqa: E501 :param total: The total of this InlineResponse2009. # noqa: E501 :type: int diff --git a/ocm_client/models/kubelet_config.py b/ocm_client/models/kubelet_config.py new file mode 100644 index 0000000..e898c27 --- /dev/null +++ b/ocm_client/models/kubelet_config.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class KubeletConfig(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'pod_pids_limit': 'int' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'pod_pids_limit': 'pod_pids_limit' + } + + def __init__(self, kind=None, id=None, href=None, pod_pids_limit=None, local_vars_configuration=None): # noqa: E501 + """KubeletConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._pod_pids_limit = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if pod_pids_limit is not None: + self.pod_pids_limit = pod_pids_limit + + @property + def kind(self): + """Gets the kind of this KubeletConfig. # noqa: E501 + + Indicates the type of this object. Will be 'KubeletConfig' if this is a complete object or 'KubeletConfigLink' if it is just a link. # noqa: E501 + + :return: The kind of this KubeletConfig. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this KubeletConfig. + + Indicates the type of this object. Will be 'KubeletConfig' if this is a complete object or 'KubeletConfigLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this KubeletConfig. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this KubeletConfig. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this KubeletConfig. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this KubeletConfig. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this KubeletConfig. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this KubeletConfig. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this KubeletConfig. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this KubeletConfig. + + Self link. # noqa: E501 + + :param href: The href of this KubeletConfig. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def pod_pids_limit(self): + """Gets the pod_pids_limit of this KubeletConfig. # noqa: E501 + + Allows user to specify the podPidsLimit to be applied via KubeletConfig. Useful if workloads have greater PIDs limit requirements than the OCP default. # noqa: E501 + + :return: The pod_pids_limit of this KubeletConfig. # noqa: E501 + :rtype: int + """ + return self._pod_pids_limit + + @pod_pids_limit.setter + def pod_pids_limit(self, pod_pids_limit): + """Sets the pod_pids_limit of this KubeletConfig. + + Allows user to specify the podPidsLimit to be applied via KubeletConfig. Useful if workloads have greater PIDs limit requirements than the OCP default. # noqa: E501 + + :param pod_pids_limit: The pod_pids_limit of this KubeletConfig. # noqa: E501 + :type: int + """ + + self._pod_pids_limit = pod_pids_limit + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, KubeletConfig): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, KubeletConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/namespace_ownership_policy.py b/ocm_client/models/namespace_ownership_policy.py new file mode 100644 index 0000000..0658ca0 --- /dev/null +++ b/ocm_client/models/namespace_ownership_policy.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class NamespaceOwnershipPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + INTERNAMESPACEALLOWED = "InterNamespaceAllowed" + STRICT = "Strict" + + allowable_values = [INTERNAMESPACEALLOWED, STRICT] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """NamespaceOwnershipPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NamespaceOwnershipPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NamespaceOwnershipPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/network_verification.py b/ocm_client/models/network_verification.py new file mode 100644 index 0000000..2b98cb7 --- /dev/null +++ b/ocm_client/models/network_verification.py @@ -0,0 +1,205 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class NetworkVerification(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'cloud_provider_data': 'CloudProviderData', + 'cluster_id': 'str', + 'items': 'list[SubnetNetworkVerification]', + 'total': 'int' + } + + attribute_map = { + 'cloud_provider_data': 'cloud_provider_data', + 'cluster_id': 'cluster_id', + 'items': 'items', + 'total': 'total' + } + + def __init__(self, cloud_provider_data=None, cluster_id=None, items=None, total=None, local_vars_configuration=None): # noqa: E501 + """NetworkVerification - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._cloud_provider_data = None + self._cluster_id = None + self._items = None + self._total = None + self.discriminator = None + + if cloud_provider_data is not None: + self.cloud_provider_data = cloud_provider_data + if cluster_id is not None: + self.cluster_id = cluster_id + if items is not None: + self.items = items + if total is not None: + self.total = total + + @property + def cloud_provider_data(self): + """Gets the cloud_provider_data of this NetworkVerification. # noqa: E501 + + + :return: The cloud_provider_data of this NetworkVerification. # noqa: E501 + :rtype: CloudProviderData + """ + return self._cloud_provider_data + + @cloud_provider_data.setter + def cloud_provider_data(self, cloud_provider_data): + """Sets the cloud_provider_data of this NetworkVerification. + + + :param cloud_provider_data: The cloud_provider_data of this NetworkVerification. # noqa: E501 + :type: CloudProviderData + """ + + self._cloud_provider_data = cloud_provider_data + + @property + def cluster_id(self): + """Gets the cluster_id of this NetworkVerification. # noqa: E501 + + Cluster ID needed to execute the network verification. # noqa: E501 + + :return: The cluster_id of this NetworkVerification. # noqa: E501 + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """Sets the cluster_id of this NetworkVerification. + + Cluster ID needed to execute the network verification. # noqa: E501 + + :param cluster_id: The cluster_id of this NetworkVerification. # noqa: E501 + :type: str + """ + + self._cluster_id = cluster_id + + @property + def items(self): + """Gets the items of this NetworkVerification. # noqa: E501 + + Details about each subnet network verification. # noqa: E501 + + :return: The items of this NetworkVerification. # noqa: E501 + :rtype: list[SubnetNetworkVerification] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this NetworkVerification. + + Details about each subnet network verification. # noqa: E501 + + :param items: The items of this NetworkVerification. # noqa: E501 + :type: list[SubnetNetworkVerification] + """ + + self._items = items + + @property + def total(self): + """Gets the total of this NetworkVerification. # noqa: E501 + + Amount of network verifier executions started. # noqa: E501 + + :return: The total of this NetworkVerification. # noqa: E501 + :rtype: int + """ + return self._total + + @total.setter + def total(self, total): + """Sets the total of this NetworkVerification. + + Amount of network verifier executions started. # noqa: E501 + + :param total: The total of this NetworkVerification. # noqa: E501 + :type: int + """ + + self._total = total + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworkVerification): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, NetworkVerification): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/node_pool_upgrade_policy.py b/ocm_client/models/node_pool_upgrade_policy.py index fcaaf50..badde37 100644 --- a/ocm_client/models/node_pool_upgrade_policy.py +++ b/ocm_client/models/node_pool_upgrade_policy.py @@ -44,9 +44,9 @@ class NodePoolUpgradePolicy(object): 'next_run': 'datetime', 'node_pool_id': 'str', 'schedule': 'str', - 'schedule_type': 'str', + 'schedule_type': 'ScheduleType', 'state': 'UpgradePolicyState', - 'upgrade_type': 'str', + 'upgrade_type': 'UpgradeType', 'version': 'str' } @@ -352,10 +352,9 @@ def schedule(self, schedule): def schedule_type(self): """Gets the schedule_type of this NodePoolUpgradePolicy. # noqa: E501 - Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring). # noqa: E501 :return: The schedule_type of this NodePoolUpgradePolicy. # noqa: E501 - :rtype: str + :rtype: ScheduleType """ return self._schedule_type @@ -363,10 +362,9 @@ def schedule_type(self): def schedule_type(self, schedule_type): """Sets the schedule_type of this NodePoolUpgradePolicy. - Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring). # noqa: E501 :param schedule_type: The schedule_type of this NodePoolUpgradePolicy. # noqa: E501 - :type: str + :type: ScheduleType """ self._schedule_type = schedule_type @@ -396,10 +394,9 @@ def state(self, state): def upgrade_type(self): """Gets the upgrade_type of this NodePoolUpgradePolicy. # noqa: E501 - Upgrade type specify the type of the upgrade. Can only be \"NodePool\". # noqa: E501 :return: The upgrade_type of this NodePoolUpgradePolicy. # noqa: E501 - :rtype: str + :rtype: UpgradeType """ return self._upgrade_type @@ -407,10 +404,9 @@ def upgrade_type(self): def upgrade_type(self, upgrade_type): """Sets the upgrade_type of this NodePoolUpgradePolicy. - Upgrade type specify the type of the upgrade. Can only be \"NodePool\". # noqa: E501 :param upgrade_type: The upgrade_type of this NodePoolUpgradePolicy. # noqa: E501 - :type: str + :type: UpgradeType """ self._upgrade_type = upgrade_type diff --git a/ocm_client/models/product_minimal_version.py b/ocm_client/models/product_minimal_version.py new file mode 100644 index 0000000..5a2054b --- /dev/null +++ b/ocm_client/models/product_minimal_version.py @@ -0,0 +1,235 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class ProductMinimalVersion(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'rosa_cli': 'str', + 'start_date': 'datetime' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'rosa_cli': 'rosa_cli', + 'start_date': 'start_date' + } + + def __init__(self, kind=None, id=None, href=None, rosa_cli=None, start_date=None, local_vars_configuration=None): # noqa: E501 + """ProductMinimalVersion - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._rosa_cli = None + self._start_date = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if rosa_cli is not None: + self.rosa_cli = rosa_cli + if start_date is not None: + self.start_date = start_date + + @property + def kind(self): + """Gets the kind of this ProductMinimalVersion. # noqa: E501 + + Indicates the type of this object. Will be 'ProductMinimalVersion' if this is a complete object or 'ProductMinimalVersionLink' if it is just a link. # noqa: E501 + + :return: The kind of this ProductMinimalVersion. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this ProductMinimalVersion. + + Indicates the type of this object. Will be 'ProductMinimalVersion' if this is a complete object or 'ProductMinimalVersionLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this ProductMinimalVersion. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this ProductMinimalVersion. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this ProductMinimalVersion. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ProductMinimalVersion. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this ProductMinimalVersion. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this ProductMinimalVersion. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this ProductMinimalVersion. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this ProductMinimalVersion. + + Self link. # noqa: E501 + + :param href: The href of this ProductMinimalVersion. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def rosa_cli(self): + """Gets the rosa_cli of this ProductMinimalVersion. # noqa: E501 + + The ROSA CLI minimal version. # noqa: E501 + + :return: The rosa_cli of this ProductMinimalVersion. # noqa: E501 + :rtype: str + """ + return self._rosa_cli + + @rosa_cli.setter + def rosa_cli(self, rosa_cli): + """Sets the rosa_cli of this ProductMinimalVersion. + + The ROSA CLI minimal version. # noqa: E501 + + :param rosa_cli: The rosa_cli of this ProductMinimalVersion. # noqa: E501 + :type: str + """ + + self._rosa_cli = rosa_cli + + @property + def start_date(self): + """Gets the start_date of this ProductMinimalVersion. # noqa: E501 + + The start date for this minimal version. # noqa: E501 + + :return: The start_date of this ProductMinimalVersion. # noqa: E501 + :rtype: datetime + """ + return self._start_date + + @start_date.setter + def start_date(self, start_date): + """Sets the start_date of this ProductMinimalVersion. + + The start date for this minimal version. # noqa: E501 + + :param start_date: The start_date of this ProductMinimalVersion. # noqa: E501 + :type: datetime + """ + + self._start_date = start_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProductMinimalVersion): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ProductMinimalVersion): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/product_technology_preview.py b/ocm_client/models/product_technology_preview.py new file mode 100644 index 0000000..45de200 --- /dev/null +++ b/ocm_client/models/product_technology_preview.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class ProductTechnologyPreview(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'additional_text': 'str', + 'end_date': 'datetime', + 'start_date': 'datetime' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'additional_text': 'additional_text', + 'end_date': 'end_date', + 'start_date': 'start_date' + } + + def __init__(self, kind=None, id=None, href=None, additional_text=None, end_date=None, start_date=None, local_vars_configuration=None): # noqa: E501 + """ProductTechnologyPreview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._additional_text = None + self._end_date = None + self._start_date = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if additional_text is not None: + self.additional_text = additional_text + if end_date is not None: + self.end_date = end_date + if start_date is not None: + self.start_date = start_date + + @property + def kind(self): + """Gets the kind of this ProductTechnologyPreview. # noqa: E501 + + Indicates the type of this object. Will be 'ProductTechnologyPreview' if this is a complete object or 'ProductTechnologyPreviewLink' if it is just a link. # noqa: E501 + + :return: The kind of this ProductTechnologyPreview. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this ProductTechnologyPreview. + + Indicates the type of this object. Will be 'ProductTechnologyPreview' if this is a complete object or 'ProductTechnologyPreviewLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this ProductTechnologyPreview. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this ProductTechnologyPreview. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this ProductTechnologyPreview. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ProductTechnologyPreview. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this ProductTechnologyPreview. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this ProductTechnologyPreview. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this ProductTechnologyPreview. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this ProductTechnologyPreview. + + Self link. # noqa: E501 + + :param href: The href of this ProductTechnologyPreview. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def additional_text(self): + """Gets the additional_text of this ProductTechnologyPreview. # noqa: E501 + + Message associated with this technology preview. # noqa: E501 + + :return: The additional_text of this ProductTechnologyPreview. # noqa: E501 + :rtype: str + """ + return self._additional_text + + @additional_text.setter + def additional_text(self, additional_text): + """Sets the additional_text of this ProductTechnologyPreview. + + Message associated with this technology preview. # noqa: E501 + + :param additional_text: The additional_text of this ProductTechnologyPreview. # noqa: E501 + :type: str + """ + + self._additional_text = additional_text + + @property + def end_date(self): + """Gets the end_date of this ProductTechnologyPreview. # noqa: E501 + + The end date for this technology preview. # noqa: E501 + + :return: The end_date of this ProductTechnologyPreview. # noqa: E501 + :rtype: datetime + """ + return self._end_date + + @end_date.setter + def end_date(self, end_date): + """Sets the end_date of this ProductTechnologyPreview. + + The end date for this technology preview. # noqa: E501 + + :param end_date: The end_date of this ProductTechnologyPreview. # noqa: E501 + :type: datetime + """ + + self._end_date = end_date + + @property + def start_date(self): + """Gets the start_date of this ProductTechnologyPreview. # noqa: E501 + + The start date for this technology preview. # noqa: E501 + + :return: The start_date of this ProductTechnologyPreview. # noqa: E501 + :rtype: datetime + """ + return self._start_date + + @start_date.setter + def start_date(self, start_date): + """Sets the start_date of this ProductTechnologyPreview. + + The start date for this technology preview. # noqa: E501 + + :param start_date: The start_date of this ProductTechnologyPreview. # noqa: E501 + :type: datetime + """ + + self._start_date = start_date + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProductTechnologyPreview): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ProductTechnologyPreview): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/provision_shard_topology.py b/ocm_client/models/provision_shard_topology.py new file mode 100644 index 0000000..44a1756 --- /dev/null +++ b/ocm_client/models/provision_shard_topology.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class ProvisionShardTopology(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + DEDICATED = "dedicated" + + allowable_values = [DEDICATED] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """ProvisionShardTopology - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ProvisionShardTopology): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ProvisionShardTopology): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/resource_range.py b/ocm_client/models/resource_range.py new file mode 100644 index 0000000..4869404 --- /dev/null +++ b/ocm_client/models/resource_range.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class ResourceRange(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'max': 'int', + 'min': 'int' + } + + attribute_map = { + 'max': 'max', + 'min': 'min' + } + + def __init__(self, max=None, min=None, local_vars_configuration=None): # noqa: E501 + """ResourceRange - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._max = None + self._min = None + self.discriminator = None + + if max is not None: + self.max = max + if min is not None: + self.min = min + + @property + def max(self): + """Gets the max of this ResourceRange. # noqa: E501 + + + :return: The max of this ResourceRange. # noqa: E501 + :rtype: int + """ + return self._max + + @max.setter + def max(self, max): + """Sets the max of this ResourceRange. + + + :param max: The max of this ResourceRange. # noqa: E501 + :type: int + """ + + self._max = max + + @property + def min(self): + """Gets the min of this ResourceRange. # noqa: E501 + + + :return: The min of this ResourceRange. # noqa: E501 + :rtype: int + """ + return self._min + + @min.setter + def min(self, min): + """Sets the min of this ResourceRange. + + + :param min: The min of this ResourceRange. # noqa: E501 + :type: int + """ + + self._min = min + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResourceRange): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ResourceRange): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/schedule_type.py b/ocm_client/models/schedule_type.py new file mode 100644 index 0000000..e51be49 --- /dev/null +++ b/ocm_client/models/schedule_type.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class ScheduleType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + AUTOMATIC = "automatic" + MANUAL = "manual" + + allowable_values = [AUTOMATIC, MANUAL] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """ScheduleType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ScheduleType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, ScheduleType): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/security_group.py b/ocm_client/models/security_group.py new file mode 100644 index 0000000..6271216 --- /dev/null +++ b/ocm_client/models/security_group.py @@ -0,0 +1,179 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class SecurityGroup(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'id': 'str', + 'name': 'str', + 'red_hat_managed': 'bool' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'red_hat_managed': 'red_hat_managed' + } + + def __init__(self, id=None, name=None, red_hat_managed=None, local_vars_configuration=None): # noqa: E501 + """SecurityGroup - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._id = None + self._name = None + self._red_hat_managed = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + if red_hat_managed is not None: + self.red_hat_managed = red_hat_managed + + @property + def id(self): + """Gets the id of this SecurityGroup. # noqa: E501 + + The security group ID. # noqa: E501 + + :return: The id of this SecurityGroup. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SecurityGroup. + + The security group ID. # noqa: E501 + + :param id: The id of this SecurityGroup. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this SecurityGroup. # noqa: E501 + + Name of the security group according to its `Name` tag on AWS. # noqa: E501 + + :return: The name of this SecurityGroup. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this SecurityGroup. + + Name of the security group according to its `Name` tag on AWS. # noqa: E501 + + :param name: The name of this SecurityGroup. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def red_hat_managed(self): + """Gets the red_hat_managed of this SecurityGroup. # noqa: E501 + + If the resource is RH managed. # noqa: E501 + + :return: The red_hat_managed of this SecurityGroup. # noqa: E501 + :rtype: bool + """ + return self._red_hat_managed + + @red_hat_managed.setter + def red_hat_managed(self, red_hat_managed): + """Sets the red_hat_managed of this SecurityGroup. + + If the resource is RH managed. # noqa: E501 + + :param red_hat_managed: The red_hat_managed of this SecurityGroup. # noqa: E501 + :type: bool + """ + + self._red_hat_managed = red_hat_managed + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SecurityGroup): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SecurityGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/server_config.py b/ocm_client/models/server_config.py index 33fd0ef..89fd983 100644 --- a/ocm_client/models/server_config.py +++ b/ocm_client/models/server_config.py @@ -38,7 +38,8 @@ class ServerConfig(object): 'id': 'str', 'href': 'str', 'kubeconfig': 'str', - 'server': 'str' + 'server': 'str', + 'topology': 'ProvisionShardTopology' } attribute_map = { @@ -46,10 +47,11 @@ class ServerConfig(object): 'id': 'id', 'href': 'href', 'kubeconfig': 'kubeconfig', - 'server': 'server' + 'server': 'server', + 'topology': 'topology' } - def __init__(self, kind=None, id=None, href=None, kubeconfig=None, server=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, kind=None, id=None, href=None, kubeconfig=None, server=None, topology=None, local_vars_configuration=None): # noqa: E501 """ServerConfig - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -60,6 +62,7 @@ def __init__(self, kind=None, id=None, href=None, kubeconfig=None, server=None, self._href = None self._kubeconfig = None self._server = None + self._topology = None self.discriminator = None if kind is not None: @@ -72,6 +75,8 @@ def __init__(self, kind=None, id=None, href=None, kubeconfig=None, server=None, self.kubeconfig = kubeconfig if server is not None: self.server = server + if topology is not None: + self.topology = topology @property def kind(self): @@ -146,7 +151,7 @@ def href(self, href): def kubeconfig(self): """Gets the kubeconfig of this ServerConfig. # noqa: E501 - The kubeconfig of the server # noqa: E501 + The kubeconfig of the server. # noqa: E501 :return: The kubeconfig of this ServerConfig. # noqa: E501 :rtype: str @@ -157,7 +162,7 @@ def kubeconfig(self): def kubeconfig(self, kubeconfig): """Sets the kubeconfig of this ServerConfig. - The kubeconfig of the server # noqa: E501 + The kubeconfig of the server. # noqa: E501 :param kubeconfig: The kubeconfig of this ServerConfig. # noqa: E501 :type: str @@ -169,7 +174,7 @@ def kubeconfig(self, kubeconfig): def server(self): """Gets the server of this ServerConfig. # noqa: E501 - The URL of the server # noqa: E501 + The URL of the server. # noqa: E501 :return: The server of this ServerConfig. # noqa: E501 :rtype: str @@ -180,7 +185,7 @@ def server(self): def server(self, server): """Sets the server of this ServerConfig. - The URL of the server # noqa: E501 + The URL of the server. # noqa: E501 :param server: The server of this ServerConfig. # noqa: E501 :type: str @@ -188,6 +193,27 @@ def server(self, server): self._server = server + @property + def topology(self): + """Gets the topology of this ServerConfig. # noqa: E501 + + + :return: The topology of this ServerConfig. # noqa: E501 + :rtype: ProvisionShardTopology + """ + return self._topology + + @topology.setter + def topology(self, topology): + """Sets the topology of this ServerConfig. + + + :param topology: The topology of this ServerConfig. # noqa: E501 + :type: ProvisionShardTopology + """ + + self._topology = topology + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/ocm_client/models/sts_support_jump_role.py b/ocm_client/models/sts_support_jump_role.py new file mode 100644 index 0000000..342a48b --- /dev/null +++ b/ocm_client/models/sts_support_jump_role.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class StsSupportJumpRole(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'role_arn': 'str' + } + + attribute_map = { + 'role_arn': 'role_arn' + } + + def __init__(self, role_arn=None, local_vars_configuration=None): # noqa: E501 + """StsSupportJumpRole - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._role_arn = None + self.discriminator = None + + if role_arn is not None: + self.role_arn = role_arn + + @property + def role_arn(self): + """Gets the role_arn of this StsSupportJumpRole. # noqa: E501 + + ARN of the support role created in the SRE jump account. # noqa: E501 + + :return: The role_arn of this StsSupportJumpRole. # noqa: E501 + :rtype: str + """ + return self._role_arn + + @role_arn.setter + def role_arn(self, role_arn): + """Sets the role_arn of this StsSupportJumpRole. + + ARN of the support role created in the SRE jump account. # noqa: E501 + + :param role_arn: The role_arn of this StsSupportJumpRole. # noqa: E501 + :type: str + """ + + self._role_arn = role_arn + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, StsSupportJumpRole): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, StsSupportJumpRole): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/subnet_network_verification.py b/ocm_client/models/subnet_network_verification.py new file mode 100644 index 0000000..91333c4 --- /dev/null +++ b/ocm_client/models/subnet_network_verification.py @@ -0,0 +1,263 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class SubnetNetworkVerification(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'details': 'list[str]', + 'state': 'str', + 'tags': 'dict(str, str)' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'details': 'details', + 'state': 'state', + 'tags': 'tags' + } + + def __init__(self, kind=None, id=None, href=None, details=None, state=None, tags=None, local_vars_configuration=None): # noqa: E501 + """SubnetNetworkVerification - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._details = None + self._state = None + self._tags = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if details is not None: + self.details = details + if state is not None: + self.state = state + if tags is not None: + self.tags = tags + + @property + def kind(self): + """Gets the kind of this SubnetNetworkVerification. # noqa: E501 + + Indicates the type of this object. Will be 'SubnetNetworkVerification' if this is a complete object or 'SubnetNetworkVerificationLink' if it is just a link. # noqa: E501 + + :return: The kind of this SubnetNetworkVerification. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this SubnetNetworkVerification. + + Indicates the type of this object. Will be 'SubnetNetworkVerification' if this is a complete object or 'SubnetNetworkVerificationLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this SubnetNetworkVerification. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this SubnetNetworkVerification. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this SubnetNetworkVerification. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SubnetNetworkVerification. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this SubnetNetworkVerification. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this SubnetNetworkVerification. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this SubnetNetworkVerification. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this SubnetNetworkVerification. + + Self link. # noqa: E501 + + :param href: The href of this SubnetNetworkVerification. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def details(self): + """Gets the details of this SubnetNetworkVerification. # noqa: E501 + + Slice of failures that happened during a subnet network verification. # noqa: E501 + + :return: The details of this SubnetNetworkVerification. # noqa: E501 + :rtype: list[str] + """ + return self._details + + @details.setter + def details(self, details): + """Sets the details of this SubnetNetworkVerification. + + Slice of failures that happened during a subnet network verification. # noqa: E501 + + :param details: The details of this SubnetNetworkVerification. # noqa: E501 + :type: list[str] + """ + + self._details = details + + @property + def state(self): + """Gets the state of this SubnetNetworkVerification. # noqa: E501 + + State of the subnet network verification. # noqa: E501 + + :return: The state of this SubnetNetworkVerification. # noqa: E501 + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this SubnetNetworkVerification. + + State of the subnet network verification. # noqa: E501 + + :param state: The state of this SubnetNetworkVerification. # noqa: E501 + :type: str + """ + + self._state = state + + @property + def tags(self): + """Gets the tags of this SubnetNetworkVerification. # noqa: E501 + + Tags supplied to the network verifier for this subnet. # noqa: E501 + + :return: The tags of this SubnetNetworkVerification. # noqa: E501 + :rtype: dict(str, str) + """ + return self._tags + + @tags.setter + def tags(self, tags): + """Sets the tags of this SubnetNetworkVerification. + + Tags supplied to the network verifier for this subnet. # noqa: E501 + + :param tags: The tags of this SubnetNetworkVerification. # noqa: E501 + :type: dict(str, str) + """ + + self._tags = tags + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SubnetNetworkVerification): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, SubnetNetworkVerification): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/subnetwork.py b/ocm_client/models/subnetwork.py index 2c9b7bd..1397eaf 100644 --- a/ocm_client/models/subnetwork.py +++ b/ocm_client/models/subnetwork.py @@ -34,45 +34,78 @@ class Subnetwork(object): and the value is json key in definition. """ openapi_types = { + 'cidr_block': 'str', 'availability_zone': 'str', 'name': 'str', 'public': 'bool', + 'red_hat_managed': 'bool', 'subnet_id': 'str' } attribute_map = { + 'cidr_block': 'cidr_block', 'availability_zone': 'availability_zone', 'name': 'name', 'public': 'public', + 'red_hat_managed': 'red_hat_managed', 'subnet_id': 'subnet_id' } - def __init__(self, availability_zone=None, name=None, public=None, subnet_id=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, cidr_block=None, availability_zone=None, name=None, public=None, red_hat_managed=None, subnet_id=None, local_vars_configuration=None): # noqa: E501 """Subnetwork - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration + self._cidr_block = None self._availability_zone = None self._name = None self._public = None + self._red_hat_managed = None self._subnet_id = None self.discriminator = None + if cidr_block is not None: + self.cidr_block = cidr_block if availability_zone is not None: self.availability_zone = availability_zone if name is not None: self.name = name if public is not None: self.public = public + if red_hat_managed is not None: + self.red_hat_managed = red_hat_managed if subnet_id is not None: self.subnet_id = subnet_id + @property + def cidr_block(self): + """Gets the cidr_block of this Subnetwork. # noqa: E501 + + The CIDR Block of the subnet. # noqa: E501 + + :return: The cidr_block of this Subnetwork. # noqa: E501 + :rtype: str + """ + return self._cidr_block + + @cidr_block.setter + def cidr_block(self, cidr_block): + """Sets the cidr_block of this Subnetwork. + + The CIDR Block of the subnet. # noqa: E501 + + :param cidr_block: The cidr_block of this Subnetwork. # noqa: E501 + :type: str + """ + + self._cidr_block = cidr_block + @property def availability_zone(self): """Gets the availability_zone of this Subnetwork. # noqa: E501 - The availability zone to which the subnet is related # noqa: E501 + The availability zone to which the subnet is related. # noqa: E501 :return: The availability_zone of this Subnetwork. # noqa: E501 :rtype: str @@ -83,7 +116,7 @@ def availability_zone(self): def availability_zone(self, availability_zone): """Sets the availability_zone of this Subnetwork. - The availability zone to which the subnet is related # noqa: E501 + The availability zone to which the subnet is related. # noqa: E501 :param availability_zone: The availability_zone of this Subnetwork. # noqa: E501 :type: str @@ -95,7 +128,7 @@ def availability_zone(self, availability_zone): def name(self): """Gets the name of this Subnetwork. # noqa: E501 - Name of the subnet according to its `Name` tag on AWS # noqa: E501 + Name of the subnet according to its `Name` tag on AWS. # noqa: E501 :return: The name of this Subnetwork. # noqa: E501 :rtype: str @@ -106,7 +139,7 @@ def name(self): def name(self, name): """Sets the name of this Subnetwork. - Name of the subnet according to its `Name` tag on AWS # noqa: E501 + Name of the subnet according to its `Name` tag on AWS. # noqa: E501 :param name: The name of this Subnetwork. # noqa: E501 :type: str @@ -118,7 +151,7 @@ def name(self, name): def public(self): """Gets the public of this Subnetwork. # noqa: E501 - Whether it is a public subnet # noqa: E501 + Whether or not it is a public subnet. # noqa: E501 :return: The public of this Subnetwork. # noqa: E501 :rtype: bool @@ -129,7 +162,7 @@ def public(self): def public(self, public): """Sets the public of this Subnetwork. - Whether it is a public subnet # noqa: E501 + Whether or not it is a public subnet. # noqa: E501 :param public: The public of this Subnetwork. # noqa: E501 :type: bool @@ -137,11 +170,34 @@ def public(self, public): self._public = public + @property + def red_hat_managed(self): + """Gets the red_hat_managed of this Subnetwork. # noqa: E501 + + If the resource is RH managed. # noqa: E501 + + :return: The red_hat_managed of this Subnetwork. # noqa: E501 + :rtype: bool + """ + return self._red_hat_managed + + @red_hat_managed.setter + def red_hat_managed(self, red_hat_managed): + """Sets the red_hat_managed of this Subnetwork. + + If the resource is RH managed. # noqa: E501 + + :param red_hat_managed: The red_hat_managed of this Subnetwork. # noqa: E501 + :type: bool + """ + + self._red_hat_managed = red_hat_managed + @property def subnet_id(self): """Gets the subnet_id of this Subnetwork. # noqa: E501 - The subnet id to be used while installing a cluster # noqa: E501 + The subnet ID to be used while installing a cluster. # noqa: E501 :return: The subnet_id of this Subnetwork. # noqa: E501 :rtype: str @@ -152,7 +208,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """Sets the subnet_id of this Subnetwork. - The subnet id to be used while installing a cluster # noqa: E501 + The subnet ID to be used while installing a cluster. # noqa: E501 :param subnet_id: The subnet_id of this Subnetwork. # noqa: E501 :type: str diff --git a/ocm_client/models/trusted_ip.py b/ocm_client/models/trusted_ip.py new file mode 100644 index 0000000..374c33c --- /dev/null +++ b/ocm_client/models/trusted_ip.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class TrustedIp(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'kind': 'str', + 'id': 'str', + 'href': 'str', + 'enabled': 'bool' + } + + attribute_map = { + 'kind': 'kind', + 'id': 'id', + 'href': 'href', + 'enabled': 'enabled' + } + + def __init__(self, kind=None, id=None, href=None, enabled=None, local_vars_configuration=None): # noqa: E501 + """TrustedIp - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + + self._kind = None + self._id = None + self._href = None + self._enabled = None + self.discriminator = None + + if kind is not None: + self.kind = kind + if id is not None: + self.id = id + if href is not None: + self.href = href + if enabled is not None: + self.enabled = enabled + + @property + def kind(self): + """Gets the kind of this TrustedIp. # noqa: E501 + + Indicates the type of this object. Will be 'TrustedIp' if this is a complete object or 'TrustedIpLink' if it is just a link. # noqa: E501 + + :return: The kind of this TrustedIp. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this TrustedIp. + + Indicates the type of this object. Will be 'TrustedIp' if this is a complete object or 'TrustedIpLink' if it is just a link. # noqa: E501 + + :param kind: The kind of this TrustedIp. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def id(self): + """Gets the id of this TrustedIp. # noqa: E501 + + Unique identifier of the object. # noqa: E501 + + :return: The id of this TrustedIp. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this TrustedIp. + + Unique identifier of the object. # noqa: E501 + + :param id: The id of this TrustedIp. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def href(self): + """Gets the href of this TrustedIp. # noqa: E501 + + Self link. # noqa: E501 + + :return: The href of this TrustedIp. # noqa: E501 + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """Sets the href of this TrustedIp. + + Self link. # noqa: E501 + + :param href: The href of this TrustedIp. # noqa: E501 + :type: str + """ + + self._href = href + + @property + def enabled(self): + """Gets the enabled of this TrustedIp. # noqa: E501 + + The boolean set to show if the ip is enabled. # noqa: E501 + + :return: The enabled of this TrustedIp. # noqa: E501 + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """Sets the enabled of this TrustedIp. + + The boolean set to show if the ip is enabled. # noqa: E501 + + :param enabled: The enabled of this TrustedIp. # noqa: E501 + :type: bool + """ + + self._enabled = enabled + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TrustedIp): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, TrustedIp): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/upgrade_policy.py b/ocm_client/models/upgrade_policy.py index aed3a2c..cb0b42d 100644 --- a/ocm_client/models/upgrade_policy.py +++ b/ocm_client/models/upgrade_policy.py @@ -41,8 +41,8 @@ class UpgradePolicy(object): 'enable_minor_version_upgrades': 'bool', 'next_run': 'datetime', 'schedule': 'str', - 'schedule_type': 'str', - 'upgrade_type': 'str', + 'schedule_type': 'ScheduleType', + 'upgrade_type': 'UpgradeType', 'version': 'str' } @@ -263,10 +263,9 @@ def schedule(self, schedule): def schedule_type(self): """Gets the schedule_type of this UpgradePolicy. # noqa: E501 - Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring). # noqa: E501 :return: The schedule_type of this UpgradePolicy. # noqa: E501 - :rtype: str + :rtype: ScheduleType """ return self._schedule_type @@ -274,10 +273,9 @@ def schedule_type(self): def schedule_type(self, schedule_type): """Sets the schedule_type of this UpgradePolicy. - Schedule type can be either \"manual\" (single execution) or \"automatic\" (re-occurring). # noqa: E501 :param schedule_type: The schedule_type of this UpgradePolicy. # noqa: E501 - :type: str + :type: ScheduleType """ self._schedule_type = schedule_type @@ -286,10 +284,9 @@ def schedule_type(self, schedule_type): def upgrade_type(self): """Gets the upgrade_type of this UpgradePolicy. # noqa: E501 - Upgrade type specify the type of the upgrade. Can be \"OSD\" or \"CVE\". # noqa: E501 :return: The upgrade_type of this UpgradePolicy. # noqa: E501 - :rtype: str + :rtype: UpgradeType """ return self._upgrade_type @@ -297,10 +294,9 @@ def upgrade_type(self): def upgrade_type(self, upgrade_type): """Sets the upgrade_type of this UpgradePolicy. - Upgrade type specify the type of the upgrade. Can be \"OSD\" or \"CVE\". # noqa: E501 :param upgrade_type: The upgrade_type of this UpgradePolicy. # noqa: E501 - :type: str + :type: UpgradeType """ self._upgrade_type = upgrade_type diff --git a/ocm_client/models/upgrade_type.py b/ocm_client/models/upgrade_type.py new file mode 100644 index 0000000..980ae63 --- /dev/null +++ b/ocm_client/models/upgrade_type.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class UpgradeType(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + OSD = "OSD" + ADDON = "ADDON" + CONTROLPLANE = "ControlPlane" + NODEPOOL = "NodePool" + + allowable_values = [OSD, ADDON, CONTROLPLANE, NODEPOOL] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """UpgradeType - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpgradeType): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, UpgradeType): + return True + + return self.to_dict() != other.to_dict() diff --git a/ocm_client/models/version.py b/ocm_client/models/version.py index 00c0cd6..32e19aa 100644 --- a/ocm_client/models/version.py +++ b/ocm_client/models/version.py @@ -37,6 +37,7 @@ class Version(object): 'kind': 'str', 'id': 'str', 'href': 'str', + 'gcp_marketplace_enabled': 'bool', 'rosa_enabled': 'bool', 'available_upgrades': 'list[str]', 'channel_group': 'str', @@ -44,6 +45,7 @@ class Version(object): 'enabled': 'bool', 'end_of_life_timestamp': 'datetime', 'hosted_control_plane_enabled': 'bool', + 'image_overrides': 'ImageOverrides', 'raw_id': 'str', 'release_image': 'str' } @@ -52,6 +54,7 @@ class Version(object): 'kind': 'kind', 'id': 'id', 'href': 'href', + 'gcp_marketplace_enabled': 'gcp_marketplace_enabled', 'rosa_enabled': 'rosa_enabled', 'available_upgrades': 'available_upgrades', 'channel_group': 'channel_group', @@ -59,11 +62,12 @@ class Version(object): 'enabled': 'enabled', 'end_of_life_timestamp': 'end_of_life_timestamp', 'hosted_control_plane_enabled': 'hosted_control_plane_enabled', + 'image_overrides': 'image_overrides', 'raw_id': 'raw_id', 'release_image': 'release_image' } - def __init__(self, kind=None, id=None, href=None, rosa_enabled=None, available_upgrades=None, channel_group=None, default=None, enabled=None, end_of_life_timestamp=None, hosted_control_plane_enabled=None, raw_id=None, release_image=None, local_vars_configuration=None): # noqa: E501 + def __init__(self, kind=None, id=None, href=None, gcp_marketplace_enabled=None, rosa_enabled=None, available_upgrades=None, channel_group=None, default=None, enabled=None, end_of_life_timestamp=None, hosted_control_plane_enabled=None, image_overrides=None, raw_id=None, release_image=None, local_vars_configuration=None): # noqa: E501 """Version - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() @@ -72,6 +76,7 @@ def __init__(self, kind=None, id=None, href=None, rosa_enabled=None, available_u self._kind = None self._id = None self._href = None + self._gcp_marketplace_enabled = None self._rosa_enabled = None self._available_upgrades = None self._channel_group = None @@ -79,6 +84,7 @@ def __init__(self, kind=None, id=None, href=None, rosa_enabled=None, available_u self._enabled = None self._end_of_life_timestamp = None self._hosted_control_plane_enabled = None + self._image_overrides = None self._raw_id = None self._release_image = None self.discriminator = None @@ -89,6 +95,8 @@ def __init__(self, kind=None, id=None, href=None, rosa_enabled=None, available_u self.id = id if href is not None: self.href = href + if gcp_marketplace_enabled is not None: + self.gcp_marketplace_enabled = gcp_marketplace_enabled if rosa_enabled is not None: self.rosa_enabled = rosa_enabled if available_upgrades is not None: @@ -103,6 +111,8 @@ def __init__(self, kind=None, id=None, href=None, rosa_enabled=None, available_u self.end_of_life_timestamp = end_of_life_timestamp if hosted_control_plane_enabled is not None: self.hosted_control_plane_enabled = hosted_control_plane_enabled + if image_overrides is not None: + self.image_overrides = image_overrides if raw_id is not None: self.raw_id = raw_id if release_image is not None: @@ -177,6 +187,29 @@ def href(self, href): self._href = href + @property + def gcp_marketplace_enabled(self): + """Gets the gcp_marketplace_enabled of this Version. # noqa: E501 + + GCPMarketplaceEnabled indicates if this version can be used to create GCP Marketplace clusters. # noqa: E501 + + :return: The gcp_marketplace_enabled of this Version. # noqa: E501 + :rtype: bool + """ + return self._gcp_marketplace_enabled + + @gcp_marketplace_enabled.setter + def gcp_marketplace_enabled(self, gcp_marketplace_enabled): + """Sets the gcp_marketplace_enabled of this Version. + + GCPMarketplaceEnabled indicates if this version can be used to create GCP Marketplace clusters. # noqa: E501 + + :param gcp_marketplace_enabled: The gcp_marketplace_enabled of this Version. # noqa: E501 + :type: bool + """ + + self._gcp_marketplace_enabled = gcp_marketplace_enabled + @property def rosa_enabled(self): """Gets the rosa_enabled of this Version. # noqa: E501 @@ -338,6 +371,27 @@ def hosted_control_plane_enabled(self, hosted_control_plane_enabled): self._hosted_control_plane_enabled = hosted_control_plane_enabled + @property + def image_overrides(self): + """Gets the image_overrides of this Version. # noqa: E501 + + + :return: The image_overrides of this Version. # noqa: E501 + :rtype: ImageOverrides + """ + return self._image_overrides + + @image_overrides.setter + def image_overrides(self, image_overrides): + """Sets the image_overrides of this Version. + + + :param image_overrides: The image_overrides of this Version. # noqa: E501 + :type: ImageOverrides + """ + + self._image_overrides = image_overrides + @property def raw_id(self): """Gets the raw_id of this Version. # noqa: E501 @@ -365,7 +419,7 @@ def raw_id(self, raw_id): def release_image(self): """Gets the release_image of this Version. # noqa: E501 - ReleaseImage contains the URI of Openshift release image # noqa: E501 + ReleaseImage contains the URI of Openshift release image. # noqa: E501 :return: The release_image of this Version. # noqa: E501 :rtype: str @@ -376,7 +430,7 @@ def release_image(self): def release_image(self, release_image): """Sets the release_image of this Version. - ReleaseImage contains the URI of Openshift release image # noqa: E501 + ReleaseImage contains the URI of Openshift release image. # noqa: E501 :param release_image: The release_image of this Version. # noqa: E501 :type: str diff --git a/ocm_client/models/wildcard_policy.py b/ocm_client/models/wildcard_policy.py new file mode 100644 index 0000000..46e95b9 --- /dev/null +++ b/ocm_client/models/wildcard_policy.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + +from ocm_client.configuration import Configuration + + +class WildcardPolicy(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + WILDCARDSALLOWED = "WildcardsAllowed" + WILDCARDSDISALLOWED = "WildcardsDisallowed" + + allowable_values = [WILDCARDSALLOWED, WILDCARDSDISALLOWED] # noqa: E501 + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + } + + attribute_map = { + } + + def __init__(self, local_vars_configuration=None): # noqa: E501 + """WildcardPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WildcardPolicy): + return False + + return self.to_dict() == other.to_dict() + + def __ne__(self, other): + """Returns true if both objects are not equal""" + if not isinstance(other, WildcardPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/test/test_ami_override.py b/test/test_ami_override.py new file mode 100644 index 0000000..b3df457 --- /dev/null +++ b/test/test_ami_override.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.ami_override import AMIOverride # noqa: E501 +from ocm_client.rest import ApiException + +class TestAMIOverride(unittest.TestCase): + """AMIOverride unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AMIOverride + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.ami_override.AMIOverride() # noqa: E501 + if include_optional : + return AMIOverride( + kind = '0', + id = '0', + href = '0', + ami = '0', + product = ocm_client.models.product.Product( + kind = '0', + id = '0', + href = '0', + name = '0', ), + region = ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + cloud_provider = ocm_client.models.cloud_provider.CloudProvider( + kind = '0', + id = '0', + href = '0', + display_name = '0', + name = '0', + regions = [ + ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ) + ], ), + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ) + ) + else : + return AMIOverride( + ) + + def testAMIOverride(self): + """Test AMIOverride""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_autoscaler_resource_limits.py b/test/test_autoscaler_resource_limits.py new file mode 100644 index 0000000..d9d4a26 --- /dev/null +++ b/test/test_autoscaler_resource_limits.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.autoscaler_resource_limits import AutoscalerResourceLimits # noqa: E501 +from ocm_client.rest import ApiException + +class TestAutoscalerResourceLimits(unittest.TestCase): + """AutoscalerResourceLimits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AutoscalerResourceLimits + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.autoscaler_resource_limits.AutoscalerResourceLimits() # noqa: E501 + if include_optional : + return AutoscalerResourceLimits( + gpus = [ + ocm_client.models.autoscaler_resource_limits_gpu_limit.AutoscalerResourceLimitsGPULimit( + range = ocm_client.models.resource_range.ResourceRange( + max = 56, + min = 56, ), + type = '0', ) + ], + cores = ocm_client.models.resource_range.ResourceRange( + max = 56, + min = 56, ), + max_nodes_total = 56, + memory = ocm_client.models.resource_range.ResourceRange( + max = 56, + min = 56, ) + ) + else : + return AutoscalerResourceLimits( + ) + + def testAutoscalerResourceLimits(self): + """Test AutoscalerResourceLimits""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_autoscaler_resource_limits_gpu_limit.py b/test/test_autoscaler_resource_limits_gpu_limit.py new file mode 100644 index 0000000..15bdb64 --- /dev/null +++ b/test/test_autoscaler_resource_limits_gpu_limit.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.autoscaler_resource_limits_gpu_limit import AutoscalerResourceLimitsGPULimit # noqa: E501 +from ocm_client.rest import ApiException + +class TestAutoscalerResourceLimitsGPULimit(unittest.TestCase): + """AutoscalerResourceLimitsGPULimit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AutoscalerResourceLimitsGPULimit + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.autoscaler_resource_limits_gpu_limit.AutoscalerResourceLimitsGPULimit() # noqa: E501 + if include_optional : + return AutoscalerResourceLimitsGPULimit( + range = ocm_client.models.resource_range.ResourceRange( + max = 56, + min = 56, ), + type = '0' + ) + else : + return AutoscalerResourceLimitsGPULimit( + ) + + def testAutoscalerResourceLimitsGPULimit(self): + """Test AutoscalerResourceLimitsGPULimit""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_autoscaler_scale_down_config.py b/test/test_autoscaler_scale_down_config.py new file mode 100644 index 0000000..b7463b6 --- /dev/null +++ b/test/test_autoscaler_scale_down_config.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.autoscaler_scale_down_config import AutoscalerScaleDownConfig # noqa: E501 +from ocm_client.rest import ApiException + +class TestAutoscalerScaleDownConfig(unittest.TestCase): + """AutoscalerScaleDownConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AutoscalerScaleDownConfig + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.autoscaler_scale_down_config.AutoscalerScaleDownConfig() # noqa: E501 + if include_optional : + return AutoscalerScaleDownConfig( + delay_after_add = '0', + delay_after_delete = '0', + delay_after_failure = '0', + enabled = True, + unneeded_time = '0', + utilization_threshold = '0' + ) + else : + return AutoscalerScaleDownConfig( + ) + + def testAutoscalerScaleDownConfig(self): + """Test AutoscalerScaleDownConfig""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_awssts_account_role.py b/test/test_awssts_account_role.py new file mode 100644 index 0000000..6d26df7 --- /dev/null +++ b/test/test_awssts_account_role.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.awssts_account_role import AWSSTSAccountRole # noqa: E501 +from ocm_client.rest import ApiException + +class TestAWSSTSAccountRole(unittest.TestCase): + """AWSSTSAccountRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AWSSTSAccountRole + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.awssts_account_role.AWSSTSAccountRole() # noqa: E501 + if include_optional : + return AWSSTSAccountRole( + items = [ + ocm_client.models.awssts_role.AWSSTSRole( + hcp_managed_policies = True, + is_admin = True, + managed_policies = True, + arn = '0', + type = '0', + role_version = '0', ) + ], + prefix = '0' + ) + else : + return AWSSTSAccountRole( + ) + + def testAWSSTSAccountRole(self): + """Test AWSSTSAccountRole""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_awssts_role.py b/test/test_awssts_role.py new file mode 100644 index 0000000..46fb777 --- /dev/null +++ b/test/test_awssts_role.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.awssts_role import AWSSTSRole # noqa: E501 +from ocm_client.rest import ApiException + +class TestAWSSTSRole(unittest.TestCase): + """AWSSTSRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test AWSSTSRole + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.awssts_role.AWSSTSRole() # noqa: E501 + if include_optional : + return AWSSTSRole( + hcp_managed_policies = True, + is_admin = True, + managed_policies = True, + arn = '0', + type = '0', + role_version = '0' + ) + else : + return AWSSTSRole( + ) + + def testAWSSTSRole(self): + """Test AWSSTSRole""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_billing_model_item.py b/test/test_billing_model_item.py new file mode 100644 index 0000000..8db4887 --- /dev/null +++ b/test/test_billing_model_item.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.billing_model_item import BillingModelItem # noqa: E501 +from ocm_client.rest import ApiException + +class TestBillingModelItem(unittest.TestCase): + """BillingModelItem unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test BillingModelItem + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.billing_model_item.BillingModelItem() # noqa: E501 + if include_optional : + return BillingModelItem( + kind = '0', + id = '0', + href = '0', + billing_model_type = '0', + description = '0', + display_name = '0', + marketplace = '0' + ) + else : + return BillingModelItem( + ) + + def testBillingModelItem(self): + """Test BillingModelItem""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cluster_autoscaler.py b/test/test_cluster_autoscaler.py new file mode 100644 index 0000000..47dd5d4 --- /dev/null +++ b/test/test_cluster_autoscaler.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.cluster_autoscaler import ClusterAutoscaler # noqa: E501 +from ocm_client.rest import ApiException + +class TestClusterAutoscaler(unittest.TestCase): + """ClusterAutoscaler unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ClusterAutoscaler + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.cluster_autoscaler.ClusterAutoscaler() # noqa: E501 + if include_optional : + return ClusterAutoscaler( + kind = '0', + id = '0', + href = '0', + balance_similar_node_groups = True, + balancing_ignored_labels = [ + '0' + ], + ignore_daemonsets_utilization = True, + log_verbosity = 56, + max_node_provision_time = '0', + max_pod_grace_period = 56, + pod_priority_threshold = 56, + resource_limits = ocm_client.models.autoscaler_resource_limits.AutoscalerResourceLimits( + gpus = [ + ocm_client.models.autoscaler_resource_limits_gpu_limit.AutoscalerResourceLimitsGPULimit( + range = ocm_client.models.resource_range.ResourceRange( + max = 56, + min = 56, ), + type = '0', ) + ], + cores = ocm_client.models.resource_range.ResourceRange( + max = 56, + min = 56, ), + max_nodes_total = 56, + memory = ocm_client.models.resource_range.ResourceRange( + max = 56, + min = 56, ), ), + scale_down = ocm_client.models.autoscaler_scale_down_config.AutoscalerScaleDownConfig( + delay_after_add = '0', + delay_after_delete = '0', + delay_after_failure = '0', + enabled = True, + unneeded_time = '0', + utilization_threshold = '0', ), + skip_nodes_with_local_storage = True + ) + else : + return ClusterAutoscaler( + ) + + def testClusterAutoscaler(self): + """Test ClusterAutoscaler""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_gcp_image_override.py b/test/test_gcp_image_override.py new file mode 100644 index 0000000..38da985 --- /dev/null +++ b/test/test_gcp_image_override.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.gcp_image_override import GCPImageOverride # noqa: E501 +from ocm_client.rest import ApiException + +class TestGCPImageOverride(unittest.TestCase): + """GCPImageOverride unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GCPImageOverride + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.gcp_image_override.GCPImageOverride() # noqa: E501 + if include_optional : + return GCPImageOverride( + kind = '0', + id = '0', + href = '0', + billing_model = ocm_client.models.billing_model_item.BillingModelItem( + kind = '0', + id = '0', + href = '0', + billing_model_type = '0', + description = '0', + display_name = '0', + marketplace = '0', ), + image_id = '0', + product = ocm_client.models.product.Product( + kind = '0', + id = '0', + href = '0', + name = '0', ), + project_id = '0' + ) + else : + return GCPImageOverride( + ) + + def testGCPImageOverride(self): + """Test GCPImageOverride""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_gcp_security.py b/test/test_gcp_security.py new file mode 100644 index 0000000..28a8abb --- /dev/null +++ b/test/test_gcp_security.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.gcp_security import GcpSecurity # noqa: E501 +from ocm_client.rest import ApiException + +class TestGcpSecurity(unittest.TestCase): + """GcpSecurity unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test GcpSecurity + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.gcp_security.GcpSecurity() # noqa: E501 + if include_optional : + return GcpSecurity( + secure_boot = True + ) + else : + return GcpSecurity( + ) + + def testGcpSecurity(self): + """Test GcpSecurity""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_image_overrides.py b/test/test_image_overrides.py new file mode 100644 index 0000000..a3cb3d1 --- /dev/null +++ b/test/test_image_overrides.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.image_overrides import ImageOverrides # noqa: E501 +from ocm_client.rest import ApiException + +class TestImageOverrides(unittest.TestCase): + """ImageOverrides unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ImageOverrides + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.image_overrides.ImageOverrides() # noqa: E501 + if include_optional : + return ImageOverrides( + kind = '0', + id = '0', + href = '0', + aws = [ + ocm_client.models.ami_override.AMIOverride( + kind = '0', + id = '0', + href = '0', + ami = '0', + product = ocm_client.models.product.Product( + kind = '0', + id = '0', + href = '0', + name = '0', ), + region = ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + cloud_provider = ocm_client.models.cloud_provider.CloudProvider( + kind = '0', + id = '0', + href = '0', + display_name = '0', + name = '0', + regions = [ + ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ) + ], ), + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ), ) + ], + gcp = [ + ocm_client.models.gcp_image_override.GCPImageOverride( + kind = '0', + id = '0', + href = '0', + billing_model = ocm_client.models.billing_model_item.BillingModelItem( + kind = '0', + id = '0', + href = '0', + billing_model_type = '0', + description = '0', + display_name = '0', + marketplace = '0', ), + image_id = '0', + product = ocm_client.models.product.Product( + kind = '0', + id = '0', + href = '0', + name = '0', ), + project_id = '0', ) + ] + ) + else : + return ImageOverrides( + ) + + def testImageOverrides(self): + """Test ImageOverrides""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20048.py b/test/test_inline_response20048.py new file mode 100644 index 0000000..51b079e --- /dev/null +++ b/test/test_inline_response20048.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.inline_response20048 import InlineResponse20048 # noqa: E501 +from ocm_client.rest import ApiException + +class TestInlineResponse20048(unittest.TestCase): + """InlineResponse20048 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test InlineResponse20048 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.inline_response20048.InlineResponse20048() # noqa: E501 + if include_optional : + return InlineResponse20048( + items = [ + ocm_client.models.provision_shard.ProvisionShard( + kind = '0', + id = '0', + href = '0', + aws_account_operator_config = ocm_client.models.server_config.ServerConfig( + kind = '0', + id = '0', + href = '0', + kubeconfig = '0', + server = '0', + topology = 'dedicated', ), + aws_base_domain = '0', + gcp_base_domain = '0', + gcp_project_operator = ocm_client.models.server_config.ServerConfig( + kind = '0', + id = '0', + href = '0', + kubeconfig = '0', + server = '0', ), + cloud_provider = ocm_client.models.cloud_provider.CloudProvider( + kind = '0', + id = '0', + href = '0', + display_name = '0', + name = '0', + regions = [ + ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ) + ], ), + creation_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + hive_config = ocm_client.models.server_config.ServerConfig( + kind = '0', + id = '0', + href = '0', + kubeconfig = '0', + server = '0', ), + hypershift_config = ocm_client.models.server_config.ServerConfig( + kind = '0', + id = '0', + href = '0', + kubeconfig = '0', + server = '0', ), + last_update_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + management_cluster = '0', + region = ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ), + status = '0', ) + ], + page = 56, + size = 56, + total = 56 + ) + else : + return InlineResponse20048( + ) + + def testInlineResponse20048(self): + """Test InlineResponse20048""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20049.py b/test/test_inline_response20049.py new file mode 100644 index 0000000..0614200 --- /dev/null +++ b/test/test_inline_response20049.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.inline_response20049 import InlineResponse20049 # noqa: E501 +from ocm_client.rest import ApiException + +class TestInlineResponse20049(unittest.TestCase): + """InlineResponse20049 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test InlineResponse20049 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.inline_response20049.InlineResponse20049() # noqa: E501 + if include_optional : + return InlineResponse20049( + items = [ + ocm_client.models.trusted_ip.TrustedIp( + kind = '0', + id = '0', + href = '0', + enabled = True, ) + ], + page = 56, + size = 56, + total = 56 + ) + else : + return InlineResponse20049( + ) + + def testInlineResponse20049(self): + """Test InlineResponse20049""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20050.py b/test/test_inline_response20050.py new file mode 100644 index 0000000..e4e9745 --- /dev/null +++ b/test/test_inline_response20050.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.inline_response20050 import InlineResponse20050 # noqa: E501 +from ocm_client.rest import ApiException + +class TestInlineResponse20050(unittest.TestCase): + """InlineResponse20050 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test InlineResponse20050 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.inline_response20050.InlineResponse20050() # noqa: E501 + if include_optional : + return InlineResponse20050( + items = [ + ocm_client.models.version_gate.VersionGate( + kind = '0', + id = '0', + href = '0', + sts_only = True, + creation_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + description = '0', + documentation_url = '0', + label = '0', + value = '0', + version_raw_id_prefix = '0', + warning_message = '0', ) + ], + page = 56, + size = 56, + total = 56 + ) + else : + return InlineResponse20050( + ) + + def testInlineResponse20050(self): + """Test InlineResponse20050""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20051.py b/test/test_inline_response20051.py new file mode 100644 index 0000000..4e1bb46 --- /dev/null +++ b/test/test_inline_response20051.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.inline_response20051 import InlineResponse20051 # noqa: E501 +from ocm_client.rest import ApiException + +class TestInlineResponse20051(unittest.TestCase): + """InlineResponse20051 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test InlineResponse20051 + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.inline_response20051.InlineResponse20051() # noqa: E501 + if include_optional : + return InlineResponse20051( + items = [ + ocm_client.models.version.Version( + kind = '0', + id = '0', + href = '0', + gcp_marketplace_enabled = True, + rosa_enabled = True, + available_upgrades = [ + '0' + ], + channel_group = '0', + default = True, + enabled = True, + end_of_life_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + hosted_control_plane_enabled = True, + image_overrides = ocm_client.models.image_overrides.ImageOverrides( + kind = '0', + id = '0', + href = '0', + aws = [ + ocm_client.models.ami_override.AMIOverride( + kind = '0', + id = '0', + href = '0', + ami = '0', + product = ocm_client.models.product.Product( + kind = '0', + id = '0', + href = '0', + name = '0', ), + region = ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + cloud_provider = ocm_client.models.cloud_provider.CloudProvider( + kind = '0', + id = '0', + href = '0', + display_name = '0', + name = '0', + regions = [ + ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ) + ], ), + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ), ) + ], + gcp = [ + ocm_client.models.gcp_image_override.GCPImageOverride( + kind = '0', + id = '0', + href = '0', + billing_model = ocm_client.models.billing_model_item.BillingModelItem( + kind = '0', + id = '0', + href = '0', + billing_model_type = '0', + description = '0', + display_name = '0', + marketplace = '0', ), + image_id = '0', + project_id = '0', ) + ], ), + raw_id = '0', + release_image = '0', ) + ], + page = 56, + size = 56, + total = 56 + ) + else : + return InlineResponse20051( + ) + + def testInlineResponse20051(self): + """Test InlineResponse20051""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kubelet_config.py b/test/test_kubelet_config.py new file mode 100644 index 0000000..53749e4 --- /dev/null +++ b/test/test_kubelet_config.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.kubelet_config import KubeletConfig # noqa: E501 +from ocm_client.rest import ApiException + +class TestKubeletConfig(unittest.TestCase): + """KubeletConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test KubeletConfig + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.kubelet_config.KubeletConfig() # noqa: E501 + if include_optional : + return KubeletConfig( + kind = '0', + id = '0', + href = '0', + pod_pids_limit = 56 + ) + else : + return KubeletConfig( + ) + + def testKubeletConfig(self): + """Test KubeletConfig""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_namespace_ownership_policy.py b/test/test_namespace_ownership_policy.py new file mode 100644 index 0000000..cfd5860 --- /dev/null +++ b/test/test_namespace_ownership_policy.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.namespace_ownership_policy import NamespaceOwnershipPolicy # noqa: E501 +from ocm_client.rest import ApiException + +class TestNamespaceOwnershipPolicy(unittest.TestCase): + """NamespaceOwnershipPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NamespaceOwnershipPolicy + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.namespace_ownership_policy.NamespaceOwnershipPolicy() # noqa: E501 + if include_optional : + return NamespaceOwnershipPolicy( + ) + else : + return NamespaceOwnershipPolicy( + ) + + def testNamespaceOwnershipPolicy(self): + """Test NamespaceOwnershipPolicy""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_network_verification.py b/test/test_network_verification.py new file mode 100644 index 0000000..d0be53c --- /dev/null +++ b/test/test_network_verification.py @@ -0,0 +1,213 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.network_verification import NetworkVerification # noqa: E501 +from ocm_client.rest import ApiException + +class TestNetworkVerification(unittest.TestCase): + """NetworkVerification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test NetworkVerification + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.network_verification.NetworkVerification() # noqa: E501 + if include_optional : + return NetworkVerification( + cloud_provider_data = ocm_client.models.cloud_provider_data.CloudProviderData( + aws = ocm_client.models.aws.AWS( + kms_key_arn = '0', + sts = ocm_client.models.sts.STS( + oidc_endpoint_url = '0', + auto_mode = True, + enabled = True, + external_id = '0', + instance_iam_roles = ocm_client.models.instance_iam_roles.InstanceIAMRoles( + master_role_arn = '0', + worker_role_arn = '0', ), + managed_policies = True, + oidc_config = ocm_client.models.oidc_config.OidcConfig( + href = '0', + id = '0', + creation_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + installer_role_arn = '0', + issuer_url = '0', + last_update_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + last_used_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + managed = True, + organization_id = '0', + reusable = True, + secret_arn = '0', ), + operator_iam_roles = [ + ocm_client.models.operator_iam_role.OperatorIAMRole( + id = '0', + name = '0', + namespace = '0', + role_arn = '0', + service_account = '0', ) + ], + operator_role_prefix = '0', + permission_boundary = '0', + role_arn = '0', + support_role_arn = '0', ), + access_key_id = '0', + account_id = '0', + additional_compute_security_group_ids = [ + '0' + ], + additional_control_plane_security_group_ids = [ + '0' + ], + additional_infra_security_group_ids = [ + '0' + ], + audit_log = ocm_client.models.audit_log.AuditLog( + role_arn = '0', ), + billing_account_id = '0', + ec2_metadata_http_tokens = 'optional', + etcd_encryption = ocm_client.models.aws_etcd_encryption.AwsEtcdEncryption( + kms_key_arn = '0', ), + private_hosted_zone_id = '0', + private_hosted_zone_role_arn = '0', + private_link = True, + private_link_configuration = ocm_client.models.private_link_cluster_configuration.PrivateLinkClusterConfiguration( + principals = [ + ocm_client.models.private_link_principal.PrivateLinkPrincipal( + kind = '0', + id = '0', + href = '0', + principal = '0', ) + ], ), + secret_access_key = '0', + subnet_ids = [ + '0' + ], + tags = { + 'key' : '0' + }, ), + gcp = ocm_client.models.gcp.GCP( + auth_uri = '0', + auth_provider_x509_cert_url = '0', + client_id = '0', + client_x509_cert_url = '0', + client_email = '0', + private_key = '0', + private_key_id = '0', + project_id = '0', + security = ocm_client.models.gcp_security.GcpSecurity( + secure_boot = True, ), + token_uri = '0', + type = '0', ), + availability_zones = [ + '0' + ], + key_location = '0', + key_ring_name = '0', + region = ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + cloud_provider = ocm_client.models.cloud_provider.CloudProvider( + kind = '0', + id = '0', + href = '0', + display_name = '0', + name = '0', + regions = [ + ocm_client.models.cloud_region.CloudRegion( + kind = '0', + id = '0', + href = '0', + ccs_only = True, + kms_location_id = '0', + kms_location_name = '0', + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ) + ], ), + display_name = '0', + enabled = True, + govcloud = True, + name = '0', + supports_hypershift = True, + supports_multi_az = True, ), + subnets = [ + '0' + ], + version = ocm_client.models.version.Version( + kind = '0', + id = '0', + href = '0', + gcp_marketplace_enabled = True, + rosa_enabled = True, + available_upgrades = [ + '0' + ], + channel_group = '0', + default = True, + enabled = True, + end_of_life_timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + hosted_control_plane_enabled = True, + image_overrides = ocm_client.models.image_overrides.ImageOverrides( + kind = '0', + id = '0', + href = '0', ), + raw_id = '0', + release_image = '0', ), ), + cluster_id = '0', + items = [ + ocm_client.models.subnet_network_verification.SubnetNetworkVerification( + kind = '0', + id = '0', + href = '0', + details = [ + '0' + ], + state = '0', + tags = { + 'key' : '0' + }, ) + ], + total = 56 + ) + else : + return NetworkVerification( + ) + + def testNetworkVerification(self): + """Test NetworkVerification""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_product_minimal_version.py b/test/test_product_minimal_version.py new file mode 100644 index 0000000..1c2ef54 --- /dev/null +++ b/test/test_product_minimal_version.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.product_minimal_version import ProductMinimalVersion # noqa: E501 +from ocm_client.rest import ApiException + +class TestProductMinimalVersion(unittest.TestCase): + """ProductMinimalVersion unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ProductMinimalVersion + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.product_minimal_version.ProductMinimalVersion() # noqa: E501 + if include_optional : + return ProductMinimalVersion( + kind = '0', + id = '0', + href = '0', + rosa_cli = '0', + start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else : + return ProductMinimalVersion( + ) + + def testProductMinimalVersion(self): + """Test ProductMinimalVersion""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_product_technology_preview.py b/test/test_product_technology_preview.py new file mode 100644 index 0000000..c09fc64 --- /dev/null +++ b/test/test_product_technology_preview.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.product_technology_preview import ProductTechnologyPreview # noqa: E501 +from ocm_client.rest import ApiException + +class TestProductTechnologyPreview(unittest.TestCase): + """ProductTechnologyPreview unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ProductTechnologyPreview + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.product_technology_preview.ProductTechnologyPreview() # noqa: E501 + if include_optional : + return ProductTechnologyPreview( + kind = '0', + id = '0', + href = '0', + additional_text = '0', + end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else : + return ProductTechnologyPreview( + ) + + def testProductTechnologyPreview(self): + """Test ProductTechnologyPreview""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_provision_shard_topology.py b/test/test_provision_shard_topology.py new file mode 100644 index 0000000..ddce92e --- /dev/null +++ b/test/test_provision_shard_topology.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.provision_shard_topology import ProvisionShardTopology # noqa: E501 +from ocm_client.rest import ApiException + +class TestProvisionShardTopology(unittest.TestCase): + """ProvisionShardTopology unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ProvisionShardTopology + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.provision_shard_topology.ProvisionShardTopology() # noqa: E501 + if include_optional : + return ProvisionShardTopology( + ) + else : + return ProvisionShardTopology( + ) + + def testProvisionShardTopology(self): + """Test ProvisionShardTopology""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_range.py b/test/test_resource_range.py new file mode 100644 index 0000000..26f113c --- /dev/null +++ b/test/test_resource_range.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.resource_range import ResourceRange # noqa: E501 +from ocm_client.rest import ApiException + +class TestResourceRange(unittest.TestCase): + """ResourceRange unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ResourceRange + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.resource_range.ResourceRange() # noqa: E501 + if include_optional : + return ResourceRange( + max = 56, + min = 56 + ) + else : + return ResourceRange( + ) + + def testResourceRange(self): + """Test ResourceRange""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_schedule_type.py b/test/test_schedule_type.py new file mode 100644 index 0000000..d6e303b --- /dev/null +++ b/test/test_schedule_type.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.schedule_type import ScheduleType # noqa: E501 +from ocm_client.rest import ApiException + +class TestScheduleType(unittest.TestCase): + """ScheduleType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test ScheduleType + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.schedule_type.ScheduleType() # noqa: E501 + if include_optional : + return ScheduleType( + ) + else : + return ScheduleType( + ) + + def testScheduleType(self): + """Test ScheduleType""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_security_group.py b/test/test_security_group.py new file mode 100644 index 0000000..d85b610 --- /dev/null +++ b/test/test_security_group.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.security_group import SecurityGroup # noqa: E501 +from ocm_client.rest import ApiException + +class TestSecurityGroup(unittest.TestCase): + """SecurityGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SecurityGroup + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.security_group.SecurityGroup() # noqa: E501 + if include_optional : + return SecurityGroup( + id = '0', + name = '0', + red_hat_managed = True + ) + else : + return SecurityGroup( + ) + + def testSecurityGroup(self): + """Test SecurityGroup""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sts_support_jump_role.py b/test/test_sts_support_jump_role.py new file mode 100644 index 0000000..09c3518 --- /dev/null +++ b/test/test_sts_support_jump_role.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.sts_support_jump_role import StsSupportJumpRole # noqa: E501 +from ocm_client.rest import ApiException + +class TestStsSupportJumpRole(unittest.TestCase): + """StsSupportJumpRole unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test StsSupportJumpRole + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.sts_support_jump_role.StsSupportJumpRole() # noqa: E501 + if include_optional : + return StsSupportJumpRole( + role_arn = '0' + ) + else : + return StsSupportJumpRole( + ) + + def testStsSupportJumpRole(self): + """Test StsSupportJumpRole""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_subnet_network_verification.py b/test/test_subnet_network_verification.py new file mode 100644 index 0000000..b0d3f5f --- /dev/null +++ b/test/test_subnet_network_verification.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.subnet_network_verification import SubnetNetworkVerification # noqa: E501 +from ocm_client.rest import ApiException + +class TestSubnetNetworkVerification(unittest.TestCase): + """SubnetNetworkVerification unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test SubnetNetworkVerification + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.subnet_network_verification.SubnetNetworkVerification() # noqa: E501 + if include_optional : + return SubnetNetworkVerification( + kind = '0', + id = '0', + href = '0', + details = [ + '0' + ], + state = '0', + tags = { + 'key' : '0' + } + ) + else : + return SubnetNetworkVerification( + ) + + def testSubnetNetworkVerification(self): + """Test SubnetNetworkVerification""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_trusted_ip.py b/test/test_trusted_ip.py new file mode 100644 index 0000000..3ba904d --- /dev/null +++ b/test/test_trusted_ip.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.trusted_ip import TrustedIp # noqa: E501 +from ocm_client.rest import ApiException + +class TestTrustedIp(unittest.TestCase): + """TrustedIp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test TrustedIp + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.trusted_ip.TrustedIp() # noqa: E501 + if include_optional : + return TrustedIp( + kind = '0', + id = '0', + href = '0', + enabled = True + ) + else : + return TrustedIp( + ) + + def testTrustedIp(self): + """Test TrustedIp""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upgrade_type.py b/test/test_upgrade_type.py new file mode 100644 index 0000000..cd7f887 --- /dev/null +++ b/test/test_upgrade_type.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.upgrade_type import UpgradeType # noqa: E501 +from ocm_client.rest import ApiException + +class TestUpgradeType(unittest.TestCase): + """UpgradeType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test UpgradeType + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.upgrade_type.UpgradeType() # noqa: E501 + if include_optional : + return UpgradeType( + ) + else : + return UpgradeType( + ) + + def testUpgradeType(self): + """Test UpgradeType""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_wildcard_policy.py b/test/test_wildcard_policy.py new file mode 100644 index 0000000..52e4cfc --- /dev/null +++ b/test/test_wildcard_policy.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + clusters_mgmt + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: v1 + Contact: ocm-feedback@redhat.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import ocm_client +from ocm_client.models.wildcard_policy import WildcardPolicy # noqa: E501 +from ocm_client.rest import ApiException + +class TestWildcardPolicy(unittest.TestCase): + """WildcardPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test WildcardPolicy + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = ocm_client.models.wildcard_policy.WildcardPolicy() # noqa: E501 + if include_optional : + return WildcardPolicy( + ) + else : + return WildcardPolicy( + ) + + def testWildcardPolicy(self): + """Test WildcardPolicy""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main()