From 8a160718349f2fed7a49272542a84c63289b9ccd Mon Sep 17 00:00:00 2001 From: platform CI Date: Wed, 8 Jul 2026 16:01:43 +0000 Subject: [PATCH] Update clients to latest platform release (4.19.0) --- README.md | 46 +- docs/ArgoRollouts.md | 30 + docs/CertManager.md | 30 + docs/CloudProvider.md | 16 + docs/ClusterComponents.md | 47 + docs/ClusterConfig.md | 29 + docs/ClusterCredential.md | 31 + docs/ClusterRegistrationRequest.md | 33 + docs/ClusterRegistrationResponse.md | 29 + docs/CreateJobDeploymentRequest.md | 1 + docs/CreateUrlRequest.md | 30 - docs/CreateUrlResponse.md | 29 - docs/EXTERNALApi.md | 330 +++-- docs/ExternalDns.md | 30 + docs/FinalStack.md | 30 + docs/FluentBit.md | 30 + docs/GetJobDeploymentResponse.md | 1 + docs/GpuOperator.md | 30 + docs/IngressNginx.md | 30 + docs/Istio.md | 30 + docs/IstioCniOverrides.md | 30 + docs/IstioCniSubchartOverrides.md | 29 + docs/IstioOverrides.md | 29 + docs/Keda.md | 30 + docs/KubePrometheusStack.md | 30 + docs/Longhorn.md | 30 + docs/MetricsServer.md | 30 + docs/NetworkOperator.md | 30 + docs/OpentelemetryCollector.md | 30 + docs/PrometheusAdapter.md | 30 + docs/Spire.md | 30 + docs/SpireCrds.md | 30 + docs/TeleportKubeAgent.md | 30 + platform_api_python_client/__init__.py | 31 +- .../api/external_api.py | 1107 +++++++++++------ platform_api_python_client/api_client.py | 2 +- platform_api_python_client/configuration.py | 2 +- platform_api_python_client/models/__init__.py | 29 +- .../models/argo_rollouts.py | 89 ++ .../models/cert_manager.py | 89 ++ .../models/cloud_provider.py | 39 + .../models/cluster_components.py | 193 +++ .../models/cluster_config.py | 91 ++ ...e_url_request.py => cluster_credential.py} | 20 +- .../models/cluster_registration_request.py | 110 ++ ...se.py => cluster_registration_response.py} | 17 +- .../models/create_job_deployment_request.py | 15 +- .../models/external_dns.py | 89 ++ .../models/final_stack.py | 89 ++ .../models/fluent_bit.py | 89 ++ .../models/get_job_deployment_response.py | 15 +- .../models/gpu_operator.py | 89 ++ .../models/ingress_nginx.py | 89 ++ platform_api_python_client/models/istio.py | 98 ++ .../models/istio_cni_overrides.py | 99 ++ .../models/istio_cni_subchart_overrides.py | 96 ++ .../models/istio_overrides.py | 96 ++ platform_api_python_client/models/keda.py | 89 ++ .../models/kube_prometheus_stack.py | 89 ++ platform_api_python_client/models/longhorn.py | 89 ++ .../models/metrics_server.py | 89 ++ .../models/network_operator.py | 89 ++ .../models/opentelemetry_collector.py | 89 ++ .../models/prometheus_adapter.py | 89 ++ platform_api_python_client/models/spire.py | 89 ++ .../models/spire_crds.py | 89 ++ .../models/teleport_kube_agent.py | 89 ++ pyproject.toml | 2 +- setup.py | 2 +- ...e_url_request.py => test_argo_rollouts.py} | 28 +- test/test_cert_manager.py | 52 + test/test_cloud_provider.py | 33 + test/test_cluster_components.py | 108 ++ test/test_cluster_config.py | 126 ++ test/test_cluster_credential.py | 56 + test/test_cluster_registration_request.py | 64 + test/test_cluster_registration_response.py | 52 + test/test_create_job_deployment_request.py | 6 +- test/test_external_api.py | 35 +- test/test_external_dns.py | 52 + ...te_url_response.py => test_final_stack.py} | 26 +- test/test_fluent_bit.py | 52 + test/test_get_job_deployment_response.py | 6 +- test/test_gpu_operator.py | 52 + test/test_ingress_nginx.py | 52 + test/test_istio.py | 56 + test/test_istio_cni_overrides.py | 52 + test/test_istio_cni_subchart_overrides.py | 53 + test/test_istio_overrides.py | 54 + test/test_keda.py | 52 + test/test_kube_prometheus_stack.py | 52 + test/test_longhorn.py | 52 + test/test_metrics_server.py | 52 + test/test_network_operator.py | 52 + test/test_opentelemetry_collector.py | 52 + test/test_prometheus_adapter.py | 52 + test/test_spire.py | 52 + test/test_spire_crds.py | 52 + test/test_teleport_kube_agent.py | 52 + 99 files changed, 5677 insertions(+), 685 deletions(-) create mode 100644 docs/ArgoRollouts.md create mode 100644 docs/CertManager.md create mode 100644 docs/CloudProvider.md create mode 100644 docs/ClusterComponents.md create mode 100644 docs/ClusterConfig.md create mode 100644 docs/ClusterCredential.md create mode 100644 docs/ClusterRegistrationRequest.md create mode 100644 docs/ClusterRegistrationResponse.md delete mode 100644 docs/CreateUrlRequest.md delete mode 100644 docs/CreateUrlResponse.md create mode 100644 docs/ExternalDns.md create mode 100644 docs/FinalStack.md create mode 100644 docs/FluentBit.md create mode 100644 docs/GpuOperator.md create mode 100644 docs/IngressNginx.md create mode 100644 docs/Istio.md create mode 100644 docs/IstioCniOverrides.md create mode 100644 docs/IstioCniSubchartOverrides.md create mode 100644 docs/IstioOverrides.md create mode 100644 docs/Keda.md create mode 100644 docs/KubePrometheusStack.md create mode 100644 docs/Longhorn.md create mode 100644 docs/MetricsServer.md create mode 100644 docs/NetworkOperator.md create mode 100644 docs/OpentelemetryCollector.md create mode 100644 docs/PrometheusAdapter.md create mode 100644 docs/Spire.md create mode 100644 docs/SpireCrds.md create mode 100644 docs/TeleportKubeAgent.md create mode 100644 platform_api_python_client/models/argo_rollouts.py create mode 100644 platform_api_python_client/models/cert_manager.py create mode 100644 platform_api_python_client/models/cloud_provider.py create mode 100644 platform_api_python_client/models/cluster_components.py create mode 100644 platform_api_python_client/models/cluster_config.py rename platform_api_python_client/models/{create_url_request.py => cluster_credential.py} (81%) create mode 100644 platform_api_python_client/models/cluster_registration_request.py rename platform_api_python_client/models/{create_url_response.py => cluster_registration_response.py} (83%) create mode 100644 platform_api_python_client/models/external_dns.py create mode 100644 platform_api_python_client/models/final_stack.py create mode 100644 platform_api_python_client/models/fluent_bit.py create mode 100644 platform_api_python_client/models/gpu_operator.py create mode 100644 platform_api_python_client/models/ingress_nginx.py create mode 100644 platform_api_python_client/models/istio.py create mode 100644 platform_api_python_client/models/istio_cni_overrides.py create mode 100644 platform_api_python_client/models/istio_cni_subchart_overrides.py create mode 100644 platform_api_python_client/models/istio_overrides.py create mode 100644 platform_api_python_client/models/keda.py create mode 100644 platform_api_python_client/models/kube_prometheus_stack.py create mode 100644 platform_api_python_client/models/longhorn.py create mode 100644 platform_api_python_client/models/metrics_server.py create mode 100644 platform_api_python_client/models/network_operator.py create mode 100644 platform_api_python_client/models/opentelemetry_collector.py create mode 100644 platform_api_python_client/models/prometheus_adapter.py create mode 100644 platform_api_python_client/models/spire.py create mode 100644 platform_api_python_client/models/spire_crds.py create mode 100644 platform_api_python_client/models/teleport_kube_agent.py rename test/{test_create_url_request.py => test_argo_rollouts.py} (57%) create mode 100644 test/test_cert_manager.py create mode 100644 test/test_cloud_provider.py create mode 100644 test/test_cluster_components.py create mode 100644 test/test_cluster_config.py create mode 100644 test/test_cluster_credential.py create mode 100644 test/test_cluster_registration_request.py create mode 100644 test/test_cluster_registration_response.py create mode 100644 test/test_external_dns.py rename test/{test_create_url_response.py => test_final_stack.py} (60%) create mode 100644 test/test_fluent_bit.py create mode 100644 test/test_gpu_operator.py create mode 100644 test/test_ingress_nginx.py create mode 100644 test/test_istio.py create mode 100644 test/test_istio_cni_overrides.py create mode 100644 test/test_istio_cni_subchart_overrides.py create mode 100644 test/test_istio_overrides.py create mode 100644 test/test_keda.py create mode 100644 test/test_kube_prometheus_stack.py create mode 100644 test/test_longhorn.py create mode 100644 test/test_metrics_server.py create mode 100644 test/test_network_operator.py create mode 100644 test/test_opentelemetry_collector.py create mode 100644 test/test_prometheus_adapter.py create mode 100644 test/test_spire.py create mode 100644 test/test_spire_crds.py create mode 100644 test/test_teleport_kube_agent.py diff --git a/README.md b/README.md index 8d1f7c2..93d9075 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.1.0 -- Package version: 4.18.0 +- Package version: 4.19.0 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -76,15 +76,15 @@ configuration = platform_api_python_client.Configuration( with platform_api_python_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = platform_api_python_client.EXTERNALApi(api_client) - create_compute_deployment_request = platform_api_python_client.CreateComputeDeploymentRequest() # CreateComputeDeploymentRequest | + cluster_registration_request = platform_api_python_client.ClusterRegistrationRequest() # ClusterRegistrationRequest | try: - # Create Compute Deployment - api_response = api_instance.create_compute_deployment_deployments_compute_post(create_compute_deployment_request) - print("The response of EXTERNALApi->create_compute_deployment_deployments_compute_post:\n") + # Create Cluster + api_response = api_instance.create_cluster_clusters_post(cluster_registration_request) + print("The response of EXTERNALApi->create_cluster_clusters_post:\n") pprint(api_response) except ApiException as e: - print("Exception when calling EXTERNALApi->create_compute_deployment_deployments_compute_post: %s\n" % e) + print("Exception when calling EXTERNALApi->create_cluster_clusters_post: %s\n" % e) ``` @@ -94,6 +94,7 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*EXTERNALApi* | [**create_cluster_clusters_post**](docs/EXTERNALApi.md#create_cluster_clusters_post) | **POST** /clusters | Create Cluster *EXTERNALApi* | [**create_compute_deployment_deployments_compute_post**](docs/EXTERNALApi.md#create_compute_deployment_deployments_compute_post) | **POST** /deployments/compute | Create Compute Deployment *EXTERNALApi* | [**create_cserve_v2_deployment_deployments_cserve_v2_post**](docs/EXTERNALApi.md#create_cserve_v2_deployment_deployments_cserve_v2_post) | **POST** /deployments/cserve_v2 | Create Cserve V2 Deployment *EXTERNALApi* | [**create_cserve_v3_deployment_deployments_cserve_v3_post**](docs/EXTERNALApi.md#create_cserve_v3_deployment_deployments_cserve_v3_post) | **POST** /deployments/cserve_v3 | Create Cserve V3 Deployment @@ -103,10 +104,10 @@ Class | Method | HTTP request | Description *EXTERNALApi* | [**create_job_deployment_deployments_job_post**](docs/EXTERNALApi.md#create_job_deployment_deployments_job_post) | **POST** /deployments/job | Create Job Deployment *EXTERNALApi* | [**create_new_organization_organizations_post**](docs/EXTERNALApi.md#create_new_organization_organizations_post) | **POST** /organizations | Create New Organization *EXTERNALApi* | [**create_service_account_service_accounts_post**](docs/EXTERNALApi.md#create_service_account_service_accounts_post) | **POST** /service-accounts | Create Service Account +*EXTERNALApi* | [**delete_cluster_clusters_cluster_id_delete**](docs/EXTERNALApi.md#delete_cluster_clusters_cluster_id_delete) | **DELETE** /clusters/{cluster_id} | Delete Cluster *EXTERNALApi* | [**delete_hardware_instance_hardware_instances_hardware_instance_id_delete**](docs/EXTERNALApi.md#delete_hardware_instance_hardware_instances_hardware_instance_id_delete) | **DELETE** /hardware-instances/{hardware_instance_id} | Delete Hardware Instance *EXTERNALApi* | [**delete_service_account_service_accounts_workos_id_delete**](docs/EXTERNALApi.md#delete_service_account_service_accounts_workos_id_delete) | **DELETE** /service-accounts/{workos_id} | Delete Service Account *EXTERNALApi* | [**delete_user_vault_item_endpoint_user_vault_delete**](docs/EXTERNALApi.md#delete_user_vault_item_endpoint_user_vault_delete) | **DELETE** /user_vault | Delete User Vault Item Endpoint -*EXTERNALApi* | [**download_url_file_url_download_post**](docs/EXTERNALApi.md#download_url_file_url_download_post) | **POST** /file_url/download | Download Url *EXTERNALApi* | [**generate_service_account_secret_service_accounts_workos_id_secrets_post**](docs/EXTERNALApi.md#generate_service_account_secret_service_accounts_workos_id_secrets_post) | **POST** /service-accounts/{workos_id}/secrets | Generate Service Account Secret *EXTERNALApi* | [**get_all_user_vault_items_endpoint_user_vault_get**](docs/EXTERNALApi.md#get_all_user_vault_items_endpoint_user_vault_get) | **GET** /user_vault | Get All User Vault Items Endpoint *EXTERNALApi* | [**get_clusters_clusters_get**](docs/EXTERNALApi.md#get_clusters_clusters_get) | **GET** /clusters | Get Clusters @@ -134,6 +135,7 @@ Class | Method | HTTP request | Description *EXTERNALApi* | [**list_service_accounts_service_accounts_get**](docs/EXTERNALApi.md#list_service_accounts_service_accounts_get) | **GET** /service-accounts | List Service Accounts *EXTERNALApi* | [**rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put**](docs/EXTERNALApi.md#rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put) | **PUT** /deployments/revisions/{deployment_id}/{revision_number} | Rollout Existing Revision *EXTERNALApi* | [**setup_stripe_customer_payments_setup_post**](docs/EXTERNALApi.md#setup_stripe_customer_payments_setup_post) | **POST** /payments/setup | Setup Stripe Customer +*EXTERNALApi* | [**update_cluster_clusters_cluster_id_put**](docs/EXTERNALApi.md#update_cluster_clusters_cluster_id_put) | **PUT** /clusters/{cluster_id} | Update Cluster *EXTERNALApi* | [**update_compute_deployment_deployments_compute_put**](docs/EXTERNALApi.md#update_compute_deployment_deployments_compute_put) | **PUT** /deployments/compute | Update Compute Deployment *EXTERNALApi* | [**update_cserve_v2_deployment_deployments_cserve_v2_put**](docs/EXTERNALApi.md#update_cserve_v2_deployment_deployments_cserve_v2_put) | **PUT** /deployments/cserve_v2 | Update Cserve V2 Deployment *EXTERNALApi* | [**update_cserve_v3_deployment_deployments_cserve_v3_put**](docs/EXTERNALApi.md#update_cserve_v3_deployment_deployments_cserve_v3_put) | **PUT** /deployments/cserve_v3 | Update Cserve V3 Deployment @@ -143,16 +145,23 @@ Class | Method | HTTP request | Description *EXTERNALApi* | [**update_inference_v3_deployment_deployments_inference_v3_put**](docs/EXTERNALApi.md#update_inference_v3_deployment_deployments_inference_v3_put) | **PUT** /deployments/inference_v3 | Update Inference V3 Deployment *EXTERNALApi* | [**update_service_account_service_accounts_workos_id_put**](docs/EXTERNALApi.md#update_service_account_service_accounts_workos_id_put) | **PUT** /service-accounts/{workos_id} | Update Service Account *EXTERNALApi* | [**update_user_vault_item_endpoint_user_vault_put**](docs/EXTERNALApi.md#update_user_vault_item_endpoint_user_vault_put) | **PUT** /user_vault | Update User Vault Item Endpoint -*EXTERNALApi* | [**upload_url_file_url_upload_post**](docs/EXTERNALApi.md#upload_url_file_url_upload_post) | **POST** /file_url/upload | Upload Url ## Documentation For Models + - [ArgoRollouts](docs/ArgoRollouts.md) - [BackendProtocol](docs/BackendProtocol.md) - [CServeRecipePerf](docs/CServeRecipePerf.md) - [CServeRecipeResponse](docs/CServeRecipeResponse.md) - [CServeV2Recipe](docs/CServeV2Recipe.md) + - [CertManager](docs/CertManager.md) + - [CloudProvider](docs/CloudProvider.md) - [ClusterCapacityResponse](docs/ClusterCapacityResponse.md) + - [ClusterComponents](docs/ClusterComponents.md) + - [ClusterConfig](docs/ClusterConfig.md) + - [ClusterCredential](docs/ClusterCredential.md) + - [ClusterRegistrationRequest](docs/ClusterRegistrationRequest.md) + - [ClusterRegistrationResponse](docs/ClusterRegistrationResponse.md) - [ConfigFileMount](docs/ConfigFileMount.md) - [CreateCServeV2DeploymentResponse](docs/CreateCServeV2DeploymentResponse.md) - [CreateCServeV3DeploymentRequest](docs/CreateCServeV3DeploymentRequest.md) @@ -168,8 +177,6 @@ Class | Method | HTTP request | Description - [CreateOrganizationResponse](docs/CreateOrganizationResponse.md) - [CreateServiceAccountRequest](docs/CreateServiceAccountRequest.md) - [CreateServiceAccountResponse](docs/CreateServiceAccountResponse.md) - - [CreateUrlRequest](docs/CreateUrlRequest.md) - - [CreateUrlResponse](docs/CreateUrlResponse.md) - [CreditsResponse](docs/CreditsResponse.md) - [DailyBillResponse](docs/DailyBillResponse.md) - [DeploymentResponse](docs/DeploymentResponse.md) @@ -180,6 +187,9 @@ Class | Method | HTTP request | Description - [DeploymentType](docs/DeploymentType.md) - [DeploymentUsage](docs/DeploymentUsage.md) - [DeploymentUsageValue](docs/DeploymentUsageValue.md) + - [ExternalDns](docs/ExternalDns.md) + - [FinalStack](docs/FinalStack.md) + - [FluentBit](docs/FluentBit.md) - [GenerateServiceAccountSecretResponse](docs/GenerateServiceAccountSecretResponse.md) - [GetCServeV2DeploymentResponse](docs/GetCServeV2DeploymentResponse.md) - [GetCServeV3DeploymentResponse](docs/GetCServeV3DeploymentResponse.md) @@ -192,11 +202,19 @@ Class | Method | HTTP request | Description - [GetInferenceDeploymentResponse](docs/GetInferenceDeploymentResponse.md) - [GetInferenceV3DeploymentResponse](docs/GetInferenceV3DeploymentResponse.md) - [GetJobDeploymentResponse](docs/GetJobDeploymentResponse.md) + - [GpuOperator](docs/GpuOperator.md) - [GpuTypeCapacity](docs/GpuTypeCapacity.md) - [HTTPValidationError](docs/HTTPValidationError.md) - [HardwareInstanceResponse](docs/HardwareInstanceResponse.md) - [ImagePullSecretCredentials](docs/ImagePullSecretCredentials.md) + - [IngressNginx](docs/IngressNginx.md) - [InviteUserRequest](docs/InviteUserRequest.md) + - [Istio](docs/Istio.md) + - [IstioCniOverrides](docs/IstioCniOverrides.md) + - [IstioCniSubchartOverrides](docs/IstioCniSubchartOverrides.md) + - [IstioOverrides](docs/IstioOverrides.md) + - [Keda](docs/Keda.md) + - [KubePrometheusStack](docs/KubePrometheusStack.md) - [ListCServeRecipeResponse](docs/ListCServeRecipeResponse.md) - [ListClusterCapacityResponse](docs/ListClusterCapacityResponse.md) - [ListDailyBillResponse](docs/ListDailyBillResponse.md) @@ -207,16 +225,24 @@ Class | Method | HTTP request | Description - [ListPrebuiltImageResponse](docs/ListPrebuiltImageResponse.md) - [ListServiceAccountsResponse](docs/ListServiceAccountsResponse.md) - [ListUserVaultItemsResponse](docs/ListUserVaultItemsResponse.md) + - [Longhorn](docs/Longhorn.md) - [Metric](docs/Metric.md) - [MetricsConfig](docs/MetricsConfig.md) + - [MetricsServer](docs/MetricsServer.md) + - [NetworkOperator](docs/NetworkOperator.md) + - [OpentelemetryCollector](docs/OpentelemetryCollector.md) - [PodDetails](docs/PodDetails.md) - [PodStatus](docs/PodStatus.md) - [PrebuiltImageResponse](docs/PrebuiltImageResponse.md) + - [PrometheusAdapter](docs/PrometheusAdapter.md) - [RevisionPodDetails](docs/RevisionPodDetails.md) - [RolloutStatus](docs/RolloutStatus.md) - [RolloutStrategyParams](docs/RolloutStrategyParams.md) - [ServiceAccountResponse](docs/ServiceAccountResponse.md) - [ServiceStatus](docs/ServiceStatus.md) + - [Spire](docs/Spire.md) + - [SpireCrds](docs/SpireCrds.md) + - [TeleportKubeAgent](docs/TeleportKubeAgent.md) - [UpdateDeploymentResponse](docs/UpdateDeploymentResponse.md) - [UpdateDeploymentStatusV3Request](docs/UpdateDeploymentStatusV3Request.md) - [UpdateServiceAccountRequest](docs/UpdateServiceAccountRequest.md) diff --git a/docs/ArgoRollouts.md b/docs/ArgoRollouts.md new file mode 100644 index 0000000..568af2b --- /dev/null +++ b/docs/ArgoRollouts.md @@ -0,0 +1,30 @@ +# ArgoRollouts + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.argo_rollouts import ArgoRollouts + +# TODO update the JSON string below +json = "{}" +# create an instance of ArgoRollouts from a JSON string +argo_rollouts_instance = ArgoRollouts.from_json(json) +# print the JSON string representation of the object +print(ArgoRollouts.to_json()) + +# convert the object into a dict +argo_rollouts_dict = argo_rollouts_instance.to_dict() +# create an instance of ArgoRollouts from a dict +argo_rollouts_from_dict = ArgoRollouts.from_dict(argo_rollouts_dict) +``` +[[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/CertManager.md b/docs/CertManager.md new file mode 100644 index 0000000..3879fe8 --- /dev/null +++ b/docs/CertManager.md @@ -0,0 +1,30 @@ +# CertManager + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.cert_manager import CertManager + +# TODO update the JSON string below +json = "{}" +# create an instance of CertManager from a JSON string +cert_manager_instance = CertManager.from_json(json) +# print the JSON string representation of the object +print(CertManager.to_json()) + +# convert the object into a dict +cert_manager_dict = cert_manager_instance.to_dict() +# create an instance of CertManager from a dict +cert_manager_from_dict = CertManager.from_dict(cert_manager_dict) +``` +[[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 new file mode 100644 index 0000000..f930496 --- /dev/null +++ b/docs/CloudProvider.md @@ -0,0 +1,16 @@ +# CloudProvider + + +## Enum + +* `GCP` (value: `'gcp'`) + +* `AWS` (value: `'aws'`) + +* `AZURE` (value: `'azure'`) + +* `NEBIUS` (value: `'nebius'`) + +[[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/ClusterComponents.md b/docs/ClusterComponents.md new file mode 100644 index 0000000..a1e51ba --- /dev/null +++ b/docs/ClusterComponents.md @@ -0,0 +1,47 @@ +# ClusterComponents + +Per-component ApplicationSet entries — the caller-facing surface. This is the request-body schema for cluster updates: callers may flip `enabled` and supply per-component `values`, but nothing here is cluster identity. Cluster identity lives in `Shared` and is passed as serialization context when building ApplicationSet elements. Field declaration order is for code locality only — actual bring-up order is driven by each subclass's `wave` ClassVar (rendered into the child Application's argocd.argoproj.io/sync-wave annotation). + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kube_prometheus_stack** | [**KubePrometheusStack**](KubePrometheusStack.md) | | [optional] +**istio** | [**Istio**](Istio.md) | | [optional] +**cert_manager** | [**CertManager**](CertManager.md) | | [optional] +**ingress_nginx** | [**IngressNginx**](IngressNginx.md) | | [optional] +**spire_crds** | [**SpireCrds**](SpireCrds.md) | | [optional] +**spire** | [**Spire**](Spire.md) | | [optional] +**external_dns** | [**ExternalDns**](ExternalDns.md) | | [optional] +**prometheus_adapter** | [**PrometheusAdapter**](PrometheusAdapter.md) | | [optional] +**keda** | [**Keda**](Keda.md) | | [optional] +**fluent_bit** | [**FluentBit**](FluentBit.md) | | [optional] +**argo_rollouts** | [**ArgoRollouts**](ArgoRollouts.md) | | [optional] +**network_operator** | [**NetworkOperator**](NetworkOperator.md) | | [optional] +**opentelemetry_collector** | [**OpentelemetryCollector**](OpentelemetryCollector.md) | | [optional] +**gpu_operator** | [**GpuOperator**](GpuOperator.md) | | [optional] +**longhorn** | [**Longhorn**](Longhorn.md) | | [optional] +**metrics_server** | [**MetricsServer**](MetricsServer.md) | | [optional] +**teleport_kube_agent** | [**TeleportKubeAgent**](TeleportKubeAgent.md) | | [optional] +**final_stack** | [**FinalStack**](FinalStack.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.cluster_components import ClusterComponents + +# TODO update the JSON string below +json = "{}" +# create an instance of ClusterComponents from a JSON string +cluster_components_instance = ClusterComponents.from_json(json) +# print the JSON string representation of the object +print(ClusterComponents.to_json()) + +# convert the object into a dict +cluster_components_dict = cluster_components_instance.to_dict() +# create an instance of ClusterComponents from a dict +cluster_components_from_dict = ClusterComponents.from_dict(cluster_components_dict) +``` +[[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/ClusterConfig.md b/docs/ClusterConfig.md new file mode 100644 index 0000000..3100d80 --- /dev/null +++ b/docs/ClusterConfig.md @@ -0,0 +1,29 @@ +# ClusterConfig + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**components** | [**ClusterComponents**](ClusterComponents.md) | | + +## Example + +```python +from platform_api_python_client.models.cluster_config import ClusterConfig + +# TODO update the JSON string below +json = "{}" +# create an instance of ClusterConfig from a JSON string +cluster_config_instance = ClusterConfig.from_json(json) +# print the JSON string representation of the object +print(ClusterConfig.to_json()) + +# convert the object into a dict +cluster_config_dict = cluster_config_instance.to_dict() +# create an instance of ClusterConfig from a dict +cluster_config_from_dict = ClusterConfig.from_dict(cluster_config_dict) +``` +[[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/ClusterCredential.md b/docs/ClusterCredential.md new file mode 100644 index 0000000..ab49196 --- /dev/null +++ b/docs/ClusterCredential.md @@ -0,0 +1,31 @@ +# ClusterCredential + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**server** | **str** | | +**bearer_token** | **str** | | +**ca_cert** | **str** | | + +## Example + +```python +from platform_api_python_client.models.cluster_credential import ClusterCredential + +# TODO update the JSON string below +json = "{}" +# create an instance of ClusterCredential from a JSON string +cluster_credential_instance = ClusterCredential.from_json(json) +# print the JSON string representation of the object +print(ClusterCredential.to_json()) + +# convert the object into a dict +cluster_credential_dict = cluster_credential_instance.to_dict() +# create an instance of ClusterCredential from a dict +cluster_credential_from_dict = ClusterCredential.from_dict(cluster_credential_dict) +``` +[[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/ClusterRegistrationRequest.md b/docs/ClusterRegistrationRequest.md new file mode 100644 index 0000000..fdc4da1 --- /dev/null +++ b/docs/ClusterRegistrationRequest.md @@ -0,0 +1,33 @@ +# ClusterRegistrationRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**display_name** | **str** | | +**storage_class** | **str** | | +**region** | **str** | | [optional] +**cloud_provider** | [**CloudProvider**](CloudProvider.md) | | [optional] +**credential** | [**ClusterCredential**](ClusterCredential.md) | | + +## Example + +```python +from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ClusterRegistrationRequest from a JSON string +cluster_registration_request_instance = ClusterRegistrationRequest.from_json(json) +# print the JSON string representation of the object +print(ClusterRegistrationRequest.to_json()) + +# convert the object into a dict +cluster_registration_request_dict = cluster_registration_request_instance.to_dict() +# create an instance of ClusterRegistrationRequest from a dict +cluster_registration_request_from_dict = ClusterRegistrationRequest.from_dict(cluster_registration_request_dict) +``` +[[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/ClusterRegistrationResponse.md b/docs/ClusterRegistrationResponse.md new file mode 100644 index 0000000..415867f --- /dev/null +++ b/docs/ClusterRegistrationResponse.md @@ -0,0 +1,29 @@ +# ClusterRegistrationResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | + +## Example + +```python +from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ClusterRegistrationResponse from a JSON string +cluster_registration_response_instance = ClusterRegistrationResponse.from_json(json) +# print the JSON string representation of the object +print(ClusterRegistrationResponse.to_json()) + +# convert the object into a dict +cluster_registration_response_dict = cluster_registration_response_instance.to_dict() +# create an instance of ClusterRegistrationResponse from a dict +cluster_registration_response_from_dict = ClusterRegistrationResponse.from_dict(cluster_registration_response_dict) +``` +[[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/CreateJobDeploymentRequest.md b/docs/CreateJobDeploymentRequest.md index 4c02734..5439720 100644 --- a/docs/CreateJobDeploymentRequest.md +++ b/docs/CreateJobDeploymentRequest.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **backoff_limit** | **int** | | [optional] [default to 3] **active_deadline_seconds** | **int** | | [optional] **enable_logging** | **bool** | | [optional] [default to True] +**config_file** | [**ConfigFileMount**](ConfigFileMount.md) | | [optional] ## Example diff --git a/docs/CreateUrlRequest.md b/docs/CreateUrlRequest.md deleted file mode 100644 index d5b76d9..0000000 --- a/docs/CreateUrlRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# CreateUrlRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**filename** | **str** | | -**extension** | **str** | | - -## Example - -```python -from platform_api_python_client.models.create_url_request import CreateUrlRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateUrlRequest from a JSON string -create_url_request_instance = CreateUrlRequest.from_json(json) -# print the JSON string representation of the object -print(CreateUrlRequest.to_json()) - -# convert the object into a dict -create_url_request_dict = create_url_request_instance.to_dict() -# create an instance of CreateUrlRequest from a dict -create_url_request_from_dict = CreateUrlRequest.from_dict(create_url_request_dict) -``` -[[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/CreateUrlResponse.md b/docs/CreateUrlResponse.md deleted file mode 100644 index 81f271f..0000000 --- a/docs/CreateUrlResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# CreateUrlResponse - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **str** | | - -## Example - -```python -from platform_api_python_client.models.create_url_response import CreateUrlResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateUrlResponse from a JSON string -create_url_response_instance = CreateUrlResponse.from_json(json) -# print the JSON string representation of the object -print(CreateUrlResponse.to_json()) - -# convert the object into a dict -create_url_response_dict = create_url_response_instance.to_dict() -# create an instance of CreateUrlResponse from a dict -create_url_response_from_dict = CreateUrlResponse.from_dict(create_url_response_dict) -``` -[[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/EXTERNALApi.md b/docs/EXTERNALApi.md index d5f1133..7bb2979 100644 --- a/docs/EXTERNALApi.md +++ b/docs/EXTERNALApi.md @@ -4,6 +4,7 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_cluster_clusters_post**](EXTERNALApi.md#create_cluster_clusters_post) | **POST** /clusters | Create Cluster [**create_compute_deployment_deployments_compute_post**](EXTERNALApi.md#create_compute_deployment_deployments_compute_post) | **POST** /deployments/compute | Create Compute Deployment [**create_cserve_v2_deployment_deployments_cserve_v2_post**](EXTERNALApi.md#create_cserve_v2_deployment_deployments_cserve_v2_post) | **POST** /deployments/cserve_v2 | Create Cserve V2 Deployment [**create_cserve_v3_deployment_deployments_cserve_v3_post**](EXTERNALApi.md#create_cserve_v3_deployment_deployments_cserve_v3_post) | **POST** /deployments/cserve_v3 | Create Cserve V3 Deployment @@ -13,10 +14,10 @@ Method | HTTP request | Description [**create_job_deployment_deployments_job_post**](EXTERNALApi.md#create_job_deployment_deployments_job_post) | **POST** /deployments/job | Create Job Deployment [**create_new_organization_organizations_post**](EXTERNALApi.md#create_new_organization_organizations_post) | **POST** /organizations | Create New Organization [**create_service_account_service_accounts_post**](EXTERNALApi.md#create_service_account_service_accounts_post) | **POST** /service-accounts | Create Service Account +[**delete_cluster_clusters_cluster_id_delete**](EXTERNALApi.md#delete_cluster_clusters_cluster_id_delete) | **DELETE** /clusters/{cluster_id} | Delete Cluster [**delete_hardware_instance_hardware_instances_hardware_instance_id_delete**](EXTERNALApi.md#delete_hardware_instance_hardware_instances_hardware_instance_id_delete) | **DELETE** /hardware-instances/{hardware_instance_id} | Delete Hardware Instance [**delete_service_account_service_accounts_workos_id_delete**](EXTERNALApi.md#delete_service_account_service_accounts_workos_id_delete) | **DELETE** /service-accounts/{workos_id} | Delete Service Account [**delete_user_vault_item_endpoint_user_vault_delete**](EXTERNALApi.md#delete_user_vault_item_endpoint_user_vault_delete) | **DELETE** /user_vault | Delete User Vault Item Endpoint -[**download_url_file_url_download_post**](EXTERNALApi.md#download_url_file_url_download_post) | **POST** /file_url/download | Download Url [**generate_service_account_secret_service_accounts_workos_id_secrets_post**](EXTERNALApi.md#generate_service_account_secret_service_accounts_workos_id_secrets_post) | **POST** /service-accounts/{workos_id}/secrets | Generate Service Account Secret [**get_all_user_vault_items_endpoint_user_vault_get**](EXTERNALApi.md#get_all_user_vault_items_endpoint_user_vault_get) | **GET** /user_vault | Get All User Vault Items Endpoint [**get_clusters_clusters_get**](EXTERNALApi.md#get_clusters_clusters_get) | **GET** /clusters | Get Clusters @@ -44,6 +45,7 @@ Method | HTTP request | Description [**list_service_accounts_service_accounts_get**](EXTERNALApi.md#list_service_accounts_service_accounts_get) | **GET** /service-accounts | List Service Accounts [**rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put**](EXTERNALApi.md#rollout_existing_revision_deployments_revisions_deployment_id_revision_number_put) | **PUT** /deployments/revisions/{deployment_id}/{revision_number} | Rollout Existing Revision [**setup_stripe_customer_payments_setup_post**](EXTERNALApi.md#setup_stripe_customer_payments_setup_post) | **POST** /payments/setup | Setup Stripe Customer +[**update_cluster_clusters_cluster_id_put**](EXTERNALApi.md#update_cluster_clusters_cluster_id_put) | **PUT** /clusters/{cluster_id} | Update Cluster [**update_compute_deployment_deployments_compute_put**](EXTERNALApi.md#update_compute_deployment_deployments_compute_put) | **PUT** /deployments/compute | Update Compute Deployment [**update_cserve_v2_deployment_deployments_cserve_v2_put**](EXTERNALApi.md#update_cserve_v2_deployment_deployments_cserve_v2_put) | **PUT** /deployments/cserve_v2 | Update Cserve V2 Deployment [**update_cserve_v3_deployment_deployments_cserve_v3_put**](EXTERNALApi.md#update_cserve_v3_deployment_deployments_cserve_v3_put) | **PUT** /deployments/cserve_v3 | Update Cserve V3 Deployment @@ -53,9 +55,86 @@ Method | HTTP request | Description [**update_inference_v3_deployment_deployments_inference_v3_put**](EXTERNALApi.md#update_inference_v3_deployment_deployments_inference_v3_put) | **PUT** /deployments/inference_v3 | Update Inference V3 Deployment [**update_service_account_service_accounts_workos_id_put**](EXTERNALApi.md#update_service_account_service_accounts_workos_id_put) | **PUT** /service-accounts/{workos_id} | Update Service Account [**update_user_vault_item_endpoint_user_vault_put**](EXTERNALApi.md#update_user_vault_item_endpoint_user_vault_put) | **PUT** /user_vault | Update User Vault Item Endpoint -[**upload_url_file_url_upload_post**](EXTERNALApi.md#upload_url_file_url_upload_post) | **POST** /file_url/upload | Upload Url +# **create_cluster_clusters_post** +> ClusterRegistrationResponse create_cluster_clusters_post(cluster_registration_request) + +Create Cluster + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest +from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# 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: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + cluster_registration_request = platform_api_python_client.ClusterRegistrationRequest() # ClusterRegistrationRequest | + + try: + # Create Cluster + api_response = api_instance.create_cluster_clusters_post(cluster_registration_request) + print("The response of EXTERNALApi->create_cluster_clusters_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->create_cluster_clusters_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_registration_request** | [**ClusterRegistrationRequest**](ClusterRegistrationRequest.md)| | + +### Return type + +[**ClusterRegistrationResponse**](ClusterRegistrationResponse.md) + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation 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) + # **create_compute_deployment_deployments_compute_post** > CreateComputeDeploymentResponse create_compute_deployment_deployments_compute_post(create_compute_deployment_request) @@ -710,10 +789,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) -# **delete_hardware_instance_hardware_instances_hardware_instance_id_delete** -> delete_hardware_instance_hardware_instances_hardware_instance_id_delete(hardware_instance_id) +# **delete_cluster_clusters_cluster_id_delete** +> object delete_cluster_clusters_cluster_id_delete(cluster_id) -Delete Hardware Instance +Delete Cluster ### Example @@ -744,13 +823,15 @@ configuration = platform_api_python_client.Configuration( with platform_api_python_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = platform_api_python_client.EXTERNALApi(api_client) - hardware_instance_id = 56 # int | + cluster_id = 56 # int | try: - # Delete Hardware Instance - api_instance.delete_hardware_instance_hardware_instances_hardware_instance_id_delete(hardware_instance_id) + # Delete Cluster + api_response = api_instance.delete_cluster_clusters_cluster_id_delete(cluster_id) + print("The response of EXTERNALApi->delete_cluster_clusters_cluster_id_delete:\n") + pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->delete_hardware_instance_hardware_instances_hardware_instance_id_delete: %s\n" % e) + print("Exception when calling EXTERNALApi->delete_cluster_clusters_cluster_id_delete: %s\n" % e) ``` @@ -760,11 +841,11 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **hardware_instance_id** | **int**| | + **cluster_id** | **int**| | ### Return type -void (empty response body) +**object** ### Authorization @@ -779,15 +860,15 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Successful Response | - | +**200** | Successful Response | - | **422** | Validation 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) -# **delete_service_account_service_accounts_workos_id_delete** -> delete_service_account_service_accounts_workos_id_delete(workos_id) +# **delete_hardware_instance_hardware_instances_hardware_instance_id_delete** +> delete_hardware_instance_hardware_instances_hardware_instance_id_delete(hardware_instance_id) -Delete Service Account +Delete Hardware Instance ### Example @@ -818,13 +899,13 @@ configuration = platform_api_python_client.Configuration( with platform_api_python_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = platform_api_python_client.EXTERNALApi(api_client) - workos_id = 'workos_id_example' # str | + hardware_instance_id = 56 # int | try: - # Delete Service Account - api_instance.delete_service_account_service_accounts_workos_id_delete(workos_id) + # Delete Hardware Instance + api_instance.delete_hardware_instance_hardware_instances_hardware_instance_id_delete(hardware_instance_id) except Exception as e: - print("Exception when calling EXTERNALApi->delete_service_account_service_accounts_workos_id_delete: %s\n" % e) + print("Exception when calling EXTERNALApi->delete_hardware_instance_hardware_instances_hardware_instance_id_delete: %s\n" % e) ``` @@ -834,7 +915,7 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **workos_id** | **str**| | + **hardware_instance_id** | **int**| | ### Return type @@ -858,12 +939,10 @@ 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) -# **delete_user_vault_item_endpoint_user_vault_delete** -> object delete_user_vault_item_endpoint_user_vault_delete(user_vault_item) - -Delete User Vault Item Endpoint +# **delete_service_account_service_accounts_workos_id_delete** +> delete_service_account_service_accounts_workos_id_delete(workos_id) -Delete an item of a specific type for the user. +Delete Service Account ### Example @@ -871,7 +950,6 @@ Delete an item of a specific type for the user. ```python import platform_api_python_client -from platform_api_python_client.models.user_vault_item import UserVaultItem from platform_api_python_client.rest import ApiException from pprint import pprint @@ -895,15 +973,13 @@ configuration = platform_api_python_client.Configuration( with platform_api_python_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = platform_api_python_client.EXTERNALApi(api_client) - user_vault_item = platform_api_python_client.UserVaultItem() # UserVaultItem | + workos_id = 'workos_id_example' # str | try: - # Delete User Vault Item Endpoint - api_response = api_instance.delete_user_vault_item_endpoint_user_vault_delete(user_vault_item) - print("The response of EXTERNALApi->delete_user_vault_item_endpoint_user_vault_delete:\n") - pprint(api_response) + # Delete Service Account + api_instance.delete_service_account_service_accounts_workos_id_delete(workos_id) except Exception as e: - print("Exception when calling EXTERNALApi->delete_user_vault_item_endpoint_user_vault_delete: %s\n" % e) + print("Exception when calling EXTERNALApi->delete_service_account_service_accounts_workos_id_delete: %s\n" % e) ``` @@ -913,11 +989,11 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user_vault_item** | [**UserVaultItem**](UserVaultItem.md)| | + **workos_id** | **str**| | ### Return type -**object** +void (empty response body) ### Authorization @@ -925,22 +1001,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 | |-------------|-------------|------------------| -**200** | Successful Response | - | +**204** | Successful Response | - | **422** | Validation 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) -# **download_url_file_url_download_post** -> CreateUrlResponse download_url_file_url_download_post(create_url_request) +# **delete_user_vault_item_endpoint_user_vault_delete** +> object delete_user_vault_item_endpoint_user_vault_delete(user_vault_item) + +Delete User Vault Item Endpoint -Download Url +Delete an item of a specific type for the user. ### Example @@ -948,8 +1026,7 @@ Download Url ```python import platform_api_python_client -from platform_api_python_client.models.create_url_request import CreateUrlRequest -from platform_api_python_client.models.create_url_response import CreateUrlResponse +from platform_api_python_client.models.user_vault_item import UserVaultItem from platform_api_python_client.rest import ApiException from pprint import pprint @@ -973,15 +1050,15 @@ configuration = platform_api_python_client.Configuration( with platform_api_python_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = platform_api_python_client.EXTERNALApi(api_client) - create_url_request = platform_api_python_client.CreateUrlRequest() # CreateUrlRequest | + user_vault_item = platform_api_python_client.UserVaultItem() # UserVaultItem | try: - # Download Url - api_response = api_instance.download_url_file_url_download_post(create_url_request) - print("The response of EXTERNALApi->download_url_file_url_download_post:\n") + # Delete User Vault Item Endpoint + api_response = api_instance.delete_user_vault_item_endpoint_user_vault_delete(user_vault_item) + print("The response of EXTERNALApi->delete_user_vault_item_endpoint_user_vault_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling EXTERNALApi->download_url_file_url_download_post: %s\n" % e) + print("Exception when calling EXTERNALApi->delete_user_vault_item_endpoint_user_vault_delete: %s\n" % e) ``` @@ -991,11 +1068,11 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **create_url_request** | [**CreateUrlRequest**](CreateUrlRequest.md)| | + **user_vault_item** | [**UserVaultItem**](UserVaultItem.md)| | ### Return type -[**CreateUrlResponse**](CreateUrlResponse.md) +**object** ### Authorization @@ -3136,6 +3213,85 @@ 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) +# **update_cluster_clusters_cluster_id_put** +> object update_cluster_clusters_cluster_id_put(cluster_id, cluster_config) + +Update Cluster + +### Example + +* Bearer Authentication (HTTPBearer): + +```python +import platform_api_python_client +from platform_api_python_client.models.cluster_config import ClusterConfig +from platform_api_python_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to http://localhost +# See configuration.py for a list of all supported configuration parameters. +configuration = platform_api_python_client.Configuration( + host = "http://localhost" +) + +# 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: HTTPBearer +configuration = platform_api_python_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with platform_api_python_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = platform_api_python_client.EXTERNALApi(api_client) + cluster_id = 56 # int | + cluster_config = platform_api_python_client.ClusterConfig() # ClusterConfig | + + try: + # Update Cluster + api_response = api_instance.update_cluster_clusters_cluster_id_put(cluster_id, cluster_config) + print("The response of EXTERNALApi->update_cluster_clusters_cluster_id_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EXTERNALApi->update_cluster_clusters_cluster_id_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cluster_id** | **int**| | + **cluster_config** | [**ClusterConfig**](ClusterConfig.md)| | + +### Return type + +**object** + +### Authorization + +[HTTPBearer](../README.md#HTTPBearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful Response | - | +**422** | Validation 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) + # **update_compute_deployment_deployments_compute_put** > UpdateDeploymentResponse update_compute_deployment_deployments_compute_put(deployment_id, create_compute_deployment_request) @@ -3819,81 +3975,3 @@ 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) -# **upload_url_file_url_upload_post** -> CreateUrlResponse upload_url_file_url_upload_post(create_url_request) - -Upload Url - -### Example - -* Bearer Authentication (HTTPBearer): - -```python -import platform_api_python_client -from platform_api_python_client.models.create_url_request import CreateUrlRequest -from platform_api_python_client.models.create_url_response import CreateUrlResponse -from platform_api_python_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to http://localhost -# See configuration.py for a list of all supported configuration parameters. -configuration = platform_api_python_client.Configuration( - host = "http://localhost" -) - -# 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: HTTPBearer -configuration = platform_api_python_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with platform_api_python_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = platform_api_python_client.EXTERNALApi(api_client) - create_url_request = platform_api_python_client.CreateUrlRequest() # CreateUrlRequest | - - try: - # Upload Url - api_response = api_instance.upload_url_file_url_upload_post(create_url_request) - print("The response of EXTERNALApi->upload_url_file_url_upload_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling EXTERNALApi->upload_url_file_url_upload_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_url_request** | [**CreateUrlRequest**](CreateUrlRequest.md)| | - -### Return type - -[**CreateUrlResponse**](CreateUrlResponse.md) - -### Authorization - -[HTTPBearer](../README.md#HTTPBearer) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Successful Response | - | -**422** | Validation 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) - diff --git a/docs/ExternalDns.md b/docs/ExternalDns.md new file mode 100644 index 0000000..20ea68b --- /dev/null +++ b/docs/ExternalDns.md @@ -0,0 +1,30 @@ +# ExternalDns + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.external_dns import ExternalDns + +# TODO update the JSON string below +json = "{}" +# create an instance of ExternalDns from a JSON string +external_dns_instance = ExternalDns.from_json(json) +# print the JSON string representation of the object +print(ExternalDns.to_json()) + +# convert the object into a dict +external_dns_dict = external_dns_instance.to_dict() +# create an instance of ExternalDns from a dict +external_dns_from_dict = ExternalDns.from_dict(external_dns_dict) +``` +[[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/FinalStack.md b/docs/FinalStack.md new file mode 100644 index 0000000..2a9df59 --- /dev/null +++ b/docs/FinalStack.md @@ -0,0 +1,30 @@ +# FinalStack + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.final_stack import FinalStack + +# TODO update the JSON string below +json = "{}" +# create an instance of FinalStack from a JSON string +final_stack_instance = FinalStack.from_json(json) +# print the JSON string representation of the object +print(FinalStack.to_json()) + +# convert the object into a dict +final_stack_dict = final_stack_instance.to_dict() +# create an instance of FinalStack from a dict +final_stack_from_dict = FinalStack.from_dict(final_stack_dict) +``` +[[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/FluentBit.md b/docs/FluentBit.md new file mode 100644 index 0000000..ce501ec --- /dev/null +++ b/docs/FluentBit.md @@ -0,0 +1,30 @@ +# FluentBit + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.fluent_bit import FluentBit + +# TODO update the JSON string below +json = "{}" +# create an instance of FluentBit from a JSON string +fluent_bit_instance = FluentBit.from_json(json) +# print the JSON string representation of the object +print(FluentBit.to_json()) + +# convert the object into a dict +fluent_bit_dict = fluent_bit_instance.to_dict() +# create an instance of FluentBit from a dict +fluent_bit_from_dict = FluentBit.from_dict(fluent_bit_dict) +``` +[[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/GetJobDeploymentResponse.md b/docs/GetJobDeploymentResponse.md index b067d8d..a06831c 100644 --- a/docs/GetJobDeploymentResponse.md +++ b/docs/GetJobDeploymentResponse.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **active_deadline_seconds** | **int** | | [optional] **image_pull_secret_credentials** | [**ImagePullSecretCredentials**](ImagePullSecretCredentials.md) | | [optional] **enable_logging** | **bool** | | [optional] [default to True] +**config_file** | [**ConfigFileMount**](ConfigFileMount.md) | | [optional] ## Example diff --git a/docs/GpuOperator.md b/docs/GpuOperator.md new file mode 100644 index 0000000..e0a185d --- /dev/null +++ b/docs/GpuOperator.md @@ -0,0 +1,30 @@ +# GpuOperator + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.gpu_operator import GpuOperator + +# TODO update the JSON string below +json = "{}" +# create an instance of GpuOperator from a JSON string +gpu_operator_instance = GpuOperator.from_json(json) +# print the JSON string representation of the object +print(GpuOperator.to_json()) + +# convert the object into a dict +gpu_operator_dict = gpu_operator_instance.to_dict() +# create an instance of GpuOperator from a dict +gpu_operator_from_dict = GpuOperator.from_dict(gpu_operator_dict) +``` +[[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/IngressNginx.md b/docs/IngressNginx.md new file mode 100644 index 0000000..3ca6923 --- /dev/null +++ b/docs/IngressNginx.md @@ -0,0 +1,30 @@ +# IngressNginx + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.ingress_nginx import IngressNginx + +# TODO update the JSON string below +json = "{}" +# create an instance of IngressNginx from a JSON string +ingress_nginx_instance = IngressNginx.from_json(json) +# print the JSON string representation of the object +print(IngressNginx.to_json()) + +# convert the object into a dict +ingress_nginx_dict = ingress_nginx_instance.to_dict() +# create an instance of IngressNginx from a dict +ingress_nginx_from_dict = IngressNginx.from_dict(ingress_nginx_dict) +``` +[[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/Istio.md b/docs/Istio.md new file mode 100644 index 0000000..d22cf2b --- /dev/null +++ b/docs/Istio.md @@ -0,0 +1,30 @@ +# Istio + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | [**IstioOverrides**](IstioOverrides.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.istio import Istio + +# TODO update the JSON string below +json = "{}" +# create an instance of Istio from a JSON string +istio_instance = Istio.from_json(json) +# print the JSON string representation of the object +print(Istio.to_json()) + +# convert the object into a dict +istio_dict = istio_instance.to_dict() +# create an instance of Istio from a dict +istio_from_dict = Istio.from_dict(istio_dict) +``` +[[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/IstioCniOverrides.md b/docs/IstioCniOverrides.md new file mode 100644 index 0000000..8bfd807 --- /dev/null +++ b/docs/IstioCniOverrides.md @@ -0,0 +1,30 @@ +# IstioCniOverrides + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cni_bin_dir** | **str** | | [optional] +**cni_conf_dir** | **str** | | [optional] + +## Example + +```python +from platform_api_python_client.models.istio_cni_overrides import IstioCniOverrides + +# TODO update the JSON string below +json = "{}" +# create an instance of IstioCniOverrides from a JSON string +istio_cni_overrides_instance = IstioCniOverrides.from_json(json) +# print the JSON string representation of the object +print(IstioCniOverrides.to_json()) + +# convert the object into a dict +istio_cni_overrides_dict = istio_cni_overrides_instance.to_dict() +# create an instance of IstioCniOverrides from a dict +istio_cni_overrides_from_dict = IstioCniOverrides.from_dict(istio_cni_overrides_dict) +``` +[[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/IstioCniSubchartOverrides.md b/docs/IstioCniSubchartOverrides.md new file mode 100644 index 0000000..775d603 --- /dev/null +++ b/docs/IstioCniSubchartOverrides.md @@ -0,0 +1,29 @@ +# IstioCniSubchartOverrides + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cni** | [**IstioCniOverrides**](IstioCniOverrides.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.istio_cni_subchart_overrides import IstioCniSubchartOverrides + +# TODO update the JSON string below +json = "{}" +# create an instance of IstioCniSubchartOverrides from a JSON string +istio_cni_subchart_overrides_instance = IstioCniSubchartOverrides.from_json(json) +# print the JSON string representation of the object +print(IstioCniSubchartOverrides.to_json()) + +# convert the object into a dict +istio_cni_subchart_overrides_dict = istio_cni_subchart_overrides_instance.to_dict() +# create an instance of IstioCniSubchartOverrides from a dict +istio_cni_subchart_overrides_from_dict = IstioCniSubchartOverrides.from_dict(istio_cni_subchart_overrides_dict) +``` +[[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/IstioOverrides.md b/docs/IstioOverrides.md new file mode 100644 index 0000000..8dd0e08 --- /dev/null +++ b/docs/IstioOverrides.md @@ -0,0 +1,29 @@ +# IstioOverrides + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**istio_cni** | [**IstioCniSubchartOverrides**](IstioCniSubchartOverrides.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.istio_overrides import IstioOverrides + +# TODO update the JSON string below +json = "{}" +# create an instance of IstioOverrides from a JSON string +istio_overrides_instance = IstioOverrides.from_json(json) +# print the JSON string representation of the object +print(IstioOverrides.to_json()) + +# convert the object into a dict +istio_overrides_dict = istio_overrides_instance.to_dict() +# create an instance of IstioOverrides from a dict +istio_overrides_from_dict = IstioOverrides.from_dict(istio_overrides_dict) +``` +[[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/Keda.md b/docs/Keda.md new file mode 100644 index 0000000..76bce46 --- /dev/null +++ b/docs/Keda.md @@ -0,0 +1,30 @@ +# Keda + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.keda import Keda + +# TODO update the JSON string below +json = "{}" +# create an instance of Keda from a JSON string +keda_instance = Keda.from_json(json) +# print the JSON string representation of the object +print(Keda.to_json()) + +# convert the object into a dict +keda_dict = keda_instance.to_dict() +# create an instance of Keda from a dict +keda_from_dict = Keda.from_dict(keda_dict) +``` +[[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/KubePrometheusStack.md b/docs/KubePrometheusStack.md new file mode 100644 index 0000000..5960b0d --- /dev/null +++ b/docs/KubePrometheusStack.md @@ -0,0 +1,30 @@ +# KubePrometheusStack + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.kube_prometheus_stack import KubePrometheusStack + +# TODO update the JSON string below +json = "{}" +# create an instance of KubePrometheusStack from a JSON string +kube_prometheus_stack_instance = KubePrometheusStack.from_json(json) +# print the JSON string representation of the object +print(KubePrometheusStack.to_json()) + +# convert the object into a dict +kube_prometheus_stack_dict = kube_prometheus_stack_instance.to_dict() +# create an instance of KubePrometheusStack from a dict +kube_prometheus_stack_from_dict = KubePrometheusStack.from_dict(kube_prometheus_stack_dict) +``` +[[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/Longhorn.md b/docs/Longhorn.md new file mode 100644 index 0000000..4d953c2 --- /dev/null +++ b/docs/Longhorn.md @@ -0,0 +1,30 @@ +# Longhorn + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.longhorn import Longhorn + +# TODO update the JSON string below +json = "{}" +# create an instance of Longhorn from a JSON string +longhorn_instance = Longhorn.from_json(json) +# print the JSON string representation of the object +print(Longhorn.to_json()) + +# convert the object into a dict +longhorn_dict = longhorn_instance.to_dict() +# create an instance of Longhorn from a dict +longhorn_from_dict = Longhorn.from_dict(longhorn_dict) +``` +[[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/MetricsServer.md b/docs/MetricsServer.md new file mode 100644 index 0000000..b8ed3fb --- /dev/null +++ b/docs/MetricsServer.md @@ -0,0 +1,30 @@ +# MetricsServer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.metrics_server import MetricsServer + +# TODO update the JSON string below +json = "{}" +# create an instance of MetricsServer from a JSON string +metrics_server_instance = MetricsServer.from_json(json) +# print the JSON string representation of the object +print(MetricsServer.to_json()) + +# convert the object into a dict +metrics_server_dict = metrics_server_instance.to_dict() +# create an instance of MetricsServer from a dict +metrics_server_from_dict = MetricsServer.from_dict(metrics_server_dict) +``` +[[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/NetworkOperator.md b/docs/NetworkOperator.md new file mode 100644 index 0000000..eb9a55a --- /dev/null +++ b/docs/NetworkOperator.md @@ -0,0 +1,30 @@ +# NetworkOperator + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.network_operator import NetworkOperator + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkOperator from a JSON string +network_operator_instance = NetworkOperator.from_json(json) +# print the JSON string representation of the object +print(NetworkOperator.to_json()) + +# convert the object into a dict +network_operator_dict = network_operator_instance.to_dict() +# create an instance of NetworkOperator from a dict +network_operator_from_dict = NetworkOperator.from_dict(network_operator_dict) +``` +[[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/OpentelemetryCollector.md b/docs/OpentelemetryCollector.md new file mode 100644 index 0000000..f5c1130 --- /dev/null +++ b/docs/OpentelemetryCollector.md @@ -0,0 +1,30 @@ +# OpentelemetryCollector + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.opentelemetry_collector import OpentelemetryCollector + +# TODO update the JSON string below +json = "{}" +# create an instance of OpentelemetryCollector from a JSON string +opentelemetry_collector_instance = OpentelemetryCollector.from_json(json) +# print the JSON string representation of the object +print(OpentelemetryCollector.to_json()) + +# convert the object into a dict +opentelemetry_collector_dict = opentelemetry_collector_instance.to_dict() +# create an instance of OpentelemetryCollector from a dict +opentelemetry_collector_from_dict = OpentelemetryCollector.from_dict(opentelemetry_collector_dict) +``` +[[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/PrometheusAdapter.md b/docs/PrometheusAdapter.md new file mode 100644 index 0000000..a71502e --- /dev/null +++ b/docs/PrometheusAdapter.md @@ -0,0 +1,30 @@ +# PrometheusAdapter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.prometheus_adapter import PrometheusAdapter + +# TODO update the JSON string below +json = "{}" +# create an instance of PrometheusAdapter from a JSON string +prometheus_adapter_instance = PrometheusAdapter.from_json(json) +# print the JSON string representation of the object +print(PrometheusAdapter.to_json()) + +# convert the object into a dict +prometheus_adapter_dict = prometheus_adapter_instance.to_dict() +# create an instance of PrometheusAdapter from a dict +prometheus_adapter_from_dict = PrometheusAdapter.from_dict(prometheus_adapter_dict) +``` +[[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/Spire.md b/docs/Spire.md new file mode 100644 index 0000000..c70c8aa --- /dev/null +++ b/docs/Spire.md @@ -0,0 +1,30 @@ +# Spire + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.spire import Spire + +# TODO update the JSON string below +json = "{}" +# create an instance of Spire from a JSON string +spire_instance = Spire.from_json(json) +# print the JSON string representation of the object +print(Spire.to_json()) + +# convert the object into a dict +spire_dict = spire_instance.to_dict() +# create an instance of Spire from a dict +spire_from_dict = Spire.from_dict(spire_dict) +``` +[[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/SpireCrds.md b/docs/SpireCrds.md new file mode 100644 index 0000000..4496315 --- /dev/null +++ b/docs/SpireCrds.md @@ -0,0 +1,30 @@ +# SpireCrds + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.spire_crds import SpireCrds + +# TODO update the JSON string below +json = "{}" +# create an instance of SpireCrds from a JSON string +spire_crds_instance = SpireCrds.from_json(json) +# print the JSON string representation of the object +print(SpireCrds.to_json()) + +# convert the object into a dict +spire_crds_dict = spire_crds_instance.to_dict() +# create an instance of SpireCrds from a dict +spire_crds_from_dict = SpireCrds.from_dict(spire_crds_dict) +``` +[[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/TeleportKubeAgent.md b/docs/TeleportKubeAgent.md new file mode 100644 index 0000000..66d41a9 --- /dev/null +++ b/docs/TeleportKubeAgent.md @@ -0,0 +1,30 @@ +# TeleportKubeAgent + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] [default to True] +**values** | **object** | | [optional] + +## Example + +```python +from platform_api_python_client.models.teleport_kube_agent import TeleportKubeAgent + +# TODO update the JSON string below +json = "{}" +# create an instance of TeleportKubeAgent from a JSON string +teleport_kube_agent_instance = TeleportKubeAgent.from_json(json) +# print the JSON string representation of the object +print(TeleportKubeAgent.to_json()) + +# convert the object into a dict +teleport_kube_agent_dict = teleport_kube_agent_instance.to_dict() +# create an instance of TeleportKubeAgent from a dict +teleport_kube_agent_from_dict = TeleportKubeAgent.from_dict(teleport_kube_agent_dict) +``` +[[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/platform_api_python_client/__init__.py b/platform_api_python_client/__init__.py index 1bda0e9..33bfabf 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "4.18.0" +__version__ = "4.19.0" # import apis into sdk package from platform_api_python_client.api.external_api import EXTERNALApi @@ -31,11 +31,19 @@ from platform_api_python_client.exceptions import ApiException # import models into sdk package +from platform_api_python_client.models.argo_rollouts import ArgoRollouts from platform_api_python_client.models.backend_protocol import BackendProtocol from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe +from platform_api_python_client.models.cert_manager import CertManager +from platform_api_python_client.models.cloud_provider import CloudProvider from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse +from platform_api_python_client.models.cluster_components import ClusterComponents +from platform_api_python_client.models.cluster_config import ClusterConfig +from platform_api_python_client.models.cluster_credential import ClusterCredential +from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest +from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse from platform_api_python_client.models.config_file_mount import ConfigFileMount from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest @@ -51,8 +59,6 @@ from platform_api_python_client.models.create_organization_response import CreateOrganizationResponse from platform_api_python_client.models.create_service_account_request import CreateServiceAccountRequest from platform_api_python_client.models.create_service_account_response import CreateServiceAccountResponse -from platform_api_python_client.models.create_url_request import CreateUrlRequest -from platform_api_python_client.models.create_url_response import CreateUrlResponse from platform_api_python_client.models.credits_response import CreditsResponse from platform_api_python_client.models.daily_bill_response import DailyBillResponse from platform_api_python_client.models.deployment_response import DeploymentResponse @@ -63,6 +69,9 @@ from platform_api_python_client.models.deployment_type import DeploymentType from platform_api_python_client.models.deployment_usage import DeploymentUsage from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue +from platform_api_python_client.models.external_dns import ExternalDns +from platform_api_python_client.models.final_stack import FinalStack +from platform_api_python_client.models.fluent_bit import FluentBit from platform_api_python_client.models.generate_service_account_secret_response import GenerateServiceAccountSecretResponse from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse @@ -75,11 +84,19 @@ from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse +from platform_api_python_client.models.gpu_operator import GpuOperator from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity from platform_api_python_client.models.http_validation_error import HTTPValidationError from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials +from platform_api_python_client.models.ingress_nginx import IngressNginx from platform_api_python_client.models.invite_user_request import InviteUserRequest +from platform_api_python_client.models.istio import Istio +from platform_api_python_client.models.istio_cni_overrides import IstioCniOverrides +from platform_api_python_client.models.istio_cni_subchart_overrides import IstioCniSubchartOverrides +from platform_api_python_client.models.istio_overrides import IstioOverrides +from platform_api_python_client.models.keda import Keda +from platform_api_python_client.models.kube_prometheus_stack import KubePrometheusStack from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse @@ -90,16 +107,24 @@ from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse from platform_api_python_client.models.list_service_accounts_response import ListServiceAccountsResponse from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse +from platform_api_python_client.models.longhorn import Longhorn from platform_api_python_client.models.metric import Metric from platform_api_python_client.models.metrics_config import MetricsConfig +from platform_api_python_client.models.metrics_server import MetricsServer +from platform_api_python_client.models.network_operator import NetworkOperator +from platform_api_python_client.models.opentelemetry_collector import OpentelemetryCollector from platform_api_python_client.models.pod_details import PodDetails from platform_api_python_client.models.pod_status import PodStatus from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse +from platform_api_python_client.models.prometheus_adapter import PrometheusAdapter from platform_api_python_client.models.revision_pod_details import RevisionPodDetails from platform_api_python_client.models.rollout_status import RolloutStatus from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams from platform_api_python_client.models.service_account_response import ServiceAccountResponse from platform_api_python_client.models.service_status import ServiceStatus +from platform_api_python_client.models.spire import Spire +from platform_api_python_client.models.spire_crds import SpireCrds +from platform_api_python_client.models.teleport_kube_agent import TeleportKubeAgent from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse from platform_api_python_client.models.update_deployment_status_v3_request import UpdateDeploymentStatusV3Request from platform_api_python_client.models.update_service_account_request import UpdateServiceAccountRequest diff --git a/platform_api_python_client/api/external_api.py b/platform_api_python_client/api/external_api.py index da51151..c3a504d 100644 --- a/platform_api_python_client/api/external_api.py +++ b/platform_api_python_client/api/external_api.py @@ -19,6 +19,9 @@ from datetime import date from pydantic import StrictBool, StrictInt, StrictStr from typing import Any, Optional +from platform_api_python_client.models.cluster_config import ClusterConfig +from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest +from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse @@ -33,8 +36,6 @@ from platform_api_python_client.models.create_organization_response import CreateOrganizationResponse from platform_api_python_client.models.create_service_account_request import CreateServiceAccountRequest from platform_api_python_client.models.create_service_account_response import CreateServiceAccountResponse -from platform_api_python_client.models.create_url_request import CreateUrlRequest -from platform_api_python_client.models.create_url_response import CreateUrlResponse from platform_api_python_client.models.credits_response import CreditsResponse from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest from platform_api_python_client.models.deployment_status_response import DeploymentStatusResponse @@ -89,6 +90,280 @@ def __init__(self, api_client=None) -> None: self.api_client = api_client + @validate_call + def create_cluster_clusters_post( + self, + cluster_registration_request: ClusterRegistrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ClusterRegistrationResponse: + """Create Cluster + + + :param cluster_registration_request: (required) + :type cluster_registration_request: ClusterRegistrationRequest + :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. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_cluster_clusters_post_serialize( + cluster_registration_request=cluster_registration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ClusterRegistrationResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def create_cluster_clusters_post_with_http_info( + self, + cluster_registration_request: ClusterRegistrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ClusterRegistrationResponse]: + """Create Cluster + + + :param cluster_registration_request: (required) + :type cluster_registration_request: ClusterRegistrationRequest + :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. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_cluster_clusters_post_serialize( + cluster_registration_request=cluster_registration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ClusterRegistrationResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def create_cluster_clusters_post_without_preload_content( + self, + cluster_registration_request: ClusterRegistrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Create Cluster + + + :param cluster_registration_request: (required) + :type cluster_registration_request: ClusterRegistrationRequest + :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. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._create_cluster_clusters_post_serialize( + cluster_registration_request=cluster_registration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ClusterRegistrationResponse", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _create_cluster_clusters_post_serialize( + self, + cluster_registration_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if cluster_registration_request is not None: + _body_params = cluster_registration_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/clusters', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def create_compute_deployment_deployments_compute_post( self, @@ -2469,9 +2744,9 @@ def _create_service_account_service_accounts_post_serialize( @validate_call - def delete_hardware_instance_hardware_instances_hardware_instance_id_delete( + def delete_cluster_clusters_cluster_id_delete( self, - hardware_instance_id: StrictInt, + cluster_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2484,12 +2759,12 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """Delete Hardware Instance + ) -> object: + """Delete Cluster - :param hardware_instance_id: (required) - :type hardware_instance_id: int + :param cluster_id: (required) + :type cluster_id: int :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 @@ -2512,8 +2787,8 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize( - hardware_instance_id=hardware_instance_id, + _param = self._delete_cluster_clusters_cluster_id_delete_serialize( + cluster_id=cluster_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2521,7 +2796,7 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2536,9 +2811,9 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete( @validate_call - def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with_http_info( + def delete_cluster_clusters_cluster_id_delete_with_http_info( self, - hardware_instance_id: StrictInt, + cluster_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2551,12 +2826,12 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """Delete Hardware Instance + ) -> ApiResponse[object]: + """Delete Cluster - :param hardware_instance_id: (required) - :type hardware_instance_id: int + :param cluster_id: (required) + :type cluster_id: int :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 @@ -2579,8 +2854,8 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with :return: Returns the result object. """ # noqa: E501 - _param = self._delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize( - hardware_instance_id=hardware_instance_id, + _param = self._delete_cluster_clusters_cluster_id_delete_serialize( + cluster_id=cluster_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2588,7 +2863,7 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2603,9 +2878,9 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with @validate_call - def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_without_preload_content( + def delete_cluster_clusters_cluster_id_delete_without_preload_content( self, - hardware_instance_id: StrictInt, + cluster_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2619,11 +2894,11 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Hardware Instance + """Delete Cluster - :param hardware_instance_id: (required) - :type hardware_instance_id: int + :param cluster_id: (required) + :type cluster_id: int :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 @@ -2646,8 +2921,8 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with :return: Returns the result object. """ # noqa: E501 - _param = self._delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize( - hardware_instance_id=hardware_instance_id, + _param = self._delete_cluster_clusters_cluster_id_delete_serialize( + cluster_id=cluster_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2655,7 +2930,7 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2665,9 +2940,9 @@ def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with return response_data.response - def _delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize( + def _delete_cluster_clusters_cluster_id_delete_serialize( self, - hardware_instance_id, + cluster_id, _request_auth, _content_type, _headers, @@ -2689,8 +2964,8 @@ def _delete_hardware_instance_hardware_instances_hardware_instance_id_delete_ser _body_params: Optional[bytes] = None # process the path parameters - if hardware_instance_id is not None: - _path_params['hardware_instance_id'] = hardware_instance_id + if cluster_id is not None: + _path_params['cluster_id'] = cluster_id # process the query parameters # process the header parameters # process the form parameters @@ -2713,7 +2988,7 @@ def _delete_hardware_instance_hardware_instances_hardware_instance_id_delete_ser return self.api_client.param_serialize( method='DELETE', - resource_path='/hardware-instances/{hardware_instance_id}', + resource_path='/clusters/{cluster_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2730,9 +3005,9 @@ def _delete_hardware_instance_hardware_instances_hardware_instance_id_delete_ser @validate_call - def delete_service_account_service_accounts_workos_id_delete( + def delete_hardware_instance_hardware_instances_hardware_instance_id_delete( self, - workos_id: StrictStr, + hardware_instance_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2746,11 +3021,11 @@ def delete_service_account_service_accounts_workos_id_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """Delete Service Account + """Delete Hardware Instance - :param workos_id: (required) - :type workos_id: str + :param hardware_instance_id: (required) + :type hardware_instance_id: int :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 @@ -2773,8 +3048,8 @@ def delete_service_account_service_accounts_workos_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_service_account_service_accounts_workos_id_delete_serialize( - workos_id=workos_id, + _param = self._delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize( + hardware_instance_id=hardware_instance_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2797,9 +3072,9 @@ def delete_service_account_service_accounts_workos_id_delete( @validate_call - def delete_service_account_service_accounts_workos_id_delete_with_http_info( + def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_with_http_info( self, - workos_id: StrictStr, + hardware_instance_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2813,11 +3088,11 @@ def delete_service_account_service_accounts_workos_id_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """Delete Service Account + """Delete Hardware Instance - :param workos_id: (required) - :type workos_id: str + :param hardware_instance_id: (required) + :type hardware_instance_id: int :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 @@ -2840,8 +3115,8 @@ def delete_service_account_service_accounts_workos_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_service_account_service_accounts_workos_id_delete_serialize( - workos_id=workos_id, + _param = self._delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize( + hardware_instance_id=hardware_instance_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2864,9 +3139,9 @@ def delete_service_account_service_accounts_workos_id_delete_with_http_info( @validate_call - def delete_service_account_service_accounts_workos_id_delete_without_preload_content( + def delete_hardware_instance_hardware_instances_hardware_instance_id_delete_without_preload_content( self, - workos_id: StrictStr, + hardware_instance_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2880,11 +3155,11 @@ def delete_service_account_service_accounts_workos_id_delete_without_preload_con _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete Service Account + """Delete Hardware Instance - :param workos_id: (required) - :type workos_id: str + :param hardware_instance_id: (required) + :type hardware_instance_id: int :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 @@ -2907,8 +3182,8 @@ def delete_service_account_service_accounts_workos_id_delete_without_preload_con :return: Returns the result object. """ # noqa: E501 - _param = self._delete_service_account_service_accounts_workos_id_delete_serialize( - workos_id=workos_id, + _param = self._delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize( + hardware_instance_id=hardware_instance_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2926,9 +3201,9 @@ def delete_service_account_service_accounts_workos_id_delete_without_preload_con return response_data.response - def _delete_service_account_service_accounts_workos_id_delete_serialize( + def _delete_hardware_instance_hardware_instances_hardware_instance_id_delete_serialize( self, - workos_id, + hardware_instance_id, _request_auth, _content_type, _headers, @@ -2950,8 +3225,8 @@ def _delete_service_account_service_accounts_workos_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if workos_id is not None: - _path_params['workos_id'] = workos_id + if hardware_instance_id is not None: + _path_params['hardware_instance_id'] = hardware_instance_id # process the query parameters # process the header parameters # process the form parameters @@ -2974,7 +3249,7 @@ def _delete_service_account_service_accounts_workos_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/service-accounts/{workos_id}', + resource_path='/hardware-instances/{hardware_instance_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2991,9 +3266,9 @@ def _delete_service_account_service_accounts_workos_id_delete_serialize( @validate_call - def delete_user_vault_item_endpoint_user_vault_delete( + def delete_service_account_service_accounts_workos_id_delete( self, - user_vault_item: UserVaultItem, + workos_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3006,13 +3281,12 @@ def delete_user_vault_item_endpoint_user_vault_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """Delete User Vault Item Endpoint + ) -> None: + """Delete Service Account - Delete an item of a specific type for the user. - :param user_vault_item: (required) - :type user_vault_item: UserVaultItem + :param workos_id: (required) + :type workos_id: str :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 @@ -3035,8 +3309,8 @@ def delete_user_vault_item_endpoint_user_vault_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( - user_vault_item=user_vault_item, + _param = self._delete_service_account_service_accounts_workos_id_delete_serialize( + workos_id=workos_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3044,7 +3318,7 @@ def delete_user_vault_item_endpoint_user_vault_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -3059,9 +3333,9 @@ def delete_user_vault_item_endpoint_user_vault_delete( @validate_call - def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( + def delete_service_account_service_accounts_workos_id_delete_with_http_info( self, - user_vault_item: UserVaultItem, + workos_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3074,13 +3348,12 @@ def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """Delete User Vault Item Endpoint + ) -> ApiResponse[None]: + """Delete Service Account - Delete an item of a specific type for the user. - :param user_vault_item: (required) - :type user_vault_item: UserVaultItem + :param workos_id: (required) + :type workos_id: str :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 @@ -3103,8 +3376,8 @@ def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( - user_vault_item=user_vault_item, + _param = self._delete_service_account_service_accounts_workos_id_delete_serialize( + workos_id=workos_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3112,7 +3385,7 @@ def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -3127,9 +3400,9 @@ def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( @validate_call - def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( + def delete_service_account_service_accounts_workos_id_delete_without_preload_content( self, - user_vault_item: UserVaultItem, + workos_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3143,12 +3416,11 @@ def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Delete User Vault Item Endpoint + """Delete Service Account - Delete an item of a specific type for the user. - :param user_vault_item: (required) - :type user_vault_item: UserVaultItem + :param workos_id: (required) + :type workos_id: str :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 @@ -3171,8 +3443,8 @@ def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( - user_vault_item=user_vault_item, + _param = self._delete_service_account_service_accounts_workos_id_delete_serialize( + workos_id=workos_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3180,7 +3452,7 @@ def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -3190,9 +3462,9 @@ def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( return response_data.response - def _delete_user_vault_item_endpoint_user_vault_delete_serialize( + def _delete_service_account_service_accounts_workos_id_delete_serialize( self, - user_vault_item, + workos_id, _request_auth, _content_type, _headers, @@ -3214,12 +3486,12 @@ def _delete_user_vault_item_endpoint_user_vault_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters + if workos_id is not None: + _path_params['workos_id'] = workos_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if user_vault_item is not None: - _body_params = user_vault_item # set the HTTP header `Accept` @@ -3230,19 +3502,6 @@ def _delete_user_vault_item_endpoint_user_vault_delete_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -3251,7 +3510,7 @@ def _delete_user_vault_item_endpoint_user_vault_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/user_vault', + resource_path='/service-accounts/{workos_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3268,9 +3527,9 @@ def _delete_user_vault_item_endpoint_user_vault_delete_serialize( @validate_call - def download_url_file_url_download_post( + def delete_user_vault_item_endpoint_user_vault_delete( self, - create_url_request: CreateUrlRequest, + user_vault_item: UserVaultItem, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3283,12 +3542,13 @@ def download_url_file_url_download_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateUrlResponse: - """Download Url + ) -> object: + """Delete User Vault Item Endpoint + Delete an item of a specific type for the user. - :param create_url_request: (required) - :type create_url_request: CreateUrlRequest + :param user_vault_item: (required) + :type user_vault_item: UserVaultItem :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 @@ -3311,8 +3571,8 @@ def download_url_file_url_download_post( :return: Returns the result object. """ # noqa: E501 - _param = self._download_url_file_url_download_post_serialize( - create_url_request=create_url_request, + _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( + user_vault_item=user_vault_item, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3320,7 +3580,7 @@ def download_url_file_url_download_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUrlResponse", + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -3335,9 +3595,9 @@ def download_url_file_url_download_post( @validate_call - def download_url_file_url_download_post_with_http_info( + def delete_user_vault_item_endpoint_user_vault_delete_with_http_info( self, - create_url_request: CreateUrlRequest, + user_vault_item: UserVaultItem, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3350,12 +3610,13 @@ def download_url_file_url_download_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateUrlResponse]: - """Download Url + ) -> ApiResponse[object]: + """Delete User Vault Item Endpoint + Delete an item of a specific type for the user. - :param create_url_request: (required) - :type create_url_request: CreateUrlRequest + :param user_vault_item: (required) + :type user_vault_item: UserVaultItem :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 @@ -3378,8 +3639,8 @@ def download_url_file_url_download_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._download_url_file_url_download_post_serialize( - create_url_request=create_url_request, + _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( + user_vault_item=user_vault_item, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3387,7 +3648,7 @@ def download_url_file_url_download_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUrlResponse", + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -3402,9 +3663,9 @@ def download_url_file_url_download_post_with_http_info( @validate_call - def download_url_file_url_download_post_without_preload_content( + def delete_user_vault_item_endpoint_user_vault_delete_without_preload_content( self, - create_url_request: CreateUrlRequest, + user_vault_item: UserVaultItem, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3418,11 +3679,12 @@ def download_url_file_url_download_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Download Url + """Delete User Vault Item Endpoint + Delete an item of a specific type for the user. - :param create_url_request: (required) - :type create_url_request: CreateUrlRequest + :param user_vault_item: (required) + :type user_vault_item: UserVaultItem :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 @@ -3445,8 +3707,8 @@ def download_url_file_url_download_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._download_url_file_url_download_post_serialize( - create_url_request=create_url_request, + _param = self._delete_user_vault_item_endpoint_user_vault_delete_serialize( + user_vault_item=user_vault_item, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3454,7 +3716,7 @@ def download_url_file_url_download_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUrlResponse", + '200': "object", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -3464,9 +3726,9 @@ def download_url_file_url_download_post_without_preload_content( return response_data.response - def _download_url_file_url_download_post_serialize( + def _delete_user_vault_item_endpoint_user_vault_delete_serialize( self, - create_url_request, + user_vault_item, _request_auth, _content_type, _headers, @@ -3492,8 +3754,8 @@ def _download_url_file_url_download_post_serialize( # process the header parameters # process the form parameters # process the body parameter - if create_url_request is not None: - _body_params = create_url_request + if user_vault_item is not None: + _body_params = user_vault_item # set the HTTP header `Accept` @@ -3524,8 +3786,8 @@ def _download_url_file_url_download_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/file_url/download', + method='DELETE', + resource_path='/user_vault', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10964,7 +11226,296 @@ def _setup_stripe_customer_payments_setup_post_serialize( 'application/json' ] ) - + + + # authentication setting + _auth_settings: List[str] = [ + 'HTTPBearer' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/payments/setup', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def update_cluster_clusters_cluster_id_put( + self, + cluster_id: StrictInt, + cluster_config: ClusterConfig, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> object: + """Update Cluster + + + :param cluster_id: (required) + :type cluster_id: int + :param cluster_config: (required) + :type cluster_config: ClusterConfig + :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. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_cluster_clusters_cluster_id_put_serialize( + cluster_id=cluster_id, + cluster_config=cluster_config, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def update_cluster_clusters_cluster_id_put_with_http_info( + self, + cluster_id: StrictInt, + cluster_config: ClusterConfig, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """Update Cluster + + + :param cluster_id: (required) + :type cluster_id: int + :param cluster_config: (required) + :type cluster_config: ClusterConfig + :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. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_cluster_clusters_cluster_id_put_serialize( + cluster_id=cluster_id, + cluster_config=cluster_config, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def update_cluster_clusters_cluster_id_put_without_preload_content( + self, + cluster_id: StrictInt, + cluster_config: ClusterConfig, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Update Cluster + + + :param cluster_id: (required) + :type cluster_id: int + :param cluster_config: (required) + :type cluster_config: ClusterConfig + :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. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._update_cluster_clusters_cluster_id_put_serialize( + cluster_id=cluster_id, + cluster_config=cluster_config, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + '422': "HTTPValidationError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _update_cluster_clusters_cluster_id_put_serialize( + self, + cluster_id, + cluster_config, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if cluster_id is not None: + _path_params['cluster_id'] = cluster_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if cluster_config is not None: + _body_params = cluster_config + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10972,8 +11523,8 @@ def _setup_stripe_customer_payments_setup_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/payments/setup', + method='PUT', + resource_path='/clusters/{cluster_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13494,277 +14045,3 @@ def _update_user_vault_item_endpoint_user_vault_put_serialize( ) - - - @validate_call - def upload_url_file_url_upload_post( - self, - create_url_request: CreateUrlRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateUrlResponse: - """Upload Url - - - :param create_url_request: (required) - :type create_url_request: CreateUrlRequest - :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. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_url_file_url_upload_post_serialize( - create_url_request=create_url_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUrlResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def upload_url_file_url_upload_post_with_http_info( - self, - create_url_request: CreateUrlRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateUrlResponse]: - """Upload Url - - - :param create_url_request: (required) - :type create_url_request: CreateUrlRequest - :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. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_url_file_url_upload_post_serialize( - create_url_request=create_url_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUrlResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def upload_url_file_url_upload_post_without_preload_content( - self, - create_url_request: CreateUrlRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """Upload Url - - - :param create_url_request: (required) - :type create_url_request: CreateUrlRequest - :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. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._upload_url_file_url_upload_post_serialize( - create_url_request=create_url_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUrlResponse", - '422': "HTTPValidationError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _upload_url_file_url_upload_post_serialize( - self, - create_url_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if create_url_request is not None: - _body_params = create_url_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'HTTPBearer' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/file_url/upload', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - diff --git a/platform_api_python_client/api_client.py b/platform_api_python_client/api_client.py index b355bcd..163f432 100644 --- a/platform_api_python_client/api_client.py +++ b/platform_api_python_client/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/4.18.0/python' + self.user_agent = 'OpenAPI-Generator/4.19.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/platform_api_python_client/configuration.py b/platform_api_python_client/configuration.py index 7f7469e..9146c63 100644 --- a/platform_api_python_client/configuration.py +++ b/platform_api_python_client/configuration.py @@ -392,7 +392,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.1.0\n"\ - "SDK Package Version: 4.18.0".\ + "SDK Package Version: 4.19.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/platform_api_python_client/models/__init__.py b/platform_api_python_client/models/__init__.py index 5fec179..124d214 100644 --- a/platform_api_python_client/models/__init__.py +++ b/platform_api_python_client/models/__init__.py @@ -14,11 +14,19 @@ # import models into model package +from platform_api_python_client.models.argo_rollouts import ArgoRollouts from platform_api_python_client.models.backend_protocol import BackendProtocol from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePerf from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe +from platform_api_python_client.models.cert_manager import CertManager +from platform_api_python_client.models.cloud_provider import CloudProvider from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse +from platform_api_python_client.models.cluster_components import ClusterComponents +from platform_api_python_client.models.cluster_config import ClusterConfig +from platform_api_python_client.models.cluster_credential import ClusterCredential +from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest +from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse from platform_api_python_client.models.config_file_mount import ConfigFileMount from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest @@ -34,8 +42,6 @@ from platform_api_python_client.models.create_organization_response import CreateOrganizationResponse from platform_api_python_client.models.create_service_account_request import CreateServiceAccountRequest from platform_api_python_client.models.create_service_account_response import CreateServiceAccountResponse -from platform_api_python_client.models.create_url_request import CreateUrlRequest -from platform_api_python_client.models.create_url_response import CreateUrlResponse from platform_api_python_client.models.credits_response import CreditsResponse from platform_api_python_client.models.daily_bill_response import DailyBillResponse from platform_api_python_client.models.deployment_response import DeploymentResponse @@ -46,6 +52,9 @@ from platform_api_python_client.models.deployment_type import DeploymentType from platform_api_python_client.models.deployment_usage import DeploymentUsage from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue +from platform_api_python_client.models.external_dns import ExternalDns +from platform_api_python_client.models.final_stack import FinalStack +from platform_api_python_client.models.fluent_bit import FluentBit from platform_api_python_client.models.generate_service_account_secret_response import GenerateServiceAccountSecretResponse from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse @@ -58,11 +67,19 @@ from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse +from platform_api_python_client.models.gpu_operator import GpuOperator from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity from platform_api_python_client.models.http_validation_error import HTTPValidationError from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials +from platform_api_python_client.models.ingress_nginx import IngressNginx from platform_api_python_client.models.invite_user_request import InviteUserRequest +from platform_api_python_client.models.istio import Istio +from platform_api_python_client.models.istio_cni_overrides import IstioCniOverrides +from platform_api_python_client.models.istio_cni_subchart_overrides import IstioCniSubchartOverrides +from platform_api_python_client.models.istio_overrides import IstioOverrides +from platform_api_python_client.models.keda import Keda +from platform_api_python_client.models.kube_prometheus_stack import KubePrometheusStack from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse @@ -73,16 +90,24 @@ from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse from platform_api_python_client.models.list_service_accounts_response import ListServiceAccountsResponse from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse +from platform_api_python_client.models.longhorn import Longhorn from platform_api_python_client.models.metric import Metric from platform_api_python_client.models.metrics_config import MetricsConfig +from platform_api_python_client.models.metrics_server import MetricsServer +from platform_api_python_client.models.network_operator import NetworkOperator +from platform_api_python_client.models.opentelemetry_collector import OpentelemetryCollector from platform_api_python_client.models.pod_details import PodDetails from platform_api_python_client.models.pod_status import PodStatus from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse +from platform_api_python_client.models.prometheus_adapter import PrometheusAdapter from platform_api_python_client.models.revision_pod_details import RevisionPodDetails from platform_api_python_client.models.rollout_status import RolloutStatus from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams from platform_api_python_client.models.service_account_response import ServiceAccountResponse from platform_api_python_client.models.service_status import ServiceStatus +from platform_api_python_client.models.spire import Spire +from platform_api_python_client.models.spire_crds import SpireCrds +from platform_api_python_client.models.teleport_kube_agent import TeleportKubeAgent from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse from platform_api_python_client.models.update_deployment_status_v3_request import UpdateDeploymentStatusV3Request from platform_api_python_client.models.update_service_account_request import UpdateServiceAccountRequest diff --git a/platform_api_python_client/models/argo_rollouts.py b/platform_api_python_client/models/argo_rollouts.py new file mode 100644 index 0000000..560cdce --- /dev/null +++ b/platform_api_python_client/models/argo_rollouts.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ArgoRollouts(BaseModel): + """ + ArgoRollouts + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ArgoRollouts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ArgoRollouts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/cert_manager.py b/platform_api_python_client/models/cert_manager.py new file mode 100644 index 0000000..84200b5 --- /dev/null +++ b/platform_api_python_client/models/cert_manager.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class CertManager(BaseModel): + """ + CertManager + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CertManager from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CertManager from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/cloud_provider.py b/platform_api_python_client/models/cloud_provider.py new file mode 100644 index 0000000..ad29111 --- /dev/null +++ b/platform_api_python_client/models/cloud_provider.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class CloudProvider(str, Enum): + """ + CloudProvider + """ + + """ + allowed enum values + """ + GCP = 'gcp' + AWS = 'aws' + AZURE = 'azure' + NEBIUS = 'nebius' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of CloudProvider from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/platform_api_python_client/models/cluster_components.py b/platform_api_python_client/models/cluster_components.py new file mode 100644 index 0000000..9915b26 --- /dev/null +++ b/platform_api_python_client/models/cluster_components.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.argo_rollouts import ArgoRollouts +from platform_api_python_client.models.cert_manager import CertManager +from platform_api_python_client.models.external_dns import ExternalDns +from platform_api_python_client.models.final_stack import FinalStack +from platform_api_python_client.models.fluent_bit import FluentBit +from platform_api_python_client.models.gpu_operator import GpuOperator +from platform_api_python_client.models.ingress_nginx import IngressNginx +from platform_api_python_client.models.istio import Istio +from platform_api_python_client.models.keda import Keda +from platform_api_python_client.models.kube_prometheus_stack import KubePrometheusStack +from platform_api_python_client.models.longhorn import Longhorn +from platform_api_python_client.models.metrics_server import MetricsServer +from platform_api_python_client.models.network_operator import NetworkOperator +from platform_api_python_client.models.opentelemetry_collector import OpentelemetryCollector +from platform_api_python_client.models.prometheus_adapter import PrometheusAdapter +from platform_api_python_client.models.spire import Spire +from platform_api_python_client.models.spire_crds import SpireCrds +from platform_api_python_client.models.teleport_kube_agent import TeleportKubeAgent +from typing import Optional, Set +from typing_extensions import Self + +class ClusterComponents(BaseModel): + """ + Per-component ApplicationSet entries — the caller-facing surface. This is the request-body schema for cluster updates: callers may flip `enabled` and supply per-component `values`, but nothing here is cluster identity. Cluster identity lives in `Shared` and is passed as serialization context when building ApplicationSet elements. Field declaration order is for code locality only — actual bring-up order is driven by each subclass's `wave` ClassVar (rendered into the child Application's argocd.argoproj.io/sync-wave annotation). + """ # noqa: E501 + kube_prometheus_stack: Optional[KubePrometheusStack] = None + istio: Optional[Istio] = None + cert_manager: Optional[CertManager] = None + ingress_nginx: Optional[IngressNginx] = None + spire_crds: Optional[SpireCrds] = None + spire: Optional[Spire] = None + external_dns: Optional[ExternalDns] = None + prometheus_adapter: Optional[PrometheusAdapter] = None + keda: Optional[Keda] = None + fluent_bit: Optional[FluentBit] = None + argo_rollouts: Optional[ArgoRollouts] = None + network_operator: Optional[NetworkOperator] = None + opentelemetry_collector: Optional[OpentelemetryCollector] = None + gpu_operator: Optional[GpuOperator] = None + longhorn: Optional[Longhorn] = None + metrics_server: Optional[MetricsServer] = None + teleport_kube_agent: Optional[TeleportKubeAgent] = None + final_stack: Optional[FinalStack] = None + __properties: ClassVar[List[str]] = ["kube_prometheus_stack", "istio", "cert_manager", "ingress_nginx", "spire_crds", "spire", "external_dns", "prometheus_adapter", "keda", "fluent_bit", "argo_rollouts", "network_operator", "opentelemetry_collector", "gpu_operator", "longhorn", "metrics_server", "teleport_kube_agent", "final_stack"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClusterComponents from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of kube_prometheus_stack + if self.kube_prometheus_stack: + _dict['kube_prometheus_stack'] = self.kube_prometheus_stack.to_dict() + # override the default output from pydantic by calling `to_dict()` of istio + if self.istio: + _dict['istio'] = self.istio.to_dict() + # override the default output from pydantic by calling `to_dict()` of cert_manager + if self.cert_manager: + _dict['cert_manager'] = self.cert_manager.to_dict() + # override the default output from pydantic by calling `to_dict()` of ingress_nginx + if self.ingress_nginx: + _dict['ingress_nginx'] = self.ingress_nginx.to_dict() + # override the default output from pydantic by calling `to_dict()` of spire_crds + if self.spire_crds: + _dict['spire_crds'] = self.spire_crds.to_dict() + # override the default output from pydantic by calling `to_dict()` of spire + if self.spire: + _dict['spire'] = self.spire.to_dict() + # override the default output from pydantic by calling `to_dict()` of external_dns + if self.external_dns: + _dict['external_dns'] = self.external_dns.to_dict() + # override the default output from pydantic by calling `to_dict()` of prometheus_adapter + if self.prometheus_adapter: + _dict['prometheus_adapter'] = self.prometheus_adapter.to_dict() + # override the default output from pydantic by calling `to_dict()` of keda + if self.keda: + _dict['keda'] = self.keda.to_dict() + # override the default output from pydantic by calling `to_dict()` of fluent_bit + if self.fluent_bit: + _dict['fluent_bit'] = self.fluent_bit.to_dict() + # override the default output from pydantic by calling `to_dict()` of argo_rollouts + if self.argo_rollouts: + _dict['argo_rollouts'] = self.argo_rollouts.to_dict() + # override the default output from pydantic by calling `to_dict()` of network_operator + if self.network_operator: + _dict['network_operator'] = self.network_operator.to_dict() + # override the default output from pydantic by calling `to_dict()` of opentelemetry_collector + if self.opentelemetry_collector: + _dict['opentelemetry_collector'] = self.opentelemetry_collector.to_dict() + # override the default output from pydantic by calling `to_dict()` of gpu_operator + if self.gpu_operator: + _dict['gpu_operator'] = self.gpu_operator.to_dict() + # override the default output from pydantic by calling `to_dict()` of longhorn + if self.longhorn: + _dict['longhorn'] = self.longhorn.to_dict() + # override the default output from pydantic by calling `to_dict()` of metrics_server + if self.metrics_server: + _dict['metrics_server'] = self.metrics_server.to_dict() + # override the default output from pydantic by calling `to_dict()` of teleport_kube_agent + if self.teleport_kube_agent: + _dict['teleport_kube_agent'] = self.teleport_kube_agent.to_dict() + # override the default output from pydantic by calling `to_dict()` of final_stack + if self.final_stack: + _dict['final_stack'] = self.final_stack.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClusterComponents from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "kube_prometheus_stack": KubePrometheusStack.from_dict(obj["kube_prometheus_stack"]) if obj.get("kube_prometheus_stack") is not None else None, + "istio": Istio.from_dict(obj["istio"]) if obj.get("istio") is not None else None, + "cert_manager": CertManager.from_dict(obj["cert_manager"]) if obj.get("cert_manager") is not None else None, + "ingress_nginx": IngressNginx.from_dict(obj["ingress_nginx"]) if obj.get("ingress_nginx") is not None else None, + "spire_crds": SpireCrds.from_dict(obj["spire_crds"]) if obj.get("spire_crds") is not None else None, + "spire": Spire.from_dict(obj["spire"]) if obj.get("spire") is not None else None, + "external_dns": ExternalDns.from_dict(obj["external_dns"]) if obj.get("external_dns") is not None else None, + "prometheus_adapter": PrometheusAdapter.from_dict(obj["prometheus_adapter"]) if obj.get("prometheus_adapter") is not None else None, + "keda": Keda.from_dict(obj["keda"]) if obj.get("keda") is not None else None, + "fluent_bit": FluentBit.from_dict(obj["fluent_bit"]) if obj.get("fluent_bit") is not None else None, + "argo_rollouts": ArgoRollouts.from_dict(obj["argo_rollouts"]) if obj.get("argo_rollouts") is not None else None, + "network_operator": NetworkOperator.from_dict(obj["network_operator"]) if obj.get("network_operator") is not None else None, + "opentelemetry_collector": OpentelemetryCollector.from_dict(obj["opentelemetry_collector"]) if obj.get("opentelemetry_collector") is not None else None, + "gpu_operator": GpuOperator.from_dict(obj["gpu_operator"]) if obj.get("gpu_operator") is not None else None, + "longhorn": Longhorn.from_dict(obj["longhorn"]) if obj.get("longhorn") is not None else None, + "metrics_server": MetricsServer.from_dict(obj["metrics_server"]) if obj.get("metrics_server") is not None else None, + "teleport_kube_agent": TeleportKubeAgent.from_dict(obj["teleport_kube_agent"]) if obj.get("teleport_kube_agent") is not None else None, + "final_stack": FinalStack.from_dict(obj["final_stack"]) if obj.get("final_stack") is not None else None + }) + return _obj + + diff --git a/platform_api_python_client/models/cluster_config.py b/platform_api_python_client/models/cluster_config.py new file mode 100644 index 0000000..1c0ed0a --- /dev/null +++ b/platform_api_python_client/models/cluster_config.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from platform_api_python_client.models.cluster_components import ClusterComponents +from typing import Optional, Set +from typing_extensions import Self + +class ClusterConfig(BaseModel): + """ + ClusterConfig + """ # noqa: E501 + components: ClusterComponents + __properties: ClassVar[List[str]] = ["components"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClusterConfig from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of components + if self.components: + _dict['components'] = self.components.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClusterConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "components": ClusterComponents.from_dict(obj["components"]) if obj.get("components") is not None else None + }) + return _obj + + diff --git a/platform_api_python_client/models/create_url_request.py b/platform_api_python_client/models/cluster_credential.py similarity index 81% rename from platform_api_python_client/models/create_url_request.py rename to platform_api_python_client/models/cluster_credential.py index 76e344b..695dc72 100644 --- a/platform_api_python_client/models/create_url_request.py +++ b/platform_api_python_client/models/cluster_credential.py @@ -22,13 +22,14 @@ from typing import Optional, Set from typing_extensions import Self -class CreateUrlRequest(BaseModel): +class ClusterCredential(BaseModel): """ - CreateUrlRequest + ClusterCredential """ # noqa: E501 - filename: StrictStr - extension: StrictStr - __properties: ClassVar[List[str]] = ["filename", "extension"] + server: StrictStr + bearer_token: StrictStr + ca_cert: StrictStr + __properties: ClassVar[List[str]] = ["server", "bearer_token", "ca_cert"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateUrlRequest from a JSON string""" + """Create an instance of ClusterCredential from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateUrlRequest from a dict""" + """Create an instance of ClusterCredential from a dict""" if obj is None: return None @@ -81,8 +82,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "filename": obj.get("filename"), - "extension": obj.get("extension") + "server": obj.get("server"), + "bearer_token": obj.get("bearer_token"), + "ca_cert": obj.get("ca_cert") }) return _obj diff --git a/platform_api_python_client/models/cluster_registration_request.py b/platform_api_python_client/models/cluster_registration_request.py new file mode 100644 index 0000000..d2d0830 --- /dev/null +++ b/platform_api_python_client/models/cluster_registration_request.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.cloud_provider import CloudProvider +from platform_api_python_client.models.cluster_credential import ClusterCredential +from typing import Optional, Set +from typing_extensions import Self + +class ClusterRegistrationRequest(BaseModel): + """ + ClusterRegistrationRequest + """ # noqa: E501 + display_name: StrictStr + storage_class: StrictStr + region: Optional[StrictStr] = None + cloud_provider: Optional[CloudProvider] = None + credential: ClusterCredential + __properties: ClassVar[List[str]] = ["display_name", "storage_class", "region", "cloud_provider", "credential"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClusterRegistrationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of credential + if self.credential: + _dict['credential'] = self.credential.to_dict() + # set to None if region (nullable) is None + # and model_fields_set contains the field + if self.region is None and "region" in self.model_fields_set: + _dict['region'] = None + + # set to None if cloud_provider (nullable) is None + # and model_fields_set contains the field + if self.cloud_provider is None and "cloud_provider" in self.model_fields_set: + _dict['cloud_provider'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClusterRegistrationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "display_name": obj.get("display_name"), + "storage_class": obj.get("storage_class"), + "region": obj.get("region"), + "cloud_provider": obj.get("cloud_provider"), + "credential": ClusterCredential.from_dict(obj["credential"]) if obj.get("credential") is not None else None + }) + return _obj + + diff --git a/platform_api_python_client/models/create_url_response.py b/platform_api_python_client/models/cluster_registration_response.py similarity index 83% rename from platform_api_python_client/models/create_url_response.py rename to platform_api_python_client/models/cluster_registration_response.py index 367a07f..f96d0fd 100644 --- a/platform_api_python_client/models/create_url_response.py +++ b/platform_api_python_client/models/cluster_registration_response.py @@ -17,18 +17,17 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List -from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -class CreateUrlResponse(BaseModel): +class ClusterRegistrationResponse(BaseModel): """ - CreateUrlResponse + ClusterRegistrationResponse """ # noqa: E501 - url: Annotated[str, Field(min_length=1, strict=True)] - __properties: ClassVar[List[str]] = ["url"] + id: StrictInt + __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CreateUrlResponse from a JSON string""" + """Create an instance of ClusterRegistrationResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CreateUrlResponse from a dict""" + """Create an instance of ClusterRegistrationResponse from a dict""" if obj is None: return None @@ -81,7 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "url": obj.get("url") + "id": obj.get("id") }) return _obj diff --git a/platform_api_python_client/models/create_job_deployment_request.py b/platform_api_python_client/models/create_job_deployment_request.py index 8bc3863..c906188 100644 --- a/platform_api_python_client/models/create_job_deployment_request.py +++ b/platform_api_python_client/models/create_job_deployment_request.py @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from platform_api_python_client.models.config_file_mount import ConfigFileMount from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials from typing import Optional, Set from typing_extensions import Self @@ -42,7 +43,8 @@ class CreateJobDeploymentRequest(BaseModel): backoff_limit: Optional[StrictInt] = 3 active_deadline_seconds: Optional[StrictInt] = None enable_logging: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "image_url", "image_pull_secret_credentials", "env_vars", "command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "enable_logging"] + config_file: Optional[ConfigFileMount] = None + __properties: ClassVar[List[str]] = ["name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "image_url", "image_pull_secret_credentials", "env_vars", "command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "enable_logging", "config_file"] @field_validator('name') def name_validate_regular_expression(cls, value): @@ -93,6 +95,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of image_pull_secret_credentials if self.image_pull_secret_credentials: _dict['image_pull_secret_credentials'] = self.image_pull_secret_credentials.to_dict() + # override the default output from pydantic by calling `to_dict()` of config_file + if self.config_file: + _dict['config_file'] = self.config_file.to_dict() # set to None if user_annotations (nullable) is None # and model_fields_set contains the field if self.user_annotations is None and "user_annotations" in self.model_fields_set: @@ -118,6 +123,11 @@ def to_dict(self) -> Dict[str, Any]: if self.active_deadline_seconds is None and "active_deadline_seconds" in self.model_fields_set: _dict['active_deadline_seconds'] = None + # set to None if config_file (nullable) is None + # and model_fields_set contains the field + if self.config_file is None and "config_file" in self.model_fields_set: + _dict['config_file'] = None + return _dict @classmethod @@ -143,7 +153,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "parallelism": obj.get("parallelism") if obj.get("parallelism") is not None else 1, "backoff_limit": obj.get("backoff_limit") if obj.get("backoff_limit") is not None else 3, "active_deadline_seconds": obj.get("active_deadline_seconds"), - "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True + "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True, + "config_file": ConfigFileMount.from_dict(obj["config_file"]) if obj.get("config_file") is not None else None }) return _obj diff --git a/platform_api_python_client/models/external_dns.py b/platform_api_python_client/models/external_dns.py new file mode 100644 index 0000000..f3ab5cb --- /dev/null +++ b/platform_api_python_client/models/external_dns.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ExternalDns(BaseModel): + """ + ExternalDns + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ExternalDns from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExternalDns from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/final_stack.py b/platform_api_python_client/models/final_stack.py new file mode 100644 index 0000000..09e4b87 --- /dev/null +++ b/platform_api_python_client/models/final_stack.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class FinalStack(BaseModel): + """ + FinalStack + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FinalStack from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FinalStack from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/fluent_bit.py b/platform_api_python_client/models/fluent_bit.py new file mode 100644 index 0000000..6c6d219 --- /dev/null +++ b/platform_api_python_client/models/fluent_bit.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class FluentBit(BaseModel): + """ + FluentBit + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FluentBit from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FluentBit from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/get_job_deployment_response.py b/platform_api_python_client/models/get_job_deployment_response.py index e7e3551..59e90e2 100644 --- a/platform_api_python_client/models/get_job_deployment_response.py +++ b/platform_api_python_client/models/get_job_deployment_response.py @@ -20,6 +20,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.config_file_mount import ConfigFileMount from platform_api_python_client.models.deployment_status import DeploymentStatus from platform_api_python_client.models.deployment_type import DeploymentType from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials @@ -52,7 +53,8 @@ class GetJobDeploymentResponse(BaseModel): active_deadline_seconds: Optional[StrictInt] = None image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None enable_logging: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "env_vars", "command", "args", "original_command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "image_pull_secret_credentials", "enable_logging"] + config_file: Optional[ConfigFileMount] = None + __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "env_vars", "command", "args", "original_command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "image_pull_secret_credentials", "enable_logging", "config_file"] model_config = ConfigDict( populate_by_name=True, @@ -96,6 +98,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of image_pull_secret_credentials if self.image_pull_secret_credentials: _dict['image_pull_secret_credentials'] = self.image_pull_secret_credentials.to_dict() + # override the default output from pydantic by calling `to_dict()` of config_file + if self.config_file: + _dict['config_file'] = self.config_file.to_dict() # set to None if image_url (nullable) is None # and model_fields_set contains the field if self.image_url is None and "image_url" in self.model_fields_set: @@ -136,6 +141,11 @@ def to_dict(self) -> Dict[str, Any]: if self.image_pull_secret_credentials is None and "image_pull_secret_credentials" in self.model_fields_set: _dict['image_pull_secret_credentials'] = None + # set to None if config_file (nullable) is None + # and model_fields_set contains the field + if self.config_file is None and "config_file" in self.model_fields_set: + _dict['config_file'] = None + return _dict @classmethod @@ -169,7 +179,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "backoff_limit": obj.get("backoff_limit") if obj.get("backoff_limit") is not None else 3, "active_deadline_seconds": obj.get("active_deadline_seconds"), "image_pull_secret_credentials": ImagePullSecretCredentials.from_dict(obj["image_pull_secret_credentials"]) if obj.get("image_pull_secret_credentials") is not None else None, - "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True + "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True, + "config_file": ConfigFileMount.from_dict(obj["config_file"]) if obj.get("config_file") is not None else None }) return _obj diff --git a/platform_api_python_client/models/gpu_operator.py b/platform_api_python_client/models/gpu_operator.py new file mode 100644 index 0000000..a18a613 --- /dev/null +++ b/platform_api_python_client/models/gpu_operator.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GpuOperator(BaseModel): + """ + GpuOperator + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GpuOperator from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GpuOperator from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/ingress_nginx.py b/platform_api_python_client/models/ingress_nginx.py new file mode 100644 index 0000000..ec898c4 --- /dev/null +++ b/platform_api_python_client/models/ingress_nginx.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class IngressNginx(BaseModel): + """ + IngressNginx + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IngressNginx from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IngressNginx from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/istio.py b/platform_api_python_client/models/istio.py new file mode 100644 index 0000000..4d2261a --- /dev/null +++ b/platform_api_python_client/models/istio.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.istio_overrides import IstioOverrides +from typing import Optional, Set +from typing_extensions import Self + +class Istio(BaseModel): + """ + Istio + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[IstioOverrides] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Istio from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of values + if self.values: + _dict['values'] = self.values.to_dict() + # set to None if values (nullable) is None + # and model_fields_set contains the field + if self.values is None and "values" in self.model_fields_set: + _dict['values'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Istio from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": IstioOverrides.from_dict(obj["values"]) if obj.get("values") is not None else None + }) + return _obj + + diff --git a/platform_api_python_client/models/istio_cni_overrides.py b/platform_api_python_client/models/istio_cni_overrides.py new file mode 100644 index 0000000..66f1d9e --- /dev/null +++ b/platform_api_python_client/models/istio_cni_overrides.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class IstioCniOverrides(BaseModel): + """ + IstioCniOverrides + """ # noqa: E501 + cni_bin_dir: Optional[StrictStr] = Field(default=None, alias="cniBinDir") + cni_conf_dir: Optional[StrictStr] = Field(default=None, alias="cniConfDir") + __properties: ClassVar[List[str]] = ["cniBinDir", "cniConfDir"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IstioCniOverrides from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if cni_bin_dir (nullable) is None + # and model_fields_set contains the field + if self.cni_bin_dir is None and "cni_bin_dir" in self.model_fields_set: + _dict['cniBinDir'] = None + + # set to None if cni_conf_dir (nullable) is None + # and model_fields_set contains the field + if self.cni_conf_dir is None and "cni_conf_dir" in self.model_fields_set: + _dict['cniConfDir'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IstioCniOverrides from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cniBinDir": obj.get("cniBinDir"), + "cniConfDir": obj.get("cniConfDir") + }) + return _obj + + diff --git a/platform_api_python_client/models/istio_cni_subchart_overrides.py b/platform_api_python_client/models/istio_cni_subchart_overrides.py new file mode 100644 index 0000000..5ef569a --- /dev/null +++ b/platform_api_python_client/models/istio_cni_subchart_overrides.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.istio_cni_overrides import IstioCniOverrides +from typing import Optional, Set +from typing_extensions import Self + +class IstioCniSubchartOverrides(BaseModel): + """ + IstioCniSubchartOverrides + """ # noqa: E501 + cni: Optional[IstioCniOverrides] = None + __properties: ClassVar[List[str]] = ["cni"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IstioCniSubchartOverrides from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of cni + if self.cni: + _dict['cni'] = self.cni.to_dict() + # set to None if cni (nullable) is None + # and model_fields_set contains the field + if self.cni is None and "cni" in self.model_fields_set: + _dict['cni'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IstioCniSubchartOverrides from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cni": IstioCniOverrides.from_dict(obj["cni"]) if obj.get("cni") is not None else None + }) + return _obj + + diff --git a/platform_api_python_client/models/istio_overrides.py b/platform_api_python_client/models/istio_overrides.py new file mode 100644 index 0000000..bdbf315 --- /dev/null +++ b/platform_api_python_client/models/istio_overrides.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.istio_cni_subchart_overrides import IstioCniSubchartOverrides +from typing import Optional, Set +from typing_extensions import Self + +class IstioOverrides(BaseModel): + """ + IstioOverrides + """ # noqa: E501 + istio_cni: Optional[IstioCniSubchartOverrides] = Field(default=None, alias="istio-cni") + __properties: ClassVar[List[str]] = ["istio-cni"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IstioOverrides from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of istio_cni + if self.istio_cni: + _dict['istio-cni'] = self.istio_cni.to_dict() + # set to None if istio_cni (nullable) is None + # and model_fields_set contains the field + if self.istio_cni is None and "istio_cni" in self.model_fields_set: + _dict['istio-cni'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IstioOverrides from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "istio-cni": IstioCniSubchartOverrides.from_dict(obj["istio-cni"]) if obj.get("istio-cni") is not None else None + }) + return _obj + + diff --git a/platform_api_python_client/models/keda.py b/platform_api_python_client/models/keda.py new file mode 100644 index 0000000..0928f48 --- /dev/null +++ b/platform_api_python_client/models/keda.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Keda(BaseModel): + """ + Keda + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Keda from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Keda from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/kube_prometheus_stack.py b/platform_api_python_client/models/kube_prometheus_stack.py new file mode 100644 index 0000000..6c3b08e --- /dev/null +++ b/platform_api_python_client/models/kube_prometheus_stack.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class KubePrometheusStack(BaseModel): + """ + KubePrometheusStack + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of KubePrometheusStack from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of KubePrometheusStack from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/longhorn.py b/platform_api_python_client/models/longhorn.py new file mode 100644 index 0000000..72ac984 --- /dev/null +++ b/platform_api_python_client/models/longhorn.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Longhorn(BaseModel): + """ + Longhorn + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Longhorn from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Longhorn from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/metrics_server.py b/platform_api_python_client/models/metrics_server.py new file mode 100644 index 0000000..3568b62 --- /dev/null +++ b/platform_api_python_client/models/metrics_server.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class MetricsServer(BaseModel): + """ + MetricsServer + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MetricsServer from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MetricsServer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/network_operator.py b/platform_api_python_client/models/network_operator.py new file mode 100644 index 0000000..6f2156c --- /dev/null +++ b/platform_api_python_client/models/network_operator.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NetworkOperator(BaseModel): + """ + NetworkOperator + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkOperator from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkOperator from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/opentelemetry_collector.py b/platform_api_python_client/models/opentelemetry_collector.py new file mode 100644 index 0000000..9230fe0 --- /dev/null +++ b/platform_api_python_client/models/opentelemetry_collector.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class OpentelemetryCollector(BaseModel): + """ + OpentelemetryCollector + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OpentelemetryCollector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OpentelemetryCollector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/prometheus_adapter.py b/platform_api_python_client/models/prometheus_adapter.py new file mode 100644 index 0000000..ea79586 --- /dev/null +++ b/platform_api_python_client/models/prometheus_adapter.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PrometheusAdapter(BaseModel): + """ + PrometheusAdapter + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PrometheusAdapter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PrometheusAdapter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/spire.py b/platform_api_python_client/models/spire.py new file mode 100644 index 0000000..20f7a83 --- /dev/null +++ b/platform_api_python_client/models/spire.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Spire(BaseModel): + """ + Spire + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Spire from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Spire from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/spire_crds.py b/platform_api_python_client/models/spire_crds.py new file mode 100644 index 0000000..6aa4d04 --- /dev/null +++ b/platform_api_python_client/models/spire_crds.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SpireCrds(BaseModel): + """ + SpireCrds + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SpireCrds from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SpireCrds from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/platform_api_python_client/models/teleport_kube_agent.py b/platform_api_python_client/models/teleport_kube_agent.py new file mode 100644 index 0000000..c6073a8 --- /dev/null +++ b/platform_api_python_client/models/teleport_kube_agent.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class TeleportKubeAgent(BaseModel): + """ + TeleportKubeAgent + """ # noqa: E501 + enabled: Optional[StrictBool] = True + values: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["enabled", "values"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TeleportKubeAgent from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TeleportKubeAgent from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enabled": obj.get("enabled") if obj.get("enabled") is not None else True, + "values": obj.get("values") + }) + return _obj + + diff --git a/pyproject.toml b/pyproject.toml index 59e20b1..698a006 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "platform_api_python_client" -version = "4.18.0" +version = "4.19.0" description = "Platform External API" authors = ["OpenAPI Generator Community "] license = "NoLicense" diff --git a/setup.py b/setup.py index 3f0b2d9..815b69f 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "platform-api-python-client" -VERSION = "4.18.0" +VERSION = "4.19.0" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", diff --git a/test/test_create_url_request.py b/test/test_argo_rollouts.py similarity index 57% rename from test/test_create_url_request.py rename to test/test_argo_rollouts.py index 86907ac..f57bf46 100644 --- a/test/test_create_url_request.py +++ b/test/test_argo_rollouts.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.create_url_request import CreateUrlRequest +from platform_api_python_client.models.argo_rollouts import ArgoRollouts -class TestCreateUrlRequest(unittest.TestCase): - """CreateUrlRequest unit test stubs""" +class TestArgoRollouts(unittest.TestCase): + """ArgoRollouts unit test stubs""" def setUp(self): pass @@ -25,28 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CreateUrlRequest: - """Test CreateUrlRequest + def make_instance(self, include_optional) -> ArgoRollouts: + """Test ArgoRollouts include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `CreateUrlRequest` + # uncomment below to create an instance of `ArgoRollouts` """ - model = CreateUrlRequest() + model = ArgoRollouts() if include_optional: - return CreateUrlRequest( - filename = '', - extension = '' + return ArgoRollouts( + enabled = True, + values = platform_api_python_client.models.argo_rollouts_overrides.ArgoRolloutsOverrides() ) else: - return CreateUrlRequest( - filename = '', - extension = '', + return ArgoRollouts( ) """ - def testCreateUrlRequest(self): - """Test CreateUrlRequest""" + def testArgoRollouts(self): + """Test ArgoRollouts""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_cert_manager.py b/test/test_cert_manager.py new file mode 100644 index 0000000..dc22f55 --- /dev/null +++ b/test/test_cert_manager.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.cert_manager import CertManager + +class TestCertManager(unittest.TestCase): + """CertManager unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CertManager: + """Test CertManager + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CertManager` + """ + model = CertManager() + if include_optional: + return CertManager( + enabled = True, + values = platform_api_python_client.models.cert_manager_overrides.CertManagerOverrides() + ) + else: + return CertManager( + ) + """ + + def testCertManager(self): + """Test CertManager""" + # 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_cloud_provider.py b/test/test_cloud_provider.py new file mode 100644 index 0000000..44d3433 --- /dev/null +++ b/test/test_cloud_provider.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.cloud_provider import CloudProvider + +class TestCloudProvider(unittest.TestCase): + """CloudProvider unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCloudProvider(self): + """Test CloudProvider""" + # inst = CloudProvider() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_cluster_components.py b/test/test_cluster_components.py new file mode 100644 index 0000000..f30f1ee --- /dev/null +++ b/test/test_cluster_components.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.cluster_components import ClusterComponents + +class TestClusterComponents(unittest.TestCase): + """ClusterComponents unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClusterComponents: + """Test ClusterComponents + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClusterComponents` + """ + model = ClusterComponents() + if include_optional: + return ClusterComponents( + kube_prometheus_stack = platform_api_python_client.models.kube_prometheus_stack.KubePrometheusStack( + enabled = True, + values = platform_api_python_client.models.kube_prometheus_stack_overrides.KubePrometheusStackOverrides(), ), + istio = platform_api_python_client.models.istio.Istio( + enabled = True, + values = platform_api_python_client.models.istio_overrides.IstioOverrides( + istio_cni = platform_api_python_client.models.istio_cni_subchart_overrides.IstioCniSubchartOverrides( + cni = platform_api_python_client.models.istio_cni_overrides.IstioCniOverrides( + cni_bin_dir = '', + cni_conf_dir = '', ), ), ), ), + cert_manager = platform_api_python_client.models.cert_manager.CertManager( + enabled = True, + values = platform_api_python_client.models.cert_manager_overrides.CertManagerOverrides(), ), + ingress_nginx = platform_api_python_client.models.ingress_nginx.IngressNginx( + enabled = True, + values = platform_api_python_client.models.ingress_nginx_overrides.IngressNginxOverrides(), ), + spire_crds = platform_api_python_client.models.spire_crds.SpireCrds( + enabled = True, + values = platform_api_python_client.models.spire_crds_overrides.SpireCrdsOverrides(), ), + spire = platform_api_python_client.models.spire.Spire( + enabled = True, + values = platform_api_python_client.models.spire_overrides.SpireOverrides(), ), + external_dns = platform_api_python_client.models.external_dns.ExternalDns( + enabled = True, + values = platform_api_python_client.models.external_dns_overrides.ExternalDnsOverrides(), ), + prometheus_adapter = platform_api_python_client.models.prometheus_adapter.PrometheusAdapter( + enabled = True, + values = platform_api_python_client.models.prometheus_adapter_overrides.PrometheusAdapterOverrides(), ), + keda = platform_api_python_client.models.keda.Keda( + enabled = True, + values = platform_api_python_client.models.keda_overrides.KedaOverrides(), ), + fluent_bit = platform_api_python_client.models.fluent_bit.FluentBit( + enabled = True, + values = platform_api_python_client.models.fluent_bit_overrides.FluentBitOverrides(), ), + argo_rollouts = platform_api_python_client.models.argo_rollouts.ArgoRollouts( + enabled = True, + values = platform_api_python_client.models.argo_rollouts_overrides.ArgoRolloutsOverrides(), ), + network_operator = platform_api_python_client.models.network_operator.NetworkOperator( + enabled = True, + values = platform_api_python_client.models.network_operator_overrides.NetworkOperatorOverrides(), ), + opentelemetry_collector = platform_api_python_client.models.opentelemetry_collector.OpentelemetryCollector( + enabled = True, + values = platform_api_python_client.models.opentelemetry_collector_overrides.OpentelemetryCollectorOverrides(), ), + gpu_operator = platform_api_python_client.models.gpu_operator.GpuOperator( + enabled = True, + values = platform_api_python_client.models.gpu_operator_overrides.GpuOperatorOverrides(), ), + longhorn = platform_api_python_client.models.longhorn.Longhorn( + enabled = True, + values = platform_api_python_client.models.longhorn_overrides.LonghornOverrides(), ), + metrics_server = platform_api_python_client.models.metrics_server.MetricsServer( + enabled = True, + values = platform_api_python_client.models.metrics_server_overrides.MetricsServerOverrides(), ), + teleport_kube_agent = platform_api_python_client.models.teleport_kube_agent.TeleportKubeAgent( + enabled = True, + values = platform_api_python_client.models.teleport_kube_agent_overrides.TeleportKubeAgentOverrides(), ), + final_stack = platform_api_python_client.models.final_stack.FinalStack( + enabled = True, + values = platform_api_python_client.models.final_stack_overrides.FinalStackOverrides(), ) + ) + else: + return ClusterComponents( + ) + """ + + def testClusterComponents(self): + """Test ClusterComponents""" + # 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_config.py b/test/test_cluster_config.py new file mode 100644 index 0000000..5bd9184 --- /dev/null +++ b/test/test_cluster_config.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.cluster_config import ClusterConfig + +class TestClusterConfig(unittest.TestCase): + """ClusterConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClusterConfig: + """Test ClusterConfig + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClusterConfig` + """ + model = ClusterConfig() + if include_optional: + return ClusterConfig( + components = platform_api_python_client.models.cluster_components.ClusterComponents( + kube_prometheus_stack = platform_api_python_client.models.kube_prometheus_stack.KubePrometheusStack( + enabled = True, + values = platform_api_python_client.models.kube_prometheus_stack_overrides.KubePrometheusStackOverrides(), ), + istio = platform_api_python_client.models.istio.Istio( + enabled = True, ), + cert_manager = platform_api_python_client.models.cert_manager.CertManager( + enabled = True, ), + ingress_nginx = platform_api_python_client.models.ingress_nginx.IngressNginx( + enabled = True, ), + spire_crds = platform_api_python_client.models.spire_crds.SpireCrds( + enabled = True, ), + spire = platform_api_python_client.models.spire.Spire( + enabled = True, ), + external_dns = platform_api_python_client.models.external_dns.ExternalDns( + enabled = True, ), + prometheus_adapter = platform_api_python_client.models.prometheus_adapter.PrometheusAdapter( + enabled = True, ), + keda = platform_api_python_client.models.keda.Keda( + enabled = True, ), + fluent_bit = platform_api_python_client.models.fluent_bit.FluentBit( + enabled = True, ), + argo_rollouts = platform_api_python_client.models.argo_rollouts.ArgoRollouts( + enabled = True, ), + network_operator = platform_api_python_client.models.network_operator.NetworkOperator( + enabled = True, ), + opentelemetry_collector = platform_api_python_client.models.opentelemetry_collector.OpentelemetryCollector( + enabled = True, ), + gpu_operator = platform_api_python_client.models.gpu_operator.GpuOperator( + enabled = True, ), + longhorn = platform_api_python_client.models.longhorn.Longhorn( + enabled = True, ), + metrics_server = platform_api_python_client.models.metrics_server.MetricsServer( + enabled = True, ), + teleport_kube_agent = platform_api_python_client.models.teleport_kube_agent.TeleportKubeAgent( + enabled = True, ), + final_stack = platform_api_python_client.models.final_stack.FinalStack( + enabled = True, ), ) + ) + else: + return ClusterConfig( + components = platform_api_python_client.models.cluster_components.ClusterComponents( + kube_prometheus_stack = platform_api_python_client.models.kube_prometheus_stack.KubePrometheusStack( + enabled = True, + values = platform_api_python_client.models.kube_prometheus_stack_overrides.KubePrometheusStackOverrides(), ), + istio = platform_api_python_client.models.istio.Istio( + enabled = True, ), + cert_manager = platform_api_python_client.models.cert_manager.CertManager( + enabled = True, ), + ingress_nginx = platform_api_python_client.models.ingress_nginx.IngressNginx( + enabled = True, ), + spire_crds = platform_api_python_client.models.spire_crds.SpireCrds( + enabled = True, ), + spire = platform_api_python_client.models.spire.Spire( + enabled = True, ), + external_dns = platform_api_python_client.models.external_dns.ExternalDns( + enabled = True, ), + prometheus_adapter = platform_api_python_client.models.prometheus_adapter.PrometheusAdapter( + enabled = True, ), + keda = platform_api_python_client.models.keda.Keda( + enabled = True, ), + fluent_bit = platform_api_python_client.models.fluent_bit.FluentBit( + enabled = True, ), + argo_rollouts = platform_api_python_client.models.argo_rollouts.ArgoRollouts( + enabled = True, ), + network_operator = platform_api_python_client.models.network_operator.NetworkOperator( + enabled = True, ), + opentelemetry_collector = platform_api_python_client.models.opentelemetry_collector.OpentelemetryCollector( + enabled = True, ), + gpu_operator = platform_api_python_client.models.gpu_operator.GpuOperator( + enabled = True, ), + longhorn = platform_api_python_client.models.longhorn.Longhorn( + enabled = True, ), + metrics_server = platform_api_python_client.models.metrics_server.MetricsServer( + enabled = True, ), + teleport_kube_agent = platform_api_python_client.models.teleport_kube_agent.TeleportKubeAgent( + enabled = True, ), + final_stack = platform_api_python_client.models.final_stack.FinalStack( + enabled = True, ), ), + ) + """ + + def testClusterConfig(self): + """Test ClusterConfig""" + # 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_credential.py b/test/test_cluster_credential.py new file mode 100644 index 0000000..2bbc1bb --- /dev/null +++ b/test/test_cluster_credential.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.cluster_credential import ClusterCredential + +class TestClusterCredential(unittest.TestCase): + """ClusterCredential unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClusterCredential: + """Test ClusterCredential + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClusterCredential` + """ + model = ClusterCredential() + if include_optional: + return ClusterCredential( + server = '', + bearer_token = '', + ca_cert = '' + ) + else: + return ClusterCredential( + server = '', + bearer_token = '', + ca_cert = '', + ) + """ + + def testClusterCredential(self): + """Test ClusterCredential""" + # 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_registration_request.py b/test/test_cluster_registration_request.py new file mode 100644 index 0000000..f9c8902 --- /dev/null +++ b/test/test_cluster_registration_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest + +class TestClusterRegistrationRequest(unittest.TestCase): + """ClusterRegistrationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClusterRegistrationRequest: + """Test ClusterRegistrationRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClusterRegistrationRequest` + """ + model = ClusterRegistrationRequest() + if include_optional: + return ClusterRegistrationRequest( + display_name = '', + storage_class = '', + region = '', + cloud_provider = 'gcp', + credential = platform_api_python_client.models.cluster_credential.ClusterCredential( + server = '', + bearer_token = '', + ca_cert = '', ) + ) + else: + return ClusterRegistrationRequest( + display_name = '', + storage_class = '', + credential = platform_api_python_client.models.cluster_credential.ClusterCredential( + server = '', + bearer_token = '', + ca_cert = '', ), + ) + """ + + def testClusterRegistrationRequest(self): + """Test ClusterRegistrationRequest""" + # 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_registration_response.py b/test/test_cluster_registration_response.py new file mode 100644 index 0000000..f74c670 --- /dev/null +++ b/test/test_cluster_registration_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse + +class TestClusterRegistrationResponse(unittest.TestCase): + """ClusterRegistrationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClusterRegistrationResponse: + """Test ClusterRegistrationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ClusterRegistrationResponse` + """ + model = ClusterRegistrationResponse() + if include_optional: + return ClusterRegistrationResponse( + id = 56 + ) + else: + return ClusterRegistrationResponse( + id = 56, + ) + """ + + def testClusterRegistrationResponse(self): + """Test ClusterRegistrationResponse""" + # 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_create_job_deployment_request.py b/test/test_create_job_deployment_request.py index fec39d7..d162711 100644 --- a/test/test_create_job_deployment_request.py +++ b/test/test_create_job_deployment_request.py @@ -54,7 +54,11 @@ def make_instance(self, include_optional) -> CreateJobDeploymentRequest: parallelism = 56, backoff_limit = 56, active_deadline_seconds = 56, - enable_logging = True + enable_logging = True, + config_file = platform_api_python_client.models.config_file_mount.ConfigFileMount( + filename = '20', + mount_path = '0', + content = '0', ) ) else: return CreateJobDeploymentRequest( diff --git a/test/test_external_api.py b/test/test_external_api.py index fee6211..3776249 100644 --- a/test/test_external_api.py +++ b/test/test_external_api.py @@ -26,6 +26,13 @@ def setUp(self) -> None: def tearDown(self) -> None: pass + def test_create_cluster_clusters_post(self) -> None: + """Test case for create_cluster_clusters_post + + Create Cluster + """ + pass + def test_create_compute_deployment_deployments_compute_post(self) -> None: """Test case for create_compute_deployment_deployments_compute_post @@ -89,6 +96,13 @@ def test_create_service_account_service_accounts_post(self) -> None: """ pass + def test_delete_cluster_clusters_cluster_id_delete(self) -> None: + """Test case for delete_cluster_clusters_cluster_id_delete + + Delete Cluster + """ + pass + def test_delete_hardware_instance_hardware_instances_hardware_instance_id_delete(self) -> None: """Test case for delete_hardware_instance_hardware_instances_hardware_instance_id_delete @@ -110,13 +124,6 @@ def test_delete_user_vault_item_endpoint_user_vault_delete(self) -> None: """ pass - def test_download_url_file_url_download_post(self) -> None: - """Test case for download_url_file_url_download_post - - Download Url - """ - pass - def test_generate_service_account_secret_service_accounts_workos_id_secrets_post(self) -> None: """Test case for generate_service_account_secret_service_accounts_workos_id_secrets_post @@ -306,6 +313,13 @@ def test_setup_stripe_customer_payments_setup_post(self) -> None: """ pass + def test_update_cluster_clusters_cluster_id_put(self) -> None: + """Test case for update_cluster_clusters_cluster_id_put + + Update Cluster + """ + pass + def test_update_compute_deployment_deployments_compute_put(self) -> None: """Test case for update_compute_deployment_deployments_compute_put @@ -369,13 +383,6 @@ def test_update_user_vault_item_endpoint_user_vault_put(self) -> None: """ pass - def test_upload_url_file_url_upload_post(self) -> None: - """Test case for upload_url_file_url_upload_post - - Upload Url - """ - pass - if __name__ == '__main__': unittest.main() diff --git a/test/test_external_dns.py b/test/test_external_dns.py new file mode 100644 index 0000000..9f3f4a4 --- /dev/null +++ b/test/test_external_dns.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.external_dns import ExternalDns + +class TestExternalDns(unittest.TestCase): + """ExternalDns unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExternalDns: + """Test ExternalDns + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ExternalDns` + """ + model = ExternalDns() + if include_optional: + return ExternalDns( + enabled = True, + values = platform_api_python_client.models.external_dns_overrides.ExternalDnsOverrides() + ) + else: + return ExternalDns( + ) + """ + + def testExternalDns(self): + """Test ExternalDns""" + # 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_create_url_response.py b/test/test_final_stack.py similarity index 60% rename from test/test_create_url_response.py rename to test/test_final_stack.py index 425d1bc..92739b0 100644 --- a/test/test_create_url_response.py +++ b/test/test_final_stack.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.create_url_response import CreateUrlResponse +from platform_api_python_client.models.final_stack import FinalStack -class TestCreateUrlResponse(unittest.TestCase): - """CreateUrlResponse unit test stubs""" +class TestFinalStack(unittest.TestCase): + """FinalStack unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CreateUrlResponse: - """Test CreateUrlResponse + def make_instance(self, include_optional) -> FinalStack: + """Test FinalStack include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `CreateUrlResponse` + # uncomment below to create an instance of `FinalStack` """ - model = CreateUrlResponse() + model = FinalStack() if include_optional: - return CreateUrlResponse( - url = '0' + return FinalStack( + enabled = True, + values = platform_api_python_client.models.final_stack_overrides.FinalStackOverrides() ) else: - return CreateUrlResponse( - url = '0', + return FinalStack( ) """ - def testCreateUrlResponse(self): - """Test CreateUrlResponse""" + def testFinalStack(self): + """Test FinalStack""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_fluent_bit.py b/test/test_fluent_bit.py new file mode 100644 index 0000000..3b6bb1b --- /dev/null +++ b/test/test_fluent_bit.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.fluent_bit import FluentBit + +class TestFluentBit(unittest.TestCase): + """FluentBit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FluentBit: + """Test FluentBit + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FluentBit` + """ + model = FluentBit() + if include_optional: + return FluentBit( + enabled = True, + values = platform_api_python_client.models.fluent_bit_overrides.FluentBitOverrides() + ) + else: + return FluentBit( + ) + """ + + def testFluentBit(self): + """Test FluentBit""" + # 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_get_job_deployment_response.py b/test/test_get_job_deployment_response.py index 0430e36..d0311d0 100644 --- a/test/test_get_job_deployment_response.py +++ b/test/test_get_job_deployment_response.py @@ -66,7 +66,11 @@ def make_instance(self, include_optional) -> GetJobDeploymentResponse: image_pull_secret_credentials = platform_api_python_client.models.image_pull_secret_credentials.ImagePullSecretCredentials( username = '', password = '', ), - enable_logging = True + enable_logging = True, + config_file = platform_api_python_client.models.config_file_mount.ConfigFileMount( + filename = '20', + mount_path = '0', + content = '0', ) ) else: return GetJobDeploymentResponse( diff --git a/test/test_gpu_operator.py b/test/test_gpu_operator.py new file mode 100644 index 0000000..99046e2 --- /dev/null +++ b/test/test_gpu_operator.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.gpu_operator import GpuOperator + +class TestGpuOperator(unittest.TestCase): + """GpuOperator unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GpuOperator: + """Test GpuOperator + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GpuOperator` + """ + model = GpuOperator() + if include_optional: + return GpuOperator( + enabled = True, + values = platform_api_python_client.models.gpu_operator_overrides.GpuOperatorOverrides() + ) + else: + return GpuOperator( + ) + """ + + def testGpuOperator(self): + """Test GpuOperator""" + # 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_ingress_nginx.py b/test/test_ingress_nginx.py new file mode 100644 index 0000000..b17ba70 --- /dev/null +++ b/test/test_ingress_nginx.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.ingress_nginx import IngressNginx + +class TestIngressNginx(unittest.TestCase): + """IngressNginx unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IngressNginx: + """Test IngressNginx + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IngressNginx` + """ + model = IngressNginx() + if include_optional: + return IngressNginx( + enabled = True, + values = platform_api_python_client.models.ingress_nginx_overrides.IngressNginxOverrides() + ) + else: + return IngressNginx( + ) + """ + + def testIngressNginx(self): + """Test IngressNginx""" + # 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_istio.py b/test/test_istio.py new file mode 100644 index 0000000..4ea8553 --- /dev/null +++ b/test/test_istio.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.istio import Istio + +class TestIstio(unittest.TestCase): + """Istio unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Istio: + """Test Istio + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Istio` + """ + model = Istio() + if include_optional: + return Istio( + enabled = True, + values = platform_api_python_client.models.istio_overrides.IstioOverrides( + istio_cni = platform_api_python_client.models.istio_cni_subchart_overrides.IstioCniSubchartOverrides( + cni = platform_api_python_client.models.istio_cni_overrides.IstioCniOverrides( + cni_bin_dir = '', + cni_conf_dir = '', ), ), ) + ) + else: + return Istio( + ) + """ + + def testIstio(self): + """Test Istio""" + # 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_istio_cni_overrides.py b/test/test_istio_cni_overrides.py new file mode 100644 index 0000000..4964d73 --- /dev/null +++ b/test/test_istio_cni_overrides.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.istio_cni_overrides import IstioCniOverrides + +class TestIstioCniOverrides(unittest.TestCase): + """IstioCniOverrides unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IstioCniOverrides: + """Test IstioCniOverrides + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IstioCniOverrides` + """ + model = IstioCniOverrides() + if include_optional: + return IstioCniOverrides( + cni_bin_dir = '', + cni_conf_dir = '' + ) + else: + return IstioCniOverrides( + ) + """ + + def testIstioCniOverrides(self): + """Test IstioCniOverrides""" + # 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_istio_cni_subchart_overrides.py b/test/test_istio_cni_subchart_overrides.py new file mode 100644 index 0000000..d3309ff --- /dev/null +++ b/test/test_istio_cni_subchart_overrides.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.istio_cni_subchart_overrides import IstioCniSubchartOverrides + +class TestIstioCniSubchartOverrides(unittest.TestCase): + """IstioCniSubchartOverrides unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IstioCniSubchartOverrides: + """Test IstioCniSubchartOverrides + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IstioCniSubchartOverrides` + """ + model = IstioCniSubchartOverrides() + if include_optional: + return IstioCniSubchartOverrides( + cni = platform_api_python_client.models.istio_cni_overrides.IstioCniOverrides( + cni_bin_dir = '', + cni_conf_dir = '', ) + ) + else: + return IstioCniSubchartOverrides( + ) + """ + + def testIstioCniSubchartOverrides(self): + """Test IstioCniSubchartOverrides""" + # 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_istio_overrides.py b/test/test_istio_overrides.py new file mode 100644 index 0000000..aa9b3ea --- /dev/null +++ b/test/test_istio_overrides.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.istio_overrides import IstioOverrides + +class TestIstioOverrides(unittest.TestCase): + """IstioOverrides unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IstioOverrides: + """Test IstioOverrides + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `IstioOverrides` + """ + model = IstioOverrides() + if include_optional: + return IstioOverrides( + istio_cni = platform_api_python_client.models.istio_cni_subchart_overrides.IstioCniSubchartOverrides( + cni = platform_api_python_client.models.istio_cni_overrides.IstioCniOverrides( + cni_bin_dir = '', + cni_conf_dir = '', ), ) + ) + else: + return IstioOverrides( + ) + """ + + def testIstioOverrides(self): + """Test IstioOverrides""" + # 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_keda.py b/test/test_keda.py new file mode 100644 index 0000000..c337e72 --- /dev/null +++ b/test/test_keda.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.keda import Keda + +class TestKeda(unittest.TestCase): + """Keda unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Keda: + """Test Keda + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Keda` + """ + model = Keda() + if include_optional: + return Keda( + enabled = True, + values = platform_api_python_client.models.keda_overrides.KedaOverrides() + ) + else: + return Keda( + ) + """ + + def testKeda(self): + """Test Keda""" + # 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_kube_prometheus_stack.py b/test/test_kube_prometheus_stack.py new file mode 100644 index 0000000..b34d2dd --- /dev/null +++ b/test/test_kube_prometheus_stack.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.kube_prometheus_stack import KubePrometheusStack + +class TestKubePrometheusStack(unittest.TestCase): + """KubePrometheusStack unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> KubePrometheusStack: + """Test KubePrometheusStack + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `KubePrometheusStack` + """ + model = KubePrometheusStack() + if include_optional: + return KubePrometheusStack( + enabled = True, + values = platform_api_python_client.models.kube_prometheus_stack_overrides.KubePrometheusStackOverrides() + ) + else: + return KubePrometheusStack( + ) + """ + + def testKubePrometheusStack(self): + """Test KubePrometheusStack""" + # 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_longhorn.py b/test/test_longhorn.py new file mode 100644 index 0000000..ab91ba5 --- /dev/null +++ b/test/test_longhorn.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.longhorn import Longhorn + +class TestLonghorn(unittest.TestCase): + """Longhorn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Longhorn: + """Test Longhorn + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Longhorn` + """ + model = Longhorn() + if include_optional: + return Longhorn( + enabled = True, + values = platform_api_python_client.models.longhorn_overrides.LonghornOverrides() + ) + else: + return Longhorn( + ) + """ + + def testLonghorn(self): + """Test Longhorn""" + # 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_metrics_server.py b/test/test_metrics_server.py new file mode 100644 index 0000000..6b6d657 --- /dev/null +++ b/test/test_metrics_server.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.metrics_server import MetricsServer + +class TestMetricsServer(unittest.TestCase): + """MetricsServer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MetricsServer: + """Test MetricsServer + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MetricsServer` + """ + model = MetricsServer() + if include_optional: + return MetricsServer( + enabled = True, + values = platform_api_python_client.models.metrics_server_overrides.MetricsServerOverrides() + ) + else: + return MetricsServer( + ) + """ + + def testMetricsServer(self): + """Test MetricsServer""" + # 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_operator.py b/test/test_network_operator.py new file mode 100644 index 0000000..a06f2e4 --- /dev/null +++ b/test/test_network_operator.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.network_operator import NetworkOperator + +class TestNetworkOperator(unittest.TestCase): + """NetworkOperator unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkOperator: + """Test NetworkOperator + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NetworkOperator` + """ + model = NetworkOperator() + if include_optional: + return NetworkOperator( + enabled = True, + values = platform_api_python_client.models.network_operator_overrides.NetworkOperatorOverrides() + ) + else: + return NetworkOperator( + ) + """ + + def testNetworkOperator(self): + """Test NetworkOperator""" + # 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_opentelemetry_collector.py b/test/test_opentelemetry_collector.py new file mode 100644 index 0000000..3530f59 --- /dev/null +++ b/test/test_opentelemetry_collector.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.opentelemetry_collector import OpentelemetryCollector + +class TestOpentelemetryCollector(unittest.TestCase): + """OpentelemetryCollector unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OpentelemetryCollector: + """Test OpentelemetryCollector + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `OpentelemetryCollector` + """ + model = OpentelemetryCollector() + if include_optional: + return OpentelemetryCollector( + enabled = True, + values = platform_api_python_client.models.opentelemetry_collector_overrides.OpentelemetryCollectorOverrides() + ) + else: + return OpentelemetryCollector( + ) + """ + + def testOpentelemetryCollector(self): + """Test OpentelemetryCollector""" + # 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_prometheus_adapter.py b/test/test_prometheus_adapter.py new file mode 100644 index 0000000..5f7c3dd --- /dev/null +++ b/test/test_prometheus_adapter.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.prometheus_adapter import PrometheusAdapter + +class TestPrometheusAdapter(unittest.TestCase): + """PrometheusAdapter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PrometheusAdapter: + """Test PrometheusAdapter + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PrometheusAdapter` + """ + model = PrometheusAdapter() + if include_optional: + return PrometheusAdapter( + enabled = True, + values = platform_api_python_client.models.prometheus_adapter_overrides.PrometheusAdapterOverrides() + ) + else: + return PrometheusAdapter( + ) + """ + + def testPrometheusAdapter(self): + """Test PrometheusAdapter""" + # 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_spire.py b/test/test_spire.py new file mode 100644 index 0000000..8e74db5 --- /dev/null +++ b/test/test_spire.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.spire import Spire + +class TestSpire(unittest.TestCase): + """Spire unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Spire: + """Test Spire + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Spire` + """ + model = Spire() + if include_optional: + return Spire( + enabled = True, + values = platform_api_python_client.models.spire_overrides.SpireOverrides() + ) + else: + return Spire( + ) + """ + + def testSpire(self): + """Test Spire""" + # 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_spire_crds.py b/test/test_spire_crds.py new file mode 100644 index 0000000..9f9b45c --- /dev/null +++ b/test/test_spire_crds.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.spire_crds import SpireCrds + +class TestSpireCrds(unittest.TestCase): + """SpireCrds unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SpireCrds: + """Test SpireCrds + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SpireCrds` + """ + model = SpireCrds() + if include_optional: + return SpireCrds( + enabled = True, + values = platform_api_python_client.models.spire_crds_overrides.SpireCrdsOverrides() + ) + else: + return SpireCrds( + ) + """ + + def testSpireCrds(self): + """Test SpireCrds""" + # 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_teleport_kube_agent.py b/test/test_teleport_kube_agent.py new file mode 100644 index 0000000..c64266f --- /dev/null +++ b/test/test_teleport_kube_agent.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Platform External API + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + The version of the OpenAPI document: 0.1.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from platform_api_python_client.models.teleport_kube_agent import TeleportKubeAgent + +class TestTeleportKubeAgent(unittest.TestCase): + """TeleportKubeAgent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TeleportKubeAgent: + """Test TeleportKubeAgent + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TeleportKubeAgent` + """ + model = TeleportKubeAgent() + if include_optional: + return TeleportKubeAgent( + enabled = True, + values = platform_api_python_client.models.teleport_kube_agent_overrides.TeleportKubeAgentOverrides() + ) + else: + return TeleportKubeAgent( + ) + """ + + def testTeleportKubeAgent(self): + """Test TeleportKubeAgent""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main()