diff --git a/README.md b/README.md index d8ed980..5f62c72 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.39.0 +- Package version: 4.40.0 - Generator version: 7.26.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -190,15 +190,35 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [ArgoRollouts](docs/ArgoRollouts.md) + - [Admission](docs/Admission.md) + - [Autoscaling](docs/Autoscaling.md) - [BackendProtocol](docs/BackendProtocol.md) + - [CDI](docs/CDI.md) + - [CNI](docs/CNI.md) - [CclDynamoPools](docs/CclDynamoPools.md) - [CclMainPools](docs/CclMainPools.md) - - [CertManager](docs/CertManager.md) + - [CclusterCatalogsClusterBaseArgoRolloutsChartValues](docs/CclusterCatalogsClusterBaseArgoRolloutsChartValues.md) + - [CclusterCatalogsClusterBaseArgoRolloutsController](docs/CclusterCatalogsClusterBaseArgoRolloutsController.md) + - [CclusterCatalogsClusterBaseArgoRolloutsValues](docs/CclusterCatalogsClusterBaseArgoRolloutsValues.md) + - [CclusterCatalogsClusterBaseCertManagerChartValues](docs/CclusterCatalogsClusterBaseCertManagerChartValues.md) + - [CclusterCatalogsClusterBaseCertManagerValues](docs/CclusterCatalogsClusterBaseCertManagerValues.md) + - [CclusterCatalogsClusterBaseGpuOperatorChartValues](docs/CclusterCatalogsClusterBaseGpuOperatorChartValues.md) + - [CclusterCatalogsClusterBaseGpuOperatorValues](docs/CclusterCatalogsClusterBaseGpuOperatorValues.md) + - [CclusterCatalogsClusterBaseIngressNginxChartValues](docs/CclusterCatalogsClusterBaseIngressNginxChartValues.md) + - [CclusterCatalogsClusterBaseIngressNginxController](docs/CclusterCatalogsClusterBaseIngressNginxController.md) + - [CclusterCatalogsClusterBaseIngressNginxValues](docs/CclusterCatalogsClusterBaseIngressNginxValues.md) + - [CclusterCatalogsClusterBaseIstioValues](docs/CclusterCatalogsClusterBaseIstioValues.md) + - [CclusterCatalogsClusterBaseKaiSchedulerChartValues](docs/CclusterCatalogsClusterBaseKaiSchedulerChartValues.md) + - [CclusterCatalogsClusterBaseKaiSchedulerValues](docs/CclusterCatalogsClusterBaseKaiSchedulerValues.md) + - [CclusterCatalogsClusterBaseKedaChartValues](docs/CclusterCatalogsClusterBaseKedaChartValues.md) + - [CclusterCatalogsClusterBaseKedaValues](docs/CclusterCatalogsClusterBaseKedaValues.md) + - [CclusterCatalogsClusterBaseKubePrometheusStackChartValues](docs/CclusterCatalogsClusterBaseKubePrometheusStackChartValues.md) + - [CclusterCatalogsClusterBaseKubePrometheusStackValues](docs/CclusterCatalogsClusterBaseKubePrometheusStackValues.md) + - [CclusterCatalogsClusterBaseMetricsServerChartValues](docs/CclusterCatalogsClusterBaseMetricsServerChartValues.md) + - [CclusterCatalogsClusterBaseMetricsServerValues](docs/CclusterCatalogsClusterBaseMetricsServerValues.md) - [CloudProvider](docs/CloudProvider.md) + - [ClusterBaseComponents](docs/ClusterBaseComponents.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) @@ -221,6 +241,9 @@ Class | Method | HTTP request | Description - [CreateVolumeRequest](docs/CreateVolumeRequest.md) - [CreditsResponse](docs/CreditsResponse.md) - [DailyBillResponse](docs/DailyBillResponse.md) + - [Dashboard](docs/Dashboard.md) + - [DefaultPriorities](docs/DefaultPriorities.md) + - [DefaultQueue](docs/DefaultQueue.md) - [DeleteUserVaultItemRequest](docs/DeleteUserVaultItemRequest.md) - [DeploymentComponentType](docs/DeploymentComponentType.md) - [DeploymentLogEventV4](docs/DeploymentLogEventV4.md) @@ -244,9 +267,6 @@ Class | Method | HTTP request | Description - [DynamoWorkerPoolConfig](docs/DynamoWorkerPoolConfig.md) - [DynamoWorkerPools](docs/DynamoWorkerPools.md) - [Env](docs/Env.md) - - [ExternalDns](docs/ExternalDns.md) - - [FinalStack](docs/FinalStack.md) - - [FluentBit](docs/FluentBit.md) - [GenerateServiceAccountSecretResponse](docs/GenerateServiceAccountSecretResponse.md) - [GetClusterResponse](docs/GetClusterResponse.md) - [GetComputeDeploymentResponse](docs/GetComputeDeploymentResponse.md) @@ -263,7 +283,6 @@ Class | Method | HTTP request | Description - [GetJobDeploymentResponse](docs/GetJobDeploymentResponse.md) - [GetObjectVolumeResponse](docs/GetObjectVolumeResponse.md) - [GetVolumeResponse](docs/GetVolumeResponse.md) - - [GpuOperator](docs/GpuOperator.md) - [GpuTypeCapacity](docs/GpuTypeCapacity.md) - [HTTPValidationError](docs/HTTPValidationError.md) - [HardwareInstanceResponse](docs/HardwareInstanceResponse.md) @@ -271,7 +290,6 @@ Class | Method | HTTP request | Description - [Image](docs/Image.md) - [ImagePullSecretCredentials](docs/ImagePullSecretCredentials.md) - [Ingress](docs/Ingress.md) - - [IngressNginx](docs/IngressNginx.md) - [InsightListItemResponse](docs/InsightListItemResponse.md) - [InsightResource](docs/InsightResource.md) - [InsightResourceType](docs/InsightResourceType.md) @@ -280,12 +298,10 @@ Class | Method | HTTP request | Description - [InsightStatus](docs/InsightStatus.md) - [InsightStatusChangeResponse](docs/InsightStatusChangeResponse.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) + - [IstioBase](docs/IstioBase.md) + - [IstioCNI](docs/IstioCNI.md) + - [IstioGateway](docs/IstioGateway.md) + - [Istiod](docs/Istiod.md) - [ListClusterCapacityResponse](docs/ListClusterCapacityResponse.md) - [ListDailyBillResponse](docs/ListDailyBillResponse.md) - [ListDeploymentRevisionsResponse](docs/ListDeploymentRevisionsResponse.md) @@ -300,28 +316,35 @@ Class | Method | HTTP request | Description - [ListUserVaultItemsResponse](docs/ListUserVaultItemsResponse.md) - [ListVolumesResponse](docs/ListVolumesResponse.md) - [LocationInner](docs/LocationInner.md) - - [Longhorn](docs/Longhorn.md) + - [MIG](docs/MIG.md) - [Metric](docs/Metric.md) + - [Metrics](docs/Metrics.md) - [MetricsConfig](docs/MetricsConfig.md) - - [MetricsServer](docs/MetricsServer.md) - - [NetworkOperator](docs/NetworkOperator.md) - [ObjectStorageProvider](docs/ObjectStorageProvider.md) - - [OpentelemetryCollector](docs/OpentelemetryCollector.md) + - [Operator](docs/Operator.md) - [OrganizationGpuQuotaRequest](docs/OrganizationGpuQuotaRequest.md) - [OrganizationGpuQuotaResponse](docs/OrganizationGpuQuotaResponse.md) + - [Pilot](docs/Pilot.md) - [PodDetails](docs/PodDetails.md) - [PodStatus](docs/PodStatus.md) - [Pool](docs/Pool.md) - [PrebuiltImageResponse](docs/PrebuiltImageResponse.md) - - [PrometheusAdapter](docs/PrometheusAdapter.md) + - [Prometheus](docs/Prometheus.md) + - [PrometheusRules](docs/PrometheusRules.md) + - [PrometheusSpec](docs/PrometheusSpec.md) + - [PrometheusValues](docs/PrometheusValues.md) + - [Quota](docs/Quota.md) + - [Replicas](docs/Replicas.md) + - [ResourceList](docs/ResourceList.md) + - [ResourceRequirements](docs/ResourceRequirements.md) - [RevisionPodDetails](docs/RevisionPodDetails.md) - [RolloutStatus](docs/RolloutStatus.md) - [RolloutStrategyParams](docs/RolloutStrategyParams.md) + - [Scheduler](docs/Scheduler.md) - [ServiceAccountResponse](docs/ServiceAccountResponse.md) - [ServiceStatus](docs/ServiceStatus.md) - - [Spire](docs/Spire.md) - - [SpireCrds](docs/SpireCrds.md) - - [TeleportKubeAgent](docs/TeleportKubeAgent.md) + - [Toggle](docs/Toggle.md) + - [Toleration](docs/Toleration.md) - [UnifiedGetComputeDeploymentResponse](docs/UnifiedGetComputeDeploymentResponse.md) - [UnifiedGetDeploymentLogsResponse](docs/UnifiedGetDeploymentLogsResponse.md) - [UnifiedGetDeploymentPodsResponse](docs/UnifiedGetDeploymentPodsResponse.md) @@ -341,6 +364,7 @@ Class | Method | HTTP request | Description - [UnifiedWriteInferenceV3DeploymentRequest](docs/UnifiedWriteInferenceV3DeploymentRequest.md) - [UnifiedWriteJobDeploymentRequest](docs/UnifiedWriteJobDeploymentRequest.md) - [UpdateClusterMetadataRequest](docs/UpdateClusterMetadataRequest.md) + - [UpdateClusterRequest](docs/UpdateClusterRequest.md) - [UpdateDeploymentResponse](docs/UpdateDeploymentResponse.md) - [UpdateDeploymentStatusV3Request](docs/UpdateDeploymentStatusV3Request.md) - [UpdateInsightStatusRequest](docs/UpdateInsightStatusRequest.md) @@ -357,6 +381,7 @@ Class | Method | HTTP request | Description - [VolumeMount](docs/VolumeMount.md) - [VolumeStatus](docs/VolumeStatus.md) - [VolumeStatusResponse](docs/VolumeStatusResponse.md) + - [Workload](docs/Workload.md) diff --git a/docs/Admission.md b/docs/Admission.md new file mode 100644 index 0000000..0a36f35 --- /dev/null +++ b/docs/Admission.md @@ -0,0 +1,30 @@ +# Admission + +Admission configures KAI's admission webhook. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gpu_pod_runtime_class_name** | **str** | | [optional] + +## Example + +```python +from platform_api_python_client.models.admission import Admission + +# TODO update the JSON string below +json = "{}" +# create an instance of Admission from a JSON string +admission_instance = Admission.from_json(json) +# print the JSON string representation of the object +print(Admission.to_json()) + +# convert the object into a dict +admission_dict = admission_instance.to_dict() +# create an instance of Admission from a dict +admission_from_dict = Admission.from_dict(admission_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/ArgoRollouts.md b/docs/ArgoRollouts.md deleted file mode 100644 index 568af2b..0000000 --- a/docs/ArgoRollouts.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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/Autoscaling.md b/docs/Autoscaling.md new file mode 100644 index 0000000..e85294d --- /dev/null +++ b/docs/Autoscaling.md @@ -0,0 +1,32 @@ +# Autoscaling + +Autoscaling configures the controller's HorizontalPodAutoscaler. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] +**min_replicas** | **int** | | [optional] +**max_replicas** | **int** | | [optional] + +## Example + +```python +from platform_api_python_client.models.autoscaling import Autoscaling + +# TODO update the JSON string below +json = "{}" +# create an instance of Autoscaling from a JSON string +autoscaling_instance = Autoscaling.from_json(json) +# print the JSON string representation of the object +print(Autoscaling.to_json()) + +# convert the object into a dict +autoscaling_dict = autoscaling_instance.to_dict() +# create an instance of Autoscaling from a dict +autoscaling_from_dict = Autoscaling.from_dict(autoscaling_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/CDI.md similarity index 50% rename from docs/Istio.md rename to docs/CDI.md index d22cf2b..0f74808 100644 --- a/docs/Istio.md +++ b/docs/CDI.md @@ -1,29 +1,30 @@ -# Istio +# CDI +CDI configures the Container Device Interface. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | | [optional] [default to True] -**values** | [**IstioOverrides**](IstioOverrides.md) | | [optional] +**enabled** | **bool** | | [optional] +**default** | **bool** | | [optional] ## Example ```python -from platform_api_python_client.models.istio import Istio +from platform_api_python_client.models.cdi import CDI # TODO update the JSON string below json = "{}" -# create an instance of Istio from a JSON string -istio_instance = Istio.from_json(json) +# create an instance of CDI from a JSON string +cdi_instance = CDI.from_json(json) # print the JSON string representation of the object -print(Istio.to_json()) +print(CDI.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) +cdi_dict = cdi_instance.to_dict() +# create an instance of CDI from a dict +cdi_from_dict = CDI.from_dict(cdi_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/CNI.md similarity index 50% rename from docs/IstioCniOverrides.md rename to docs/CNI.md index 8bfd807..30249d0 100644 --- a/docs/IstioCniOverrides.md +++ b/docs/CNI.md @@ -1,29 +1,30 @@ -# IstioCniOverrides +# CNI +CNI is where istio-cni writes its plugin binary and configuration. These are the only values in this chart that must be tuned per cluster: the chart's defaults are the standard paths, and the correct paths depend on the node image. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cni_bin_dir** | **str** | | [optional] **cni_conf_dir** | **str** | | [optional] +**cni_bin_dir** | **str** | | [optional] ## Example ```python -from platform_api_python_client.models.istio_cni_overrides import IstioCniOverrides +from platform_api_python_client.models.cni import CNI # TODO update the JSON string below json = "{}" -# create an instance of IstioCniOverrides from a JSON string -istio_cni_overrides_instance = IstioCniOverrides.from_json(json) +# create an instance of CNI from a JSON string +cni_instance = CNI.from_json(json) # print the JSON string representation of the object -print(IstioCniOverrides.to_json()) +print(CNI.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) +cni_dict = cni_instance.to_dict() +# create an instance of CNI from a dict +cni_from_dict = CNI.from_dict(cni_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/CclusterCatalogsClusterBaseArgoRolloutsChartValues.md b/docs/CclusterCatalogsClusterBaseArgoRolloutsChartValues.md new file mode 100644 index 0000000..0ffd8e9 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseArgoRolloutsChartValues.md @@ -0,0 +1,31 @@ +# CclusterCatalogsClusterBaseArgoRolloutsChartValues + +ChartValues are the upstream argo-rollouts values worth setting per cluster. Anything not set here comes from catalogs/cluster_base/argo_rollouts/values.yaml. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controller** | [**CclusterCatalogsClusterBaseArgoRolloutsController**](CclusterCatalogsClusterBaseArgoRolloutsController.md) | | [optional] +**dashboard** | [**Dashboard**](Dashboard.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_chart_values import CclusterCatalogsClusterBaseArgoRolloutsChartValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseArgoRolloutsChartValues from a JSON string +ccluster_catalogs_cluster_base_argo_rollouts_chart_values_instance = CclusterCatalogsClusterBaseArgoRolloutsChartValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseArgoRolloutsChartValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_argo_rollouts_chart_values_dict = ccluster_catalogs_cluster_base_argo_rollouts_chart_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseArgoRolloutsChartValues from a dict +ccluster_catalogs_cluster_base_argo_rollouts_chart_values_from_dict = CclusterCatalogsClusterBaseArgoRolloutsChartValues.from_dict(ccluster_catalogs_cluster_base_argo_rollouts_chart_values_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/CclusterCatalogsClusterBaseArgoRolloutsController.md b/docs/CclusterCatalogsClusterBaseArgoRolloutsController.md new file mode 100644 index 0000000..1f2354e --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseArgoRolloutsController.md @@ -0,0 +1,30 @@ +# CclusterCatalogsClusterBaseArgoRolloutsController + +Controller configures the rollouts controller. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replicas** | **int** | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_controller import CclusterCatalogsClusterBaseArgoRolloutsController + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseArgoRolloutsController from a JSON string +ccluster_catalogs_cluster_base_argo_rollouts_controller_instance = CclusterCatalogsClusterBaseArgoRolloutsController.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseArgoRolloutsController.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_argo_rollouts_controller_dict = ccluster_catalogs_cluster_base_argo_rollouts_controller_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseArgoRolloutsController from a dict +ccluster_catalogs_cluster_base_argo_rollouts_controller_from_dict = CclusterCatalogsClusterBaseArgoRolloutsController.from_dict(ccluster_catalogs_cluster_base_argo_rollouts_controller_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/CclusterCatalogsClusterBaseArgoRolloutsValues.md b/docs/CclusterCatalogsClusterBaseArgoRolloutsValues.md new file mode 100644 index 0000000..32f3310 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseArgoRolloutsValues.md @@ -0,0 +1,30 @@ +# CclusterCatalogsClusterBaseArgoRolloutsValues + +Values of the catalogs/cluster_base/argo_rollouts chart, generated from its Go package. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**argo_rollouts** | [**CclusterCatalogsClusterBaseArgoRolloutsChartValues**](CclusterCatalogsClusterBaseArgoRolloutsChartValues.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_values import CclusterCatalogsClusterBaseArgoRolloutsValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseArgoRolloutsValues from a JSON string +ccluster_catalogs_cluster_base_argo_rollouts_values_instance = CclusterCatalogsClusterBaseArgoRolloutsValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseArgoRolloutsValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_argo_rollouts_values_dict = ccluster_catalogs_cluster_base_argo_rollouts_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseArgoRolloutsValues from a dict +ccluster_catalogs_cluster_base_argo_rollouts_values_from_dict = CclusterCatalogsClusterBaseArgoRolloutsValues.from_dict(ccluster_catalogs_cluster_base_argo_rollouts_values_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/CclusterCatalogsClusterBaseCertManagerChartValues.md b/docs/CclusterCatalogsClusterBaseCertManagerChartValues.md new file mode 100644 index 0000000..f0e77be --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseCertManagerChartValues.md @@ -0,0 +1,31 @@ +# CclusterCatalogsClusterBaseCertManagerChartValues + +ChartValues are the upstream cert-manager values worth setting per cluster. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replica_count** | **int** | | [optional] +**prometheus** | [**PrometheusValues**](PrometheusValues.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_chart_values import CclusterCatalogsClusterBaseCertManagerChartValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseCertManagerChartValues from a JSON string +ccluster_catalogs_cluster_base_cert_manager_chart_values_instance = CclusterCatalogsClusterBaseCertManagerChartValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseCertManagerChartValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_cert_manager_chart_values_dict = ccluster_catalogs_cluster_base_cert_manager_chart_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseCertManagerChartValues from a dict +ccluster_catalogs_cluster_base_cert_manager_chart_values_from_dict = CclusterCatalogsClusterBaseCertManagerChartValues.from_dict(ccluster_catalogs_cluster_base_cert_manager_chart_values_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/CclusterCatalogsClusterBaseCertManagerValues.md b/docs/CclusterCatalogsClusterBaseCertManagerValues.md new file mode 100644 index 0000000..dbb139a --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseCertManagerValues.md @@ -0,0 +1,30 @@ +# CclusterCatalogsClusterBaseCertManagerValues + +Values of the catalogs/cluster_base/cert_manager chart, generated from its Go package. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cert_manager** | [**CclusterCatalogsClusterBaseCertManagerChartValues**](CclusterCatalogsClusterBaseCertManagerChartValues.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_values import CclusterCatalogsClusterBaseCertManagerValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseCertManagerValues from a JSON string +ccluster_catalogs_cluster_base_cert_manager_values_instance = CclusterCatalogsClusterBaseCertManagerValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseCertManagerValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_cert_manager_values_dict = ccluster_catalogs_cluster_base_cert_manager_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseCertManagerValues from a dict +ccluster_catalogs_cluster_base_cert_manager_values_from_dict = CclusterCatalogsClusterBaseCertManagerValues.from_dict(ccluster_catalogs_cluster_base_cert_manager_values_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/CclusterCatalogsClusterBaseGpuOperatorChartValues.md b/docs/CclusterCatalogsClusterBaseGpuOperatorChartValues.md new file mode 100644 index 0000000..637d4f5 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseGpuOperatorChartValues.md @@ -0,0 +1,34 @@ +# CclusterCatalogsClusterBaseGpuOperatorChartValues + +ChartValues are the upstream gpu-operator values worth setting per cluster. Driver and Toolkit are the important ones, and the reason every optional scalar in these packages is a pointer. The chart ships both disabled for k3d and kind, where the node is a container sharing the host kernel and the in-cluster driver DaemonSet cannot load modules — there, the host supplies the driver and the container toolkit. On bare metal, EKS and GKE both must be enabled. A plain bool could not express the difference between \"leave the chart's default\" and \"explicitly false\". + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**driver** | [**Toggle**](Toggle.md) | | [optional] +**toolkit** | [**Toggle**](Toggle.md) | | [optional] +**nfd** | [**Toggle**](Toggle.md) | | [optional] +**cdi** | [**CDI**](CDI.md) | | [optional] +**mig** | [**MIG**](MIG.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_gpu_operator_chart_values import CclusterCatalogsClusterBaseGpuOperatorChartValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseGpuOperatorChartValues from a JSON string +ccluster_catalogs_cluster_base_gpu_operator_chart_values_instance = CclusterCatalogsClusterBaseGpuOperatorChartValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseGpuOperatorChartValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_gpu_operator_chart_values_dict = ccluster_catalogs_cluster_base_gpu_operator_chart_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseGpuOperatorChartValues from a dict +ccluster_catalogs_cluster_base_gpu_operator_chart_values_from_dict = CclusterCatalogsClusterBaseGpuOperatorChartValues.from_dict(ccluster_catalogs_cluster_base_gpu_operator_chart_values_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/CclusterCatalogsClusterBaseGpuOperatorValues.md b/docs/CclusterCatalogsClusterBaseGpuOperatorValues.md new file mode 100644 index 0000000..b925446 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseGpuOperatorValues.md @@ -0,0 +1,31 @@ +# CclusterCatalogsClusterBaseGpuOperatorValues + +Values of the catalogs/cluster_base/gpu_operator chart, generated from its Go package. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gpu_operator** | [**CclusterCatalogsClusterBaseGpuOperatorChartValues**](CclusterCatalogsClusterBaseGpuOperatorChartValues.md) | | [optional] +**quota** | [**Quota**](Quota.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_gpu_operator_values import CclusterCatalogsClusterBaseGpuOperatorValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseGpuOperatorValues from a JSON string +ccluster_catalogs_cluster_base_gpu_operator_values_instance = CclusterCatalogsClusterBaseGpuOperatorValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseGpuOperatorValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_gpu_operator_values_dict = ccluster_catalogs_cluster_base_gpu_operator_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseGpuOperatorValues from a dict +ccluster_catalogs_cluster_base_gpu_operator_values_from_dict = CclusterCatalogsClusterBaseGpuOperatorValues.from_dict(ccluster_catalogs_cluster_base_gpu_operator_values_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/CclusterCatalogsClusterBaseIngressNginxChartValues.md b/docs/CclusterCatalogsClusterBaseIngressNginxChartValues.md new file mode 100644 index 0000000..8ab56a3 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseIngressNginxChartValues.md @@ -0,0 +1,30 @@ +# CclusterCatalogsClusterBaseIngressNginxChartValues + +ChartValues are the upstream ingress-nginx values worth setting per cluster. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**controller** | [**CclusterCatalogsClusterBaseIngressNginxController**](CclusterCatalogsClusterBaseIngressNginxController.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_chart_values import CclusterCatalogsClusterBaseIngressNginxChartValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseIngressNginxChartValues from a JSON string +ccluster_catalogs_cluster_base_ingress_nginx_chart_values_instance = CclusterCatalogsClusterBaseIngressNginxChartValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseIngressNginxChartValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_ingress_nginx_chart_values_dict = ccluster_catalogs_cluster_base_ingress_nginx_chart_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseIngressNginxChartValues from a dict +ccluster_catalogs_cluster_base_ingress_nginx_chart_values_from_dict = CclusterCatalogsClusterBaseIngressNginxChartValues.from_dict(ccluster_catalogs_cluster_base_ingress_nginx_chart_values_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/CclusterCatalogsClusterBaseIngressNginxController.md b/docs/CclusterCatalogsClusterBaseIngressNginxController.md new file mode 100644 index 0000000..204ee32 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseIngressNginxController.md @@ -0,0 +1,31 @@ +# CclusterCatalogsClusterBaseIngressNginxController + +Controller configures the ingress controller. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metrics** | [**Metrics**](Metrics.md) | | [optional] +**autoscaling** | [**Autoscaling**](Autoscaling.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_controller import CclusterCatalogsClusterBaseIngressNginxController + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseIngressNginxController from a JSON string +ccluster_catalogs_cluster_base_ingress_nginx_controller_instance = CclusterCatalogsClusterBaseIngressNginxController.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseIngressNginxController.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_ingress_nginx_controller_dict = ccluster_catalogs_cluster_base_ingress_nginx_controller_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseIngressNginxController from a dict +ccluster_catalogs_cluster_base_ingress_nginx_controller_from_dict = CclusterCatalogsClusterBaseIngressNginxController.from_dict(ccluster_catalogs_cluster_base_ingress_nginx_controller_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/CclusterCatalogsClusterBaseIngressNginxValues.md b/docs/CclusterCatalogsClusterBaseIngressNginxValues.md new file mode 100644 index 0000000..fca82c2 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseIngressNginxValues.md @@ -0,0 +1,30 @@ +# CclusterCatalogsClusterBaseIngressNginxValues + +Values of the catalogs/cluster_base/ingress_nginx chart, generated from its Go package. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ingress_nginx** | [**CclusterCatalogsClusterBaseIngressNginxChartValues**](CclusterCatalogsClusterBaseIngressNginxChartValues.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_values import CclusterCatalogsClusterBaseIngressNginxValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseIngressNginxValues from a JSON string +ccluster_catalogs_cluster_base_ingress_nginx_values_instance = CclusterCatalogsClusterBaseIngressNginxValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseIngressNginxValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_ingress_nginx_values_dict = ccluster_catalogs_cluster_base_ingress_nginx_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseIngressNginxValues from a dict +ccluster_catalogs_cluster_base_ingress_nginx_values_from_dict = CclusterCatalogsClusterBaseIngressNginxValues.from_dict(ccluster_catalogs_cluster_base_ingress_nginx_values_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/CclusterCatalogsClusterBaseIstioValues.md b/docs/CclusterCatalogsClusterBaseIstioValues.md new file mode 100644 index 0000000..371bbd7 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseIstioValues.md @@ -0,0 +1,33 @@ +# CclusterCatalogsClusterBaseIstioValues + +Values of the catalogs/cluster_base/istio chart, generated from its Go package. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**istio_base** | [**IstioBase**](IstioBase.md) | | [optional] +**istiod** | [**Istiod**](Istiod.md) | | [optional] +**istio_gateway** | [**IstioGateway**](IstioGateway.md) | | [optional] +**istio_cni** | [**IstioCNI**](IstioCNI.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_istio_values import CclusterCatalogsClusterBaseIstioValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseIstioValues from a JSON string +ccluster_catalogs_cluster_base_istio_values_instance = CclusterCatalogsClusterBaseIstioValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseIstioValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_istio_values_dict = ccluster_catalogs_cluster_base_istio_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseIstioValues from a dict +ccluster_catalogs_cluster_base_istio_values_from_dict = CclusterCatalogsClusterBaseIstioValues.from_dict(ccluster_catalogs_cluster_base_istio_values_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/CclusterCatalogsClusterBaseKaiSchedulerChartValues.md b/docs/CclusterCatalogsClusterBaseKaiSchedulerChartValues.md new file mode 100644 index 0000000..415f973 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseKaiSchedulerChartValues.md @@ -0,0 +1,34 @@ +# CclusterCatalogsClusterBaseKaiSchedulerChartValues + +ChartValues are the upstream kai-scheduler values worth setting per cluster. Scheduler.Resources, Binder and Admission reach the KAI components through the kai-config Config CR, which the upstream chart applies from a hook Job rather than as an Application resource. Argo CD does not diff hooks, so the chart also renders a ConfigMap holding a checksum of these values: changing them marks the Application OutOfSync, and the sync reruns the hook. Scheduler.PlacementStrategy goes to the SchedulingShard, Operator to the KAI operator Deployment and DefaultQueue to the default Queues, all ordinary Application resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**scheduler** | [**Scheduler**](Scheduler.md) | | [optional] +**binder** | [**Workload**](Workload.md) | | [optional] +**operator** | [**Operator**](Operator.md) | | [optional] +**admission** | [**Admission**](Admission.md) | | [optional] +**default_queue** | [**DefaultQueue**](DefaultQueue.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kai_scheduler_chart_values import CclusterCatalogsClusterBaseKaiSchedulerChartValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseKaiSchedulerChartValues from a JSON string +ccluster_catalogs_cluster_base_kai_scheduler_chart_values_instance = CclusterCatalogsClusterBaseKaiSchedulerChartValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseKaiSchedulerChartValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_kai_scheduler_chart_values_dict = ccluster_catalogs_cluster_base_kai_scheduler_chart_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseKaiSchedulerChartValues from a dict +ccluster_catalogs_cluster_base_kai_scheduler_chart_values_from_dict = CclusterCatalogsClusterBaseKaiSchedulerChartValues.from_dict(ccluster_catalogs_cluster_base_kai_scheduler_chart_values_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/CclusterCatalogsClusterBaseKaiSchedulerValues.md b/docs/CclusterCatalogsClusterBaseKaiSchedulerValues.md new file mode 100644 index 0000000..a17f6bc --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseKaiSchedulerValues.md @@ -0,0 +1,31 @@ +# CclusterCatalogsClusterBaseKaiSchedulerValues + +Values of the catalogs/cluster_base/kai_scheduler chart, generated from its Go package. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kai_scheduler** | [**CclusterCatalogsClusterBaseKaiSchedulerChartValues**](CclusterCatalogsClusterBaseKaiSchedulerChartValues.md) | | [optional] +**default_priorities** | [**DefaultPriorities**](DefaultPriorities.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kai_scheduler_values import CclusterCatalogsClusterBaseKaiSchedulerValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseKaiSchedulerValues from a JSON string +ccluster_catalogs_cluster_base_kai_scheduler_values_instance = CclusterCatalogsClusterBaseKaiSchedulerValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseKaiSchedulerValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_kai_scheduler_values_dict = ccluster_catalogs_cluster_base_kai_scheduler_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseKaiSchedulerValues from a dict +ccluster_catalogs_cluster_base_kai_scheduler_values_from_dict = CclusterCatalogsClusterBaseKaiSchedulerValues.from_dict(ccluster_catalogs_cluster_base_kai_scheduler_values_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/CclusterCatalogsClusterBaseKedaChartValues.md b/docs/CclusterCatalogsClusterBaseKedaChartValues.md new file mode 100644 index 0000000..c2fb2c4 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseKedaChartValues.md @@ -0,0 +1,32 @@ +# CclusterCatalogsClusterBaseKedaChartValues + +ChartValues are the upstream keda values worth setting per cluster. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operator** | [**Replicas**](Replicas.md) | | [optional] +**metrics_server** | [**Replicas**](Replicas.md) | | [optional] +**webhooks** | [**Toggle**](Toggle.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_chart_values import CclusterCatalogsClusterBaseKedaChartValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseKedaChartValues from a JSON string +ccluster_catalogs_cluster_base_keda_chart_values_instance = CclusterCatalogsClusterBaseKedaChartValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseKedaChartValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_keda_chart_values_dict = ccluster_catalogs_cluster_base_keda_chart_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseKedaChartValues from a dict +ccluster_catalogs_cluster_base_keda_chart_values_from_dict = CclusterCatalogsClusterBaseKedaChartValues.from_dict(ccluster_catalogs_cluster_base_keda_chart_values_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/CclusterCatalogsClusterBaseKedaValues.md b/docs/CclusterCatalogsClusterBaseKedaValues.md new file mode 100644 index 0000000..7e62617 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseKedaValues.md @@ -0,0 +1,30 @@ +# CclusterCatalogsClusterBaseKedaValues + +Values of the catalogs/cluster_base/keda chart, generated from its Go package. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keda** | [**CclusterCatalogsClusterBaseKedaChartValues**](CclusterCatalogsClusterBaseKedaChartValues.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_values import CclusterCatalogsClusterBaseKedaValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseKedaValues from a JSON string +ccluster_catalogs_cluster_base_keda_values_instance = CclusterCatalogsClusterBaseKedaValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseKedaValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_keda_values_dict = ccluster_catalogs_cluster_base_keda_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseKedaValues from a dict +ccluster_catalogs_cluster_base_keda_values_from_dict = CclusterCatalogsClusterBaseKedaValues.from_dict(ccluster_catalogs_cluster_base_keda_values_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/CclusterCatalogsClusterBaseKubePrometheusStackChartValues.md b/docs/CclusterCatalogsClusterBaseKubePrometheusStackChartValues.md new file mode 100644 index 0000000..e34b533 --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseKubePrometheusStackChartValues.md @@ -0,0 +1,31 @@ +# CclusterCatalogsClusterBaseKubePrometheusStackChartValues + +ChartValues are the upstream kube-prometheus-stack values worth setting per cluster. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**grafana** | [**Toggle**](Toggle.md) | | [optional] +**prometheus** | [**Prometheus**](Prometheus.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values import CclusterCatalogsClusterBaseKubePrometheusStackChartValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseKubePrometheusStackChartValues from a JSON string +ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values_instance = CclusterCatalogsClusterBaseKubePrometheusStackChartValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseKubePrometheusStackChartValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values_dict = ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseKubePrometheusStackChartValues from a dict +ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values_from_dict = CclusterCatalogsClusterBaseKubePrometheusStackChartValues.from_dict(ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values_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/CclusterCatalogsClusterBaseKubePrometheusStackValues.md b/docs/CclusterCatalogsClusterBaseKubePrometheusStackValues.md new file mode 100644 index 0000000..3c37e5e --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseKubePrometheusStackValues.md @@ -0,0 +1,31 @@ +# CclusterCatalogsClusterBaseKubePrometheusStackValues + +Values of the catalogs/cluster_base/kube_prometheus_stack chart, generated from its Go package. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kube_prometheus_stack** | [**CclusterCatalogsClusterBaseKubePrometheusStackChartValues**](CclusterCatalogsClusterBaseKubePrometheusStackChartValues.md) | | [optional] +**prometheus_rules** | [**PrometheusRules**](PrometheusRules.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kube_prometheus_stack_values import CclusterCatalogsClusterBaseKubePrometheusStackValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseKubePrometheusStackValues from a JSON string +ccluster_catalogs_cluster_base_kube_prometheus_stack_values_instance = CclusterCatalogsClusterBaseKubePrometheusStackValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseKubePrometheusStackValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_kube_prometheus_stack_values_dict = ccluster_catalogs_cluster_base_kube_prometheus_stack_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseKubePrometheusStackValues from a dict +ccluster_catalogs_cluster_base_kube_prometheus_stack_values_from_dict = CclusterCatalogsClusterBaseKubePrometheusStackValues.from_dict(ccluster_catalogs_cluster_base_kube_prometheus_stack_values_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/CclusterCatalogsClusterBaseMetricsServerChartValues.md b/docs/CclusterCatalogsClusterBaseMetricsServerChartValues.md new file mode 100644 index 0000000..60ba36f --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseMetricsServerChartValues.md @@ -0,0 +1,30 @@ +# CclusterCatalogsClusterBaseMetricsServerChartValues + +ChartValues are the upstream metrics-server values worth setting per cluster. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**args** | **List[str]** | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_chart_values import CclusterCatalogsClusterBaseMetricsServerChartValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseMetricsServerChartValues from a JSON string +ccluster_catalogs_cluster_base_metrics_server_chart_values_instance = CclusterCatalogsClusterBaseMetricsServerChartValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseMetricsServerChartValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_metrics_server_chart_values_dict = ccluster_catalogs_cluster_base_metrics_server_chart_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseMetricsServerChartValues from a dict +ccluster_catalogs_cluster_base_metrics_server_chart_values_from_dict = CclusterCatalogsClusterBaseMetricsServerChartValues.from_dict(ccluster_catalogs_cluster_base_metrics_server_chart_values_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/CclusterCatalogsClusterBaseMetricsServerValues.md b/docs/CclusterCatalogsClusterBaseMetricsServerValues.md new file mode 100644 index 0000000..ce8dcba --- /dev/null +++ b/docs/CclusterCatalogsClusterBaseMetricsServerValues.md @@ -0,0 +1,30 @@ +# CclusterCatalogsClusterBaseMetricsServerValues + +Values of the catalogs/cluster_base/metrics_server chart, generated from its Go package. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metrics_server** | [**CclusterCatalogsClusterBaseMetricsServerChartValues**](CclusterCatalogsClusterBaseMetricsServerChartValues.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_values import CclusterCatalogsClusterBaseMetricsServerValues + +# TODO update the JSON string below +json = "{}" +# create an instance of CclusterCatalogsClusterBaseMetricsServerValues from a JSON string +ccluster_catalogs_cluster_base_metrics_server_values_instance = CclusterCatalogsClusterBaseMetricsServerValues.from_json(json) +# print the JSON string representation of the object +print(CclusterCatalogsClusterBaseMetricsServerValues.to_json()) + +# convert the object into a dict +ccluster_catalogs_cluster_base_metrics_server_values_dict = ccluster_catalogs_cluster_base_metrics_server_values_instance.to_dict() +# create an instance of CclusterCatalogsClusterBaseMetricsServerValues from a dict +ccluster_catalogs_cluster_base_metrics_server_values_from_dict = CclusterCatalogsClusterBaseMetricsServerValues.from_dict(ccluster_catalogs_cluster_base_metrics_server_values_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 deleted file mode 100644 index 3879fe8..0000000 --- a/docs/CertManager.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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/ClusterBaseComponents.md b/docs/ClusterBaseComponents.md new file mode 100644 index 0000000..7db3575 --- /dev/null +++ b/docs/ClusterBaseComponents.md @@ -0,0 +1,39 @@ +# ClusterBaseComponents + +The cluster_base components to install on a ccluster cluster, each as its chart's values. A component is installed only when its field is set (``{}`` for the catalog defaults), with exactly the values given. One left out is not installed, and is uninstalled if an earlier update installed it. final_stack is required. The values use the chart's own keys and may include keys the typed model doesn't list; they reach the chart unchanged. Inference deployments on GKE need ingress_nginx's `ingress-nginx.controller.podLabels` (`sidecar.istio.io/inject: \"true\"`), istio's CNI paths and gpu_operator's GKE driver paths. An unknown component name is rejected rather than read as one left out, which would uninstall it. With the generated Python client, build the request with `UpdateClusterRequest.from_dict(...)`: its model constructors drop the keys a typed model doesn't list (CentML/platform#4946). + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**kube_prometheus_stack** | [**CclusterCatalogsClusterBaseKubePrometheusStackValues**](CclusterCatalogsClusterBaseKubePrometheusStackValues.md) | | [optional] +**istio** | [**CclusterCatalogsClusterBaseIstioValues**](CclusterCatalogsClusterBaseIstioValues.md) | | [optional] +**cert_manager** | [**CclusterCatalogsClusterBaseCertManagerValues**](CclusterCatalogsClusterBaseCertManagerValues.md) | | [optional] +**ingress_nginx** | [**CclusterCatalogsClusterBaseIngressNginxValues**](CclusterCatalogsClusterBaseIngressNginxValues.md) | | [optional] +**keda** | [**CclusterCatalogsClusterBaseKedaValues**](CclusterCatalogsClusterBaseKedaValues.md) | | [optional] +**argo_rollouts** | [**CclusterCatalogsClusterBaseArgoRolloutsValues**](CclusterCatalogsClusterBaseArgoRolloutsValues.md) | | [optional] +**gpu_operator** | [**CclusterCatalogsClusterBaseGpuOperatorValues**](CclusterCatalogsClusterBaseGpuOperatorValues.md) | | [optional] +**kai_scheduler** | [**CclusterCatalogsClusterBaseKaiSchedulerValues**](CclusterCatalogsClusterBaseKaiSchedulerValues.md) | | [optional] +**metrics_server** | [**CclusterCatalogsClusterBaseMetricsServerValues**](CclusterCatalogsClusterBaseMetricsServerValues.md) | | [optional] +**final_stack** | **Dict[str, object]** | Values of the catalogs/cluster_base/final_stack chart, generated from its Go package. | + +## Example + +```python +from platform_api_python_client.models.cluster_base_components import ClusterBaseComponents + +# TODO update the JSON string below +json = "{}" +# create an instance of ClusterBaseComponents from a JSON string +cluster_base_components_instance = ClusterBaseComponents.from_json(json) +# print the JSON string representation of the object +print(ClusterBaseComponents.to_json()) + +# convert the object into a dict +cluster_base_components_dict = cluster_base_components_instance.to_dict() +# create an instance of ClusterBaseComponents from a dict +cluster_base_components_from_dict = ClusterBaseComponents.from_dict(cluster_base_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/ClusterComponents.md b/docs/ClusterComponents.md deleted file mode 100644 index a1e51ba..0000000 --- a/docs/ClusterComponents.md +++ /dev/null @@ -1,47 +0,0 @@ -# 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 deleted file mode 100644 index 3100d80..0000000 --- a/docs/ClusterConfig.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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/Dashboard.md b/docs/Dashboard.md new file mode 100644 index 0000000..4764ba9 --- /dev/null +++ b/docs/Dashboard.md @@ -0,0 +1,30 @@ +# Dashboard + +Dashboard configures the rollouts dashboard. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] + +## Example + +```python +from platform_api_python_client.models.dashboard import Dashboard + +# TODO update the JSON string below +json = "{}" +# create an instance of Dashboard from a JSON string +dashboard_instance = Dashboard.from_json(json) +# print the JSON string representation of the object +print(Dashboard.to_json()) + +# convert the object into a dict +dashboard_dict = dashboard_instance.to_dict() +# create an instance of Dashboard from a dict +dashboard_from_dict = Dashboard.from_dict(dashboard_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/DefaultPriorities.md b/docs/DefaultPriorities.md new file mode 100644 index 0000000..759a461 --- /dev/null +++ b/docs/DefaultPriorities.md @@ -0,0 +1,30 @@ +# DefaultPriorities + +DefaultPriorities configures the per-kind preemptibility ConfigMap. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] + +## Example + +```python +from platform_api_python_client.models.default_priorities import DefaultPriorities + +# TODO update the JSON string below +json = "{}" +# create an instance of DefaultPriorities from a JSON string +default_priorities_instance = DefaultPriorities.from_json(json) +# print the JSON string representation of the object +print(DefaultPriorities.to_json()) + +# convert the object into a dict +default_priorities_dict = default_priorities_instance.to_dict() +# create an instance of DefaultPriorities from a dict +default_priorities_from_dict = DefaultPriorities.from_dict(default_priorities_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/DefaultQueue.md b/docs/DefaultQueue.md new file mode 100644 index 0000000..4164e22 --- /dev/null +++ b/docs/DefaultQueue.md @@ -0,0 +1,30 @@ +# DefaultQueue + +DefaultQueue configures the queue for unlabelled pods. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**create_default_queue** | **bool** | | [optional] + +## Example + +```python +from platform_api_python_client.models.default_queue import DefaultQueue + +# TODO update the JSON string below +json = "{}" +# create an instance of DefaultQueue from a JSON string +default_queue_instance = DefaultQueue.from_json(json) +# print the JSON string representation of the object +print(DefaultQueue.to_json()) + +# convert the object into a dict +default_queue_dict = default_queue_instance.to_dict() +# create an instance of DefaultQueue from a dict +default_queue_from_dict = DefaultQueue.from_dict(default_queue_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 d20fc5b..4157bef 100644 --- a/docs/EXTERNALApi.md +++ b/docs/EXTERNALApi.md @@ -5560,13 +5560,14 @@ 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) +> object update_cluster_clusters_cluster_id_put(cluster_id, update_cluster_request) Update Cluster -Validate a cluster component configuration for an org-owned cluster. +Install the requested cluster_base components on an org-owned ccluster cluster. -Infra provisioning is not wired yet; ``config.components`` is validated only. +Applies the cluster's cluster-base component set and returns without waiting for the rollout, so +repeating the call is safe. Components left out of the request are uninstalled. ### Example @@ -5574,7 +5575,7 @@ Infra provisioning is not wired yet; ``config.components`` is validated only. ```python import platform_api_python_client -from platform_api_python_client.models.cluster_config import ClusterConfig +from platform_api_python_client.models.update_cluster_request import UpdateClusterRequest from platform_api_python_client.rest import ApiException from pprint import pprint @@ -5599,11 +5600,11 @@ 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 | + update_cluster_request = platform_api_python_client.UpdateClusterRequest() # UpdateClusterRequest | try: # Update Cluster - api_response = api_instance.update_cluster_clusters_cluster_id_put(cluster_id, cluster_config) + api_response = api_instance.update_cluster_clusters_cluster_id_put(cluster_id, update_cluster_request) print("The response of EXTERNALApi->update_cluster_clusters_cluster_id_put:\n") pprint(api_response) except Exception as e: @@ -5618,7 +5619,7 @@ with platform_api_python_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster_id** | **int**| | - **cluster_config** | [**ClusterConfig**](ClusterConfig.md)| | + **update_cluster_request** | [**UpdateClusterRequest**](UpdateClusterRequest.md)| | ### Return type diff --git a/docs/ExternalDns.md b/docs/ExternalDns.md deleted file mode 100644 index 20ea68b..0000000 --- a/docs/ExternalDns.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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 deleted file mode 100644 index 2a9df59..0000000 --- a/docs/FinalStack.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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 deleted file mode 100644 index ce501ec..0000000 --- a/docs/FluentBit.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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/GpuOperator.md b/docs/GpuOperator.md deleted file mode 100644 index e0a185d..0000000 --- a/docs/GpuOperator.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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 deleted file mode 100644 index 3ca6923..0000000 --- a/docs/IngressNginx.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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/IstioBase.md b/docs/IstioBase.md new file mode 100644 index 0000000..ed4ad00 --- /dev/null +++ b/docs/IstioBase.md @@ -0,0 +1,30 @@ +# IstioBase + +IstioBase configures the istio-base subchart. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**default_revision** | **str** | | [optional] + +## Example + +```python +from platform_api_python_client.models.istio_base import IstioBase + +# TODO update the JSON string below +json = "{}" +# create an instance of IstioBase from a JSON string +istio_base_instance = IstioBase.from_json(json) +# print the JSON string representation of the object +print(IstioBase.to_json()) + +# convert the object into a dict +istio_base_dict = istio_base_instance.to_dict() +# create an instance of IstioBase from a dict +istio_base_from_dict = IstioBase.from_dict(istio_base_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/IstioCNI.md b/docs/IstioCNI.md new file mode 100644 index 0000000..6ef0841 --- /dev/null +++ b/docs/IstioCNI.md @@ -0,0 +1,31 @@ +# IstioCNI + +IstioCNI configures the istio-cni subchart. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cni** | [**CNI**](CNI.md) | | [optional] +**tolerations** | [**List[Toleration]**](Toleration.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.istio_cni import IstioCNI + +# TODO update the JSON string below +json = "{}" +# create an instance of IstioCNI from a JSON string +istio_cni_instance = IstioCNI.from_json(json) +# print the JSON string representation of the object +print(IstioCNI.to_json()) + +# convert the object into a dict +istio_cni_dict = istio_cni_instance.to_dict() +# create an instance of IstioCNI from a dict +istio_cni_from_dict = IstioCNI.from_dict(istio_cni_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 deleted file mode 100644 index 775d603..0000000 --- a/docs/IstioCniSubchartOverrides.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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/IstioGateway.md b/docs/IstioGateway.md new file mode 100644 index 0000000..0429e4e --- /dev/null +++ b/docs/IstioGateway.md @@ -0,0 +1,30 @@ +# IstioGateway + +IstioGateway configures the istio-gateway subchart. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] + +## Example + +```python +from platform_api_python_client.models.istio_gateway import IstioGateway + +# TODO update the JSON string below +json = "{}" +# create an instance of IstioGateway from a JSON string +istio_gateway_instance = IstioGateway.from_json(json) +# print the JSON string representation of the object +print(IstioGateway.to_json()) + +# convert the object into a dict +istio_gateway_dict = istio_gateway_instance.to_dict() +# create an instance of IstioGateway from a dict +istio_gateway_from_dict = IstioGateway.from_dict(istio_gateway_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 deleted file mode 100644 index 8dd0e08..0000000 --- a/docs/IstioOverrides.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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/Istiod.md b/docs/Istiod.md new file mode 100644 index 0000000..14a6c54 --- /dev/null +++ b/docs/Istiod.md @@ -0,0 +1,30 @@ +# Istiod + +Istiod configures the istiod subchart. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pilot** | [**Pilot**](Pilot.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.istiod import Istiod + +# TODO update the JSON string below +json = "{}" +# create an instance of Istiod from a JSON string +istiod_instance = Istiod.from_json(json) +# print the JSON string representation of the object +print(Istiod.to_json()) + +# convert the object into a dict +istiod_dict = istiod_instance.to_dict() +# create an instance of Istiod from a dict +istiod_from_dict = Istiod.from_dict(istiod_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 deleted file mode 100644 index 5960b0d..0000000 --- a/docs/KubePrometheusStack.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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 deleted file mode 100644 index 4d953c2..0000000 --- a/docs/Longhorn.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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/Keda.md b/docs/MIG.md similarity index 53% rename from docs/Keda.md rename to docs/MIG.md index 76bce46..f3e152b 100644 --- a/docs/Keda.md +++ b/docs/MIG.md @@ -1,29 +1,29 @@ -# Keda +# MIG +MIG configures Multi-Instance GPU partitioning. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | | [optional] [default to True] -**values** | **object** | | [optional] +**strategy** | **str** | | [optional] ## Example ```python -from platform_api_python_client.models.keda import Keda +from platform_api_python_client.models.mig import MIG # TODO update the JSON string below json = "{}" -# create an instance of Keda from a JSON string -keda_instance = Keda.from_json(json) +# create an instance of MIG from a JSON string +mig_instance = MIG.from_json(json) # print the JSON string representation of the object -print(Keda.to_json()) +print(MIG.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) +mig_dict = mig_instance.to_dict() +# create an instance of MIG from a dict +mig_from_dict = MIG.from_dict(mig_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/Metrics.md b/docs/Metrics.md new file mode 100644 index 0000000..7c6f1c6 --- /dev/null +++ b/docs/Metrics.md @@ -0,0 +1,31 @@ +# Metrics + +Metrics configures the controller's metrics endpoint and ServiceMonitor. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] +**service_monitor** | [**Toggle**](Toggle.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.metrics import Metrics + +# TODO update the JSON string below +json = "{}" +# create an instance of Metrics from a JSON string +metrics_instance = Metrics.from_json(json) +# print the JSON string representation of the object +print(Metrics.to_json()) + +# convert the object into a dict +metrics_dict = metrics_instance.to_dict() +# create an instance of Metrics from a dict +metrics_from_dict = Metrics.from_dict(metrics_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 deleted file mode 100644 index b8ed3fb..0000000 --- a/docs/MetricsServer.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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 deleted file mode 100644 index eb9a55a..0000000 --- a/docs/NetworkOperator.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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 deleted file mode 100644 index f5c1130..0000000 --- a/docs/OpentelemetryCollector.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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/Operator.md b/docs/Operator.md new file mode 100644 index 0000000..92c9951 --- /dev/null +++ b/docs/Operator.md @@ -0,0 +1,31 @@ +# Operator + +Operator configures the KAI operator, which deploys every other KAI component. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**log_level** | **str** | | [optional] +**resources** | [**ResourceRequirements**](ResourceRequirements.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.operator import Operator + +# TODO update the JSON string below +json = "{}" +# create an instance of Operator from a JSON string +operator_instance = Operator.from_json(json) +# print the JSON string representation of the object +print(Operator.to_json()) + +# convert the object into a dict +operator_dict = operator_instance.to_dict() +# create an instance of Operator from a dict +operator_from_dict = Operator.from_dict(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/Spire.md b/docs/Pilot.md similarity index 52% rename from docs/Spire.md rename to docs/Pilot.md index c70c8aa..ae7580e 100644 --- a/docs/Spire.md +++ b/docs/Pilot.md @@ -1,29 +1,29 @@ -# Spire +# Pilot +Pilot configures istiod's pilot. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**enabled** | **bool** | | [optional] [default to True] -**values** | **object** | | [optional] +**autoscale_min** | **int** | | [optional] ## Example ```python -from platform_api_python_client.models.spire import Spire +from platform_api_python_client.models.pilot import Pilot # TODO update the JSON string below json = "{}" -# create an instance of Spire from a JSON string -spire_instance = Spire.from_json(json) +# create an instance of Pilot from a JSON string +pilot_instance = Pilot.from_json(json) # print the JSON string representation of the object -print(Spire.to_json()) +print(Pilot.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) +pilot_dict = pilot_instance.to_dict() +# create an instance of Pilot from a dict +pilot_from_dict = Pilot.from_dict(pilot_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/Prometheus.md b/docs/Prometheus.md new file mode 100644 index 0000000..de11d7f --- /dev/null +++ b/docs/Prometheus.md @@ -0,0 +1,30 @@ +# Prometheus + +Prometheus configures the Prometheus instance. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**prometheus_spec** | [**PrometheusSpec**](PrometheusSpec.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.prometheus import Prometheus + +# TODO update the JSON string below +json = "{}" +# create an instance of Prometheus from a JSON string +prometheus_instance = Prometheus.from_json(json) +# print the JSON string representation of the object +print(Prometheus.to_json()) + +# convert the object into a dict +prometheus_dict = prometheus_instance.to_dict() +# create an instance of Prometheus from a dict +prometheus_from_dict = Prometheus.from_dict(prometheus_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 deleted file mode 100644 index a71502e..0000000 --- a/docs/PrometheusAdapter.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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/PrometheusRules.md b/docs/PrometheusRules.md new file mode 100644 index 0000000..f4aa0ee --- /dev/null +++ b/docs/PrometheusRules.md @@ -0,0 +1,31 @@ +# PrometheusRules + +PrometheusRules toggles the rules and monitors this chart renders itself. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pod_alerts** | [**Toggle**](Toggle.md) | | [optional] +**envoy_stats** | [**Toggle**](Toggle.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.prometheus_rules import PrometheusRules + +# TODO update the JSON string below +json = "{}" +# create an instance of PrometheusRules from a JSON string +prometheus_rules_instance = PrometheusRules.from_json(json) +# print the JSON string representation of the object +print(PrometheusRules.to_json()) + +# convert the object into a dict +prometheus_rules_dict = prometheus_rules_instance.to_dict() +# create an instance of PrometheusRules from a dict +prometheus_rules_from_dict = PrometheusRules.from_dict(prometheus_rules_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/PrometheusSpec.md b/docs/PrometheusSpec.md new file mode 100644 index 0000000..3bd2d65 --- /dev/null +++ b/docs/PrometheusSpec.md @@ -0,0 +1,31 @@ +# PrometheusSpec + +PrometheusSpec is the Prometheus custom resource's spec. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**external_labels** | **Dict[str, str]** | | [optional] +**remote_write** | **List[Dict[str, object]]** | | [optional] + +## Example + +```python +from platform_api_python_client.models.prometheus_spec import PrometheusSpec + +# TODO update the JSON string below +json = "{}" +# create an instance of PrometheusSpec from a JSON string +prometheus_spec_instance = PrometheusSpec.from_json(json) +# print the JSON string representation of the object +print(PrometheusSpec.to_json()) + +# convert the object into a dict +prometheus_spec_dict = prometheus_spec_instance.to_dict() +# create an instance of PrometheusSpec from a dict +prometheus_spec_from_dict = PrometheusSpec.from_dict(prometheus_spec_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/PrometheusValues.md b/docs/PrometheusValues.md new file mode 100644 index 0000000..ebbdd6e --- /dev/null +++ b/docs/PrometheusValues.md @@ -0,0 +1,31 @@ +# PrometheusValues + +PrometheusValues configures cert-manager's metrics scraping. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] +**servicemonitor** | [**Toggle**](Toggle.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.prometheus_values import PrometheusValues + +# TODO update the JSON string below +json = "{}" +# create an instance of PrometheusValues from a JSON string +prometheus_values_instance = PrometheusValues.from_json(json) +# print the JSON string representation of the object +print(PrometheusValues.to_json()) + +# convert the object into a dict +prometheus_values_dict = prometheus_values_instance.to_dict() +# create an instance of PrometheusValues from a dict +prometheus_values_from_dict = PrometheusValues.from_dict(prometheus_values_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/Quota.md b/docs/Quota.md new file mode 100644 index 0000000..8d128bb --- /dev/null +++ b/docs/Quota.md @@ -0,0 +1,30 @@ +# Quota + +Quota configures the ResourceQuotas the chart creates in the release namespace. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**critical_pod_limit** | **int** | | [optional] + +## Example + +```python +from platform_api_python_client.models.quota import Quota + +# TODO update the JSON string below +json = "{}" +# create an instance of Quota from a JSON string +quota_instance = Quota.from_json(json) +# print the JSON string representation of the object +print(Quota.to_json()) + +# convert the object into a dict +quota_dict = quota_instance.to_dict() +# create an instance of Quota from a dict +quota_from_dict = Quota.from_dict(quota_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/Replicas.md b/docs/Replicas.md new file mode 100644 index 0000000..2c8459e --- /dev/null +++ b/docs/Replicas.md @@ -0,0 +1,30 @@ +# Replicas + +Replicas is a subchart's replica count. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**replica_count** | **int** | | [optional] + +## Example + +```python +from platform_api_python_client.models.replicas import Replicas + +# TODO update the JSON string below +json = "{}" +# create an instance of Replicas from a JSON string +replicas_instance = Replicas.from_json(json) +# print the JSON string representation of the object +print(Replicas.to_json()) + +# convert the object into a dict +replicas_dict = replicas_instance.to_dict() +# create an instance of Replicas from a dict +replicas_from_dict = Replicas.from_dict(replicas_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/ResourceList.md b/docs/ResourceList.md new file mode 100644 index 0000000..17e4622 --- /dev/null +++ b/docs/ResourceList.md @@ -0,0 +1,31 @@ +# ResourceList + +ResourceList is one side of ResourceRequirements, as Kubernetes quantities. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | **str** | | [optional] +**memory** | **str** | | [optional] + +## Example + +```python +from platform_api_python_client.models.resource_list import ResourceList + +# TODO update the JSON string below +json = "{}" +# create an instance of ResourceList from a JSON string +resource_list_instance = ResourceList.from_json(json) +# print the JSON string representation of the object +print(ResourceList.to_json()) + +# convert the object into a dict +resource_list_dict = resource_list_instance.to_dict() +# create an instance of ResourceList from a dict +resource_list_from_dict = ResourceList.from_dict(resource_list_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/ResourceRequirements.md b/docs/ResourceRequirements.md new file mode 100644 index 0000000..ba2ada1 --- /dev/null +++ b/docs/ResourceRequirements.md @@ -0,0 +1,31 @@ +# ResourceRequirements + +ResourceRequirements are a container's requests and limits. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requests** | [**ResourceList**](ResourceList.md) | | [optional] +**limits** | [**ResourceList**](ResourceList.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.resource_requirements import ResourceRequirements + +# TODO update the JSON string below +json = "{}" +# create an instance of ResourceRequirements from a JSON string +resource_requirements_instance = ResourceRequirements.from_json(json) +# print the JSON string representation of the object +print(ResourceRequirements.to_json()) + +# convert the object into a dict +resource_requirements_dict = resource_requirements_instance.to_dict() +# create an instance of ResourceRequirements from a dict +resource_requirements_from_dict = ResourceRequirements.from_dict(resource_requirements_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/Scheduler.md b/docs/Scheduler.md new file mode 100644 index 0000000..4f8f8ff --- /dev/null +++ b/docs/Scheduler.md @@ -0,0 +1,31 @@ +# Scheduler + +Scheduler configures the scheduler. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**placement_strategy** | **str** | | [optional] +**resources** | [**ResourceRequirements**](ResourceRequirements.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.scheduler import Scheduler + +# TODO update the JSON string below +json = "{}" +# create an instance of Scheduler from a JSON string +scheduler_instance = Scheduler.from_json(json) +# print the JSON string representation of the object +print(Scheduler.to_json()) + +# convert the object into a dict +scheduler_dict = scheduler_instance.to_dict() +# create an instance of Scheduler from a dict +scheduler_from_dict = Scheduler.from_dict(scheduler_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 deleted file mode 100644 index 4496315..0000000 --- a/docs/SpireCrds.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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 deleted file mode 100644 index 66d41a9..0000000 --- a/docs/TeleportKubeAgent.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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/docs/Toggle.md b/docs/Toggle.md new file mode 100644 index 0000000..1e87803 --- /dev/null +++ b/docs/Toggle.md @@ -0,0 +1,30 @@ +# Toggle + +Toggle is a subchart's enable flag. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | | [optional] + +## Example + +```python +from platform_api_python_client.models.toggle import Toggle + +# TODO update the JSON string below +json = "{}" +# create an instance of Toggle from a JSON string +toggle_instance = Toggle.from_json(json) +# print the JSON string representation of the object +print(Toggle.to_json()) + +# convert the object into a dict +toggle_dict = toggle_instance.to_dict() +# create an instance of Toggle from a dict +toggle_from_dict = Toggle.from_dict(toggle_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/Toleration.md b/docs/Toleration.md new file mode 100644 index 0000000..80f1c1a --- /dev/null +++ b/docs/Toleration.md @@ -0,0 +1,33 @@ +# Toleration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **str** | | [optional] +**operator** | **str** | | [optional] +**value** | **str** | | [optional] +**effect** | **str** | | [optional] +**toleration_seconds** | **int** | | [optional] + +## Example + +```python +from platform_api_python_client.models.toleration import Toleration + +# TODO update the JSON string below +json = "{}" +# create an instance of Toleration from a JSON string +toleration_instance = Toleration.from_json(json) +# print the JSON string representation of the object +print(Toleration.to_json()) + +# convert the object into a dict +toleration_dict = toleration_instance.to_dict() +# create an instance of Toleration from a dict +toleration_from_dict = Toleration.from_dict(toleration_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/UpdateClusterRequest.md b/docs/UpdateClusterRequest.md new file mode 100644 index 0000000..5c2b464 --- /dev/null +++ b/docs/UpdateClusterRequest.md @@ -0,0 +1,29 @@ +# UpdateClusterRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**components** | [**ClusterBaseComponents**](ClusterBaseComponents.md) | | + +## Example + +```python +from platform_api_python_client.models.update_cluster_request import UpdateClusterRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateClusterRequest from a JSON string +update_cluster_request_instance = UpdateClusterRequest.from_json(json) +# print the JSON string representation of the object +print(UpdateClusterRequest.to_json()) + +# convert the object into a dict +update_cluster_request_dict = update_cluster_request_instance.to_dict() +# create an instance of UpdateClusterRequest from a dict +update_cluster_request_from_dict = UpdateClusterRequest.from_dict(update_cluster_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/Workload.md b/docs/Workload.md new file mode 100644 index 0000000..10b7732 --- /dev/null +++ b/docs/Workload.md @@ -0,0 +1,30 @@ +# Workload + +Workload is a KAI component's resources. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resources** | [**ResourceRequirements**](ResourceRequirements.md) | | [optional] + +## Example + +```python +from platform_api_python_client.models.workload import Workload + +# TODO update the JSON string below +json = "{}" +# create an instance of Workload from a JSON string +workload_instance = Workload.from_json(json) +# print the JSON string representation of the object +print(Workload.to_json()) + +# convert the object into a dict +workload_dict = workload_instance.to_dict() +# create an instance of Workload from a dict +workload_from_dict = Workload.from_dict(workload_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 811adaa..cf9686d 100644 --- a/platform_api_python_client/__init__.py +++ b/platform_api_python_client/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "4.39.0" +__version__ = "4.40.0" # Define package exports __all__ = [ @@ -28,15 +28,35 @@ "ApiKeyError", "ApiAttributeError", "ApiException", - "ArgoRollouts", + "Admission", + "Autoscaling", "BackendProtocol", + "CDI", + "CNI", "CclDynamoPools", "CclMainPools", - "CertManager", + "CclusterCatalogsClusterBaseArgoRolloutsChartValues", + "CclusterCatalogsClusterBaseArgoRolloutsController", + "CclusterCatalogsClusterBaseArgoRolloutsValues", + "CclusterCatalogsClusterBaseCertManagerChartValues", + "CclusterCatalogsClusterBaseCertManagerValues", + "CclusterCatalogsClusterBaseGpuOperatorChartValues", + "CclusterCatalogsClusterBaseGpuOperatorValues", + "CclusterCatalogsClusterBaseIngressNginxChartValues", + "CclusterCatalogsClusterBaseIngressNginxController", + "CclusterCatalogsClusterBaseIngressNginxValues", + "CclusterCatalogsClusterBaseIstioValues", + "CclusterCatalogsClusterBaseKaiSchedulerChartValues", + "CclusterCatalogsClusterBaseKaiSchedulerValues", + "CclusterCatalogsClusterBaseKedaChartValues", + "CclusterCatalogsClusterBaseKedaValues", + "CclusterCatalogsClusterBaseKubePrometheusStackChartValues", + "CclusterCatalogsClusterBaseKubePrometheusStackValues", + "CclusterCatalogsClusterBaseMetricsServerChartValues", + "CclusterCatalogsClusterBaseMetricsServerValues", "CloudProvider", + "ClusterBaseComponents", "ClusterCapacityResponse", - "ClusterComponents", - "ClusterConfig", "ClusterCredential", "ClusterRegistrationRequest", "ClusterRegistrationResponse", @@ -59,6 +79,9 @@ "CreateVolumeRequest", "CreditsResponse", "DailyBillResponse", + "Dashboard", + "DefaultPriorities", + "DefaultQueue", "DeleteUserVaultItemRequest", "DeploymentComponentType", "DeploymentLogEventV4", @@ -82,9 +105,6 @@ "DynamoWorkerPoolConfig", "DynamoWorkerPools", "Env", - "ExternalDns", - "FinalStack", - "FluentBit", "GenerateServiceAccountSecretResponse", "GetClusterResponse", "GetComputeDeploymentResponse", @@ -101,7 +121,6 @@ "GetJobDeploymentResponse", "GetObjectVolumeResponse", "GetVolumeResponse", - "GpuOperator", "GpuTypeCapacity", "HTTPValidationError", "HardwareInstanceResponse", @@ -109,7 +128,6 @@ "Image", "ImagePullSecretCredentials", "Ingress", - "IngressNginx", "InsightListItemResponse", "InsightResource", "InsightResourceType", @@ -118,12 +136,10 @@ "InsightStatus", "InsightStatusChangeResponse", "InviteUserRequest", - "Istio", - "IstioCniOverrides", - "IstioCniSubchartOverrides", - "IstioOverrides", - "Keda", - "KubePrometheusStack", + "IstioBase", + "IstioCNI", + "IstioGateway", + "Istiod", "ListClusterCapacityResponse", "ListDailyBillResponse", "ListDeploymentRevisionsResponse", @@ -138,28 +154,35 @@ "ListUserVaultItemsResponse", "ListVolumesResponse", "LocationInner", - "Longhorn", + "MIG", "Metric", + "Metrics", "MetricsConfig", - "MetricsServer", - "NetworkOperator", "ObjectStorageProvider", - "OpentelemetryCollector", + "Operator", "OrganizationGpuQuotaRequest", "OrganizationGpuQuotaResponse", + "Pilot", "PodDetails", "PodStatus", "Pool", "PrebuiltImageResponse", - "PrometheusAdapter", + "Prometheus", + "PrometheusRules", + "PrometheusSpec", + "PrometheusValues", + "Quota", + "Replicas", + "ResourceList", + "ResourceRequirements", "RevisionPodDetails", "RolloutStatus", "RolloutStrategyParams", + "Scheduler", "ServiceAccountResponse", "ServiceStatus", - "Spire", - "SpireCrds", - "TeleportKubeAgent", + "Toggle", + "Toleration", "UnifiedGetComputeDeploymentResponse", "UnifiedGetDeploymentLogsResponse", "UnifiedGetDeploymentPodsResponse", @@ -179,6 +202,7 @@ "UnifiedWriteInferenceV3DeploymentRequest", "UnifiedWriteJobDeploymentRequest", "UpdateClusterMetadataRequest", + "UpdateClusterRequest", "UpdateDeploymentResponse", "UpdateDeploymentStatusV3Request", "UpdateInsightStatusRequest", @@ -195,6 +219,7 @@ "VolumeMount", "VolumeStatus", "VolumeStatusResponse", + "Workload", ] # import apis into sdk package @@ -212,15 +237,35 @@ from platform_api_python_client.exceptions import ApiException as ApiException # import models into sdk package -from platform_api_python_client.models.argo_rollouts import ArgoRollouts as ArgoRollouts +from platform_api_python_client.models.admission import Admission as Admission +from platform_api_python_client.models.autoscaling import Autoscaling as Autoscaling from platform_api_python_client.models.backend_protocol import BackendProtocol as BackendProtocol +from platform_api_python_client.models.cdi import CDI as CDI +from platform_api_python_client.models.cni import CNI as CNI from platform_api_python_client.models.ccl_dynamo_pools import CclDynamoPools as CclDynamoPools from platform_api_python_client.models.ccl_main_pools import CclMainPools as CclMainPools -from platform_api_python_client.models.cert_manager import CertManager as CertManager +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_chart_values import CclusterCatalogsClusterBaseArgoRolloutsChartValues as CclusterCatalogsClusterBaseArgoRolloutsChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_controller import CclusterCatalogsClusterBaseArgoRolloutsController as CclusterCatalogsClusterBaseArgoRolloutsController +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_values import CclusterCatalogsClusterBaseArgoRolloutsValues as CclusterCatalogsClusterBaseArgoRolloutsValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_chart_values import CclusterCatalogsClusterBaseCertManagerChartValues as CclusterCatalogsClusterBaseCertManagerChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_values import CclusterCatalogsClusterBaseCertManagerValues as CclusterCatalogsClusterBaseCertManagerValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_gpu_operator_chart_values import CclusterCatalogsClusterBaseGpuOperatorChartValues as CclusterCatalogsClusterBaseGpuOperatorChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_gpu_operator_values import CclusterCatalogsClusterBaseGpuOperatorValues as CclusterCatalogsClusterBaseGpuOperatorValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_chart_values import CclusterCatalogsClusterBaseIngressNginxChartValues as CclusterCatalogsClusterBaseIngressNginxChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_controller import CclusterCatalogsClusterBaseIngressNginxController as CclusterCatalogsClusterBaseIngressNginxController +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_values import CclusterCatalogsClusterBaseIngressNginxValues as CclusterCatalogsClusterBaseIngressNginxValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_istio_values import CclusterCatalogsClusterBaseIstioValues as CclusterCatalogsClusterBaseIstioValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kai_scheduler_chart_values import CclusterCatalogsClusterBaseKaiSchedulerChartValues as CclusterCatalogsClusterBaseKaiSchedulerChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kai_scheduler_values import CclusterCatalogsClusterBaseKaiSchedulerValues as CclusterCatalogsClusterBaseKaiSchedulerValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_chart_values import CclusterCatalogsClusterBaseKedaChartValues as CclusterCatalogsClusterBaseKedaChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_values import CclusterCatalogsClusterBaseKedaValues as CclusterCatalogsClusterBaseKedaValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values import CclusterCatalogsClusterBaseKubePrometheusStackChartValues as CclusterCatalogsClusterBaseKubePrometheusStackChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kube_prometheus_stack_values import CclusterCatalogsClusterBaseKubePrometheusStackValues as CclusterCatalogsClusterBaseKubePrometheusStackValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_chart_values import CclusterCatalogsClusterBaseMetricsServerChartValues as CclusterCatalogsClusterBaseMetricsServerChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_values import CclusterCatalogsClusterBaseMetricsServerValues as CclusterCatalogsClusterBaseMetricsServerValues from platform_api_python_client.models.cloud_provider import CloudProvider as CloudProvider +from platform_api_python_client.models.cluster_base_components import ClusterBaseComponents as ClusterBaseComponents from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse as ClusterCapacityResponse -from platform_api_python_client.models.cluster_components import ClusterComponents as ClusterComponents -from platform_api_python_client.models.cluster_config import ClusterConfig as ClusterConfig from platform_api_python_client.models.cluster_credential import ClusterCredential as ClusterCredential from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest as ClusterRegistrationRequest from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse as ClusterRegistrationResponse @@ -243,6 +288,9 @@ from platform_api_python_client.models.create_volume_request import CreateVolumeRequest as CreateVolumeRequest from platform_api_python_client.models.credits_response import CreditsResponse as CreditsResponse from platform_api_python_client.models.daily_bill_response import DailyBillResponse as DailyBillResponse +from platform_api_python_client.models.dashboard import Dashboard as Dashboard +from platform_api_python_client.models.default_priorities import DefaultPriorities as DefaultPriorities +from platform_api_python_client.models.default_queue import DefaultQueue as DefaultQueue from platform_api_python_client.models.delete_user_vault_item_request import DeleteUserVaultItemRequest as DeleteUserVaultItemRequest from platform_api_python_client.models.deployment_component_type import DeploymentComponentType as DeploymentComponentType from platform_api_python_client.models.deployment_log_event_v4 import DeploymentLogEventV4 as DeploymentLogEventV4 @@ -266,9 +314,6 @@ from platform_api_python_client.models.dynamo_worker_pool_config import DynamoWorkerPoolConfig as DynamoWorkerPoolConfig from platform_api_python_client.models.dynamo_worker_pools import DynamoWorkerPools as DynamoWorkerPools from platform_api_python_client.models.env import Env as Env -from platform_api_python_client.models.external_dns import ExternalDns as ExternalDns -from platform_api_python_client.models.final_stack import FinalStack as FinalStack -from platform_api_python_client.models.fluent_bit import FluentBit as FluentBit from platform_api_python_client.models.generate_service_account_secret_response import GenerateServiceAccountSecretResponse as GenerateServiceAccountSecretResponse from platform_api_python_client.models.get_cluster_response import GetClusterResponse as GetClusterResponse from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse as GetComputeDeploymentResponse @@ -285,7 +330,6 @@ from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse as GetJobDeploymentResponse from platform_api_python_client.models.get_object_volume_response import GetObjectVolumeResponse as GetObjectVolumeResponse from platform_api_python_client.models.get_volume_response import GetVolumeResponse as GetVolumeResponse -from platform_api_python_client.models.gpu_operator import GpuOperator as GpuOperator from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity as GpuTypeCapacity from platform_api_python_client.models.http_validation_error import HTTPValidationError as HTTPValidationError from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse as HardwareInstanceResponse @@ -293,7 +337,6 @@ from platform_api_python_client.models.image import Image as Image from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials as ImagePullSecretCredentials from platform_api_python_client.models.ingress import Ingress as Ingress -from platform_api_python_client.models.ingress_nginx import IngressNginx as IngressNginx from platform_api_python_client.models.insight_list_item_response import InsightListItemResponse as InsightListItemResponse from platform_api_python_client.models.insight_resource import InsightResource as InsightResource from platform_api_python_client.models.insight_resource_type import InsightResourceType as InsightResourceType @@ -302,12 +345,10 @@ from platform_api_python_client.models.insight_status import InsightStatus as InsightStatus from platform_api_python_client.models.insight_status_change_response import InsightStatusChangeResponse as InsightStatusChangeResponse from platform_api_python_client.models.invite_user_request import InviteUserRequest as InviteUserRequest -from platform_api_python_client.models.istio import Istio as Istio -from platform_api_python_client.models.istio_cni_overrides import IstioCniOverrides as IstioCniOverrides -from platform_api_python_client.models.istio_cni_subchart_overrides import IstioCniSubchartOverrides as IstioCniSubchartOverrides -from platform_api_python_client.models.istio_overrides import IstioOverrides as IstioOverrides -from platform_api_python_client.models.keda import Keda as Keda -from platform_api_python_client.models.kube_prometheus_stack import KubePrometheusStack as KubePrometheusStack +from platform_api_python_client.models.istio_base import IstioBase as IstioBase +from platform_api_python_client.models.istio_cni import IstioCNI as IstioCNI +from platform_api_python_client.models.istio_gateway import IstioGateway as IstioGateway +from platform_api_python_client.models.istiod import Istiod as Istiod from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse as ListClusterCapacityResponse from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse as ListDailyBillResponse from platform_api_python_client.models.list_deployment_revisions_response import ListDeploymentRevisionsResponse as ListDeploymentRevisionsResponse @@ -322,28 +363,35 @@ from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse as ListUserVaultItemsResponse from platform_api_python_client.models.list_volumes_response import ListVolumesResponse as ListVolumesResponse from platform_api_python_client.models.location_inner import LocationInner as LocationInner -from platform_api_python_client.models.longhorn import Longhorn as Longhorn +from platform_api_python_client.models.mig import MIG as MIG from platform_api_python_client.models.metric import Metric as Metric +from platform_api_python_client.models.metrics import Metrics as Metrics from platform_api_python_client.models.metrics_config import MetricsConfig as MetricsConfig -from platform_api_python_client.models.metrics_server import MetricsServer as MetricsServer -from platform_api_python_client.models.network_operator import NetworkOperator as NetworkOperator from platform_api_python_client.models.object_storage_provider import ObjectStorageProvider as ObjectStorageProvider -from platform_api_python_client.models.opentelemetry_collector import OpentelemetryCollector as OpentelemetryCollector +from platform_api_python_client.models.operator import Operator as Operator from platform_api_python_client.models.organization_gpu_quota_request import OrganizationGpuQuotaRequest as OrganizationGpuQuotaRequest from platform_api_python_client.models.organization_gpu_quota_response import OrganizationGpuQuotaResponse as OrganizationGpuQuotaResponse +from platform_api_python_client.models.pilot import Pilot as Pilot from platform_api_python_client.models.pod_details import PodDetails as PodDetails from platform_api_python_client.models.pod_status import PodStatus as PodStatus from platform_api_python_client.models.pool import Pool as Pool from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse as PrebuiltImageResponse -from platform_api_python_client.models.prometheus_adapter import PrometheusAdapter as PrometheusAdapter +from platform_api_python_client.models.prometheus import Prometheus as Prometheus +from platform_api_python_client.models.prometheus_rules import PrometheusRules as PrometheusRules +from platform_api_python_client.models.prometheus_spec import PrometheusSpec as PrometheusSpec +from platform_api_python_client.models.prometheus_values import PrometheusValues as PrometheusValues +from platform_api_python_client.models.quota import Quota as Quota +from platform_api_python_client.models.replicas import Replicas as Replicas +from platform_api_python_client.models.resource_list import ResourceList as ResourceList +from platform_api_python_client.models.resource_requirements import ResourceRequirements as ResourceRequirements from platform_api_python_client.models.revision_pod_details import RevisionPodDetails as RevisionPodDetails from platform_api_python_client.models.rollout_status import RolloutStatus as RolloutStatus from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams as RolloutStrategyParams +from platform_api_python_client.models.scheduler import Scheduler as Scheduler from platform_api_python_client.models.service_account_response import ServiceAccountResponse as ServiceAccountResponse from platform_api_python_client.models.service_status import ServiceStatus as ServiceStatus -from platform_api_python_client.models.spire import Spire as Spire -from platform_api_python_client.models.spire_crds import SpireCrds as SpireCrds -from platform_api_python_client.models.teleport_kube_agent import TeleportKubeAgent as TeleportKubeAgent +from platform_api_python_client.models.toggle import Toggle as Toggle +from platform_api_python_client.models.toleration import Toleration as Toleration from platform_api_python_client.models.unified_get_compute_deployment_response import UnifiedGetComputeDeploymentResponse as UnifiedGetComputeDeploymentResponse from platform_api_python_client.models.unified_get_deployment_logs_response import UnifiedGetDeploymentLogsResponse as UnifiedGetDeploymentLogsResponse from platform_api_python_client.models.unified_get_deployment_pods_response import UnifiedGetDeploymentPodsResponse as UnifiedGetDeploymentPodsResponse @@ -363,6 +411,7 @@ from platform_api_python_client.models.unified_write_inference_v3_deployment_request import UnifiedWriteInferenceV3DeploymentRequest as UnifiedWriteInferenceV3DeploymentRequest from platform_api_python_client.models.unified_write_job_deployment_request import UnifiedWriteJobDeploymentRequest as UnifiedWriteJobDeploymentRequest from platform_api_python_client.models.update_cluster_metadata_request import UpdateClusterMetadataRequest as UpdateClusterMetadataRequest +from platform_api_python_client.models.update_cluster_request import UpdateClusterRequest as UpdateClusterRequest from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse as UpdateDeploymentResponse from platform_api_python_client.models.update_deployment_status_v3_request import UpdateDeploymentStatusV3Request as UpdateDeploymentStatusV3Request from platform_api_python_client.models.update_insight_status_request import UpdateInsightStatusRequest as UpdateInsightStatusRequest @@ -379,4 +428,5 @@ from platform_api_python_client.models.volume_mount import VolumeMount as VolumeMount from platform_api_python_client.models.volume_status import VolumeStatus as VolumeStatus from platform_api_python_client.models.volume_status_response import VolumeStatusResponse as VolumeStatusResponse +from platform_api_python_client.models.workload import Workload as Workload diff --git a/platform_api_python_client/api/external_api.py b/platform_api_python_client/api/external_api.py index 370de9c..319706b 100644 --- a/platform_api_python_client/api/external_api.py +++ b/platform_api_python_client/api/external_api.py @@ -19,7 +19,6 @@ from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, List, Optional from typing_extensions import Annotated -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_compute_deployment_request import CreateComputeDeploymentRequest @@ -87,6 +86,7 @@ from platform_api_python_client.models.unified_write_deployment_request import UnifiedWriteDeploymentRequest from platform_api_python_client.models.unified_write_deployment_response import UnifiedWriteDeploymentResponse from platform_api_python_client.models.update_cluster_metadata_request import UpdateClusterMetadataRequest +from platform_api_python_client.models.update_cluster_request import UpdateClusterRequest 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_insight_status_request import UpdateInsightStatusRequest @@ -19466,7 +19466,7 @@ def _setup_stripe_customer_payments_setup_post_serialize( def update_cluster_clusters_cluster_id_put( self, cluster_id: StrictInt, - cluster_config: ClusterConfig, + update_cluster_request: UpdateClusterRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19482,12 +19482,12 @@ def update_cluster_clusters_cluster_id_put( ) -> object: """Update Cluster - Validate a cluster component configuration for an org-owned cluster. Infra provisioning is not wired yet; ``config.components`` is validated only. + Install the requested cluster_base components on an org-owned ccluster cluster. Applies the cluster's cluster-base component set and returns without waiting for the rollout, so repeating the call is safe. Components left out of the request are uninstalled. :param cluster_id: (required) :type cluster_id: int - :param cluster_config: (required) - :type cluster_config: ClusterConfig + :param update_cluster_request: (required) + :type update_cluster_request: UpdateClusterRequest :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 @@ -19512,7 +19512,7 @@ def update_cluster_clusters_cluster_id_put( _param = self._update_cluster_clusters_cluster_id_put_serialize( cluster_id=cluster_id, - cluster_config=cluster_config, + update_cluster_request=update_cluster_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19538,7 +19538,7 @@ def update_cluster_clusters_cluster_id_put( def update_cluster_clusters_cluster_id_put_with_http_info( self, cluster_id: StrictInt, - cluster_config: ClusterConfig, + update_cluster_request: UpdateClusterRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19554,12 +19554,12 @@ def update_cluster_clusters_cluster_id_put_with_http_info( ) -> ApiResponse[object]: """Update Cluster - Validate a cluster component configuration for an org-owned cluster. Infra provisioning is not wired yet; ``config.components`` is validated only. + Install the requested cluster_base components on an org-owned ccluster cluster. Applies the cluster's cluster-base component set and returns without waiting for the rollout, so repeating the call is safe. Components left out of the request are uninstalled. :param cluster_id: (required) :type cluster_id: int - :param cluster_config: (required) - :type cluster_config: ClusterConfig + :param update_cluster_request: (required) + :type update_cluster_request: UpdateClusterRequest :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 @@ -19584,7 +19584,7 @@ def update_cluster_clusters_cluster_id_put_with_http_info( _param = self._update_cluster_clusters_cluster_id_put_serialize( cluster_id=cluster_id, - cluster_config=cluster_config, + update_cluster_request=update_cluster_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19610,7 +19610,7 @@ def update_cluster_clusters_cluster_id_put_with_http_info( def update_cluster_clusters_cluster_id_put_without_preload_content( self, cluster_id: StrictInt, - cluster_config: ClusterConfig, + update_cluster_request: UpdateClusterRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19626,12 +19626,12 @@ def update_cluster_clusters_cluster_id_put_without_preload_content( ) -> RESTResponseType: """Update Cluster - Validate a cluster component configuration for an org-owned cluster. Infra provisioning is not wired yet; ``config.components`` is validated only. + Install the requested cluster_base components on an org-owned ccluster cluster. Applies the cluster's cluster-base component set and returns without waiting for the rollout, so repeating the call is safe. Components left out of the request are uninstalled. :param cluster_id: (required) :type cluster_id: int - :param cluster_config: (required) - :type cluster_config: ClusterConfig + :param update_cluster_request: (required) + :type update_cluster_request: UpdateClusterRequest :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 @@ -19656,7 +19656,7 @@ def update_cluster_clusters_cluster_id_put_without_preload_content( _param = self._update_cluster_clusters_cluster_id_put_serialize( cluster_id=cluster_id, - cluster_config=cluster_config, + update_cluster_request=update_cluster_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19677,7 +19677,7 @@ def update_cluster_clusters_cluster_id_put_without_preload_content( def _update_cluster_clusters_cluster_id_put_serialize( self, cluster_id, - cluster_config, + update_cluster_request, _request_auth, _content_type, _headers, @@ -19705,8 +19705,8 @@ def _update_cluster_clusters_cluster_id_put_serialize( # process the header parameters # process the form parameters # process the body parameter - if cluster_config is not None: - _body_params = cluster_config + if update_cluster_request is not None: + _body_params = update_cluster_request # set the HTTP header `Accept` diff --git a/platform_api_python_client/api_client.py b/platform_api_python_client/api_client.py index 2e3de6d..2e429ce 100644 --- a/platform_api_python_client/api_client.py +++ b/platform_api_python_client/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/4.39.0/python' + self.user_agent = 'OpenAPI-Generator/4.40.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 1f16507..0bd9c95 100644 --- a/platform_api_python_client/configuration.py +++ b/platform_api_python_client/configuration.py @@ -562,7 +562,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.1.0\n"\ - "SDK Package Version: 4.39.0".\ + "SDK Package Version: 4.40.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/platform_api_python_client/models/__init__.py b/platform_api_python_client/models/__init__.py index c65fd1b..594e69d 100644 --- a/platform_api_python_client/models/__init__.py +++ b/platform_api_python_client/models/__init__.py @@ -13,15 +13,35 @@ """ # noqa: E501 # import models into model package -from platform_api_python_client.models.argo_rollouts import ArgoRollouts +from platform_api_python_client.models.admission import Admission +from platform_api_python_client.models.autoscaling import Autoscaling from platform_api_python_client.models.backend_protocol import BackendProtocol +from platform_api_python_client.models.cdi import CDI +from platform_api_python_client.models.cni import CNI from platform_api_python_client.models.ccl_dynamo_pools import CclDynamoPools from platform_api_python_client.models.ccl_main_pools import CclMainPools -from platform_api_python_client.models.cert_manager import CertManager +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_chart_values import CclusterCatalogsClusterBaseArgoRolloutsChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_controller import CclusterCatalogsClusterBaseArgoRolloutsController +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_values import CclusterCatalogsClusterBaseArgoRolloutsValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_chart_values import CclusterCatalogsClusterBaseCertManagerChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_values import CclusterCatalogsClusterBaseCertManagerValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_gpu_operator_chart_values import CclusterCatalogsClusterBaseGpuOperatorChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_gpu_operator_values import CclusterCatalogsClusterBaseGpuOperatorValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_chart_values import CclusterCatalogsClusterBaseIngressNginxChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_controller import CclusterCatalogsClusterBaseIngressNginxController +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_values import CclusterCatalogsClusterBaseIngressNginxValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_istio_values import CclusterCatalogsClusterBaseIstioValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kai_scheduler_chart_values import CclusterCatalogsClusterBaseKaiSchedulerChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kai_scheduler_values import CclusterCatalogsClusterBaseKaiSchedulerValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_chart_values import CclusterCatalogsClusterBaseKedaChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_values import CclusterCatalogsClusterBaseKedaValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values import CclusterCatalogsClusterBaseKubePrometheusStackChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kube_prometheus_stack_values import CclusterCatalogsClusterBaseKubePrometheusStackValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_chart_values import CclusterCatalogsClusterBaseMetricsServerChartValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_values import CclusterCatalogsClusterBaseMetricsServerValues from platform_api_python_client.models.cloud_provider import CloudProvider +from platform_api_python_client.models.cluster_base_components import ClusterBaseComponents 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 @@ -44,6 +64,9 @@ from platform_api_python_client.models.create_volume_request import CreateVolumeRequest 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.dashboard import Dashboard +from platform_api_python_client.models.default_priorities import DefaultPriorities +from platform_api_python_client.models.default_queue import DefaultQueue from platform_api_python_client.models.delete_user_vault_item_request import DeleteUserVaultItemRequest from platform_api_python_client.models.deployment_component_type import DeploymentComponentType from platform_api_python_client.models.deployment_log_event_v4 import DeploymentLogEventV4 @@ -67,9 +90,6 @@ from platform_api_python_client.models.dynamo_worker_pool_config import DynamoWorkerPoolConfig from platform_api_python_client.models.dynamo_worker_pools import DynamoWorkerPools from platform_api_python_client.models.env import Env -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_cluster_response import GetClusterResponse from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse @@ -86,7 +106,6 @@ from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse from platform_api_python_client.models.get_object_volume_response import GetObjectVolumeResponse from platform_api_python_client.models.get_volume_response import GetVolumeResponse -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 @@ -94,7 +113,6 @@ from platform_api_python_client.models.image import Image from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials from platform_api_python_client.models.ingress import Ingress -from platform_api_python_client.models.ingress_nginx import IngressNginx from platform_api_python_client.models.insight_list_item_response import InsightListItemResponse from platform_api_python_client.models.insight_resource import InsightResource from platform_api_python_client.models.insight_resource_type import InsightResourceType @@ -103,12 +121,10 @@ from platform_api_python_client.models.insight_status import InsightStatus from platform_api_python_client.models.insight_status_change_response import InsightStatusChangeResponse 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.istio_base import IstioBase +from platform_api_python_client.models.istio_cni import IstioCNI +from platform_api_python_client.models.istio_gateway import IstioGateway +from platform_api_python_client.models.istiod import Istiod from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse from platform_api_python_client.models.list_deployment_revisions_response import ListDeploymentRevisionsResponse @@ -123,28 +139,35 @@ from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse from platform_api_python_client.models.list_volumes_response import ListVolumesResponse from platform_api_python_client.models.location_inner import LocationInner -from platform_api_python_client.models.longhorn import Longhorn +from platform_api_python_client.models.mig import MIG from platform_api_python_client.models.metric import Metric +from platform_api_python_client.models.metrics import Metrics 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.object_storage_provider import ObjectStorageProvider -from platform_api_python_client.models.opentelemetry_collector import OpentelemetryCollector +from platform_api_python_client.models.operator import Operator from platform_api_python_client.models.organization_gpu_quota_request import OrganizationGpuQuotaRequest from platform_api_python_client.models.organization_gpu_quota_response import OrganizationGpuQuotaResponse +from platform_api_python_client.models.pilot import Pilot 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.pool import Pool 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.prometheus import Prometheus +from platform_api_python_client.models.prometheus_rules import PrometheusRules +from platform_api_python_client.models.prometheus_spec import PrometheusSpec +from platform_api_python_client.models.prometheus_values import PrometheusValues +from platform_api_python_client.models.quota import Quota +from platform_api_python_client.models.replicas import Replicas +from platform_api_python_client.models.resource_list import ResourceList +from platform_api_python_client.models.resource_requirements import ResourceRequirements 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.scheduler import Scheduler 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.toggle import Toggle +from platform_api_python_client.models.toleration import Toleration from platform_api_python_client.models.unified_get_compute_deployment_response import UnifiedGetComputeDeploymentResponse from platform_api_python_client.models.unified_get_deployment_logs_response import UnifiedGetDeploymentLogsResponse from platform_api_python_client.models.unified_get_deployment_pods_response import UnifiedGetDeploymentPodsResponse @@ -164,6 +187,7 @@ from platform_api_python_client.models.unified_write_inference_v3_deployment_request import UnifiedWriteInferenceV3DeploymentRequest from platform_api_python_client.models.unified_write_job_deployment_request import UnifiedWriteJobDeploymentRequest from platform_api_python_client.models.update_cluster_metadata_request import UpdateClusterMetadataRequest +from platform_api_python_client.models.update_cluster_request import UpdateClusterRequest 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_insight_status_request import UpdateInsightStatusRequest @@ -180,4 +204,5 @@ from platform_api_python_client.models.volume_mount import VolumeMount from platform_api_python_client.models.volume_status import VolumeStatus from platform_api_python_client.models.volume_status_response import VolumeStatusResponse +from platform_api_python_client.models.workload import Workload diff --git a/platform_api_python_client/models/admission.py b/platform_api_python_client/models/admission.py new file mode 100644 index 0000000..03cb65e --- /dev/null +++ b/platform_api_python_client/models/admission.py @@ -0,0 +1,106 @@ +# 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 +from pydantic_core import to_jsonable_python + +class Admission(BaseModel): + """ + Admission configures KAI's admission webhook. + """ # noqa: E501 + gpu_pod_runtime_class_name: Optional[StrictStr] = Field(default=None, alias="gpuPodRuntimeClassName") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["gpuPodRuntimeClassName"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Admission 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if gpu_pod_runtime_class_name (nullable) is None + # and model_fields_set contains the field + if self.gpu_pod_runtime_class_name is None and "gpu_pod_runtime_class_name" in self.model_fields_set: + _dict['gpuPodRuntimeClassName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Admission from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "gpuPodRuntimeClassName": obj.get("gpuPodRuntimeClassName") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/cert_manager.py b/platform_api_python_client/models/autoscaling.py similarity index 53% rename from platform_api_python_client/models/cert_manager.py rename to platform_api_python_client/models/autoscaling.py index 1ebb525..b9e6a63 100644 --- a/platform_api_python_client/models/cert_manager.py +++ b/platform_api_python_client/models/autoscaling.py @@ -17,19 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python -class CertManager(BaseModel): +class Autoscaling(BaseModel): """ - CertManager + Autoscaling configures the controller's HorizontalPodAutoscaler. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + enabled: Optional[StrictBool] = None + min_replicas: Optional[StrictInt] = Field(default=None, alias="minReplicas") + max_replicas: Optional[StrictInt] = Field(default=None, alias="maxReplicas") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enabled", "minReplicas", "maxReplicas"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +51,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CertManager from a JSON string""" + """Create an instance of Autoscaling from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +63,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,16 +74,31 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if enabled (nullable) is None + # and model_fields_set contains the field + if self.enabled is None and "enabled" in self.model_fields_set: + _dict['enabled'] = None + + # set to None if min_replicas (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 + if self.min_replicas is None and "min_replicas" in self.model_fields_set: + _dict['minReplicas'] = None + + # set to None if max_replicas (nullable) is None + # and model_fields_set contains the field + if self.max_replicas is None and "max_replicas" in self.model_fields_set: + _dict['maxReplicas'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CertManager from a dict""" + """Create an instance of Autoscaling from a dict""" if obj is None: return None @@ -87,9 +106,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") + "enabled": obj.get("enabled"), + "minReplicas": obj.get("minReplicas"), + "maxReplicas": obj.get("maxReplicas") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py new file mode 100644 index 0000000..6e81f36 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py @@ -0,0 +1,121 @@ +# 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.ccluster_catalogs_cluster_base_argo_rollouts_controller import CclusterCatalogsClusterBaseArgoRolloutsController +from platform_api_python_client.models.dashboard import Dashboard +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseArgoRolloutsChartValues(BaseModel): + """ + ChartValues are the upstream argo-rollouts values worth setting per cluster. Anything not set here comes from catalogs/cluster_base/argo_rollouts/values.yaml. + """ # noqa: E501 + controller: Optional[CclusterCatalogsClusterBaseArgoRolloutsController] = None + dashboard: Optional[Dashboard] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["controller", "dashboard"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseArgoRolloutsChartValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of controller + if self.controller: + _dict['controller'] = self.controller.to_dict() + # override the default output from pydantic by calling `to_dict()` of dashboard + if self.dashboard: + _dict['dashboard'] = self.dashboard.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if controller (nullable) is None + # and model_fields_set contains the field + if self.controller is None and "controller" in self.model_fields_set: + _dict['controller'] = None + + # set to None if dashboard (nullable) is None + # and model_fields_set contains the field + if self.dashboard is None and "dashboard" in self.model_fields_set: + _dict['dashboard'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseArgoRolloutsChartValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "controller": CclusterCatalogsClusterBaseArgoRolloutsController.from_dict(obj["controller"]) if obj.get("controller") is not None else None, + "dashboard": Dashboard.from_dict(obj["dashboard"]) if obj.get("dashboard") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_controller.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_controller.py new file mode 100644 index 0000000..606d461 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_controller.py @@ -0,0 +1,106 @@ +# 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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseArgoRolloutsController(BaseModel): + """ + Controller configures the rollouts controller. + """ # noqa: E501 + replicas: Optional[StrictInt] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["replicas"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseArgoRolloutsController 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if replicas (nullable) is None + # and model_fields_set contains the field + if self.replicas is None and "replicas" in self.model_fields_set: + _dict['replicas'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseArgoRolloutsController from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "replicas": obj.get("replicas") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_values.py new file mode 100644 index 0000000..56e7899 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_values.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, Field +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_chart_values import CclusterCatalogsClusterBaseArgoRolloutsChartValues +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseArgoRolloutsValues(BaseModel): + """ + Values of the catalogs/cluster_base/argo_rollouts chart, generated from its Go package. + """ # noqa: E501 + argo_rollouts: Optional[CclusterCatalogsClusterBaseArgoRolloutsChartValues] = Field(default=None, alias="argo-rollouts") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["argo-rollouts"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseArgoRolloutsValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # 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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if argo_rollouts (nullable) is None + # and model_fields_set contains the field + if self.argo_rollouts is None and "argo_rollouts" in self.model_fields_set: + _dict['argo-rollouts'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseArgoRolloutsValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "argo-rollouts": CclusterCatalogsClusterBaseArgoRolloutsChartValues.from_dict(obj["argo-rollouts"]) if obj.get("argo-rollouts") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_chart_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_chart_values.py new file mode 100644 index 0000000..6a59dea --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_chart_values.py @@ -0,0 +1,117 @@ +# 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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.prometheus_values import PrometheusValues +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseCertManagerChartValues(BaseModel): + """ + ChartValues are the upstream cert-manager values worth setting per cluster. + """ # noqa: E501 + replica_count: Optional[StrictInt] = Field(default=None, alias="replicaCount") + prometheus: Optional[PrometheusValues] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["replicaCount", "prometheus"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseCertManagerChartValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of prometheus + if self.prometheus: + _dict['prometheus'] = self.prometheus.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if replica_count (nullable) is None + # and model_fields_set contains the field + if self.replica_count is None and "replica_count" in self.model_fields_set: + _dict['replicaCount'] = None + + # set to None if prometheus (nullable) is None + # and model_fields_set contains the field + if self.prometheus is None and "prometheus" in self.model_fields_set: + _dict['prometheus'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseCertManagerChartValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "replicaCount": obj.get("replicaCount"), + "prometheus": PrometheusValues.from_dict(obj["prometheus"]) if obj.get("prometheus") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_values.py new file mode 100644 index 0000000..8cb484a --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_values.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, Field +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_chart_values import CclusterCatalogsClusterBaseCertManagerChartValues +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseCertManagerValues(BaseModel): + """ + Values of the catalogs/cluster_base/cert_manager chart, generated from its Go package. + """ # noqa: E501 + cert_manager: Optional[CclusterCatalogsClusterBaseCertManagerChartValues] = Field(default=None, alias="cert-manager") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["cert-manager"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseCertManagerValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # 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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cert_manager (nullable) is None + # and model_fields_set contains the field + if self.cert_manager is None and "cert_manager" in self.model_fields_set: + _dict['cert-manager'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseCertManagerValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cert-manager": CclusterCatalogsClusterBaseCertManagerChartValues.from_dict(obj["cert-manager"]) if obj.get("cert-manager") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_chart_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_chart_values.py new file mode 100644 index 0000000..35c2f51 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_chart_values.py @@ -0,0 +1,152 @@ +# 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.cdi import CDI +from platform_api_python_client.models.mig import MIG +from platform_api_python_client.models.toggle import Toggle +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseGpuOperatorChartValues(BaseModel): + """ + ChartValues are the upstream gpu-operator values worth setting per cluster. Driver and Toolkit are the important ones, and the reason every optional scalar in these packages is a pointer. The chart ships both disabled for k3d and kind, where the node is a container sharing the host kernel and the in-cluster driver DaemonSet cannot load modules — there, the host supplies the driver and the container toolkit. On bare metal, EKS and GKE both must be enabled. A plain bool could not express the difference between \"leave the chart's default\" and \"explicitly false\". + """ # noqa: E501 + driver: Optional[Toggle] = None + toolkit: Optional[Toggle] = None + nfd: Optional[Toggle] = None + cdi: Optional[CDI] = None + mig: Optional[MIG] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["driver", "toolkit", "nfd", "cdi", "mig"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseGpuOperatorChartValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of driver + if self.driver: + _dict['driver'] = self.driver.to_dict() + # override the default output from pydantic by calling `to_dict()` of toolkit + if self.toolkit: + _dict['toolkit'] = self.toolkit.to_dict() + # override the default output from pydantic by calling `to_dict()` of nfd + if self.nfd: + _dict['nfd'] = self.nfd.to_dict() + # override the default output from pydantic by calling `to_dict()` of cdi + if self.cdi: + _dict['cdi'] = self.cdi.to_dict() + # override the default output from pydantic by calling `to_dict()` of mig + if self.mig: + _dict['mig'] = self.mig.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if driver (nullable) is None + # and model_fields_set contains the field + if self.driver is None and "driver" in self.model_fields_set: + _dict['driver'] = None + + # set to None if toolkit (nullable) is None + # and model_fields_set contains the field + if self.toolkit is None and "toolkit" in self.model_fields_set: + _dict['toolkit'] = None + + # set to None if nfd (nullable) is None + # and model_fields_set contains the field + if self.nfd is None and "nfd" in self.model_fields_set: + _dict['nfd'] = None + + # set to None if cdi (nullable) is None + # and model_fields_set contains the field + if self.cdi is None and "cdi" in self.model_fields_set: + _dict['cdi'] = None + + # set to None if mig (nullable) is None + # and model_fields_set contains the field + if self.mig is None and "mig" in self.model_fields_set: + _dict['mig'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseGpuOperatorChartValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "driver": Toggle.from_dict(obj["driver"]) if obj.get("driver") is not None else None, + "toolkit": Toggle.from_dict(obj["toolkit"]) if obj.get("toolkit") is not None else None, + "nfd": Toggle.from_dict(obj["nfd"]) if obj.get("nfd") is not None else None, + "cdi": CDI.from_dict(obj["cdi"]) if obj.get("cdi") is not None else None, + "mig": MIG.from_dict(obj["mig"]) if obj.get("mig") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_values.py new file mode 100644 index 0000000..3530d53 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_values.py @@ -0,0 +1,121 @@ +# 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.ccluster_catalogs_cluster_base_gpu_operator_chart_values import CclusterCatalogsClusterBaseGpuOperatorChartValues +from platform_api_python_client.models.quota import Quota +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseGpuOperatorValues(BaseModel): + """ + Values of the catalogs/cluster_base/gpu_operator chart, generated from its Go package. + """ # noqa: E501 + gpu_operator: Optional[CclusterCatalogsClusterBaseGpuOperatorChartValues] = Field(default=None, alias="gpu-operator") + quota: Optional[Quota] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["gpu-operator", "quota"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseGpuOperatorValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # 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 quota + if self.quota: + _dict['quota'] = self.quota.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if gpu_operator (nullable) is None + # and model_fields_set contains the field + if self.gpu_operator is None and "gpu_operator" in self.model_fields_set: + _dict['gpu-operator'] = None + + # set to None if quota (nullable) is None + # and model_fields_set contains the field + if self.quota is None and "quota" in self.model_fields_set: + _dict['quota'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseGpuOperatorValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "gpu-operator": CclusterCatalogsClusterBaseGpuOperatorChartValues.from_dict(obj["gpu-operator"]) if obj.get("gpu-operator") is not None else None, + "quota": Quota.from_dict(obj["quota"]) if obj.get("quota") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_chart_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_chart_values.py new file mode 100644 index 0000000..8f0cc45 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_chart_values.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 +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_controller import CclusterCatalogsClusterBaseIngressNginxController +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseIngressNginxChartValues(BaseModel): + """ + ChartValues are the upstream ingress-nginx values worth setting per cluster. + """ # noqa: E501 + controller: Optional[CclusterCatalogsClusterBaseIngressNginxController] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["controller"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseIngressNginxChartValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of controller + if self.controller: + _dict['controller'] = self.controller.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if controller (nullable) is None + # and model_fields_set contains the field + if self.controller is None and "controller" in self.model_fields_set: + _dict['controller'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseIngressNginxChartValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "controller": CclusterCatalogsClusterBaseIngressNginxController.from_dict(obj["controller"]) if obj.get("controller") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_controller.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_controller.py new file mode 100644 index 0000000..481f834 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_controller.py @@ -0,0 +1,121 @@ +# 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.autoscaling import Autoscaling +from platform_api_python_client.models.metrics import Metrics +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseIngressNginxController(BaseModel): + """ + Controller configures the ingress controller. + """ # noqa: E501 + metrics: Optional[Metrics] = None + autoscaling: Optional[Autoscaling] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["metrics", "autoscaling"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseIngressNginxController 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of metrics + if self.metrics: + _dict['metrics'] = self.metrics.to_dict() + # override the default output from pydantic by calling `to_dict()` of autoscaling + if self.autoscaling: + _dict['autoscaling'] = self.autoscaling.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if metrics (nullable) is None + # and model_fields_set contains the field + if self.metrics is None and "metrics" in self.model_fields_set: + _dict['metrics'] = None + + # set to None if autoscaling (nullable) is None + # and model_fields_set contains the field + if self.autoscaling is None and "autoscaling" in self.model_fields_set: + _dict['autoscaling'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseIngressNginxController from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metrics": Metrics.from_dict(obj["metrics"]) if obj.get("metrics") is not None else None, + "autoscaling": Autoscaling.from_dict(obj["autoscaling"]) if obj.get("autoscaling") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_values.py new file mode 100644 index 0000000..455f50d --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_values.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, Field +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_chart_values import CclusterCatalogsClusterBaseIngressNginxChartValues +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseIngressNginxValues(BaseModel): + """ + Values of the catalogs/cluster_base/ingress_nginx chart, generated from its Go package. + """ # noqa: E501 + ingress_nginx: Optional[CclusterCatalogsClusterBaseIngressNginxChartValues] = Field(default=None, alias="ingress-nginx") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["ingress-nginx"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseIngressNginxValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # 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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if ingress_nginx (nullable) is None + # and model_fields_set contains the field + if self.ingress_nginx is None and "ingress_nginx" in self.model_fields_set: + _dict['ingress-nginx'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseIngressNginxValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ingress-nginx": CclusterCatalogsClusterBaseIngressNginxChartValues.from_dict(obj["ingress-nginx"]) if obj.get("ingress-nginx") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_istio_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_istio_values.py new file mode 100644 index 0000000..bccfc94 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_istio_values.py @@ -0,0 +1,143 @@ +# 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_base import IstioBase +from platform_api_python_client.models.istio_cni import IstioCNI +from platform_api_python_client.models.istio_gateway import IstioGateway +from platform_api_python_client.models.istiod import Istiod +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseIstioValues(BaseModel): + """ + Values of the catalogs/cluster_base/istio chart, generated from its Go package. + """ # noqa: E501 + istio_base: Optional[IstioBase] = Field(default=None, alias="istio-base") + istiod: Optional[Istiod] = None + istio_gateway: Optional[IstioGateway] = Field(default=None, alias="istio-gateway") + istio_cni: Optional[IstioCNI] = Field(default=None, alias="istio-cni") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["istio-base", "istiod", "istio-gateway", "istio-cni"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseIstioValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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_base + if self.istio_base: + _dict['istio-base'] = self.istio_base.to_dict() + # override the default output from pydantic by calling `to_dict()` of istiod + if self.istiod: + _dict['istiod'] = self.istiod.to_dict() + # override the default output from pydantic by calling `to_dict()` of istio_gateway + if self.istio_gateway: + _dict['istio-gateway'] = self.istio_gateway.to_dict() + # 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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if istio_base (nullable) is None + # and model_fields_set contains the field + if self.istio_base is None and "istio_base" in self.model_fields_set: + _dict['istio-base'] = None + + # set to None if istiod (nullable) is None + # and model_fields_set contains the field + if self.istiod is None and "istiod" in self.model_fields_set: + _dict['istiod'] = None + + # set to None if istio_gateway (nullable) is None + # and model_fields_set contains the field + if self.istio_gateway is None and "istio_gateway" in self.model_fields_set: + _dict['istio-gateway'] = None + + # 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 CclusterCatalogsClusterBaseIstioValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "istio-base": IstioBase.from_dict(obj["istio-base"]) if obj.get("istio-base") is not None else None, + "istiod": Istiod.from_dict(obj["istiod"]) if obj.get("istiod") is not None else None, + "istio-gateway": IstioGateway.from_dict(obj["istio-gateway"]) if obj.get("istio-gateway") is not None else None, + "istio-cni": IstioCNI.from_dict(obj["istio-cni"]) if obj.get("istio-cni") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_chart_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_chart_values.py new file mode 100644 index 0000000..2a09ddf --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_chart_values.py @@ -0,0 +1,154 @@ +# 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.admission import Admission +from platform_api_python_client.models.default_queue import DefaultQueue +from platform_api_python_client.models.operator import Operator +from platform_api_python_client.models.scheduler import Scheduler +from platform_api_python_client.models.workload import Workload +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseKaiSchedulerChartValues(BaseModel): + """ + ChartValues are the upstream kai-scheduler values worth setting per cluster. Scheduler.Resources, Binder and Admission reach the KAI components through the kai-config Config CR, which the upstream chart applies from a hook Job rather than as an Application resource. Argo CD does not diff hooks, so the chart also renders a ConfigMap holding a checksum of these values: changing them marks the Application OutOfSync, and the sync reruns the hook. Scheduler.PlacementStrategy goes to the SchedulingShard, Operator to the KAI operator Deployment and DefaultQueue to the default Queues, all ordinary Application resources. + """ # noqa: E501 + scheduler: Optional[Scheduler] = None + binder: Optional[Workload] = None + operator: Optional[Operator] = None + admission: Optional[Admission] = None + default_queue: Optional[DefaultQueue] = Field(default=None, alias="defaultQueue") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["scheduler", "binder", "operator", "admission", "defaultQueue"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKaiSchedulerChartValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of scheduler + if self.scheduler: + _dict['scheduler'] = self.scheduler.to_dict() + # override the default output from pydantic by calling `to_dict()` of binder + if self.binder: + _dict['binder'] = self.binder.to_dict() + # override the default output from pydantic by calling `to_dict()` of operator + if self.operator: + _dict['operator'] = self.operator.to_dict() + # override the default output from pydantic by calling `to_dict()` of admission + if self.admission: + _dict['admission'] = self.admission.to_dict() + # override the default output from pydantic by calling `to_dict()` of default_queue + if self.default_queue: + _dict['defaultQueue'] = self.default_queue.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if scheduler (nullable) is None + # and model_fields_set contains the field + if self.scheduler is None and "scheduler" in self.model_fields_set: + _dict['scheduler'] = None + + # set to None if binder (nullable) is None + # and model_fields_set contains the field + if self.binder is None and "binder" in self.model_fields_set: + _dict['binder'] = None + + # set to None if operator (nullable) is None + # and model_fields_set contains the field + if self.operator is None and "operator" in self.model_fields_set: + _dict['operator'] = None + + # set to None if admission (nullable) is None + # and model_fields_set contains the field + if self.admission is None and "admission" in self.model_fields_set: + _dict['admission'] = None + + # set to None if default_queue (nullable) is None + # and model_fields_set contains the field + if self.default_queue is None and "default_queue" in self.model_fields_set: + _dict['defaultQueue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKaiSchedulerChartValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "scheduler": Scheduler.from_dict(obj["scheduler"]) if obj.get("scheduler") is not None else None, + "binder": Workload.from_dict(obj["binder"]) if obj.get("binder") is not None else None, + "operator": Operator.from_dict(obj["operator"]) if obj.get("operator") is not None else None, + "admission": Admission.from_dict(obj["admission"]) if obj.get("admission") is not None else None, + "defaultQueue": DefaultQueue.from_dict(obj["defaultQueue"]) if obj.get("defaultQueue") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_values.py new file mode 100644 index 0000000..5cdbe8a --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_values.py @@ -0,0 +1,121 @@ +# 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.ccluster_catalogs_cluster_base_kai_scheduler_chart_values import CclusterCatalogsClusterBaseKaiSchedulerChartValues +from platform_api_python_client.models.default_priorities import DefaultPriorities +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseKaiSchedulerValues(BaseModel): + """ + Values of the catalogs/cluster_base/kai_scheduler chart, generated from its Go package. + """ # noqa: E501 + kai_scheduler: Optional[CclusterCatalogsClusterBaseKaiSchedulerChartValues] = Field(default=None, alias="kai-scheduler") + default_priorities: Optional[DefaultPriorities] = Field(default=None, alias="defaultPriorities") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["kai-scheduler", "defaultPriorities"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKaiSchedulerValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of kai_scheduler + if self.kai_scheduler: + _dict['kai-scheduler'] = self.kai_scheduler.to_dict() + # override the default output from pydantic by calling `to_dict()` of default_priorities + if self.default_priorities: + _dict['defaultPriorities'] = self.default_priorities.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if kai_scheduler (nullable) is None + # and model_fields_set contains the field + if self.kai_scheduler is None and "kai_scheduler" in self.model_fields_set: + _dict['kai-scheduler'] = None + + # set to None if default_priorities (nullable) is None + # and model_fields_set contains the field + if self.default_priorities is None and "default_priorities" in self.model_fields_set: + _dict['defaultPriorities'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKaiSchedulerValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "kai-scheduler": CclusterCatalogsClusterBaseKaiSchedulerChartValues.from_dict(obj["kai-scheduler"]) if obj.get("kai-scheduler") is not None else None, + "defaultPriorities": DefaultPriorities.from_dict(obj["defaultPriorities"]) if obj.get("defaultPriorities") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_chart_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_chart_values.py new file mode 100644 index 0000000..4609b02 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_chart_values.py @@ -0,0 +1,131 @@ +# 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.replicas import Replicas +from platform_api_python_client.models.toggle import Toggle +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseKedaChartValues(BaseModel): + """ + ChartValues are the upstream keda values worth setting per cluster. + """ # noqa: E501 + operator: Optional[Replicas] = None + metrics_server: Optional[Replicas] = Field(default=None, alias="metricsServer") + webhooks: Optional[Toggle] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["operator", "metricsServer", "webhooks"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKedaChartValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of operator + if self.operator: + _dict['operator'] = self.operator.to_dict() + # override the default output from pydantic by calling `to_dict()` of metrics_server + if self.metrics_server: + _dict['metricsServer'] = self.metrics_server.to_dict() + # override the default output from pydantic by calling `to_dict()` of webhooks + if self.webhooks: + _dict['webhooks'] = self.webhooks.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if operator (nullable) is None + # and model_fields_set contains the field + if self.operator is None and "operator" in self.model_fields_set: + _dict['operator'] = None + + # set to None if metrics_server (nullable) is None + # and model_fields_set contains the field + if self.metrics_server is None and "metrics_server" in self.model_fields_set: + _dict['metricsServer'] = None + + # set to None if webhooks (nullable) is None + # and model_fields_set contains the field + if self.webhooks is None and "webhooks" in self.model_fields_set: + _dict['webhooks'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKedaChartValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operator": Replicas.from_dict(obj["operator"]) if obj.get("operator") is not None else None, + "metricsServer": Replicas.from_dict(obj["metricsServer"]) if obj.get("metricsServer") is not None else None, + "webhooks": Toggle.from_dict(obj["webhooks"]) if obj.get("webhooks") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_values.py new file mode 100644 index 0000000..34d88bf --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_values.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 +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_chart_values import CclusterCatalogsClusterBaseKedaChartValues +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseKedaValues(BaseModel): + """ + Values of the catalogs/cluster_base/keda chart, generated from its Go package. + """ # noqa: E501 + keda: Optional[CclusterCatalogsClusterBaseKedaChartValues] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["keda"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKedaValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of keda + if self.keda: + _dict['keda'] = self.keda.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if keda (nullable) is None + # and model_fields_set contains the field + if self.keda is None and "keda" in self.model_fields_set: + _dict['keda'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKedaValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "keda": CclusterCatalogsClusterBaseKedaChartValues.from_dict(obj["keda"]) if obj.get("keda") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values.py new file mode 100644 index 0000000..76d1c19 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values.py @@ -0,0 +1,121 @@ +# 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.prometheus import Prometheus +from platform_api_python_client.models.toggle import Toggle +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseKubePrometheusStackChartValues(BaseModel): + """ + ChartValues are the upstream kube-prometheus-stack values worth setting per cluster. + """ # noqa: E501 + grafana: Optional[Toggle] = None + prometheus: Optional[Prometheus] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["grafana", "prometheus"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKubePrometheusStackChartValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of grafana + if self.grafana: + _dict['grafana'] = self.grafana.to_dict() + # override the default output from pydantic by calling `to_dict()` of prometheus + if self.prometheus: + _dict['prometheus'] = self.prometheus.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if grafana (nullable) is None + # and model_fields_set contains the field + if self.grafana is None and "grafana" in self.model_fields_set: + _dict['grafana'] = None + + # set to None if prometheus (nullable) is None + # and model_fields_set contains the field + if self.prometheus is None and "prometheus" in self.model_fields_set: + _dict['prometheus'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKubePrometheusStackChartValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "grafana": Toggle.from_dict(obj["grafana"]) if obj.get("grafana") is not None else None, + "prometheus": Prometheus.from_dict(obj["prometheus"]) if obj.get("prometheus") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_values.py new file mode 100644 index 0000000..e412ebe --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_values.py @@ -0,0 +1,121 @@ +# 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.ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values import CclusterCatalogsClusterBaseKubePrometheusStackChartValues +from platform_api_python_client.models.prometheus_rules import PrometheusRules +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseKubePrometheusStackValues(BaseModel): + """ + Values of the catalogs/cluster_base/kube_prometheus_stack chart, generated from its Go package. + """ # noqa: E501 + kube_prometheus_stack: Optional[CclusterCatalogsClusterBaseKubePrometheusStackChartValues] = Field(default=None, alias="kube-prometheus-stack") + prometheus_rules: Optional[PrometheusRules] = Field(default=None, alias="prometheusRules") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["kube-prometheus-stack", "prometheusRules"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKubePrometheusStackValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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 prometheus_rules + if self.prometheus_rules: + _dict['prometheusRules'] = self.prometheus_rules.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if kube_prometheus_stack (nullable) is None + # and model_fields_set contains the field + if self.kube_prometheus_stack is None and "kube_prometheus_stack" in self.model_fields_set: + _dict['kube-prometheus-stack'] = None + + # set to None if prometheus_rules (nullable) is None + # and model_fields_set contains the field + if self.prometheus_rules is None and "prometheus_rules" in self.model_fields_set: + _dict['prometheusRules'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseKubePrometheusStackValues 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": CclusterCatalogsClusterBaseKubePrometheusStackChartValues.from_dict(obj["kube-prometheus-stack"]) if obj.get("kube-prometheus-stack") is not None else None, + "prometheusRules": PrometheusRules.from_dict(obj["prometheusRules"]) if obj.get("prometheusRules") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_chart_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_chart_values.py new file mode 100644 index 0000000..7ecde1a --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_chart_values.py @@ -0,0 +1,106 @@ +# 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 typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseMetricsServerChartValues(BaseModel): + """ + ChartValues are the upstream metrics-server values worth setting per cluster. + """ # noqa: E501 + args: Optional[List[StrictStr]] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["args"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseMetricsServerChartValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if args (nullable) is None + # and model_fields_set contains the field + if self.args is None and "args" in self.model_fields_set: + _dict['args'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseMetricsServerChartValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "args": obj.get("args") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_values.py b/platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_values.py new file mode 100644 index 0000000..e639a87 --- /dev/null +++ b/platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_values.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, Field +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_chart_values import CclusterCatalogsClusterBaseMetricsServerChartValues +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class CclusterCatalogsClusterBaseMetricsServerValues(BaseModel): + """ + Values of the catalogs/cluster_base/metrics_server chart, generated from its Go package. + """ # noqa: E501 + metrics_server: Optional[CclusterCatalogsClusterBaseMetricsServerChartValues] = Field(default=None, alias="metrics-server") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["metrics-server"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseMetricsServerValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # 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() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if metrics_server (nullable) is None + # and model_fields_set contains the field + if self.metrics_server is None and "metrics_server" in self.model_fields_set: + _dict['metrics-server'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CclusterCatalogsClusterBaseMetricsServerValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metrics-server": CclusterCatalogsClusterBaseMetricsServerChartValues.from_dict(obj["metrics-server"]) if obj.get("metrics-server") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/external_dns.py b/platform_api_python_client/models/cdi.py similarity index 62% rename from platform_api_python_client/models/external_dns.py rename to platform_api_python_client/models/cdi.py index a56123d..6d370d2 100644 --- a/platform_api_python_client/models/external_dns.py +++ b/platform_api_python_client/models/cdi.py @@ -23,13 +23,14 @@ from typing_extensions import Self from pydantic_core import to_jsonable_python -class ExternalDns(BaseModel): +class CDI(BaseModel): """ - ExternalDns + CDI configures the Container Device Interface. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + enabled: Optional[StrictBool] = None + default: Optional[StrictBool] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enabled", "default"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExternalDns from a JSON string""" + """Create an instance of CDI from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,16 +73,26 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if enabled (nullable) is None + # and model_fields_set contains the field + if self.enabled is None and "enabled" in self.model_fields_set: + _dict['enabled'] = None + + # set to None if default (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 + if self.default is None and "default" in self.model_fields_set: + _dict['default'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExternalDns from a dict""" + """Create an instance of CDI from a dict""" if obj is None: return None @@ -87,9 +100,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") + "enabled": obj.get("enabled"), + "default": obj.get("default") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/cluster_base_components.py b/platform_api_python_client/models/cluster_base_components.py new file mode 100644 index 0000000..dd53ded --- /dev/null +++ b/platform_api_python_client/models/cluster_base_components.py @@ -0,0 +1,187 @@ +# 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.ccluster_catalogs_cluster_base_argo_rollouts_values import CclusterCatalogsClusterBaseArgoRolloutsValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_values import CclusterCatalogsClusterBaseCertManagerValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_gpu_operator_values import CclusterCatalogsClusterBaseGpuOperatorValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_values import CclusterCatalogsClusterBaseIngressNginxValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_istio_values import CclusterCatalogsClusterBaseIstioValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kai_scheduler_values import CclusterCatalogsClusterBaseKaiSchedulerValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_values import CclusterCatalogsClusterBaseKedaValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_kube_prometheus_stack_values import CclusterCatalogsClusterBaseKubePrometheusStackValues +from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_values import CclusterCatalogsClusterBaseMetricsServerValues +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ClusterBaseComponents(BaseModel): + """ + The cluster_base components to install on a ccluster cluster, each as its chart's values. A component is installed only when its field is set (``{}`` for the catalog defaults), with exactly the values given. One left out is not installed, and is uninstalled if an earlier update installed it. final_stack is required. The values use the chart's own keys and may include keys the typed model doesn't list; they reach the chart unchanged. Inference deployments on GKE need ingress_nginx's `ingress-nginx.controller.podLabels` (`sidecar.istio.io/inject: \"true\"`), istio's CNI paths and gpu_operator's GKE driver paths. An unknown component name is rejected rather than read as one left out, which would uninstall it. With the generated Python client, build the request with `UpdateClusterRequest.from_dict(...)`: its model constructors drop the keys a typed model doesn't list (CentML/platform#4946). + """ # noqa: E501 + kube_prometheus_stack: Optional[CclusterCatalogsClusterBaseKubePrometheusStackValues] = None + istio: Optional[CclusterCatalogsClusterBaseIstioValues] = None + cert_manager: Optional[CclusterCatalogsClusterBaseCertManagerValues] = None + ingress_nginx: Optional[CclusterCatalogsClusterBaseIngressNginxValues] = None + keda: Optional[CclusterCatalogsClusterBaseKedaValues] = None + argo_rollouts: Optional[CclusterCatalogsClusterBaseArgoRolloutsValues] = None + gpu_operator: Optional[CclusterCatalogsClusterBaseGpuOperatorValues] = None + kai_scheduler: Optional[CclusterCatalogsClusterBaseKaiSchedulerValues] = None + metrics_server: Optional[CclusterCatalogsClusterBaseMetricsServerValues] = None + final_stack: Dict[str, Any] = Field(description="Values of the catalogs/cluster_base/final_stack chart, generated from its Go package.") + __properties: ClassVar[List[str]] = ["kube_prometheus_stack", "istio", "cert_manager", "ingress_nginx", "keda", "argo_rollouts", "gpu_operator", "kai_scheduler", "metrics_server", "final_stack"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ClusterBaseComponents 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 keda + if self.keda: + _dict['keda'] = self.keda.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 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 kai_scheduler + if self.kai_scheduler: + _dict['kai_scheduler'] = self.kai_scheduler.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() + # set to None if kube_prometheus_stack (nullable) is None + # and model_fields_set contains the field + if self.kube_prometheus_stack is None and "kube_prometheus_stack" in self.model_fields_set: + _dict['kube_prometheus_stack'] = None + + # set to None if istio (nullable) is None + # and model_fields_set contains the field + if self.istio is None and "istio" in self.model_fields_set: + _dict['istio'] = None + + # set to None if cert_manager (nullable) is None + # and model_fields_set contains the field + if self.cert_manager is None and "cert_manager" in self.model_fields_set: + _dict['cert_manager'] = None + + # set to None if ingress_nginx (nullable) is None + # and model_fields_set contains the field + if self.ingress_nginx is None and "ingress_nginx" in self.model_fields_set: + _dict['ingress_nginx'] = None + + # set to None if keda (nullable) is None + # and model_fields_set contains the field + if self.keda is None and "keda" in self.model_fields_set: + _dict['keda'] = None + + # set to None if argo_rollouts (nullable) is None + # and model_fields_set contains the field + if self.argo_rollouts is None and "argo_rollouts" in self.model_fields_set: + _dict['argo_rollouts'] = None + + # set to None if gpu_operator (nullable) is None + # and model_fields_set contains the field + if self.gpu_operator is None and "gpu_operator" in self.model_fields_set: + _dict['gpu_operator'] = None + + # set to None if kai_scheduler (nullable) is None + # and model_fields_set contains the field + if self.kai_scheduler is None and "kai_scheduler" in self.model_fields_set: + _dict['kai_scheduler'] = None + + # set to None if metrics_server (nullable) is None + # and model_fields_set contains the field + if self.metrics_server is None and "metrics_server" in self.model_fields_set: + _dict['metrics_server'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ClusterBaseComponents 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": CclusterCatalogsClusterBaseKubePrometheusStackValues.from_dict(obj["kube_prometheus_stack"]) if obj.get("kube_prometheus_stack") is not None else None, + "istio": CclusterCatalogsClusterBaseIstioValues.from_dict(obj["istio"]) if obj.get("istio") is not None else None, + "cert_manager": CclusterCatalogsClusterBaseCertManagerValues.from_dict(obj["cert_manager"]) if obj.get("cert_manager") is not None else None, + "ingress_nginx": CclusterCatalogsClusterBaseIngressNginxValues.from_dict(obj["ingress_nginx"]) if obj.get("ingress_nginx") is not None else None, + "keda": CclusterCatalogsClusterBaseKedaValues.from_dict(obj["keda"]) if obj.get("keda") is not None else None, + "argo_rollouts": CclusterCatalogsClusterBaseArgoRolloutsValues.from_dict(obj["argo_rollouts"]) if obj.get("argo_rollouts") is not None else None, + "gpu_operator": CclusterCatalogsClusterBaseGpuOperatorValues.from_dict(obj["gpu_operator"]) if obj.get("gpu_operator") is not None else None, + "kai_scheduler": CclusterCatalogsClusterBaseKaiSchedulerValues.from_dict(obj["kai_scheduler"]) if obj.get("kai_scheduler") is not None else None, + "metrics_server": CclusterCatalogsClusterBaseMetricsServerValues.from_dict(obj["metrics_server"]) if obj.get("metrics_server") is not None else None, + "final_stack": obj.get("final_stack") + }) + return _obj + + diff --git a/platform_api_python_client/models/cluster_components.py b/platform_api_python_client/models/cluster_components.py deleted file mode 100644 index 3ce7d4a..0000000 --- a/platform_api_python_client/models/cluster_components.py +++ /dev/null @@ -1,194 +0,0 @@ -# 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 -from pydantic_core import to_jsonable_python - -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( - validate_by_name=True, - validate_by_alias=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""" - return json.dumps(to_jsonable_python(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/istio_cni_overrides.py b/platform_api_python_client/models/cni.py similarity index 71% rename from platform_api_python_client/models/istio_cni_overrides.py rename to platform_api_python_client/models/cni.py index 09b12c6..c8dd9f3 100644 --- a/platform_api_python_client/models/istio_cni_overrides.py +++ b/platform_api_python_client/models/cni.py @@ -23,13 +23,14 @@ from typing_extensions import Self from pydantic_core import to_jsonable_python -class IstioCniOverrides(BaseModel): +class CNI(BaseModel): """ - IstioCniOverrides + CNI is where istio-cni writes its plugin binary and configuration. These are the only values in this chart that must be tuned per cluster: the chart's defaults are the standard paths, and the correct paths depend on the node image. """ # 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"] + cni_bin_dir: Optional[StrictStr] = Field(default=None, alias="cniBinDir") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["cniConfDir", "cniBinDir"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IstioCniOverrides from a JSON string""" + """Create an instance of CNI from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,21 +73,26 @@ def to_dict(self) -> Dict[str, Any]: 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 + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value # 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 + # 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 + return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IstioCniOverrides from a dict""" + """Create an instance of CNI from a dict""" if obj is None: return None @@ -92,9 +100,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "cniBinDir": obj.get("cniBinDir"), - "cniConfDir": obj.get("cniConfDir") + "cniConfDir": obj.get("cniConfDir"), + "cniBinDir": obj.get("cniBinDir") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/spire_crds.py b/platform_api_python_client/models/dashboard.py similarity index 67% rename from platform_api_python_client/models/spire_crds.py rename to platform_api_python_client/models/dashboard.py index 3bfb472..a303ff6 100644 --- a/platform_api_python_client/models/spire_crds.py +++ b/platform_api_python_client/models/dashboard.py @@ -23,13 +23,13 @@ from typing_extensions import Self from pydantic_core import to_jsonable_python -class SpireCrds(BaseModel): +class Dashboard(BaseModel): """ - SpireCrds + Dashboard configures the rollouts dashboard. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + enabled: Optional[StrictBool] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SpireCrds from a JSON string""" + """Create an instance of Dashboard from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,16 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if enabled (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 + if self.enabled is None and "enabled" in self.model_fields_set: + _dict['enabled'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SpireCrds from a dict""" + """Create an instance of Dashboard from a dict""" if obj is None: return None @@ -87,9 +94,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") + "enabled": obj.get("enabled") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/teleport_kube_agent.py b/platform_api_python_client/models/default_priorities.py similarity index 66% rename from platform_api_python_client/models/teleport_kube_agent.py rename to platform_api_python_client/models/default_priorities.py index 0c22b12..23f1eff 100644 --- a/platform_api_python_client/models/teleport_kube_agent.py +++ b/platform_api_python_client/models/default_priorities.py @@ -23,13 +23,13 @@ from typing_extensions import Self from pydantic_core import to_jsonable_python -class TeleportKubeAgent(BaseModel): +class DefaultPriorities(BaseModel): """ - TeleportKubeAgent + DefaultPriorities configures the per-kind preemptibility ConfigMap. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + enabled: Optional[StrictBool] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of TeleportKubeAgent from a JSON string""" + """Create an instance of DefaultPriorities from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,16 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if enabled (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 + if self.enabled is None and "enabled" in self.model_fields_set: + _dict['enabled'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of TeleportKubeAgent from a dict""" + """Create an instance of DefaultPriorities from a dict""" if obj is None: return None @@ -87,9 +94,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") + "enabled": obj.get("enabled") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/kube_prometheus_stack.py b/platform_api_python_client/models/default_queue.py similarity index 62% rename from platform_api_python_client/models/kube_prometheus_stack.py rename to platform_api_python_client/models/default_queue.py index 8b54a79..caf6e4c 100644 --- a/platform_api_python_client/models/kube_prometheus_stack.py +++ b/platform_api_python_client/models/default_queue.py @@ -17,19 +17,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python -class KubePrometheusStack(BaseModel): +class DefaultQueue(BaseModel): """ - KubePrometheusStack + DefaultQueue configures the queue for unlabelled pods. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + create_default_queue: Optional[StrictBool] = Field(default=None, alias="createDefaultQueue") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["createDefaultQueue"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of KubePrometheusStack from a JSON string""" + """Create an instance of DefaultQueue from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,16 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if create_default_queue (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 + if self.create_default_queue is None and "create_default_queue" in self.model_fields_set: + _dict['createDefaultQueue'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of KubePrometheusStack from a dict""" + """Create an instance of DefaultQueue from a dict""" if obj is None: return None @@ -87,9 +94,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") + "createDefaultQueue": obj.get("createDefaultQueue") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/gpu_operator.py b/platform_api_python_client/models/gpu_operator.py deleted file mode 100644 index 27526dc..0000000 --- a/platform_api_python_client/models/gpu_operator.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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 -from pydantic_core import to_jsonable_python - -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( - validate_by_name=True, - validate_by_alias=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""" - return json.dumps(to_jsonable_python(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, - ) - # 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 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/istio_base.py b/platform_api_python_client/models/istio_base.py new file mode 100644 index 0000000..2bad699 --- /dev/null +++ b/platform_api_python_client/models/istio_base.py @@ -0,0 +1,106 @@ +# 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 +from pydantic_core import to_jsonable_python + +class IstioBase(BaseModel): + """ + IstioBase configures the istio-base subchart. + """ # noqa: E501 + default_revision: Optional[StrictStr] = Field(default=None, alias="defaultRevision") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["defaultRevision"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IstioBase 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if default_revision (nullable) is None + # and model_fields_set contains the field + if self.default_revision is None and "default_revision" in self.model_fields_set: + _dict['defaultRevision'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IstioBase from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "defaultRevision": obj.get("defaultRevision") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/istio_cni.py b/platform_api_python_client/models/istio_cni.py new file mode 100644 index 0000000..c259c16 --- /dev/null +++ b/platform_api_python_client/models/istio_cni.py @@ -0,0 +1,124 @@ +# 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.cni import CNI +from platform_api_python_client.models.toleration import Toleration +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class IstioCNI(BaseModel): + """ + IstioCNI configures the istio-cni subchart. + """ # noqa: E501 + cni: Optional[CNI] = None + tolerations: Optional[List[Toleration]] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["cni", "tolerations"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of IstioCNI 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _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() + # override the default output from pydantic by calling `to_dict()` of each item in tolerations (list) + _items = [] + if self.tolerations: + for _item_tolerations in self.tolerations: + _items.append(_item_tolerations.to_dict() if _item_tolerations is not None else None) + _dict['tolerations'] = _items + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # 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 + + # set to None if tolerations (nullable) is None + # and model_fields_set contains the field + if self.tolerations is None and "tolerations" in self.model_fields_set: + _dict['tolerations'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of IstioCNI from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "cni": CNI.from_dict(obj["cni"]) if obj.get("cni") is not None else None, + "tolerations": [Toleration.from_dict(_item) for _item in obj["tolerations"]] if obj.get("tolerations") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/argo_rollouts.py b/platform_api_python_client/models/istio_gateway.py similarity index 67% rename from platform_api_python_client/models/argo_rollouts.py rename to platform_api_python_client/models/istio_gateway.py index 38e9796..f44ed7c 100644 --- a/platform_api_python_client/models/argo_rollouts.py +++ b/platform_api_python_client/models/istio_gateway.py @@ -23,13 +23,13 @@ from typing_extensions import Self from pydantic_core import to_jsonable_python -class ArgoRollouts(BaseModel): +class IstioGateway(BaseModel): """ - ArgoRollouts + IstioGateway configures the istio-gateway subchart. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + enabled: Optional[StrictBool] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ArgoRollouts from a JSON string""" + """Create an instance of IstioGateway from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,16 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if enabled (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 + if self.enabled is None and "enabled" in self.model_fields_set: + _dict['enabled'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ArgoRollouts from a dict""" + """Create an instance of IstioGateway from a dict""" if obj is None: return None @@ -87,9 +94,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") + "enabled": obj.get("enabled") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/istio_cni_subchart_overrides.py b/platform_api_python_client/models/istiod.py similarity index 64% rename from platform_api_python_client/models/istio_cni_subchart_overrides.py rename to platform_api_python_client/models/istiod.py index c8095b2..46c0e5e 100644 --- a/platform_api_python_client/models/istio_cni_subchart_overrides.py +++ b/platform_api_python_client/models/istiod.py @@ -19,17 +19,18 @@ 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 platform_api_python_client.models.pilot import Pilot from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python -class IstioCniSubchartOverrides(BaseModel): +class Istiod(BaseModel): """ - IstioCniSubchartOverrides + Istiod configures the istiod subchart. """ # noqa: E501 - cni: Optional[IstioCniOverrides] = None - __properties: ClassVar[List[str]] = ["cni"] + pilot: Optional[Pilot] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["pilot"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IstioCniSubchartOverrides from a JSON string""" + """Create an instance of Istiod from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,19 +73,24 @@ def to_dict(self) -> Dict[str, Any]: 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 + # override the default output from pydantic by calling `to_dict()` of pilot + if self.pilot: + _dict['pilot'] = self.pilot.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if pilot (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 + if self.pilot is None and "pilot" in self.model_fields_set: + _dict['pilot'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IstioCniSubchartOverrides from a dict""" + """Create an instance of Istiod from a dict""" if obj is None: return None @@ -90,8 +98,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "cni": IstioCniOverrides.from_dict(obj["cni"]) if obj.get("cni") is not None else None + "pilot": Pilot.from_dict(obj["pilot"]) if obj.get("pilot") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/keda.py b/platform_api_python_client/models/keda.py deleted file mode 100644 index 5312eca..0000000 --- a/platform_api_python_client/models/keda.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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 -from pydantic_core import to_jsonable_python - -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( - validate_by_name=True, - validate_by_alias=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""" - return json.dumps(to_jsonable_python(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, - ) - # 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 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/longhorn.py b/platform_api_python_client/models/longhorn.py deleted file mode 100644 index ba08e38..0000000 --- a/platform_api_python_client/models/longhorn.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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 -from pydantic_core import to_jsonable_python - -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( - validate_by_name=True, - validate_by_alias=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""" - return json.dumps(to_jsonable_python(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, - ) - # 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 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.py b/platform_api_python_client/models/metrics.py new file mode 100644 index 0000000..65eabd4 --- /dev/null +++ b/platform_api_python_client/models/metrics.py @@ -0,0 +1,117 @@ +# 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, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.toggle import Toggle +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class Metrics(BaseModel): + """ + Metrics configures the controller's metrics endpoint and ServiceMonitor. + """ # noqa: E501 + enabled: Optional[StrictBool] = None + service_monitor: Optional[Toggle] = Field(default=None, alias="serviceMonitor") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enabled", "serviceMonitor"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Metrics 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of service_monitor + if self.service_monitor: + _dict['serviceMonitor'] = self.service_monitor.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if enabled (nullable) is None + # and model_fields_set contains the field + if self.enabled is None and "enabled" in self.model_fields_set: + _dict['enabled'] = None + + # set to None if service_monitor (nullable) is None + # and model_fields_set contains the field + if self.service_monitor is None and "service_monitor" in self.model_fields_set: + _dict['serviceMonitor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Metrics 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"), + "serviceMonitor": Toggle.from_dict(obj["serviceMonitor"]) if obj.get("serviceMonitor") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/metrics_server.py b/platform_api_python_client/models/metrics_server.py deleted file mode 100644 index dda19d5..0000000 --- a/platform_api_python_client/models/metrics_server.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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 -from pydantic_core import to_jsonable_python - -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( - validate_by_name=True, - validate_by_alias=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""" - return json.dumps(to_jsonable_python(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, - ) - # 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 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/final_stack.py b/platform_api_python_client/models/mig.py similarity index 66% rename from platform_api_python_client/models/final_stack.py rename to platform_api_python_client/models/mig.py index b0a6a2d..4761b2c 100644 --- a/platform_api_python_client/models/final_stack.py +++ b/platform_api_python_client/models/mig.py @@ -17,19 +17,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python -class FinalStack(BaseModel): +class MIG(BaseModel): """ - FinalStack + MIG configures Multi-Instance GPU partitioning. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + strategy: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["strategy"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FinalStack from a JSON string""" + """Create an instance of MIG from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,16 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if strategy (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 + if self.strategy is None and "strategy" in self.model_fields_set: + _dict['strategy'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FinalStack from a dict""" + """Create an instance of MIG from a dict""" if obj is None: return None @@ -87,9 +94,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") + "strategy": obj.get("strategy") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/network_operator.py b/platform_api_python_client/models/network_operator.py deleted file mode 100644 index 0b7c1b6..0000000 --- a/platform_api_python_client/models/network_operator.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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 -from pydantic_core import to_jsonable_python - -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( - validate_by_name=True, - validate_by_alias=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""" - return json.dumps(to_jsonable_python(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, - ) - # 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 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 deleted file mode 100644 index e492149..0000000 --- a/platform_api_python_client/models/opentelemetry_collector.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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 -from pydantic_core import to_jsonable_python - -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( - validate_by_name=True, - validate_by_alias=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""" - return json.dumps(to_jsonable_python(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, - ) - # 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 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/operator.py b/platform_api_python_client/models/operator.py new file mode 100644 index 0000000..9bf07c5 --- /dev/null +++ b/platform_api_python_client/models/operator.py @@ -0,0 +1,117 @@ +# 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 platform_api_python_client.models.resource_requirements import ResourceRequirements +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class Operator(BaseModel): + """ + Operator configures the KAI operator, which deploys every other KAI component. + """ # noqa: E501 + log_level: Optional[StrictStr] = Field(default=None, alias="logLevel") + resources: Optional[ResourceRequirements] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["logLevel", "resources"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Operator 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resources + if self.resources: + _dict['resources'] = self.resources.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if log_level (nullable) is None + # and model_fields_set contains the field + if self.log_level is None and "log_level" in self.model_fields_set: + _dict['logLevel'] = None + + # set to None if resources (nullable) is None + # and model_fields_set contains the field + if self.resources is None and "resources" in self.model_fields_set: + _dict['resources'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Operator from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "logLevel": obj.get("logLevel"), + "resources": ResourceRequirements.from_dict(obj["resources"]) if obj.get("resources") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/istio.py b/platform_api_python_client/models/pilot.py similarity index 65% rename from platform_api_python_client/models/istio.py rename to platform_api_python_client/models/pilot.py index a46929b..2a46770 100644 --- a/platform_api_python_client/models/istio.py +++ b/platform_api_python_client/models/pilot.py @@ -17,20 +17,19 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictInt 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 from pydantic_core import to_jsonable_python -class Istio(BaseModel): +class Pilot(BaseModel): """ - Istio + Pilot configures istiod's pilot. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[IstioOverrides] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + autoscale_min: Optional[StrictInt] = Field(default=None, alias="autoscaleMin") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["autoscaleMin"] model_config = ConfigDict( validate_by_name=True, @@ -50,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of Istio from a JSON string""" + """Create an instance of Pilot from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -62,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -71,19 +72,21 @@ def to_dict(self) -> Dict[str, Any]: 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 + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if autoscale_min (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 + if self.autoscale_min is None and "autoscale_min" in self.model_fields_set: + _dict['autoscaleMin'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of Istio from a dict""" + """Create an instance of Pilot from a dict""" if obj is None: return None @@ -91,9 +94,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 + "autoscaleMin": obj.get("autoscaleMin") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/prometheus.py b/platform_api_python_client/models/prometheus.py new file mode 100644 index 0000000..63aa770 --- /dev/null +++ b/platform_api_python_client/models/prometheus.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, Field +from typing import Any, ClassVar, Dict, List, Optional +from platform_api_python_client.models.prometheus_spec import PrometheusSpec +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class Prometheus(BaseModel): + """ + Prometheus configures the Prometheus instance. + """ # noqa: E501 + prometheus_spec: Optional[PrometheusSpec] = Field(default=None, alias="prometheusSpec") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["prometheusSpec"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Prometheus 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of prometheus_spec + if self.prometheus_spec: + _dict['prometheusSpec'] = self.prometheus_spec.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if prometheus_spec (nullable) is None + # and model_fields_set contains the field + if self.prometheus_spec is None and "prometheus_spec" in self.model_fields_set: + _dict['prometheusSpec'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Prometheus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "prometheusSpec": PrometheusSpec.from_dict(obj["prometheusSpec"]) if obj.get("prometheusSpec") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/prometheus_adapter.py b/platform_api_python_client/models/prometheus_adapter.py deleted file mode 100644 index b28692b..0000000 --- a/platform_api_python_client/models/prometheus_adapter.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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 -from pydantic_core import to_jsonable_python - -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( - validate_by_name=True, - validate_by_alias=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""" - return json.dumps(to_jsonable_python(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, - ) - # 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 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/prometheus_rules.py b/platform_api_python_client/models/prometheus_rules.py new file mode 100644 index 0000000..e6b8b3a --- /dev/null +++ b/platform_api_python_client/models/prometheus_rules.py @@ -0,0 +1,120 @@ +# 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.toggle import Toggle +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PrometheusRules(BaseModel): + """ + PrometheusRules toggles the rules and monitors this chart renders itself. + """ # noqa: E501 + pod_alerts: Optional[Toggle] = Field(default=None, alias="podAlerts") + envoy_stats: Optional[Toggle] = Field(default=None, alias="envoyStats") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["podAlerts", "envoyStats"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PrometheusRules 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of pod_alerts + if self.pod_alerts: + _dict['podAlerts'] = self.pod_alerts.to_dict() + # override the default output from pydantic by calling `to_dict()` of envoy_stats + if self.envoy_stats: + _dict['envoyStats'] = self.envoy_stats.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if pod_alerts (nullable) is None + # and model_fields_set contains the field + if self.pod_alerts is None and "pod_alerts" in self.model_fields_set: + _dict['podAlerts'] = None + + # set to None if envoy_stats (nullable) is None + # and model_fields_set contains the field + if self.envoy_stats is None and "envoy_stats" in self.model_fields_set: + _dict['envoyStats'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PrometheusRules from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "podAlerts": Toggle.from_dict(obj["podAlerts"]) if obj.get("podAlerts") is not None else None, + "envoyStats": Toggle.from_dict(obj["envoyStats"]) if obj.get("envoyStats") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/prometheus_spec.py b/platform_api_python_client/models/prometheus_spec.py new file mode 100644 index 0000000..10ef037 --- /dev/null +++ b/platform_api_python_client/models/prometheus_spec.py @@ -0,0 +1,113 @@ +# 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 +from pydantic_core import to_jsonable_python + +class PrometheusSpec(BaseModel): + """ + PrometheusSpec is the Prometheus custom resource's spec. + """ # noqa: E501 + external_labels: Optional[Dict[str, StrictStr]] = Field(default=None, alias="externalLabels") + remote_write: Optional[List[Dict[str, Any]]] = Field(default=None, alias="remoteWrite") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["externalLabels", "remoteWrite"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PrometheusSpec 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if external_labels (nullable) is None + # and model_fields_set contains the field + if self.external_labels is None and "external_labels" in self.model_fields_set: + _dict['externalLabels'] = None + + # set to None if remote_write (nullable) is None + # and model_fields_set contains the field + if self.remote_write is None and "remote_write" in self.model_fields_set: + _dict['remoteWrite'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PrometheusSpec from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "externalLabels": obj.get("externalLabels"), + "remoteWrite": obj.get("remoteWrite") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/prometheus_values.py b/platform_api_python_client/models/prometheus_values.py new file mode 100644 index 0000000..5ffd15c --- /dev/null +++ b/platform_api_python_client/models/prometheus_values.py @@ -0,0 +1,117 @@ +# 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.toggle import Toggle +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class PrometheusValues(BaseModel): + """ + PrometheusValues configures cert-manager's metrics scraping. + """ # noqa: E501 + enabled: Optional[StrictBool] = None + servicemonitor: Optional[Toggle] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enabled", "servicemonitor"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PrometheusValues 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of servicemonitor + if self.servicemonitor: + _dict['servicemonitor'] = self.servicemonitor.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if enabled (nullable) is None + # and model_fields_set contains the field + if self.enabled is None and "enabled" in self.model_fields_set: + _dict['enabled'] = None + + # set to None if servicemonitor (nullable) is None + # and model_fields_set contains the field + if self.servicemonitor is None and "servicemonitor" in self.model_fields_set: + _dict['servicemonitor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PrometheusValues 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"), + "servicemonitor": Toggle.from_dict(obj["servicemonitor"]) if obj.get("servicemonitor") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/quota.py b/platform_api_python_client/models/quota.py new file mode 100644 index 0000000..f331199 --- /dev/null +++ b/platform_api_python_client/models/quota.py @@ -0,0 +1,106 @@ +# 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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class Quota(BaseModel): + """ + Quota configures the ResourceQuotas the chart creates in the release namespace. + """ # noqa: E501 + critical_pod_limit: Optional[StrictInt] = Field(default=None, alias="criticalPodLimit") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["criticalPodLimit"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Quota 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if critical_pod_limit (nullable) is None + # and model_fields_set contains the field + if self.critical_pod_limit is None and "critical_pod_limit" in self.model_fields_set: + _dict['criticalPodLimit'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Quota from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "criticalPodLimit": obj.get("criticalPodLimit") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/replicas.py b/platform_api_python_client/models/replicas.py new file mode 100644 index 0000000..73143c3 --- /dev/null +++ b/platform_api_python_client/models/replicas.py @@ -0,0 +1,106 @@ +# 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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class Replicas(BaseModel): + """ + Replicas is a subchart's replica count. + """ # noqa: E501 + replica_count: Optional[StrictInt] = Field(default=None, alias="replicaCount") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["replicaCount"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Replicas 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if replica_count (nullable) is None + # and model_fields_set contains the field + if self.replica_count is None and "replica_count" in self.model_fields_set: + _dict['replicaCount'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Replicas from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "replicaCount": obj.get("replicaCount") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/ingress_nginx.py b/platform_api_python_client/models/resource_list.py similarity index 60% rename from platform_api_python_client/models/ingress_nginx.py rename to platform_api_python_client/models/resource_list.py index e1e5620..f4bb886 100644 --- a/platform_api_python_client/models/ingress_nginx.py +++ b/platform_api_python_client/models/resource_list.py @@ -17,19 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python -class IngressNginx(BaseModel): +class ResourceList(BaseModel): """ - IngressNginx + ResourceList is one side of ResourceRequirements, as Kubernetes quantities. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + cpu: Optional[StrictStr] = None + memory: Optional[StrictStr] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["cpu", "memory"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IngressNginx from a JSON string""" + """Create an instance of ResourceList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,16 +73,26 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if cpu (nullable) is None + # and model_fields_set contains the field + if self.cpu is None and "cpu" in self.model_fields_set: + _dict['cpu'] = None + + # set to None if memory (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 + if self.memory is None and "memory" in self.model_fields_set: + _dict['memory'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IngressNginx from a dict""" + """Create an instance of ResourceList from a dict""" if obj is None: return None @@ -87,9 +100,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") + "cpu": obj.get("cpu"), + "memory": obj.get("memory") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/resource_requirements.py b/platform_api_python_client/models/resource_requirements.py new file mode 100644 index 0000000..b77669d --- /dev/null +++ b/platform_api_python_client/models/resource_requirements.py @@ -0,0 +1,120 @@ +# 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.resource_list import ResourceList +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ResourceRequirements(BaseModel): + """ + ResourceRequirements are a container's requests and limits. + """ # noqa: E501 + requests: Optional[ResourceList] = None + limits: Optional[ResourceList] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["requests", "limits"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ResourceRequirements 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of requests + if self.requests: + _dict['requests'] = self.requests.to_dict() + # override the default output from pydantic by calling `to_dict()` of limits + if self.limits: + _dict['limits'] = self.limits.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if requests (nullable) is None + # and model_fields_set contains the field + if self.requests is None and "requests" in self.model_fields_set: + _dict['requests'] = None + + # set to None if limits (nullable) is None + # and model_fields_set contains the field + if self.limits is None and "limits" in self.model_fields_set: + _dict['limits'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ResourceRequirements from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "requests": ResourceList.from_dict(obj["requests"]) if obj.get("requests") is not None else None, + "limits": ResourceList.from_dict(obj["limits"]) if obj.get("limits") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/scheduler.py b/platform_api_python_client/models/scheduler.py new file mode 100644 index 0000000..663eb80 --- /dev/null +++ b/platform_api_python_client/models/scheduler.py @@ -0,0 +1,117 @@ +# 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 platform_api_python_client.models.resource_requirements import ResourceRequirements +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class Scheduler(BaseModel): + """ + Scheduler configures the scheduler. + """ # noqa: E501 + placement_strategy: Optional[StrictStr] = Field(default=None, alias="placementStrategy") + resources: Optional[ResourceRequirements] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["placementStrategy", "resources"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Scheduler 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of resources + if self.resources: + _dict['resources'] = self.resources.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if placement_strategy (nullable) is None + # and model_fields_set contains the field + if self.placement_strategy is None and "placement_strategy" in self.model_fields_set: + _dict['placementStrategy'] = None + + # set to None if resources (nullable) is None + # and model_fields_set contains the field + if self.resources is None and "resources" in self.model_fields_set: + _dict['resources'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Scheduler from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "placementStrategy": obj.get("placementStrategy"), + "resources": ResourceRequirements.from_dict(obj["resources"]) if obj.get("resources") is not None else None + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/spire.py b/platform_api_python_client/models/spire.py deleted file mode 100644 index bb33e46..0000000 --- a/platform_api_python_client/models/spire.py +++ /dev/null @@ -1,95 +0,0 @@ -# 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 -from pydantic_core import to_jsonable_python - -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( - validate_by_name=True, - validate_by_alias=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""" - return json.dumps(to_jsonable_python(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, - ) - # 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 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/fluent_bit.py b/platform_api_python_client/models/toggle.py similarity index 67% rename from platform_api_python_client/models/fluent_bit.py rename to platform_api_python_client/models/toggle.py index 5addeff..04ec6a5 100644 --- a/platform_api_python_client/models/fluent_bit.py +++ b/platform_api_python_client/models/toggle.py @@ -23,13 +23,13 @@ from typing_extensions import Self from pydantic_core import to_jsonable_python -class FluentBit(BaseModel): +class Toggle(BaseModel): """ - FluentBit + Toggle is a subchart's enable flag. """ # noqa: E501 - enabled: Optional[StrictBool] = True - values: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["enabled", "values"] + enabled: Optional[StrictBool] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FluentBit from a JSON string""" + """Create an instance of Toggle from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +61,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,16 +72,21 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if enabled (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 + if self.enabled is None and "enabled" in self.model_fields_set: + _dict['enabled'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FluentBit from a dict""" + """Create an instance of Toggle from a dict""" if obj is None: return None @@ -87,9 +94,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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") + "enabled": obj.get("enabled") }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/platform_api_python_client/models/toleration.py b/platform_api_python_client/models/toleration.py new file mode 100644 index 0000000..b4f54e2 --- /dev/null +++ b/platform_api_python_client/models/toleration.py @@ -0,0 +1,134 @@ +# 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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class Toleration(BaseModel): + """ + Toleration + """ # noqa: E501 + key: Optional[StrictStr] = None + operator: Optional[StrictStr] = None + value: Optional[StrictStr] = None + effect: Optional[StrictStr] = None + toleration_seconds: Optional[StrictInt] = Field(default=None, alias="tolerationSeconds") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["key", "operator", "value", "effect", "tolerationSeconds"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=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""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Toleration 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if key (nullable) is None + # and model_fields_set contains the field + if self.key is None and "key" in self.model_fields_set: + _dict['key'] = None + + # set to None if operator (nullable) is None + # and model_fields_set contains the field + if self.operator is None and "operator" in self.model_fields_set: + _dict['operator'] = None + + # set to None if value (nullable) is None + # and model_fields_set contains the field + if self.value is None and "value" in self.model_fields_set: + _dict['value'] = None + + # set to None if effect (nullable) is None + # and model_fields_set contains the field + if self.effect is None and "effect" in self.model_fields_set: + _dict['effect'] = None + + # set to None if toleration_seconds (nullable) is None + # and model_fields_set contains the field + if self.toleration_seconds is None and "toleration_seconds" in self.model_fields_set: + _dict['tolerationSeconds'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Toleration from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "key": obj.get("key"), + "operator": obj.get("operator"), + "value": obj.get("value"), + "effect": obj.get("effect"), + "tolerationSeconds": obj.get("tolerationSeconds") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/platform_api_python_client/models/cluster_config.py b/platform_api_python_client/models/update_cluster_request.py similarity index 83% rename from platform_api_python_client/models/cluster_config.py rename to platform_api_python_client/models/update_cluster_request.py index b4eb8b9..483db7f 100644 --- a/platform_api_python_client/models/cluster_config.py +++ b/platform_api_python_client/models/update_cluster_request.py @@ -19,16 +19,16 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from platform_api_python_client.models.cluster_components import ClusterComponents +from platform_api_python_client.models.cluster_base_components import ClusterBaseComponents from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python -class ClusterConfig(BaseModel): +class UpdateClusterRequest(BaseModel): """ - ClusterConfig + UpdateClusterRequest """ # noqa: E501 - components: ClusterComponents + components: ClusterBaseComponents __properties: ClassVar[List[str]] = ["components"] model_config = ConfigDict( @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ClusterConfig from a JSON string""" + """Create an instance of UpdateClusterRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ClusterConfig from a dict""" + """Create an instance of UpdateClusterRequest from a dict""" if obj is None: return None @@ -85,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "components": ClusterComponents.from_dict(obj["components"]) if obj.get("components") is not None else None + "components": ClusterBaseComponents.from_dict(obj["components"]) if obj.get("components") is not None else None }) return _obj diff --git a/platform_api_python_client/models/istio_overrides.py b/platform_api_python_client/models/workload.py similarity index 61% rename from platform_api_python_client/models/istio_overrides.py rename to platform_api_python_client/models/workload.py index f45312c..51abc11 100644 --- a/platform_api_python_client/models/istio_overrides.py +++ b/platform_api_python_client/models/workload.py @@ -17,19 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List, Optional -from platform_api_python_client.models.istio_cni_subchart_overrides import IstioCniSubchartOverrides +from platform_api_python_client.models.resource_requirements import ResourceRequirements from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python -class IstioOverrides(BaseModel): +class Workload(BaseModel): """ - IstioOverrides + Workload is a KAI component's resources. """ # noqa: E501 - istio_cni: Optional[IstioCniSubchartOverrides] = Field(default=None, alias="istio-cni") - __properties: ClassVar[List[str]] = ["istio-cni"] + resources: Optional[ResourceRequirements] = None + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["resources"] model_config = ConfigDict( validate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of IstioOverrides from a JSON string""" + """Create an instance of Workload from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -61,8 +62,10 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * Fields in `self.additional_properties` are added to the output dict. """ excluded_fields: Set[str] = set([ + "additional_properties", ]) _dict = self.model_dump( @@ -70,19 +73,24 @@ def to_dict(self) -> Dict[str, Any]: 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 + # override the default output from pydantic by calling `to_dict()` of resources + if self.resources: + _dict['resources'] = self.resources.to_dict() + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + # set to None if resources (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 + if self.resources is None and "resources" in self.model_fields_set: + _dict['resources'] = None return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of IstioOverrides from a dict""" + """Create an instance of Workload from a dict""" if obj is None: return None @@ -90,8 +98,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 + "resources": ResourceRequirements.from_dict(obj["resources"]) if obj.get("resources") is not None else None }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + return _obj diff --git a/pyproject.toml b/pyproject.toml index 818815e..93593e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "platform_api_python_client" -version = "4.39.0" +version = "4.40.0" description = "Platform External API" authors = [ {name = "OpenAPI Generator Community",email = "team@openapitools.org"}, diff --git a/setup.py b/setup.py index c324ab9..0c4aeba 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "platform-api-python-client" -VERSION = "4.39.0" +VERSION = "4.40.0" PYTHON_REQUIRES = ">= 3.10" REQUIRES = [ "urllib3 >= 2.7.0, < 3.0.0", diff --git a/test/test_longhorn.py b/test/test_admission.py similarity index 61% rename from test/test_longhorn.py rename to test/test_admission.py index ab91ba5..bcd31ea 100644 --- a/test/test_longhorn.py +++ b/test/test_admission.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.longhorn import Longhorn +from platform_api_python_client.models.admission import Admission -class TestLonghorn(unittest.TestCase): - """Longhorn unit test stubs""" +class TestAdmission(unittest.TestCase): + """Admission unit test stubs""" def setUp(self): pass @@ -25,26 +25,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Longhorn: - """Test Longhorn + def make_instance(self, include_optional) -> Admission: + """Test Admission 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` + # uncomment below to create an instance of `Admission` """ - model = Longhorn() + model = Admission() if include_optional: - return Longhorn( - enabled = True, - values = platform_api_python_client.models.longhorn_overrides.LonghornOverrides() + return Admission( + gpu_pod_runtime_class_name = '' ) else: - return Longhorn( + return Admission( ) """ - def testLonghorn(self): - """Test Longhorn""" + def testAdmission(self): + """Test Admission""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_istio.py b/test/test_autoscaling.py similarity index 63% rename from test/test_istio.py rename to test/test_autoscaling.py index aa48216..527ca38 100644 --- a/test/test_istio.py +++ b/test/test_autoscaling.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.istio import Istio +from platform_api_python_client.models.autoscaling import Autoscaling -class TestIstio(unittest.TestCase): - """Istio unit test stubs""" +class TestAutoscaling(unittest.TestCase): + """Autoscaling unit test stubs""" def setUp(self): pass @@ -25,27 +25,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Istio: - """Test Istio + def make_instance(self, include_optional) -> Autoscaling: + """Test Autoscaling 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` + # uncomment below to create an instance of `Autoscaling` """ - model = Istio() + model = Autoscaling() if include_optional: - return Istio( + return Autoscaling( enabled = True, - values = platform_api_python_client.models.istio_overrides.IstioOverrides( - istio_cni = null, ) + min_replicas = 56, + max_replicas = 56 ) else: - return Istio( + return Autoscaling( ) """ - def testIstio(self): - """Test Istio""" + def testAutoscaling(self): + """Test Autoscaling""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_final_stack.py b/test/test_ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py similarity index 50% rename from test/test_final_stack.py rename to test/test_ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py index 92739b0..ad7f63f 100644 --- a/test/test_final_stack.py +++ b/test/test_ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.final_stack import FinalStack +from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_chart_values import CclusterCatalogsClusterBaseArgoRolloutsChartValues -class TestFinalStack(unittest.TestCase): - """FinalStack unit test stubs""" +class TestCclusterCatalogsClusterBaseArgoRolloutsChartValues(unittest.TestCase): + """CclusterCatalogsClusterBaseArgoRolloutsChartValues unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FinalStack: - """Test FinalStack + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseArgoRolloutsChartValues: + """Test CclusterCatalogsClusterBaseArgoRolloutsChartValues 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 `FinalStack` + # uncomment below to create an instance of `CclusterCatalogsClusterBaseArgoRolloutsChartValues` """ - model = FinalStack() + model = CclusterCatalogsClusterBaseArgoRolloutsChartValues() if include_optional: - return FinalStack( - enabled = True, - values = platform_api_python_client.models.final_stack_overrides.FinalStackOverrides() + return CclusterCatalogsClusterBaseArgoRolloutsChartValues( + controller = { }, + dashboard = { } ) else: - return FinalStack( + return CclusterCatalogsClusterBaseArgoRolloutsChartValues( ) """ - def testFinalStack(self): - """Test FinalStack""" + def testCclusterCatalogsClusterBaseArgoRolloutsChartValues(self): + """Test CclusterCatalogsClusterBaseArgoRolloutsChartValues""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_ccluster_catalogs_cluster_base_argo_rollouts_controller.py b/test/test_ccluster_catalogs_cluster_base_argo_rollouts_controller.py new file mode 100644 index 0000000..be40f78 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_argo_rollouts_controller.py @@ -0,0 +1,51 @@ +# 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.ccluster_catalogs_cluster_base_argo_rollouts_controller import CclusterCatalogsClusterBaseArgoRolloutsController + +class TestCclusterCatalogsClusterBaseArgoRolloutsController(unittest.TestCase): + """CclusterCatalogsClusterBaseArgoRolloutsController unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseArgoRolloutsController: + """Test CclusterCatalogsClusterBaseArgoRolloutsController + 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 `CclusterCatalogsClusterBaseArgoRolloutsController` + """ + model = CclusterCatalogsClusterBaseArgoRolloutsController() + if include_optional: + return CclusterCatalogsClusterBaseArgoRolloutsController( + replicas = 56 + ) + else: + return CclusterCatalogsClusterBaseArgoRolloutsController( + ) + """ + + def testCclusterCatalogsClusterBaseArgoRolloutsController(self): + """Test CclusterCatalogsClusterBaseArgoRolloutsController""" + # 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_ccluster_catalogs_cluster_base_argo_rollouts_values.py b/test/test_ccluster_catalogs_cluster_base_argo_rollouts_values.py new file mode 100644 index 0000000..e92cc59 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_argo_rollouts_values.py @@ -0,0 +1,51 @@ +# 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.ccluster_catalogs_cluster_base_argo_rollouts_values import CclusterCatalogsClusterBaseArgoRolloutsValues + +class TestCclusterCatalogsClusterBaseArgoRolloutsValues(unittest.TestCase): + """CclusterCatalogsClusterBaseArgoRolloutsValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseArgoRolloutsValues: + """Test CclusterCatalogsClusterBaseArgoRolloutsValues + 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 `CclusterCatalogsClusterBaseArgoRolloutsValues` + """ + model = CclusterCatalogsClusterBaseArgoRolloutsValues() + if include_optional: + return CclusterCatalogsClusterBaseArgoRolloutsValues( + argo_rollouts = { } + ) + else: + return CclusterCatalogsClusterBaseArgoRolloutsValues( + ) + """ + + def testCclusterCatalogsClusterBaseArgoRolloutsValues(self): + """Test CclusterCatalogsClusterBaseArgoRolloutsValues""" + # 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_ccluster_catalogs_cluster_base_cert_manager_chart_values.py b/test/test_ccluster_catalogs_cluster_base_cert_manager_chart_values.py new file mode 100644 index 0000000..0deddc9 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_cert_manager_chart_values.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.ccluster_catalogs_cluster_base_cert_manager_chart_values import CclusterCatalogsClusterBaseCertManagerChartValues + +class TestCclusterCatalogsClusterBaseCertManagerChartValues(unittest.TestCase): + """CclusterCatalogsClusterBaseCertManagerChartValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseCertManagerChartValues: + """Test CclusterCatalogsClusterBaseCertManagerChartValues + 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 `CclusterCatalogsClusterBaseCertManagerChartValues` + """ + model = CclusterCatalogsClusterBaseCertManagerChartValues() + if include_optional: + return CclusterCatalogsClusterBaseCertManagerChartValues( + replica_count = 56, + prometheus = { } + ) + else: + return CclusterCatalogsClusterBaseCertManagerChartValues( + ) + """ + + def testCclusterCatalogsClusterBaseCertManagerChartValues(self): + """Test CclusterCatalogsClusterBaseCertManagerChartValues""" + # 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_ccluster_catalogs_cluster_base_cert_manager_values.py b/test/test_ccluster_catalogs_cluster_base_cert_manager_values.py new file mode 100644 index 0000000..4069fb4 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_cert_manager_values.py @@ -0,0 +1,51 @@ +# 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.ccluster_catalogs_cluster_base_cert_manager_values import CclusterCatalogsClusterBaseCertManagerValues + +class TestCclusterCatalogsClusterBaseCertManagerValues(unittest.TestCase): + """CclusterCatalogsClusterBaseCertManagerValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseCertManagerValues: + """Test CclusterCatalogsClusterBaseCertManagerValues + 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 `CclusterCatalogsClusterBaseCertManagerValues` + """ + model = CclusterCatalogsClusterBaseCertManagerValues() + if include_optional: + return CclusterCatalogsClusterBaseCertManagerValues( + cert_manager = { } + ) + else: + return CclusterCatalogsClusterBaseCertManagerValues( + ) + """ + + def testCclusterCatalogsClusterBaseCertManagerValues(self): + """Test CclusterCatalogsClusterBaseCertManagerValues""" + # 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_ccluster_catalogs_cluster_base_gpu_operator_chart_values.py b/test/test_ccluster_catalogs_cluster_base_gpu_operator_chart_values.py new file mode 100644 index 0000000..388c2c4 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_gpu_operator_chart_values.py @@ -0,0 +1,55 @@ +# 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.ccluster_catalogs_cluster_base_gpu_operator_chart_values import CclusterCatalogsClusterBaseGpuOperatorChartValues + +class TestCclusterCatalogsClusterBaseGpuOperatorChartValues(unittest.TestCase): + """CclusterCatalogsClusterBaseGpuOperatorChartValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseGpuOperatorChartValues: + """Test CclusterCatalogsClusterBaseGpuOperatorChartValues + 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 `CclusterCatalogsClusterBaseGpuOperatorChartValues` + """ + model = CclusterCatalogsClusterBaseGpuOperatorChartValues() + if include_optional: + return CclusterCatalogsClusterBaseGpuOperatorChartValues( + driver = { }, + toolkit = { }, + nfd = { }, + cdi = { }, + mig = { } + ) + else: + return CclusterCatalogsClusterBaseGpuOperatorChartValues( + ) + """ + + def testCclusterCatalogsClusterBaseGpuOperatorChartValues(self): + """Test CclusterCatalogsClusterBaseGpuOperatorChartValues""" + # 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_ccluster_catalogs_cluster_base_gpu_operator_values.py b/test/test_ccluster_catalogs_cluster_base_gpu_operator_values.py new file mode 100644 index 0000000..acf0140 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_gpu_operator_values.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.ccluster_catalogs_cluster_base_gpu_operator_values import CclusterCatalogsClusterBaseGpuOperatorValues + +class TestCclusterCatalogsClusterBaseGpuOperatorValues(unittest.TestCase): + """CclusterCatalogsClusterBaseGpuOperatorValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseGpuOperatorValues: + """Test CclusterCatalogsClusterBaseGpuOperatorValues + 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 `CclusterCatalogsClusterBaseGpuOperatorValues` + """ + model = CclusterCatalogsClusterBaseGpuOperatorValues() + if include_optional: + return CclusterCatalogsClusterBaseGpuOperatorValues( + gpu_operator = { }, + quota = { } + ) + else: + return CclusterCatalogsClusterBaseGpuOperatorValues( + ) + """ + + def testCclusterCatalogsClusterBaseGpuOperatorValues(self): + """Test CclusterCatalogsClusterBaseGpuOperatorValues""" + # 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_ccluster_catalogs_cluster_base_ingress_nginx_chart_values.py b/test/test_ccluster_catalogs_cluster_base_ingress_nginx_chart_values.py new file mode 100644 index 0000000..4f3dc77 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_ingress_nginx_chart_values.py @@ -0,0 +1,51 @@ +# 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.ccluster_catalogs_cluster_base_ingress_nginx_chart_values import CclusterCatalogsClusterBaseIngressNginxChartValues + +class TestCclusterCatalogsClusterBaseIngressNginxChartValues(unittest.TestCase): + """CclusterCatalogsClusterBaseIngressNginxChartValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseIngressNginxChartValues: + """Test CclusterCatalogsClusterBaseIngressNginxChartValues + 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 `CclusterCatalogsClusterBaseIngressNginxChartValues` + """ + model = CclusterCatalogsClusterBaseIngressNginxChartValues() + if include_optional: + return CclusterCatalogsClusterBaseIngressNginxChartValues( + controller = { } + ) + else: + return CclusterCatalogsClusterBaseIngressNginxChartValues( + ) + """ + + def testCclusterCatalogsClusterBaseIngressNginxChartValues(self): + """Test CclusterCatalogsClusterBaseIngressNginxChartValues""" + # 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_ccluster_catalogs_cluster_base_ingress_nginx_controller.py b/test/test_ccluster_catalogs_cluster_base_ingress_nginx_controller.py new file mode 100644 index 0000000..fe85dd9 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_ingress_nginx_controller.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.ccluster_catalogs_cluster_base_ingress_nginx_controller import CclusterCatalogsClusterBaseIngressNginxController + +class TestCclusterCatalogsClusterBaseIngressNginxController(unittest.TestCase): + """CclusterCatalogsClusterBaseIngressNginxController unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseIngressNginxController: + """Test CclusterCatalogsClusterBaseIngressNginxController + 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 `CclusterCatalogsClusterBaseIngressNginxController` + """ + model = CclusterCatalogsClusterBaseIngressNginxController() + if include_optional: + return CclusterCatalogsClusterBaseIngressNginxController( + metrics = { }, + autoscaling = { } + ) + else: + return CclusterCatalogsClusterBaseIngressNginxController( + ) + """ + + def testCclusterCatalogsClusterBaseIngressNginxController(self): + """Test CclusterCatalogsClusterBaseIngressNginxController""" + # 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_ccluster_catalogs_cluster_base_ingress_nginx_values.py b/test/test_ccluster_catalogs_cluster_base_ingress_nginx_values.py new file mode 100644 index 0000000..ceac859 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_ingress_nginx_values.py @@ -0,0 +1,51 @@ +# 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.ccluster_catalogs_cluster_base_ingress_nginx_values import CclusterCatalogsClusterBaseIngressNginxValues + +class TestCclusterCatalogsClusterBaseIngressNginxValues(unittest.TestCase): + """CclusterCatalogsClusterBaseIngressNginxValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseIngressNginxValues: + """Test CclusterCatalogsClusterBaseIngressNginxValues + 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 `CclusterCatalogsClusterBaseIngressNginxValues` + """ + model = CclusterCatalogsClusterBaseIngressNginxValues() + if include_optional: + return CclusterCatalogsClusterBaseIngressNginxValues( + ingress_nginx = { } + ) + else: + return CclusterCatalogsClusterBaseIngressNginxValues( + ) + """ + + def testCclusterCatalogsClusterBaseIngressNginxValues(self): + """Test CclusterCatalogsClusterBaseIngressNginxValues""" + # 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_ccluster_catalogs_cluster_base_istio_values.py b/test/test_ccluster_catalogs_cluster_base_istio_values.py new file mode 100644 index 0000000..6b9e4b5 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_istio_values.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.ccluster_catalogs_cluster_base_istio_values import CclusterCatalogsClusterBaseIstioValues + +class TestCclusterCatalogsClusterBaseIstioValues(unittest.TestCase): + """CclusterCatalogsClusterBaseIstioValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseIstioValues: + """Test CclusterCatalogsClusterBaseIstioValues + 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 `CclusterCatalogsClusterBaseIstioValues` + """ + model = CclusterCatalogsClusterBaseIstioValues() + if include_optional: + return CclusterCatalogsClusterBaseIstioValues( + istio_base = { }, + istiod = { }, + istio_gateway = { }, + istio_cni = { } + ) + else: + return CclusterCatalogsClusterBaseIstioValues( + ) + """ + + def testCclusterCatalogsClusterBaseIstioValues(self): + """Test CclusterCatalogsClusterBaseIstioValues""" + # 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_ccluster_catalogs_cluster_base_kai_scheduler_chart_values.py b/test/test_ccluster_catalogs_cluster_base_kai_scheduler_chart_values.py new file mode 100644 index 0000000..5bae88d --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_kai_scheduler_chart_values.py @@ -0,0 +1,55 @@ +# 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.ccluster_catalogs_cluster_base_kai_scheduler_chart_values import CclusterCatalogsClusterBaseKaiSchedulerChartValues + +class TestCclusterCatalogsClusterBaseKaiSchedulerChartValues(unittest.TestCase): + """CclusterCatalogsClusterBaseKaiSchedulerChartValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseKaiSchedulerChartValues: + """Test CclusterCatalogsClusterBaseKaiSchedulerChartValues + 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 `CclusterCatalogsClusterBaseKaiSchedulerChartValues` + """ + model = CclusterCatalogsClusterBaseKaiSchedulerChartValues() + if include_optional: + return CclusterCatalogsClusterBaseKaiSchedulerChartValues( + scheduler = { }, + binder = { }, + operator = { }, + admission = { }, + default_queue = { } + ) + else: + return CclusterCatalogsClusterBaseKaiSchedulerChartValues( + ) + """ + + def testCclusterCatalogsClusterBaseKaiSchedulerChartValues(self): + """Test CclusterCatalogsClusterBaseKaiSchedulerChartValues""" + # 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_ccluster_catalogs_cluster_base_kai_scheduler_values.py b/test/test_ccluster_catalogs_cluster_base_kai_scheduler_values.py new file mode 100644 index 0000000..477bbc6 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_kai_scheduler_values.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.ccluster_catalogs_cluster_base_kai_scheduler_values import CclusterCatalogsClusterBaseKaiSchedulerValues + +class TestCclusterCatalogsClusterBaseKaiSchedulerValues(unittest.TestCase): + """CclusterCatalogsClusterBaseKaiSchedulerValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseKaiSchedulerValues: + """Test CclusterCatalogsClusterBaseKaiSchedulerValues + 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 `CclusterCatalogsClusterBaseKaiSchedulerValues` + """ + model = CclusterCatalogsClusterBaseKaiSchedulerValues() + if include_optional: + return CclusterCatalogsClusterBaseKaiSchedulerValues( + kai_scheduler = { }, + default_priorities = { } + ) + else: + return CclusterCatalogsClusterBaseKaiSchedulerValues( + ) + """ + + def testCclusterCatalogsClusterBaseKaiSchedulerValues(self): + """Test CclusterCatalogsClusterBaseKaiSchedulerValues""" + # 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_ccluster_catalogs_cluster_base_keda_chart_values.py b/test/test_ccluster_catalogs_cluster_base_keda_chart_values.py new file mode 100644 index 0000000..f4fe5b2 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_keda_chart_values.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.ccluster_catalogs_cluster_base_keda_chart_values import CclusterCatalogsClusterBaseKedaChartValues + +class TestCclusterCatalogsClusterBaseKedaChartValues(unittest.TestCase): + """CclusterCatalogsClusterBaseKedaChartValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseKedaChartValues: + """Test CclusterCatalogsClusterBaseKedaChartValues + 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 `CclusterCatalogsClusterBaseKedaChartValues` + """ + model = CclusterCatalogsClusterBaseKedaChartValues() + if include_optional: + return CclusterCatalogsClusterBaseKedaChartValues( + operator = { }, + metrics_server = { }, + webhooks = { } + ) + else: + return CclusterCatalogsClusterBaseKedaChartValues( + ) + """ + + def testCclusterCatalogsClusterBaseKedaChartValues(self): + """Test CclusterCatalogsClusterBaseKedaChartValues""" + # 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_argo_rollouts.py b/test/test_ccluster_catalogs_cluster_base_keda_values.py similarity index 52% rename from test/test_argo_rollouts.py rename to test/test_ccluster_catalogs_cluster_base_keda_values.py index f57bf46..22b2822 100644 --- a/test/test_argo_rollouts.py +++ b/test/test_ccluster_catalogs_cluster_base_keda_values.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.argo_rollouts import ArgoRollouts +from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_values import CclusterCatalogsClusterBaseKedaValues -class TestArgoRollouts(unittest.TestCase): - """ArgoRollouts unit test stubs""" +class TestCclusterCatalogsClusterBaseKedaValues(unittest.TestCase): + """CclusterCatalogsClusterBaseKedaValues unit test stubs""" def setUp(self): pass @@ -25,26 +25,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ArgoRollouts: - """Test ArgoRollouts + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseKedaValues: + """Test CclusterCatalogsClusterBaseKedaValues 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 `ArgoRollouts` + # uncomment below to create an instance of `CclusterCatalogsClusterBaseKedaValues` """ - model = ArgoRollouts() + model = CclusterCatalogsClusterBaseKedaValues() if include_optional: - return ArgoRollouts( - enabled = True, - values = platform_api_python_client.models.argo_rollouts_overrides.ArgoRolloutsOverrides() + return CclusterCatalogsClusterBaseKedaValues( + keda = { } ) else: - return ArgoRollouts( + return CclusterCatalogsClusterBaseKedaValues( ) """ - def testArgoRollouts(self): - """Test ArgoRollouts""" + def testCclusterCatalogsClusterBaseKedaValues(self): + """Test CclusterCatalogsClusterBaseKedaValues""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values.py b/test/test_ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values.py new file mode 100644 index 0000000..3c640f5 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values.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.ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values import CclusterCatalogsClusterBaseKubePrometheusStackChartValues + +class TestCclusterCatalogsClusterBaseKubePrometheusStackChartValues(unittest.TestCase): + """CclusterCatalogsClusterBaseKubePrometheusStackChartValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseKubePrometheusStackChartValues: + """Test CclusterCatalogsClusterBaseKubePrometheusStackChartValues + 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 `CclusterCatalogsClusterBaseKubePrometheusStackChartValues` + """ + model = CclusterCatalogsClusterBaseKubePrometheusStackChartValues() + if include_optional: + return CclusterCatalogsClusterBaseKubePrometheusStackChartValues( + grafana = { }, + prometheus = { } + ) + else: + return CclusterCatalogsClusterBaseKubePrometheusStackChartValues( + ) + """ + + def testCclusterCatalogsClusterBaseKubePrometheusStackChartValues(self): + """Test CclusterCatalogsClusterBaseKubePrometheusStackChartValues""" + # 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_ccluster_catalogs_cluster_base_kube_prometheus_stack_values.py b/test/test_ccluster_catalogs_cluster_base_kube_prometheus_stack_values.py new file mode 100644 index 0000000..190e5cf --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_kube_prometheus_stack_values.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.ccluster_catalogs_cluster_base_kube_prometheus_stack_values import CclusterCatalogsClusterBaseKubePrometheusStackValues + +class TestCclusterCatalogsClusterBaseKubePrometheusStackValues(unittest.TestCase): + """CclusterCatalogsClusterBaseKubePrometheusStackValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseKubePrometheusStackValues: + """Test CclusterCatalogsClusterBaseKubePrometheusStackValues + 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 `CclusterCatalogsClusterBaseKubePrometheusStackValues` + """ + model = CclusterCatalogsClusterBaseKubePrometheusStackValues() + if include_optional: + return CclusterCatalogsClusterBaseKubePrometheusStackValues( + kube_prometheus_stack = { }, + prometheus_rules = { } + ) + else: + return CclusterCatalogsClusterBaseKubePrometheusStackValues( + ) + """ + + def testCclusterCatalogsClusterBaseKubePrometheusStackValues(self): + """Test CclusterCatalogsClusterBaseKubePrometheusStackValues""" + # 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_ccluster_catalogs_cluster_base_metrics_server_chart_values.py b/test/test_ccluster_catalogs_cluster_base_metrics_server_chart_values.py new file mode 100644 index 0000000..379be0f --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_metrics_server_chart_values.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.ccluster_catalogs_cluster_base_metrics_server_chart_values import CclusterCatalogsClusterBaseMetricsServerChartValues + +class TestCclusterCatalogsClusterBaseMetricsServerChartValues(unittest.TestCase): + """CclusterCatalogsClusterBaseMetricsServerChartValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseMetricsServerChartValues: + """Test CclusterCatalogsClusterBaseMetricsServerChartValues + 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 `CclusterCatalogsClusterBaseMetricsServerChartValues` + """ + model = CclusterCatalogsClusterBaseMetricsServerChartValues() + if include_optional: + return CclusterCatalogsClusterBaseMetricsServerChartValues( + args = [ + '' + ] + ) + else: + return CclusterCatalogsClusterBaseMetricsServerChartValues( + ) + """ + + def testCclusterCatalogsClusterBaseMetricsServerChartValues(self): + """Test CclusterCatalogsClusterBaseMetricsServerChartValues""" + # 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_ccluster_catalogs_cluster_base_metrics_server_values.py b/test/test_ccluster_catalogs_cluster_base_metrics_server_values.py new file mode 100644 index 0000000..eda3b11 --- /dev/null +++ b/test/test_ccluster_catalogs_cluster_base_metrics_server_values.py @@ -0,0 +1,51 @@ +# 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.ccluster_catalogs_cluster_base_metrics_server_values import CclusterCatalogsClusterBaseMetricsServerValues + +class TestCclusterCatalogsClusterBaseMetricsServerValues(unittest.TestCase): + """CclusterCatalogsClusterBaseMetricsServerValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CclusterCatalogsClusterBaseMetricsServerValues: + """Test CclusterCatalogsClusterBaseMetricsServerValues + 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 `CclusterCatalogsClusterBaseMetricsServerValues` + """ + model = CclusterCatalogsClusterBaseMetricsServerValues() + if include_optional: + return CclusterCatalogsClusterBaseMetricsServerValues( + metrics_server = { } + ) + else: + return CclusterCatalogsClusterBaseMetricsServerValues( + ) + """ + + def testCclusterCatalogsClusterBaseMetricsServerValues(self): + """Test CclusterCatalogsClusterBaseMetricsServerValues""" + # 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_cdi.py similarity index 66% rename from test/test_keda.py rename to test/test_cdi.py index c337e72..dcbc2a4 100644 --- a/test/test_keda.py +++ b/test/test_cdi.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.keda import Keda +from platform_api_python_client.models.cdi import CDI -class TestKeda(unittest.TestCase): - """Keda unit test stubs""" +class TestCDI(unittest.TestCase): + """CDI unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Keda: - """Test Keda + def make_instance(self, include_optional) -> CDI: + """Test CDI 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` + # uncomment below to create an instance of `CDI` """ - model = Keda() + model = CDI() if include_optional: - return Keda( + return CDI( enabled = True, - values = platform_api_python_client.models.keda_overrides.KedaOverrides() + default = True ) else: - return Keda( + return CDI( ) """ - def testKeda(self): - """Test Keda""" + def testCDI(self): + """Test CDI""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_cluster_base_components.py b/test/test_cluster_base_components.py new file mode 100644 index 0000000..7b3461e --- /dev/null +++ b/test/test_cluster_base_components.py @@ -0,0 +1,61 @@ +# 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_base_components import ClusterBaseComponents + +class TestClusterBaseComponents(unittest.TestCase): + """ClusterBaseComponents unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ClusterBaseComponents: + """Test ClusterBaseComponents + 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 `ClusterBaseComponents` + """ + model = ClusterBaseComponents() + if include_optional: + return ClusterBaseComponents( + kube_prometheus_stack = { }, + istio = { }, + cert_manager = { }, + ingress_nginx = { }, + keda = { }, + argo_rollouts = { }, + gpu_operator = { }, + kai_scheduler = { }, + metrics_server = { }, + final_stack = { } + ) + else: + return ClusterBaseComponents( + final_stack = { }, + ) + """ + + def testClusterBaseComponents(self): + """Test ClusterBaseComponents""" + # 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_components.py b/test/test_cluster_components.py deleted file mode 100644 index 14bf447..0000000 --- a/test/test_cluster_components.py +++ /dev/null @@ -1,104 +0,0 @@ -# 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 = null, ), - istio = platform_api_python_client.models.istio.Istio( - enabled = True, - values = null, ), - cert_manager = platform_api_python_client.models.cert_manager.CertManager( - enabled = True, - values = null, ), - ingress_nginx = platform_api_python_client.models.ingress_nginx.IngressNginx( - enabled = True, - values = null, ), - spire_crds = platform_api_python_client.models.spire_crds.SpireCrds( - enabled = True, - values = null, ), - spire = platform_api_python_client.models.spire.Spire( - enabled = True, - values = null, ), - external_dns = platform_api_python_client.models.external_dns.ExternalDns( - enabled = True, - values = null, ), - prometheus_adapter = platform_api_python_client.models.prometheus_adapter.PrometheusAdapter( - enabled = True, - values = null, ), - keda = platform_api_python_client.models.keda.Keda( - enabled = True, - values = null, ), - fluent_bit = platform_api_python_client.models.fluent_bit.FluentBit( - enabled = True, - values = null, ), - argo_rollouts = platform_api_python_client.models.argo_rollouts.ArgoRollouts( - enabled = True, - values = null, ), - network_operator = platform_api_python_client.models.network_operator.NetworkOperator( - enabled = True, - values = null, ), - opentelemetry_collector = platform_api_python_client.models.opentelemetry_collector.OpentelemetryCollector( - enabled = True, - values = null, ), - gpu_operator = platform_api_python_client.models.gpu_operator.GpuOperator( - enabled = True, - values = null, ), - longhorn = platform_api_python_client.models.longhorn.Longhorn( - enabled = True, - values = null, ), - metrics_server = platform_api_python_client.models.metrics_server.MetricsServer( - enabled = True, - values = null, ), - teleport_kube_agent = platform_api_python_client.models.teleport_kube_agent.TeleportKubeAgent( - enabled = True, - values = null, ), - final_stack = platform_api_python_client.models.final_stack.FinalStack( - enabled = True, - values = null, ) - ) - 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 deleted file mode 100644 index 1cdc595..0000000 --- a/test/test_cluster_config.py +++ /dev/null @@ -1,160 +0,0 @@ -# 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 = null, ), - istio = platform_api_python_client.models.istio.Istio( - enabled = True, - values = null, ), - cert_manager = platform_api_python_client.models.cert_manager.CertManager( - enabled = True, - values = null, ), - ingress_nginx = platform_api_python_client.models.ingress_nginx.IngressNginx( - enabled = True, - values = null, ), - spire_crds = platform_api_python_client.models.spire_crds.SpireCrds( - enabled = True, - values = null, ), - spire = platform_api_python_client.models.spire.Spire( - enabled = True, - values = null, ), - external_dns = platform_api_python_client.models.external_dns.ExternalDns( - enabled = True, - values = null, ), - prometheus_adapter = platform_api_python_client.models.prometheus_adapter.PrometheusAdapter( - enabled = True, - values = null, ), - keda = platform_api_python_client.models.keda.Keda( - enabled = True, - values = null, ), - fluent_bit = platform_api_python_client.models.fluent_bit.FluentBit( - enabled = True, - values = null, ), - argo_rollouts = platform_api_python_client.models.argo_rollouts.ArgoRollouts( - enabled = True, - values = null, ), - network_operator = platform_api_python_client.models.network_operator.NetworkOperator( - enabled = True, - values = null, ), - opentelemetry_collector = platform_api_python_client.models.opentelemetry_collector.OpentelemetryCollector( - enabled = True, - values = null, ), - gpu_operator = platform_api_python_client.models.gpu_operator.GpuOperator( - enabled = True, - values = null, ), - longhorn = platform_api_python_client.models.longhorn.Longhorn( - enabled = True, - values = null, ), - metrics_server = platform_api_python_client.models.metrics_server.MetricsServer( - enabled = True, - values = null, ), - teleport_kube_agent = platform_api_python_client.models.teleport_kube_agent.TeleportKubeAgent( - enabled = True, - values = null, ), - final_stack = platform_api_python_client.models.final_stack.FinalStack( - enabled = True, - values = null, ), ) - ) - 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 = null, ), - istio = platform_api_python_client.models.istio.Istio( - enabled = True, - values = null, ), - cert_manager = platform_api_python_client.models.cert_manager.CertManager( - enabled = True, - values = null, ), - ingress_nginx = platform_api_python_client.models.ingress_nginx.IngressNginx( - enabled = True, - values = null, ), - spire_crds = platform_api_python_client.models.spire_crds.SpireCrds( - enabled = True, - values = null, ), - spire = platform_api_python_client.models.spire.Spire( - enabled = True, - values = null, ), - external_dns = platform_api_python_client.models.external_dns.ExternalDns( - enabled = True, - values = null, ), - prometheus_adapter = platform_api_python_client.models.prometheus_adapter.PrometheusAdapter( - enabled = True, - values = null, ), - keda = platform_api_python_client.models.keda.Keda( - enabled = True, - values = null, ), - fluent_bit = platform_api_python_client.models.fluent_bit.FluentBit( - enabled = True, - values = null, ), - argo_rollouts = platform_api_python_client.models.argo_rollouts.ArgoRollouts( - enabled = True, - values = null, ), - network_operator = platform_api_python_client.models.network_operator.NetworkOperator( - enabled = True, - values = null, ), - opentelemetry_collector = platform_api_python_client.models.opentelemetry_collector.OpentelemetryCollector( - enabled = True, - values = null, ), - gpu_operator = platform_api_python_client.models.gpu_operator.GpuOperator( - enabled = True, - values = null, ), - longhorn = platform_api_python_client.models.longhorn.Longhorn( - enabled = True, - values = null, ), - metrics_server = platform_api_python_client.models.metrics_server.MetricsServer( - enabled = True, - values = null, ), - teleport_kube_agent = platform_api_python_client.models.teleport_kube_agent.TeleportKubeAgent( - enabled = True, - values = null, ), - final_stack = platform_api_python_client.models.final_stack.FinalStack( - enabled = True, - values = null, ), ), - ) - """ - - 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_cni.py b/test/test_cni.py new file mode 100644 index 0000000..a56bab2 --- /dev/null +++ b/test/test_cni.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.cni import CNI + +class TestCNI(unittest.TestCase): + """CNI unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CNI: + """Test CNI + 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 `CNI` + """ + model = CNI() + if include_optional: + return CNI( + cni_conf_dir = '', + cni_bin_dir = '' + ) + else: + return CNI( + ) + """ + + def testCNI(self): + """Test CNI""" + # 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_dashboard.py b/test/test_dashboard.py new file mode 100644 index 0000000..f7e686a --- /dev/null +++ b/test/test_dashboard.py @@ -0,0 +1,51 @@ +# 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.dashboard import Dashboard + +class TestDashboard(unittest.TestCase): + """Dashboard unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Dashboard: + """Test Dashboard + 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 `Dashboard` + """ + model = Dashboard() + if include_optional: + return Dashboard( + enabled = True + ) + else: + return Dashboard( + ) + """ + + def testDashboard(self): + """Test Dashboard""" + # 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_default_priorities.py b/test/test_default_priorities.py new file mode 100644 index 0000000..58def96 --- /dev/null +++ b/test/test_default_priorities.py @@ -0,0 +1,51 @@ +# 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.default_priorities import DefaultPriorities + +class TestDefaultPriorities(unittest.TestCase): + """DefaultPriorities unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DefaultPriorities: + """Test DefaultPriorities + 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 `DefaultPriorities` + """ + model = DefaultPriorities() + if include_optional: + return DefaultPriorities( + enabled = True + ) + else: + return DefaultPriorities( + ) + """ + + def testDefaultPriorities(self): + """Test DefaultPriorities""" + # 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_default_queue.py b/test/test_default_queue.py new file mode 100644 index 0000000..2be365f --- /dev/null +++ b/test/test_default_queue.py @@ -0,0 +1,51 @@ +# 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.default_queue import DefaultQueue + +class TestDefaultQueue(unittest.TestCase): + """DefaultQueue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DefaultQueue: + """Test DefaultQueue + 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 `DefaultQueue` + """ + model = DefaultQueue() + if include_optional: + return DefaultQueue( + create_default_queue = True + ) + else: + return DefaultQueue( + ) + """ + + def testDefaultQueue(self): + """Test DefaultQueue""" + # 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 deleted file mode 100644 index b17ba70..0000000 --- a/test/test_ingress_nginx.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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_base.py b/test/test_istio_base.py new file mode 100644 index 0000000..4a648d8 --- /dev/null +++ b/test/test_istio_base.py @@ -0,0 +1,51 @@ +# 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_base import IstioBase + +class TestIstioBase(unittest.TestCase): + """IstioBase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IstioBase: + """Test IstioBase + 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 `IstioBase` + """ + model = IstioBase() + if include_optional: + return IstioBase( + default_revision = '' + ) + else: + return IstioBase( + ) + """ + + def testIstioBase(self): + """Test IstioBase""" + # 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.py b/test/test_istio_cni.py new file mode 100644 index 0000000..636cb01 --- /dev/null +++ b/test/test_istio_cni.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_cni import IstioCNI + +class TestIstioCNI(unittest.TestCase): + """IstioCNI unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IstioCNI: + """Test IstioCNI + 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 `IstioCNI` + """ + model = IstioCNI() + if include_optional: + return IstioCNI( + cni = { }, + tolerations = [ + { } + ] + ) + else: + return IstioCNI( + ) + """ + + def testIstioCNI(self): + """Test IstioCNI""" + # 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 deleted file mode 100644 index 4964d73..0000000 --- a/test/test_istio_cni_overrides.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 deleted file mode 100644 index d3309ff..0000000 --- a/test/test_istio_cni_subchart_overrides.py +++ /dev/null @@ -1,53 +0,0 @@ -# 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_gateway.py b/test/test_istio_gateway.py new file mode 100644 index 0000000..6797d97 --- /dev/null +++ b/test/test_istio_gateway.py @@ -0,0 +1,51 @@ +# 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_gateway import IstioGateway + +class TestIstioGateway(unittest.TestCase): + """IstioGateway unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> IstioGateway: + """Test IstioGateway + 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 `IstioGateway` + """ + model = IstioGateway() + if include_optional: + return IstioGateway( + enabled = True + ) + else: + return IstioGateway( + ) + """ + + def testIstioGateway(self): + """Test IstioGateway""" + # 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 deleted file mode 100644 index 5b95281..0000000 --- a/test/test_istio_overrides.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 = null, ) - ) - 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_istiod.py b/test/test_istiod.py new file mode 100644 index 0000000..02de8a7 --- /dev/null +++ b/test/test_istiod.py @@ -0,0 +1,51 @@ +# 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.istiod import Istiod + +class TestIstiod(unittest.TestCase): + """Istiod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Istiod: + """Test Istiod + 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 `Istiod` + """ + model = Istiod() + if include_optional: + return Istiod( + pilot = { } + ) + else: + return Istiod( + ) + """ + + def testIstiod(self): + """Test Istiod""" + # 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 deleted file mode 100644 index b34d2dd..0000000 --- a/test/test_kube_prometheus_stack.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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_spire.py b/test/test_metrics.py similarity index 65% rename from test/test_spire.py rename to test/test_metrics.py index 8e74db5..763e9a0 100644 --- a/test/test_spire.py +++ b/test/test_metrics.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.spire import Spire +from platform_api_python_client.models.metrics import Metrics -class TestSpire(unittest.TestCase): - """Spire unit test stubs""" +class TestMetrics(unittest.TestCase): + """Metrics unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> Spire: - """Test Spire + def make_instance(self, include_optional) -> Metrics: + """Test Metrics 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` + # uncomment below to create an instance of `Metrics` """ - model = Spire() + model = Metrics() if include_optional: - return Spire( + return Metrics( enabled = True, - values = platform_api_python_client.models.spire_overrides.SpireOverrides() + service_monitor = { } ) else: - return Spire( + return Metrics( ) """ - def testSpire(self): - """Test Spire""" + def testMetrics(self): + """Test Metrics""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_metrics_server.py b/test/test_metrics_server.py deleted file mode 100644 index 6b6d657..0000000 --- a/test/test_metrics_server.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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_mig.py b/test/test_mig.py new file mode 100644 index 0000000..71b382e --- /dev/null +++ b/test/test_mig.py @@ -0,0 +1,51 @@ +# 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.mig import MIG + +class TestMIG(unittest.TestCase): + """MIG unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MIG: + """Test MIG + 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 `MIG` + """ + model = MIG() + if include_optional: + return MIG( + strategy = '' + ) + else: + return MIG( + ) + """ + + def testMIG(self): + """Test MIG""" + # 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 deleted file mode 100644 index a06f2e4..0000000 --- a/test/test_network_operator.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 deleted file mode 100644 index 3530f59..0000000 --- a/test/test_opentelemetry_collector.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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_operator.py b/test/test_operator.py new file mode 100644 index 0000000..fb7d793 --- /dev/null +++ b/test/test_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.operator import Operator + +class TestOperator(unittest.TestCase): + """Operator unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Operator: + """Test Operator + 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 `Operator` + """ + model = Operator() + if include_optional: + return Operator( + log_level = '', + resources = { } + ) + else: + return Operator( + ) + """ + + def testOperator(self): + """Test Operator""" + # 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_pilot.py b/test/test_pilot.py new file mode 100644 index 0000000..6aabfe0 --- /dev/null +++ b/test/test_pilot.py @@ -0,0 +1,51 @@ +# 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.pilot import Pilot + +class TestPilot(unittest.TestCase): + """Pilot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Pilot: + """Test Pilot + 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 `Pilot` + """ + model = Pilot() + if include_optional: + return Pilot( + autoscale_min = 56 + ) + else: + return Pilot( + ) + """ + + def testPilot(self): + """Test Pilot""" + # 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.py b/test/test_prometheus.py new file mode 100644 index 0000000..026b466 --- /dev/null +++ b/test/test_prometheus.py @@ -0,0 +1,51 @@ +# 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 import Prometheus + +class TestPrometheus(unittest.TestCase): + """Prometheus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Prometheus: + """Test Prometheus + 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 `Prometheus` + """ + model = Prometheus() + if include_optional: + return Prometheus( + prometheus_spec = { } + ) + else: + return Prometheus( + ) + """ + + def testPrometheus(self): + """Test Prometheus""" + # 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 deleted file mode 100644 index 5f7c3dd..0000000 --- a/test/test_prometheus_adapter.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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_prometheus_rules.py b/test/test_prometheus_rules.py new file mode 100644 index 0000000..ee62595 --- /dev/null +++ b/test/test_prometheus_rules.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_rules import PrometheusRules + +class TestPrometheusRules(unittest.TestCase): + """PrometheusRules unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PrometheusRules: + """Test PrometheusRules + 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 `PrometheusRules` + """ + model = PrometheusRules() + if include_optional: + return PrometheusRules( + pod_alerts = { }, + envoy_stats = { } + ) + else: + return PrometheusRules( + ) + """ + + def testPrometheusRules(self): + """Test PrometheusRules""" + # 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_gpu_operator.py b/test/test_prometheus_spec.py similarity index 57% rename from test/test_gpu_operator.py rename to test/test_prometheus_spec.py index 99046e2..6e4a0b4 100644 --- a/test/test_gpu_operator.py +++ b/test/test_prometheus_spec.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.gpu_operator import GpuOperator +from platform_api_python_client.models.prometheus_spec import PrometheusSpec -class TestGpuOperator(unittest.TestCase): - """GpuOperator unit test stubs""" +class TestPrometheusSpec(unittest.TestCase): + """PrometheusSpec unit test stubs""" def setUp(self): pass @@ -25,26 +25,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GpuOperator: - """Test GpuOperator + def make_instance(self, include_optional) -> PrometheusSpec: + """Test PrometheusSpec 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` + # uncomment below to create an instance of `PrometheusSpec` """ - model = GpuOperator() + model = PrometheusSpec() if include_optional: - return GpuOperator( - enabled = True, - values = platform_api_python_client.models.gpu_operator_overrides.GpuOperatorOverrides() + return PrometheusSpec( + external_labels = { + 'key' : '' + }, + remote_write = [ + { } + ] ) else: - return GpuOperator( + return PrometheusSpec( ) """ - def testGpuOperator(self): - """Test GpuOperator""" + def testPrometheusSpec(self): + """Test PrometheusSpec""" # 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_prometheus_values.py similarity index 62% rename from test/test_fluent_bit.py rename to test/test_prometheus_values.py index 3b6bb1b..d09c921 100644 --- a/test/test_fluent_bit.py +++ b/test/test_prometheus_values.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.fluent_bit import FluentBit +from platform_api_python_client.models.prometheus_values import PrometheusValues -class TestFluentBit(unittest.TestCase): - """FluentBit unit test stubs""" +class TestPrometheusValues(unittest.TestCase): + """PrometheusValues unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FluentBit: - """Test FluentBit + def make_instance(self, include_optional) -> PrometheusValues: + """Test PrometheusValues 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` + # uncomment below to create an instance of `PrometheusValues` """ - model = FluentBit() + model = PrometheusValues() if include_optional: - return FluentBit( + return PrometheusValues( enabled = True, - values = platform_api_python_client.models.fluent_bit_overrides.FluentBitOverrides() + servicemonitor = { } ) else: - return FluentBit( + return PrometheusValues( ) """ - def testFluentBit(self): - """Test FluentBit""" + def testPrometheusValues(self): + """Test PrometheusValues""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_quota.py b/test/test_quota.py new file mode 100644 index 0000000..7b62036 --- /dev/null +++ b/test/test_quota.py @@ -0,0 +1,51 @@ +# 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.quota import Quota + +class TestQuota(unittest.TestCase): + """Quota unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Quota: + """Test Quota + 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 `Quota` + """ + model = Quota() + if include_optional: + return Quota( + critical_pod_limit = 56 + ) + else: + return Quota( + ) + """ + + def testQuota(self): + """Test Quota""" + # 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_replicas.py b/test/test_replicas.py new file mode 100644 index 0000000..6f6ff2a --- /dev/null +++ b/test/test_replicas.py @@ -0,0 +1,51 @@ +# 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.replicas import Replicas + +class TestReplicas(unittest.TestCase): + """Replicas unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Replicas: + """Test Replicas + 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 `Replicas` + """ + model = Replicas() + if include_optional: + return Replicas( + replica_count = 56 + ) + else: + return Replicas( + ) + """ + + def testReplicas(self): + """Test Replicas""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_list.py b/test/test_resource_list.py new file mode 100644 index 0000000..03e300b --- /dev/null +++ b/test/test_resource_list.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.resource_list import ResourceList + +class TestResourceList(unittest.TestCase): + """ResourceList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResourceList: + """Test ResourceList + 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 `ResourceList` + """ + model = ResourceList() + if include_optional: + return ResourceList( + cpu = '', + memory = '' + ) + else: + return ResourceList( + ) + """ + + def testResourceList(self): + """Test ResourceList""" + # 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_cert_manager.py b/test/test_resource_requirements.py similarity index 58% rename from test/test_cert_manager.py rename to test/test_resource_requirements.py index dc22f55..58a378a 100644 --- a/test/test_cert_manager.py +++ b/test/test_resource_requirements.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.cert_manager import CertManager +from platform_api_python_client.models.resource_requirements import ResourceRequirements -class TestCertManager(unittest.TestCase): - """CertManager unit test stubs""" +class TestResourceRequirements(unittest.TestCase): + """ResourceRequirements unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CertManager: - """Test CertManager + def make_instance(self, include_optional) -> ResourceRequirements: + """Test ResourceRequirements 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` + # uncomment below to create an instance of `ResourceRequirements` """ - model = CertManager() + model = ResourceRequirements() if include_optional: - return CertManager( - enabled = True, - values = platform_api_python_client.models.cert_manager_overrides.CertManagerOverrides() + return ResourceRequirements( + requests = { }, + limits = { } ) else: - return CertManager( + return ResourceRequirements( ) """ - def testCertManager(self): - """Test CertManager""" + def testResourceRequirements(self): + """Test ResourceRequirements""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_scheduler.py b/test/test_scheduler.py new file mode 100644 index 0000000..568aa9f --- /dev/null +++ b/test/test_scheduler.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.scheduler import Scheduler + +class TestScheduler(unittest.TestCase): + """Scheduler unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Scheduler: + """Test Scheduler + 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 `Scheduler` + """ + model = Scheduler() + if include_optional: + return Scheduler( + placement_strategy = '', + resources = { } + ) + else: + return Scheduler( + ) + """ + + def testScheduler(self): + """Test Scheduler""" + # 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 deleted file mode 100644 index 9f9b45c..0000000 --- a/test/test_spire_crds.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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 deleted file mode 100644 index c64266f..0000000 --- a/test/test_teleport_kube_agent.py +++ /dev/null @@ -1,52 +0,0 @@ -# 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() diff --git a/test/test_toggle.py b/test/test_toggle.py new file mode 100644 index 0000000..288accf --- /dev/null +++ b/test/test_toggle.py @@ -0,0 +1,51 @@ +# 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.toggle import Toggle + +class TestToggle(unittest.TestCase): + """Toggle unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Toggle: + """Test Toggle + 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 `Toggle` + """ + model = Toggle() + if include_optional: + return Toggle( + enabled = True + ) + else: + return Toggle( + ) + """ + + def testToggle(self): + """Test Toggle""" + # 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_external_dns.py b/test/test_toleration.py similarity index 59% rename from test/test_external_dns.py rename to test/test_toleration.py index 9f3f4a4..62c4e3d 100644 --- a/test/test_external_dns.py +++ b/test/test_toleration.py @@ -14,10 +14,10 @@ import unittest -from platform_api_python_client.models.external_dns import ExternalDns +from platform_api_python_client.models.toleration import Toleration -class TestExternalDns(unittest.TestCase): - """ExternalDns unit test stubs""" +class TestToleration(unittest.TestCase): + """Toleration unit test stubs""" def setUp(self): pass @@ -25,26 +25,29 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ExternalDns: - """Test ExternalDns + def make_instance(self, include_optional) -> Toleration: + """Test Toleration 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` + # uncomment below to create an instance of `Toleration` """ - model = ExternalDns() + model = Toleration() if include_optional: - return ExternalDns( - enabled = True, - values = platform_api_python_client.models.external_dns_overrides.ExternalDnsOverrides() + return Toleration( + key = '', + operator = '', + value = '', + effect = '', + toleration_seconds = 56 ) else: - return ExternalDns( + return Toleration( ) """ - def testExternalDns(self): - """Test ExternalDns""" + def testToleration(self): + """Test Toleration""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_update_cluster_request.py b/test/test_update_cluster_request.py new file mode 100644 index 0000000..95ba7e7 --- /dev/null +++ b/test/test_update_cluster_request.py @@ -0,0 +1,72 @@ +# 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.update_cluster_request import UpdateClusterRequest + +class TestUpdateClusterRequest(unittest.TestCase): + """UpdateClusterRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateClusterRequest: + """Test UpdateClusterRequest + 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 `UpdateClusterRequest` + """ + model = UpdateClusterRequest() + if include_optional: + return UpdateClusterRequest( + components = platform_api_python_client.models.cluster_base_components.ClusterBaseComponents( + kube_prometheus_stack = null, + istio = null, + cert_manager = null, + ingress_nginx = null, + keda = null, + argo_rollouts = null, + gpu_operator = null, + kai_scheduler = null, + metrics_server = null, + final_stack = { }, ) + ) + else: + return UpdateClusterRequest( + components = platform_api_python_client.models.cluster_base_components.ClusterBaseComponents( + kube_prometheus_stack = null, + istio = null, + cert_manager = null, + ingress_nginx = null, + keda = null, + argo_rollouts = null, + gpu_operator = null, + kai_scheduler = null, + metrics_server = null, + final_stack = { }, ), + ) + """ + + def testUpdateClusterRequest(self): + """Test UpdateClusterRequest""" + # 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_workload.py b/test/test_workload.py new file mode 100644 index 0000000..3193d67 --- /dev/null +++ b/test/test_workload.py @@ -0,0 +1,51 @@ +# 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.workload import Workload + +class TestWorkload(unittest.TestCase): + """Workload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Workload: + """Test Workload + 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 `Workload` + """ + model = Workload() + if include_optional: + return Workload( + resources = { } + ) + else: + return Workload( + ) + """ + + def testWorkload(self): + """Test Workload""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main()