platform-api-python-client 4.37.1__py3-none-any.whl → 4.41.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- platform_api_python_client/__init__.py +410 -177
- platform_api_python_client/api/external_api.py +41 -47
- platform_api_python_client/api_client.py +81 -36
- platform_api_python_client/configuration.py +262 -66
- platform_api_python_client/exceptions.py +24 -5
- platform_api_python_client/models/__init__.py +52 -26
- platform_api_python_client/models/admission.py +106 -0
- platform_api_python_client/models/autoscaling.py +120 -0
- platform_api_python_client/models/ccl_dynamo_pools.py +4 -3
- platform_api_python_client/models/ccl_main_pools.py +4 -3
- platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_controller.py +106 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_chart_values.py +117 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_chart_values.py +152 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_values.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_chart_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_controller.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_istio_values.py +143 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_chart_values.py +154 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_values.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_chart_values.py +131 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_values.py +110 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_values.py +121 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_chart_values.py +106 -0
- platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_values.py +110 -0
- platform_api_python_client/models/{spire_crds.py → cdi.py} +36 -12
- platform_api_python_client/models/cluster_base_components.py +187 -0
- platform_api_python_client/models/cluster_capacity_response.py +5 -5
- platform_api_python_client/models/cluster_credential.py +4 -3
- platform_api_python_client/models/cluster_registration_request.py +4 -3
- platform_api_python_client/models/cluster_registration_response.py +4 -3
- platform_api_python_client/models/{istio_cni_overrides.py → cni.py} +29 -15
- platform_api_python_client/models/config_file_mount.py +6 -5
- platform_api_python_client/models/create_compute_deployment_request.py +10 -10
- platform_api_python_client/models/create_compute_deployment_response.py +4 -3
- platform_api_python_client/models/create_dynamo_deployment_request.py +29 -23
- platform_api_python_client/models/create_dynamo_deployment_response.py +4 -3
- platform_api_python_client/models/create_filesystem_volume_request.py +8 -7
- platform_api_python_client/models/create_hardware_instance_request.py +4 -3
- platform_api_python_client/models/create_inference_deployment_response.py +4 -3
- platform_api_python_client/models/create_inference_v3_deployment_request.py +14 -12
- platform_api_python_client/models/create_job_deployment_request.py +10 -10
- platform_api_python_client/models/create_job_deployment_response.py +4 -3
- platform_api_python_client/models/create_object_volume_request.py +10 -9
- platform_api_python_client/models/create_organization_request.py +4 -3
- platform_api_python_client/models/create_organization_response.py +4 -3
- platform_api_python_client/models/create_service_account_request.py +4 -3
- platform_api_python_client/models/create_service_account_response.py +4 -3
- platform_api_python_client/models/credits_response.py +4 -3
- platform_api_python_client/models/daily_bill_response.py +4 -3
- platform_api_python_client/models/{fluent_bit.py → dashboard.py} +29 -12
- platform_api_python_client/models/{prometheus_adapter.py → default_priorities.py} +29 -12
- platform_api_python_client/models/default_queue.py +106 -0
- platform_api_python_client/models/delete_user_vault_item_request.py +4 -3
- platform_api_python_client/models/deployment_log_event_v4.py +4 -3
- platform_api_python_client/models/deployment_status_request.py +4 -3
- platform_api_python_client/models/deployment_status_response.py +4 -3
- platform_api_python_client/models/deployment_status_v3_response.py +5 -5
- platform_api_python_client/models/deployment_usage.py +5 -5
- platform_api_python_client/models/deployment_usage_value.py +4 -3
- platform_api_python_client/models/dynamo_communications_input.py +4 -3
- platform_api_python_client/models/dynamo_frontend_config.py +105 -0
- platform_api_python_client/models/dynamo_frontend_config_response.py +105 -0
- platform_api_python_client/models/dynamo_image.py +6 -5
- platform_api_python_client/models/dynamo_kv_transfer_configuration.py +4 -3
- platform_api_python_client/models/dynamo_weight_transfer_configuration.py +4 -3
- platform_api_python_client/models/dynamo_worker_pool_config.py +5 -4
- platform_api_python_client/models/dynamo_worker_pools.py +4 -3
- platform_api_python_client/models/env.py +4 -3
- platform_api_python_client/models/generate_service_account_secret_response.py +4 -3
- platform_api_python_client/models/get_cluster_response.py +4 -3
- platform_api_python_client/models/get_compute_deployment_response.py +8 -8
- platform_api_python_client/models/get_deployment_log_response.py +4 -3
- platform_api_python_client/models/get_deployment_log_v4_response.py +5 -5
- platform_api_python_client/models/get_deployment_pods_response.py +4 -3
- platform_api_python_client/models/get_deployment_response.py +7 -7
- platform_api_python_client/models/get_deployment_revision_response.py +4 -3
- platform_api_python_client/models/get_deployment_usage_response.py +5 -5
- platform_api_python_client/models/get_dynamo_deployment_response.py +23 -17
- platform_api_python_client/models/get_filesystem_volume_response.py +4 -3
- platform_api_python_client/models/get_inference_deployment_response.py +7 -7
- platform_api_python_client/models/get_inference_v3_deployment_response.py +11 -9
- platform_api_python_client/models/get_job_deployment_response.py +8 -8
- platform_api_python_client/models/get_object_volume_response.py +4 -3
- platform_api_python_client/models/gpu_type_capacity.py +4 -3
- platform_api_python_client/models/hardware_instance_response.py +4 -3
- platform_api_python_client/models/hardware_preset_response.py +4 -3
- platform_api_python_client/models/http_validation_error.py +5 -5
- platform_api_python_client/models/image.py +6 -5
- platform_api_python_client/models/image_pull_secret_credentials.py +4 -3
- platform_api_python_client/models/ingress.py +4 -3
- platform_api_python_client/models/insight_list_item_response.py +4 -3
- platform_api_python_client/models/insight_resource.py +4 -3
- platform_api_python_client/models/insight_response.py +5 -5
- platform_api_python_client/models/insight_status_change_response.py +4 -3
- platform_api_python_client/models/invite_user_request.py +4 -3
- platform_api_python_client/models/istio_base.py +106 -0
- platform_api_python_client/models/istio_cni.py +124 -0
- platform_api_python_client/models/{argo_rollouts.py → istio_gateway.py} +29 -12
- platform_api_python_client/models/{istio_cni_subchart_overrides.py → istiod.py} +31 -17
- platform_api_python_client/models/list_cluster_capacity_response.py +5 -5
- platform_api_python_client/models/list_daily_bill_response.py +5 -5
- platform_api_python_client/models/list_deployment_revisions_response.py +5 -5
- platform_api_python_client/models/list_get_cluster_response.py +5 -5
- platform_api_python_client/models/list_get_deployment_response.py +5 -5
- platform_api_python_client/models/list_hardware_instance_response.py +5 -5
- platform_api_python_client/models/list_hardware_preset_response.py +5 -5
- platform_api_python_client/models/list_insights_response.py +5 -5
- platform_api_python_client/models/list_organization_gpu_quota_response.py +5 -5
- platform_api_python_client/models/list_prebuilt_image_response.py +5 -5
- platform_api_python_client/models/list_service_accounts_response.py +5 -5
- platform_api_python_client/models/list_user_vault_items_response.py +5 -5
- platform_api_python_client/models/list_volumes_response.py +5 -5
- platform_api_python_client/models/{validation_error_loc_inner.py → location_inner.py} +6 -6
- platform_api_python_client/models/metrics.py +117 -0
- platform_api_python_client/models/metrics_config.py +6 -5
- platform_api_python_client/models/{istio_overrides.py → mig.py} +28 -18
- platform_api_python_client/models/operator.py +117 -0
- platform_api_python_client/models/organization_gpu_quota_request.py +4 -3
- platform_api_python_client/models/organization_gpu_quota_response.py +4 -3
- platform_api_python_client/models/pilot.py +106 -0
- platform_api_python_client/models/pod_details.py +4 -3
- platform_api_python_client/models/pool.py +4 -3
- platform_api_python_client/models/prebuilt_image_response.py +4 -3
- platform_api_python_client/models/prometheus.py +110 -0
- platform_api_python_client/models/prometheus_rules.py +120 -0
- platform_api_python_client/models/prometheus_spec.py +113 -0
- platform_api_python_client/models/prometheus_values.py +117 -0
- platform_api_python_client/models/quota.py +106 -0
- platform_api_python_client/models/replicas.py +106 -0
- platform_api_python_client/models/resource_list.py +113 -0
- platform_api_python_client/models/resource_requirements.py +120 -0
- platform_api_python_client/models/revision_pod_details.py +5 -5
- platform_api_python_client/models/rollout_strategy_params.py +4 -3
- platform_api_python_client/models/scheduler.py +117 -0
- platform_api_python_client/models/service_account_response.py +4 -3
- platform_api_python_client/models/{istio.py → toggle.py} +27 -19
- platform_api_python_client/models/toleration.py +134 -0
- platform_api_python_client/models/unified_get_compute_deployment_response.py +8 -8
- platform_api_python_client/models/unified_get_deployment_logs_response.py +5 -5
- platform_api_python_client/models/unified_get_deployment_pods_response.py +4 -3
- platform_api_python_client/models/unified_get_deployment_revision_response.py +4 -3
- platform_api_python_client/models/unified_get_deployment_rollout_response.py +4 -3
- platform_api_python_client/models/unified_get_deployment_usage_response.py +5 -5
- platform_api_python_client/models/unified_get_dynamo_deployment_response.py +13 -13
- platform_api_python_client/models/unified_get_inference_v3_deployment_response.py +9 -9
- platform_api_python_client/models/unified_get_job_deployment_response.py +8 -8
- platform_api_python_client/models/unified_list_deployment_revisions_response.py +5 -5
- platform_api_python_client/models/unified_update_deployment_rollout_request.py +4 -3
- platform_api_python_client/models/unified_write_compute_deployment_request.py +8 -8
- platform_api_python_client/models/unified_write_deployment_response.py +4 -3
- platform_api_python_client/models/unified_write_dynamo_deployment_request.py +11 -11
- platform_api_python_client/models/unified_write_inference_v3_deployment_request.py +9 -9
- platform_api_python_client/models/unified_write_job_deployment_request.py +8 -8
- platform_api_python_client/models/update_cluster_metadata_request.py +4 -3
- platform_api_python_client/models/{cluster_config.py → update_cluster_request.py} +11 -10
- platform_api_python_client/models/update_deployment_response.py +4 -3
- platform_api_python_client/models/update_deployment_status_v3_request.py +4 -3
- platform_api_python_client/models/update_insight_status_request.py +7 -6
- platform_api_python_client/models/update_service_account_request.py +4 -3
- platform_api_python_client/models/upsert_user_vault_item_request.py +4 -3
- platform_api_python_client/models/user_vault_item.py +4 -3
- platform_api_python_client/models/validation_error.py +8 -8
- platform_api_python_client/models/volume_mount.py +4 -3
- platform_api_python_client/models/volume_status_response.py +4 -3
- platform_api_python_client/models/{dynamo_communications_output.py → workload.py} +34 -15
- platform_api_python_client/rest.py +87 -10
- platform_api_python_client-4.41.0.dist-info/METADATA +418 -0
- platform_api_python_client-4.41.0.dist-info/RECORD +206 -0
- platform_api_python_client/models/cert_manager.py +0 -89
- platform_api_python_client/models/cluster_components.py +0 -193
- platform_api_python_client/models/external_dns.py +0 -89
- platform_api_python_client/models/final_stack.py +0 -89
- platform_api_python_client/models/gpu_operator.py +0 -89
- platform_api_python_client/models/ingress_nginx.py +0 -89
- platform_api_python_client/models/keda.py +0 -89
- platform_api_python_client/models/kube_prometheus_stack.py +0 -89
- platform_api_python_client/models/longhorn.py +0 -89
- platform_api_python_client/models/metrics_server.py +0 -89
- platform_api_python_client/models/network_operator.py +0 -89
- platform_api_python_client/models/opentelemetry_collector.py +0 -89
- platform_api_python_client/models/spire.py +0 -89
- platform_api_python_client/models/teleport_kube_agent.py +0 -89
- platform_api_python_client-4.37.1.dist-info/METADATA +0 -23
- platform_api_python_client-4.37.1.dist-info/RECORD +0 -180
- {platform_api_python_client-4.37.1.dist-info → platform_api_python_client-4.41.0.dist-info}/WHEEL +0 -0
- {platform_api_python_client-4.37.1.dist-info → platform_api_python_client-4.41.0.dist-info}/top_level.txt +0 -0
|
@@ -12,17 +12,36 @@
|
|
|
12
12
|
Do not edit the class manually.
|
|
13
13
|
""" # noqa: E501
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
# import models into model package
|
|
17
|
-
from platform_api_python_client.models.
|
|
16
|
+
from platform_api_python_client.models.admission import Admission
|
|
17
|
+
from platform_api_python_client.models.autoscaling import Autoscaling
|
|
18
18
|
from platform_api_python_client.models.backend_protocol import BackendProtocol
|
|
19
|
+
from platform_api_python_client.models.cdi import CDI
|
|
20
|
+
from platform_api_python_client.models.cni import CNI
|
|
19
21
|
from platform_api_python_client.models.ccl_dynamo_pools import CclDynamoPools
|
|
20
22
|
from platform_api_python_client.models.ccl_main_pools import CclMainPools
|
|
21
|
-
from platform_api_python_client.models.
|
|
23
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_chart_values import CclusterCatalogsClusterBaseArgoRolloutsChartValues
|
|
24
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_controller import CclusterCatalogsClusterBaseArgoRolloutsController
|
|
25
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_values import CclusterCatalogsClusterBaseArgoRolloutsValues
|
|
26
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_chart_values import CclusterCatalogsClusterBaseCertManagerChartValues
|
|
27
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_cert_manager_values import CclusterCatalogsClusterBaseCertManagerValues
|
|
28
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_gpu_operator_chart_values import CclusterCatalogsClusterBaseGpuOperatorChartValues
|
|
29
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_gpu_operator_values import CclusterCatalogsClusterBaseGpuOperatorValues
|
|
30
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_chart_values import CclusterCatalogsClusterBaseIngressNginxChartValues
|
|
31
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_controller import CclusterCatalogsClusterBaseIngressNginxController
|
|
32
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_ingress_nginx_values import CclusterCatalogsClusterBaseIngressNginxValues
|
|
33
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_istio_values import CclusterCatalogsClusterBaseIstioValues
|
|
34
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_kai_scheduler_chart_values import CclusterCatalogsClusterBaseKaiSchedulerChartValues
|
|
35
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_kai_scheduler_values import CclusterCatalogsClusterBaseKaiSchedulerValues
|
|
36
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_chart_values import CclusterCatalogsClusterBaseKedaChartValues
|
|
37
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_keda_values import CclusterCatalogsClusterBaseKedaValues
|
|
38
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values import CclusterCatalogsClusterBaseKubePrometheusStackChartValues
|
|
39
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_kube_prometheus_stack_values import CclusterCatalogsClusterBaseKubePrometheusStackValues
|
|
40
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_chart_values import CclusterCatalogsClusterBaseMetricsServerChartValues
|
|
41
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_metrics_server_values import CclusterCatalogsClusterBaseMetricsServerValues
|
|
22
42
|
from platform_api_python_client.models.cloud_provider import CloudProvider
|
|
43
|
+
from platform_api_python_client.models.cluster_base_components import ClusterBaseComponents
|
|
23
44
|
from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse
|
|
24
|
-
from platform_api_python_client.models.cluster_components import ClusterComponents
|
|
25
|
-
from platform_api_python_client.models.cluster_config import ClusterConfig
|
|
26
45
|
from platform_api_python_client.models.cluster_credential import ClusterCredential
|
|
27
46
|
from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest
|
|
28
47
|
from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse
|
|
@@ -45,6 +64,9 @@ from platform_api_python_client.models.create_service_account_response import Cr
|
|
|
45
64
|
from platform_api_python_client.models.create_volume_request import CreateVolumeRequest
|
|
46
65
|
from platform_api_python_client.models.credits_response import CreditsResponse
|
|
47
66
|
from platform_api_python_client.models.daily_bill_response import DailyBillResponse
|
|
67
|
+
from platform_api_python_client.models.dashboard import Dashboard
|
|
68
|
+
from platform_api_python_client.models.default_priorities import DefaultPriorities
|
|
69
|
+
from platform_api_python_client.models.default_queue import DefaultQueue
|
|
48
70
|
from platform_api_python_client.models.delete_user_vault_item_request import DeleteUserVaultItemRequest
|
|
49
71
|
from platform_api_python_client.models.deployment_component_type import DeploymentComponentType
|
|
50
72
|
from platform_api_python_client.models.deployment_log_event_v4 import DeploymentLogEventV4
|
|
@@ -57,7 +79,8 @@ from platform_api_python_client.models.deployment_type import DeploymentType
|
|
|
57
79
|
from platform_api_python_client.models.deployment_usage import DeploymentUsage
|
|
58
80
|
from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
|
|
59
81
|
from platform_api_python_client.models.dynamo_communications_input import DynamoCommunicationsInput
|
|
60
|
-
from platform_api_python_client.models.
|
|
82
|
+
from platform_api_python_client.models.dynamo_frontend_config import DynamoFrontendConfig
|
|
83
|
+
from platform_api_python_client.models.dynamo_frontend_config_response import DynamoFrontendConfigResponse
|
|
61
84
|
from platform_api_python_client.models.dynamo_image import DynamoImage
|
|
62
85
|
from platform_api_python_client.models.dynamo_kv_transfer_configuration import DynamoKvTransferConfiguration
|
|
63
86
|
from platform_api_python_client.models.dynamo_kv_transfer_policy import DynamoKvTransferPolicy
|
|
@@ -67,9 +90,6 @@ from platform_api_python_client.models.dynamo_weight_transfer_policy import Dyna
|
|
|
67
90
|
from platform_api_python_client.models.dynamo_worker_pool_config import DynamoWorkerPoolConfig
|
|
68
91
|
from platform_api_python_client.models.dynamo_worker_pools import DynamoWorkerPools
|
|
69
92
|
from platform_api_python_client.models.env import Env
|
|
70
|
-
from platform_api_python_client.models.external_dns import ExternalDns
|
|
71
|
-
from platform_api_python_client.models.final_stack import FinalStack
|
|
72
|
-
from platform_api_python_client.models.fluent_bit import FluentBit
|
|
73
93
|
from platform_api_python_client.models.generate_service_account_secret_response import GenerateServiceAccountSecretResponse
|
|
74
94
|
from platform_api_python_client.models.get_cluster_response import GetClusterResponse
|
|
75
95
|
from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse
|
|
@@ -86,7 +106,6 @@ from platform_api_python_client.models.get_inference_v3_deployment_response impo
|
|
|
86
106
|
from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse
|
|
87
107
|
from platform_api_python_client.models.get_object_volume_response import GetObjectVolumeResponse
|
|
88
108
|
from platform_api_python_client.models.get_volume_response import GetVolumeResponse
|
|
89
|
-
from platform_api_python_client.models.gpu_operator import GpuOperator
|
|
90
109
|
from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity
|
|
91
110
|
from platform_api_python_client.models.http_validation_error import HTTPValidationError
|
|
92
111
|
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
|
|
@@ -94,7 +113,6 @@ from platform_api_python_client.models.hardware_preset_response import HardwareP
|
|
|
94
113
|
from platform_api_python_client.models.image import Image
|
|
95
114
|
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
|
|
96
115
|
from platform_api_python_client.models.ingress import Ingress
|
|
97
|
-
from platform_api_python_client.models.ingress_nginx import IngressNginx
|
|
98
116
|
from platform_api_python_client.models.insight_list_item_response import InsightListItemResponse
|
|
99
117
|
from platform_api_python_client.models.insight_resource import InsightResource
|
|
100
118
|
from platform_api_python_client.models.insight_resource_type import InsightResourceType
|
|
@@ -103,12 +121,10 @@ from platform_api_python_client.models.insight_severity import InsightSeverity
|
|
|
103
121
|
from platform_api_python_client.models.insight_status import InsightStatus
|
|
104
122
|
from platform_api_python_client.models.insight_status_change_response import InsightStatusChangeResponse
|
|
105
123
|
from platform_api_python_client.models.invite_user_request import InviteUserRequest
|
|
106
|
-
from platform_api_python_client.models.
|
|
107
|
-
from platform_api_python_client.models.
|
|
108
|
-
from platform_api_python_client.models.
|
|
109
|
-
from platform_api_python_client.models.
|
|
110
|
-
from platform_api_python_client.models.keda import Keda
|
|
111
|
-
from platform_api_python_client.models.kube_prometheus_stack import KubePrometheusStack
|
|
124
|
+
from platform_api_python_client.models.istio_base import IstioBase
|
|
125
|
+
from platform_api_python_client.models.istio_cni import IstioCNI
|
|
126
|
+
from platform_api_python_client.models.istio_gateway import IstioGateway
|
|
127
|
+
from platform_api_python_client.models.istiod import Istiod
|
|
112
128
|
from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse
|
|
113
129
|
from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
|
|
114
130
|
from platform_api_python_client.models.list_deployment_revisions_response import ListDeploymentRevisionsResponse
|
|
@@ -122,28 +138,36 @@ from platform_api_python_client.models.list_prebuilt_image_response import ListP
|
|
|
122
138
|
from platform_api_python_client.models.list_service_accounts_response import ListServiceAccountsResponse
|
|
123
139
|
from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
|
|
124
140
|
from platform_api_python_client.models.list_volumes_response import ListVolumesResponse
|
|
125
|
-
from platform_api_python_client.models.
|
|
141
|
+
from platform_api_python_client.models.location_inner import LocationInner
|
|
142
|
+
from platform_api_python_client.models.mig import MIG
|
|
126
143
|
from platform_api_python_client.models.metric import Metric
|
|
144
|
+
from platform_api_python_client.models.metrics import Metrics
|
|
127
145
|
from platform_api_python_client.models.metrics_config import MetricsConfig
|
|
128
|
-
from platform_api_python_client.models.metrics_server import MetricsServer
|
|
129
|
-
from platform_api_python_client.models.network_operator import NetworkOperator
|
|
130
146
|
from platform_api_python_client.models.object_storage_provider import ObjectStorageProvider
|
|
131
|
-
from platform_api_python_client.models.
|
|
147
|
+
from platform_api_python_client.models.operator import Operator
|
|
132
148
|
from platform_api_python_client.models.organization_gpu_quota_request import OrganizationGpuQuotaRequest
|
|
133
149
|
from platform_api_python_client.models.organization_gpu_quota_response import OrganizationGpuQuotaResponse
|
|
150
|
+
from platform_api_python_client.models.pilot import Pilot
|
|
134
151
|
from platform_api_python_client.models.pod_details import PodDetails
|
|
135
152
|
from platform_api_python_client.models.pod_status import PodStatus
|
|
136
153
|
from platform_api_python_client.models.pool import Pool
|
|
137
154
|
from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
|
|
138
|
-
from platform_api_python_client.models.
|
|
155
|
+
from platform_api_python_client.models.prometheus import Prometheus
|
|
156
|
+
from platform_api_python_client.models.prometheus_rules import PrometheusRules
|
|
157
|
+
from platform_api_python_client.models.prometheus_spec import PrometheusSpec
|
|
158
|
+
from platform_api_python_client.models.prometheus_values import PrometheusValues
|
|
159
|
+
from platform_api_python_client.models.quota import Quota
|
|
160
|
+
from platform_api_python_client.models.replicas import Replicas
|
|
161
|
+
from platform_api_python_client.models.resource_list import ResourceList
|
|
162
|
+
from platform_api_python_client.models.resource_requirements import ResourceRequirements
|
|
139
163
|
from platform_api_python_client.models.revision_pod_details import RevisionPodDetails
|
|
140
164
|
from platform_api_python_client.models.rollout_status import RolloutStatus
|
|
141
165
|
from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams
|
|
166
|
+
from platform_api_python_client.models.scheduler import Scheduler
|
|
142
167
|
from platform_api_python_client.models.service_account_response import ServiceAccountResponse
|
|
143
168
|
from platform_api_python_client.models.service_status import ServiceStatus
|
|
144
|
-
from platform_api_python_client.models.
|
|
145
|
-
from platform_api_python_client.models.
|
|
146
|
-
from platform_api_python_client.models.teleport_kube_agent import TeleportKubeAgent
|
|
169
|
+
from platform_api_python_client.models.toggle import Toggle
|
|
170
|
+
from platform_api_python_client.models.toleration import Toleration
|
|
147
171
|
from platform_api_python_client.models.unified_get_compute_deployment_response import UnifiedGetComputeDeploymentResponse
|
|
148
172
|
from platform_api_python_client.models.unified_get_deployment_logs_response import UnifiedGetDeploymentLogsResponse
|
|
149
173
|
from platform_api_python_client.models.unified_get_deployment_pods_response import UnifiedGetDeploymentPodsResponse
|
|
@@ -163,6 +187,7 @@ from platform_api_python_client.models.unified_write_dynamo_deployment_request i
|
|
|
163
187
|
from platform_api_python_client.models.unified_write_inference_v3_deployment_request import UnifiedWriteInferenceV3DeploymentRequest
|
|
164
188
|
from platform_api_python_client.models.unified_write_job_deployment_request import UnifiedWriteJobDeploymentRequest
|
|
165
189
|
from platform_api_python_client.models.update_cluster_metadata_request import UpdateClusterMetadataRequest
|
|
190
|
+
from platform_api_python_client.models.update_cluster_request import UpdateClusterRequest
|
|
166
191
|
from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
|
|
167
192
|
from platform_api_python_client.models.update_deployment_status_v3_request import UpdateDeploymentStatusV3Request
|
|
168
193
|
from platform_api_python_client.models.update_insight_status_request import UpdateInsightStatusRequest
|
|
@@ -173,10 +198,11 @@ from platform_api_python_client.models.usage_component import UsageComponent
|
|
|
173
198
|
from platform_api_python_client.models.user_vault_item import UserVaultItem
|
|
174
199
|
from platform_api_python_client.models.user_vault_type import UserVaultType
|
|
175
200
|
from platform_api_python_client.models.validation_error import ValidationError
|
|
176
|
-
from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner
|
|
177
201
|
from platform_api_python_client.models.vault_scope import VaultScope
|
|
178
202
|
from platform_api_python_client.models.volume_access_mode import VolumeAccessMode
|
|
179
203
|
from platform_api_python_client.models.volume_backend import VolumeBackend
|
|
180
204
|
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
181
205
|
from platform_api_python_client.models.volume_status import VolumeStatus
|
|
182
206
|
from platform_api_python_client.models.volume_status_response import VolumeStatusResponse
|
|
207
|
+
from platform_api_python_client.models.workload import Workload
|
|
208
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Platform External API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
class Admission(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Admission configures KAI's admission webhook.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
gpu_pod_runtime_class_name: Optional[StrictStr] = Field(default=None, alias="gpuPodRuntimeClassName")
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["gpuPodRuntimeClassName"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of Admission from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
# set to None if gpu_pod_runtime_class_name (nullable) is None
|
|
81
|
+
# and model_fields_set contains the field
|
|
82
|
+
if self.gpu_pod_runtime_class_name is None and "gpu_pod_runtime_class_name" in self.model_fields_set:
|
|
83
|
+
_dict['gpuPodRuntimeClassName'] = None
|
|
84
|
+
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of Admission from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"gpuPodRuntimeClassName": obj.get("gpuPodRuntimeClassName")
|
|
98
|
+
})
|
|
99
|
+
# store additional fields in additional_properties
|
|
100
|
+
for _key in obj.keys():
|
|
101
|
+
if _key not in cls.__properties:
|
|
102
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
103
|
+
|
|
104
|
+
return _obj
|
|
105
|
+
|
|
106
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Platform External API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
from pydantic_core import to_jsonable_python
|
|
25
|
+
|
|
26
|
+
class Autoscaling(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Autoscaling configures the controller's HorizontalPodAutoscaler.
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
enabled: Optional[StrictBool] = None
|
|
31
|
+
min_replicas: Optional[StrictInt] = Field(default=None, alias="minReplicas")
|
|
32
|
+
max_replicas: Optional[StrictInt] = Field(default=None, alias="maxReplicas")
|
|
33
|
+
additional_properties: Dict[str, Any] = {}
|
|
34
|
+
__properties: ClassVar[List[str]] = ["enabled", "minReplicas", "maxReplicas"]
|
|
35
|
+
|
|
36
|
+
model_config = ConfigDict(
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
39
|
+
validate_assignment=True,
|
|
40
|
+
protected_namespaces=(),
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def to_str(self) -> str:
|
|
45
|
+
"""Returns the string representation of the model using alias"""
|
|
46
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
47
|
+
|
|
48
|
+
def to_json(self) -> str:
|
|
49
|
+
"""Returns the JSON representation of the model using alias"""
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
|
+
|
|
52
|
+
@classmethod
|
|
53
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
54
|
+
"""Create an instance of Autoscaling from a JSON string"""
|
|
55
|
+
return cls.from_dict(json.loads(json_str))
|
|
56
|
+
|
|
57
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
58
|
+
"""Return the dictionary representation of the model using alias.
|
|
59
|
+
|
|
60
|
+
This has the following differences from calling pydantic's
|
|
61
|
+
`self.model_dump(by_alias=True)`:
|
|
62
|
+
|
|
63
|
+
* `None` is only added to the output dict for nullable fields that
|
|
64
|
+
were set at model initialization. Other fields with value `None`
|
|
65
|
+
are ignored.
|
|
66
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
67
|
+
"""
|
|
68
|
+
excluded_fields: Set[str] = set([
|
|
69
|
+
"additional_properties",
|
|
70
|
+
])
|
|
71
|
+
|
|
72
|
+
_dict = self.model_dump(
|
|
73
|
+
by_alias=True,
|
|
74
|
+
exclude=excluded_fields,
|
|
75
|
+
exclude_none=True,
|
|
76
|
+
)
|
|
77
|
+
# puts key-value pairs in additional_properties in the top level
|
|
78
|
+
if self.additional_properties is not None:
|
|
79
|
+
for _key, _value in self.additional_properties.items():
|
|
80
|
+
_dict[_key] = _value
|
|
81
|
+
|
|
82
|
+
# set to None if enabled (nullable) is None
|
|
83
|
+
# and model_fields_set contains the field
|
|
84
|
+
if self.enabled is None and "enabled" in self.model_fields_set:
|
|
85
|
+
_dict['enabled'] = None
|
|
86
|
+
|
|
87
|
+
# set to None if min_replicas (nullable) is None
|
|
88
|
+
# and model_fields_set contains the field
|
|
89
|
+
if self.min_replicas is None and "min_replicas" in self.model_fields_set:
|
|
90
|
+
_dict['minReplicas'] = None
|
|
91
|
+
|
|
92
|
+
# set to None if max_replicas (nullable) is None
|
|
93
|
+
# and model_fields_set contains the field
|
|
94
|
+
if self.max_replicas is None and "max_replicas" in self.model_fields_set:
|
|
95
|
+
_dict['maxReplicas'] = None
|
|
96
|
+
|
|
97
|
+
return _dict
|
|
98
|
+
|
|
99
|
+
@classmethod
|
|
100
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
101
|
+
"""Create an instance of Autoscaling from a dict"""
|
|
102
|
+
if obj is None:
|
|
103
|
+
return None
|
|
104
|
+
|
|
105
|
+
if not isinstance(obj, dict):
|
|
106
|
+
return cls.model_validate(obj)
|
|
107
|
+
|
|
108
|
+
_obj = cls.model_validate({
|
|
109
|
+
"enabled": obj.get("enabled"),
|
|
110
|
+
"minReplicas": obj.get("minReplicas"),
|
|
111
|
+
"maxReplicas": obj.get("maxReplicas")
|
|
112
|
+
})
|
|
113
|
+
# store additional fields in additional_properties
|
|
114
|
+
for _key in obj.keys():
|
|
115
|
+
if _key not in cls.__properties:
|
|
116
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
117
|
+
|
|
118
|
+
return _obj
|
|
119
|
+
|
|
120
|
+
|
|
@@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
22
22
|
from platform_api_python_client.models.pool import Pool
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
25
26
|
|
|
26
27
|
class CclDynamoPools(BaseModel):
|
|
27
28
|
"""
|
|
@@ -33,7 +34,8 @@ class CclDynamoPools(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["worker", "prefill", "decode"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -45,8 +47,7 @@ class CclDynamoPools(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List
|
|
|
22
22
|
from platform_api_python_client.models.pool import Pool
|
|
23
23
|
from typing import Optional, Set
|
|
24
24
|
from typing_extensions import Self
|
|
25
|
+
from pydantic_core import to_jsonable_python
|
|
25
26
|
|
|
26
27
|
class CclMainPools(BaseModel):
|
|
27
28
|
"""
|
|
@@ -31,7 +32,8 @@ class CclMainPools(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["main"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -43,8 +45,7 @@ class CclMainPools(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Platform External API
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from platform_api_python_client.models.ccluster_catalogs_cluster_base_argo_rollouts_controller import CclusterCatalogsClusterBaseArgoRolloutsController
|
|
23
|
+
from platform_api_python_client.models.dashboard import Dashboard
|
|
24
|
+
from typing import Optional, Set
|
|
25
|
+
from typing_extensions import Self
|
|
26
|
+
from pydantic_core import to_jsonable_python
|
|
27
|
+
|
|
28
|
+
class CclusterCatalogsClusterBaseArgoRolloutsChartValues(BaseModel):
|
|
29
|
+
"""
|
|
30
|
+
ChartValues are the upstream argo-rollouts values worth setting per cluster. Anything not set here comes from catalogs/cluster_base/argo_rollouts/values.yaml.
|
|
31
|
+
""" # noqa: E501
|
|
32
|
+
controller: Optional[CclusterCatalogsClusterBaseArgoRolloutsController] = None
|
|
33
|
+
dashboard: Optional[Dashboard] = None
|
|
34
|
+
additional_properties: Dict[str, Any] = {}
|
|
35
|
+
__properties: ClassVar[List[str]] = ["controller", "dashboard"]
|
|
36
|
+
|
|
37
|
+
model_config = ConfigDict(
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
40
|
+
validate_assignment=True,
|
|
41
|
+
protected_namespaces=(),
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def to_str(self) -> str:
|
|
46
|
+
"""Returns the string representation of the model using alias"""
|
|
47
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
+
|
|
49
|
+
def to_json(self) -> str:
|
|
50
|
+
"""Returns the JSON representation of the model using alias"""
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
52
|
+
|
|
53
|
+
@classmethod
|
|
54
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
55
|
+
"""Create an instance of CclusterCatalogsClusterBaseArgoRolloutsChartValues from a JSON string"""
|
|
56
|
+
return cls.from_dict(json.loads(json_str))
|
|
57
|
+
|
|
58
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
59
|
+
"""Return the dictionary representation of the model using alias.
|
|
60
|
+
|
|
61
|
+
This has the following differences from calling pydantic's
|
|
62
|
+
`self.model_dump(by_alias=True)`:
|
|
63
|
+
|
|
64
|
+
* `None` is only added to the output dict for nullable fields that
|
|
65
|
+
were set at model initialization. Other fields with value `None`
|
|
66
|
+
are ignored.
|
|
67
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
68
|
+
"""
|
|
69
|
+
excluded_fields: Set[str] = set([
|
|
70
|
+
"additional_properties",
|
|
71
|
+
])
|
|
72
|
+
|
|
73
|
+
_dict = self.model_dump(
|
|
74
|
+
by_alias=True,
|
|
75
|
+
exclude=excluded_fields,
|
|
76
|
+
exclude_none=True,
|
|
77
|
+
)
|
|
78
|
+
# override the default output from pydantic by calling `to_dict()` of controller
|
|
79
|
+
if self.controller:
|
|
80
|
+
_dict['controller'] = self.controller.to_dict()
|
|
81
|
+
# override the default output from pydantic by calling `to_dict()` of dashboard
|
|
82
|
+
if self.dashboard:
|
|
83
|
+
_dict['dashboard'] = self.dashboard.to_dict()
|
|
84
|
+
# puts key-value pairs in additional_properties in the top level
|
|
85
|
+
if self.additional_properties is not None:
|
|
86
|
+
for _key, _value in self.additional_properties.items():
|
|
87
|
+
_dict[_key] = _value
|
|
88
|
+
|
|
89
|
+
# set to None if controller (nullable) is None
|
|
90
|
+
# and model_fields_set contains the field
|
|
91
|
+
if self.controller is None and "controller" in self.model_fields_set:
|
|
92
|
+
_dict['controller'] = None
|
|
93
|
+
|
|
94
|
+
# set to None if dashboard (nullable) is None
|
|
95
|
+
# and model_fields_set contains the field
|
|
96
|
+
if self.dashboard is None and "dashboard" in self.model_fields_set:
|
|
97
|
+
_dict['dashboard'] = None
|
|
98
|
+
|
|
99
|
+
return _dict
|
|
100
|
+
|
|
101
|
+
@classmethod
|
|
102
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
103
|
+
"""Create an instance of CclusterCatalogsClusterBaseArgoRolloutsChartValues from a dict"""
|
|
104
|
+
if obj is None:
|
|
105
|
+
return None
|
|
106
|
+
|
|
107
|
+
if not isinstance(obj, dict):
|
|
108
|
+
return cls.model_validate(obj)
|
|
109
|
+
|
|
110
|
+
_obj = cls.model_validate({
|
|
111
|
+
"controller": CclusterCatalogsClusterBaseArgoRolloutsController.from_dict(obj["controller"]) if obj.get("controller") is not None else None,
|
|
112
|
+
"dashboard": Dashboard.from_dict(obj["dashboard"]) if obj.get("dashboard") is not None else None
|
|
113
|
+
})
|
|
114
|
+
# store additional fields in additional_properties
|
|
115
|
+
for _key in obj.keys():
|
|
116
|
+
if _key not in cls.__properties:
|
|
117
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
118
|
+
|
|
119
|
+
return _obj
|
|
120
|
+
|
|
121
|
+
|