platform-api-python-client 4.31.0__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.
Files changed (200) hide show
  1. platform_api_python_client/__init__.py +410 -148
  2. platform_api_python_client/api/external_api.py +6466 -1215
  3. platform_api_python_client/api_client.py +81 -36
  4. platform_api_python_client/configuration.py +262 -66
  5. platform_api_python_client/exceptions.py +24 -5
  6. platform_api_python_client/models/__init__.py +90 -35
  7. platform_api_python_client/models/admission.py +106 -0
  8. platform_api_python_client/models/autoscaling.py +120 -0
  9. platform_api_python_client/models/ccl_dynamo_pools.py +117 -0
  10. platform_api_python_client/models/{create_c_serve_v2_deployment_response.py → ccl_main_pools.py} +16 -16
  11. platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py +121 -0
  12. platform_api_python_client/models/{c_serve_v2_recipe.py → ccluster_catalogs_cluster_base_argo_rollouts_controller.py} +15 -18
  13. platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_values.py +110 -0
  14. platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_chart_values.py +117 -0
  15. platform_api_python_client/models/ccluster_catalogs_cluster_base_cert_manager_values.py +110 -0
  16. platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_chart_values.py +152 -0
  17. platform_api_python_client/models/ccluster_catalogs_cluster_base_gpu_operator_values.py +121 -0
  18. platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_chart_values.py +110 -0
  19. platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_controller.py +121 -0
  20. platform_api_python_client/models/ccluster_catalogs_cluster_base_ingress_nginx_values.py +110 -0
  21. platform_api_python_client/models/ccluster_catalogs_cluster_base_istio_values.py +143 -0
  22. platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_chart_values.py +154 -0
  23. platform_api_python_client/models/ccluster_catalogs_cluster_base_kai_scheduler_values.py +121 -0
  24. platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_chart_values.py +131 -0
  25. platform_api_python_client/models/ccluster_catalogs_cluster_base_keda_values.py +110 -0
  26. platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_chart_values.py +121 -0
  27. platform_api_python_client/models/ccluster_catalogs_cluster_base_kube_prometheus_stack_values.py +121 -0
  28. platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_chart_values.py +106 -0
  29. platform_api_python_client/models/ccluster_catalogs_cluster_base_metrics_server_values.py +110 -0
  30. platform_api_python_client/models/cdi.py +113 -0
  31. platform_api_python_client/models/cluster_base_components.py +187 -0
  32. platform_api_python_client/models/cluster_capacity_response.py +5 -5
  33. platform_api_python_client/models/cluster_credential.py +6 -5
  34. platform_api_python_client/models/cluster_registration_request.py +4 -3
  35. platform_api_python_client/models/cluster_registration_response.py +4 -3
  36. platform_api_python_client/models/{istio_cni_overrides.py → cni.py} +29 -15
  37. platform_api_python_client/models/config_file_mount.py +6 -5
  38. platform_api_python_client/models/create_compute_deployment_request.py +35 -9
  39. platform_api_python_client/models/create_compute_deployment_response.py +4 -3
  40. platform_api_python_client/models/create_dynamo_deployment_request.py +67 -20
  41. platform_api_python_client/models/create_dynamo_deployment_response.py +4 -3
  42. platform_api_python_client/models/create_filesystem_volume_request.py +8 -20
  43. platform_api_python_client/models/create_hardware_instance_request.py +4 -3
  44. platform_api_python_client/models/create_inference_deployment_response.py +4 -3
  45. platform_api_python_client/models/create_inference_v3_deployment_request.py +52 -10
  46. platform_api_python_client/models/create_job_deployment_request.py +35 -9
  47. platform_api_python_client/models/create_job_deployment_response.py +4 -3
  48. platform_api_python_client/models/create_object_volume_request.py +10 -22
  49. platform_api_python_client/models/create_organization_request.py +4 -3
  50. platform_api_python_client/models/create_organization_response.py +4 -3
  51. platform_api_python_client/models/create_service_account_request.py +4 -3
  52. platform_api_python_client/models/create_service_account_response.py +4 -3
  53. platform_api_python_client/models/credits_response.py +4 -3
  54. platform_api_python_client/models/daily_bill_response.py +4 -3
  55. platform_api_python_client/models/{fluent_bit.py → dashboard.py} +29 -12
  56. platform_api_python_client/models/{prometheus_adapter.py → default_priorities.py} +29 -12
  57. platform_api_python_client/models/default_queue.py +106 -0
  58. platform_api_python_client/models/delete_user_vault_item_request.py +4 -3
  59. platform_api_python_client/models/deployment_log_event_v4.py +4 -3
  60. platform_api_python_client/models/deployment_response.py +12 -27
  61. platform_api_python_client/models/deployment_status_request.py +4 -3
  62. platform_api_python_client/models/deployment_status_response.py +4 -3
  63. platform_api_python_client/models/deployment_status_v3_response.py +5 -5
  64. platform_api_python_client/models/deployment_type.py +14 -0
  65. platform_api_python_client/models/deployment_usage.py +5 -5
  66. platform_api_python_client/models/deployment_usage_value.py +4 -3
  67. platform_api_python_client/models/dynamo_communications_input.py +4 -16
  68. platform_api_python_client/models/dynamo_frontend_config.py +105 -0
  69. platform_api_python_client/models/dynamo_frontend_config_response.py +105 -0
  70. platform_api_python_client/models/dynamo_image.py +106 -0
  71. platform_api_python_client/models/dynamo_kv_transfer_configuration.py +4 -16
  72. platform_api_python_client/models/{external_dns.py → dynamo_weight_transfer_configuration.py} +13 -13
  73. platform_api_python_client/models/dynamo_weight_transfer_policy.py +36 -0
  74. platform_api_python_client/models/dynamo_worker_pool_config.py +6 -18
  75. platform_api_python_client/models/dynamo_worker_pools.py +4 -16
  76. platform_api_python_client/models/{keda.py → env.py} +14 -13
  77. platform_api_python_client/models/generate_service_account_secret_response.py +4 -3
  78. platform_api_python_client/models/get_cluster_response.py +8 -5
  79. platform_api_python_client/models/get_compute_deployment_response.py +35 -8
  80. platform_api_python_client/models/get_deployment_log_response.py +4 -3
  81. platform_api_python_client/models/get_deployment_log_v4_response.py +5 -5
  82. platform_api_python_client/models/get_deployment_pods_response.py +4 -3
  83. platform_api_python_client/models/get_deployment_response.py +7 -7
  84. platform_api_python_client/models/get_deployment_revision_response.py +4 -3
  85. platform_api_python_client/models/get_deployment_usage_response.py +24 -9
  86. platform_api_python_client/models/get_dynamo_deployment_response.py +63 -15
  87. platform_api_python_client/models/get_filesystem_volume_response.py +4 -3
  88. platform_api_python_client/models/get_inference_deployment_response.py +7 -7
  89. platform_api_python_client/models/get_inference_v3_deployment_response.py +51 -8
  90. platform_api_python_client/models/get_job_deployment_response.py +35 -8
  91. platform_api_python_client/models/get_object_volume_response.py +4 -3
  92. platform_api_python_client/models/gpu_type_capacity.py +4 -3
  93. platform_api_python_client/models/hardware_instance_response.py +10 -5
  94. platform_api_python_client/models/hardware_preset_response.py +4 -3
  95. platform_api_python_client/models/http_validation_error.py +5 -5
  96. platform_api_python_client/models/image.py +113 -0
  97. platform_api_python_client/models/image_pull_secret_credentials.py +4 -3
  98. platform_api_python_client/models/{istio_cni_subchart_overrides.py → ingress.py} +26 -18
  99. platform_api_python_client/models/{c_serve_recipe_response.py → insight_list_item_response.py} +33 -27
  100. platform_api_python_client/models/{create_c_serve_v3_deployment_response.py → insight_resource.py} +20 -14
  101. platform_api_python_client/models/insight_resource_type.py +37 -0
  102. platform_api_python_client/models/insight_response.py +133 -0
  103. platform_api_python_client/models/insight_severity.py +40 -0
  104. platform_api_python_client/models/insight_status.py +39 -0
  105. platform_api_python_client/models/insight_status_change_response.py +108 -0
  106. platform_api_python_client/models/invite_user_request.py +4 -3
  107. platform_api_python_client/models/istio_base.py +106 -0
  108. platform_api_python_client/models/istio_cni.py +124 -0
  109. platform_api_python_client/models/{ingress_nginx.py → istio_gateway.py} +29 -12
  110. platform_api_python_client/models/{dynamo_communications_output.py → istiod.py} +21 -15
  111. platform_api_python_client/models/list_cluster_capacity_response.py +5 -5
  112. platform_api_python_client/models/list_daily_bill_response.py +5 -5
  113. platform_api_python_client/models/list_deployment_revisions_response.py +5 -5
  114. platform_api_python_client/models/list_get_cluster_response.py +5 -5
  115. platform_api_python_client/models/list_get_deployment_response.py +5 -5
  116. platform_api_python_client/models/list_hardware_instance_response.py +5 -5
  117. platform_api_python_client/models/list_hardware_preset_response.py +5 -5
  118. platform_api_python_client/models/{istio_overrides.py → list_insights_response.py} +19 -20
  119. platform_api_python_client/models/list_organization_gpu_quota_response.py +5 -5
  120. platform_api_python_client/models/list_prebuilt_image_response.py +5 -5
  121. platform_api_python_client/models/list_service_accounts_response.py +5 -5
  122. platform_api_python_client/models/list_user_vault_items_response.py +5 -5
  123. platform_api_python_client/models/list_volumes_response.py +5 -5
  124. platform_api_python_client/models/{validation_error_loc_inner.py → location_inner.py} +6 -6
  125. platform_api_python_client/models/metric.py +13 -0
  126. platform_api_python_client/models/metrics.py +117 -0
  127. platform_api_python_client/models/metrics_config.py +6 -5
  128. platform_api_python_client/models/mig.py +106 -0
  129. platform_api_python_client/models/operator.py +117 -0
  130. platform_api_python_client/models/organization_gpu_quota_request.py +4 -3
  131. platform_api_python_client/models/organization_gpu_quota_response.py +4 -3
  132. platform_api_python_client/models/pilot.py +106 -0
  133. platform_api_python_client/models/pod_details.py +4 -3
  134. platform_api_python_client/models/pool.py +117 -0
  135. platform_api_python_client/models/prebuilt_image_response.py +4 -3
  136. platform_api_python_client/models/prometheus.py +110 -0
  137. platform_api_python_client/models/prometheus_rules.py +120 -0
  138. platform_api_python_client/models/prometheus_spec.py +113 -0
  139. platform_api_python_client/models/prometheus_values.py +117 -0
  140. platform_api_python_client/models/quota.py +106 -0
  141. platform_api_python_client/models/replicas.py +106 -0
  142. platform_api_python_client/models/resource_list.py +113 -0
  143. platform_api_python_client/models/resource_requirements.py +120 -0
  144. platform_api_python_client/models/revision_pod_details.py +5 -5
  145. platform_api_python_client/models/rollout_strategy_params.py +4 -3
  146. platform_api_python_client/models/scheduler.py +117 -0
  147. platform_api_python_client/models/service_account_response.py +4 -3
  148. platform_api_python_client/models/{istio.py → toggle.py} +27 -19
  149. platform_api_python_client/models/toleration.py +134 -0
  150. platform_api_python_client/models/unified_get_compute_deployment_response.py +177 -0
  151. platform_api_python_client/models/{c_serve_recipe_perf.py → unified_get_deployment_logs_response.py} +19 -22
  152. platform_api_python_client/models/{longhorn.py → unified_get_deployment_pods_response.py} +13 -14
  153. platform_api_python_client/models/unified_get_deployment_response.py +164 -0
  154. platform_api_python_client/models/unified_get_deployment_revision_response.py +110 -0
  155. platform_api_python_client/models/{argo_rollouts.py → unified_get_deployment_rollout_response.py} +15 -13
  156. platform_api_python_client/models/unified_get_deployment_usage_response.py +110 -0
  157. platform_api_python_client/models/unified_get_dynamo_deployment_response.py +218 -0
  158. platform_api_python_client/models/unified_get_inference_v3_deployment_response.py +228 -0
  159. platform_api_python_client/models/unified_get_job_deployment_response.py +204 -0
  160. platform_api_python_client/models/{list_c_serve_recipe_response.py → unified_list_deployment_revisions_response.py} +12 -12
  161. platform_api_python_client/models/{spire.py → unified_update_deployment_rollout_request.py} +12 -13
  162. platform_api_python_client/models/unified_write_compute_deployment_request.py +154 -0
  163. platform_api_python_client/models/unified_write_deployment_request.py +164 -0
  164. platform_api_python_client/models/unified_write_deployment_response.py +110 -0
  165. platform_api_python_client/models/unified_write_dynamo_deployment_request.py +197 -0
  166. platform_api_python_client/models/{create_c_serve_v3_deployment_request.py → unified_write_inference_v3_deployment_request.py} +86 -78
  167. platform_api_python_client/models/unified_write_job_deployment_request.py +183 -0
  168. platform_api_python_client/models/update_cluster_metadata_request.py +4 -3
  169. platform_api_python_client/models/{cluster_config.py → update_cluster_request.py} +11 -10
  170. platform_api_python_client/models/update_deployment_response.py +4 -3
  171. platform_api_python_client/models/update_deployment_status_v3_request.py +4 -3
  172. platform_api_python_client/models/update_insight_status_request.py +107 -0
  173. platform_api_python_client/models/update_service_account_request.py +4 -3
  174. platform_api_python_client/models/upsert_user_vault_item_request.py +5 -4
  175. platform_api_python_client/models/usage_availability.py +40 -0
  176. platform_api_python_client/models/usage_component.py +39 -0
  177. platform_api_python_client/models/user_vault_item.py +4 -3
  178. platform_api_python_client/models/validation_error.py +8 -8
  179. platform_api_python_client/models/volume_mount.py +4 -3
  180. platform_api_python_client/models/volume_status_response.py +4 -3
  181. platform_api_python_client/models/workload.py +110 -0
  182. platform_api_python_client/rest.py +87 -10
  183. platform_api_python_client-4.41.0.dist-info/METADATA +418 -0
  184. platform_api_python_client-4.41.0.dist-info/RECORD +206 -0
  185. {platform_api_python_client-4.31.0.dist-info → platform_api_python_client-4.41.0.dist-info}/WHEEL +1 -1
  186. platform_api_python_client/models/cert_manager.py +0 -89
  187. platform_api_python_client/models/cluster_components.py +0 -193
  188. platform_api_python_client/models/final_stack.py +0 -89
  189. platform_api_python_client/models/get_c_serve_v2_deployment_response.py +0 -193
  190. platform_api_python_client/models/get_c_serve_v3_deployment_response.py +0 -194
  191. platform_api_python_client/models/gpu_operator.py +0 -89
  192. platform_api_python_client/models/kube_prometheus_stack.py +0 -89
  193. platform_api_python_client/models/metrics_server.py +0 -89
  194. platform_api_python_client/models/network_operator.py +0 -89
  195. platform_api_python_client/models/opentelemetry_collector.py +0 -89
  196. platform_api_python_client/models/spire_crds.py +0 -89
  197. platform_api_python_client/models/teleport_kube_agent.py +0 -89
  198. platform_api_python_client-4.31.0.dist-info/METADATA +0 -23
  199. platform_api_python_client-4.31.0.dist-info/RECORD +0 -151
  200. {platform_api_python_client-4.31.0.dist-info → platform_api_python_client-4.41.0.dist-info}/top_level.txt +0 -0
@@ -12,25 +12,40 @@
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.argo_rollouts import ArgoRollouts
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.c_serve_recipe_perf import CServeRecipePerf
20
- from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
21
- from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
22
- from platform_api_python_client.models.cert_manager import CertManager
19
+ from platform_api_python_client.models.cdi import CDI
20
+ from platform_api_python_client.models.cni import CNI
21
+ from platform_api_python_client.models.ccl_dynamo_pools import CclDynamoPools
22
+ from platform_api_python_client.models.ccl_main_pools import CclMainPools
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
23
42
  from platform_api_python_client.models.cloud_provider import CloudProvider
43
+ from platform_api_python_client.models.cluster_base_components import ClusterBaseComponents
24
44
  from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse
25
- from platform_api_python_client.models.cluster_components import ClusterComponents
26
- from platform_api_python_client.models.cluster_config import ClusterConfig
27
45
  from platform_api_python_client.models.cluster_credential import ClusterCredential
28
46
  from platform_api_python_client.models.cluster_registration_request import ClusterRegistrationRequest
29
47
  from platform_api_python_client.models.cluster_registration_response import ClusterRegistrationResponse
30
48
  from platform_api_python_client.models.config_file_mount import ConfigFileMount
31
- from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse
32
- from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest
33
- from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse
34
49
  from platform_api_python_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest
35
50
  from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse
36
51
  from platform_api_python_client.models.create_dynamo_deployment_request import CreateDynamoDeploymentRequest
@@ -49,6 +64,9 @@ from platform_api_python_client.models.create_service_account_response import Cr
49
64
  from platform_api_python_client.models.create_volume_request import CreateVolumeRequest
50
65
  from platform_api_python_client.models.credits_response import CreditsResponse
51
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
52
70
  from platform_api_python_client.models.delete_user_vault_item_request import DeleteUserVaultItemRequest
53
71
  from platform_api_python_client.models.deployment_component_type import DeploymentComponentType
54
72
  from platform_api_python_client.models.deployment_log_event_v4 import DeploymentLogEventV4
@@ -61,18 +79,18 @@ from platform_api_python_client.models.deployment_type import DeploymentType
61
79
  from platform_api_python_client.models.deployment_usage import DeploymentUsage
62
80
  from platform_api_python_client.models.deployment_usage_value import DeploymentUsageValue
63
81
  from platform_api_python_client.models.dynamo_communications_input import DynamoCommunicationsInput
64
- from platform_api_python_client.models.dynamo_communications_output import DynamoCommunicationsOutput
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
84
+ from platform_api_python_client.models.dynamo_image import DynamoImage
65
85
  from platform_api_python_client.models.dynamo_kv_transfer_configuration import DynamoKvTransferConfiguration
66
86
  from platform_api_python_client.models.dynamo_kv_transfer_policy import DynamoKvTransferPolicy
67
87
  from platform_api_python_client.models.dynamo_serving_mode import DynamoServingMode
88
+ from platform_api_python_client.models.dynamo_weight_transfer_configuration import DynamoWeightTransferConfiguration
89
+ from platform_api_python_client.models.dynamo_weight_transfer_policy import DynamoWeightTransferPolicy
68
90
  from platform_api_python_client.models.dynamo_worker_pool_config import DynamoWorkerPoolConfig
69
91
  from platform_api_python_client.models.dynamo_worker_pools import DynamoWorkerPools
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
92
+ from platform_api_python_client.models.env import Env
73
93
  from platform_api_python_client.models.generate_service_account_secret_response import GenerateServiceAccountSecretResponse
74
- from platform_api_python_client.models.get_c_serve_v2_deployment_response import GetCServeV2DeploymentResponse
75
- from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse
76
94
  from platform_api_python_client.models.get_cluster_response import GetClusterResponse
77
95
  from platform_api_python_client.models.get_compute_deployment_response import GetComputeDeploymentResponse
78
96
  from platform_api_python_client.models.get_deployment_log_response import GetDeploymentLogResponse
@@ -88,21 +106,25 @@ from platform_api_python_client.models.get_inference_v3_deployment_response impo
88
106
  from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse
89
107
  from platform_api_python_client.models.get_object_volume_response import GetObjectVolumeResponse
90
108
  from platform_api_python_client.models.get_volume_response import GetVolumeResponse
91
- from platform_api_python_client.models.gpu_operator import GpuOperator
92
109
  from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity
93
110
  from platform_api_python_client.models.http_validation_error import HTTPValidationError
94
111
  from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
95
112
  from platform_api_python_client.models.hardware_preset_response import HardwarePresetResponse
113
+ from platform_api_python_client.models.image import Image
96
114
  from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
97
- from platform_api_python_client.models.ingress_nginx import IngressNginx
115
+ from platform_api_python_client.models.ingress import Ingress
116
+ from platform_api_python_client.models.insight_list_item_response import InsightListItemResponse
117
+ from platform_api_python_client.models.insight_resource import InsightResource
118
+ from platform_api_python_client.models.insight_resource_type import InsightResourceType
119
+ from platform_api_python_client.models.insight_response import InsightResponse
120
+ from platform_api_python_client.models.insight_severity import InsightSeverity
121
+ from platform_api_python_client.models.insight_status import InsightStatus
122
+ from platform_api_python_client.models.insight_status_change_response import InsightStatusChangeResponse
98
123
  from platform_api_python_client.models.invite_user_request import InviteUserRequest
99
- from platform_api_python_client.models.istio import Istio
100
- from platform_api_python_client.models.istio_cni_overrides import IstioCniOverrides
101
- from platform_api_python_client.models.istio_cni_subchart_overrides import IstioCniSubchartOverrides
102
- from platform_api_python_client.models.istio_overrides import IstioOverrides
103
- from platform_api_python_client.models.keda import Keda
104
- from platform_api_python_client.models.kube_prometheus_stack import KubePrometheusStack
105
- from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
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
106
128
  from platform_api_python_client.models.list_cluster_capacity_response import ListClusterCapacityResponse
107
129
  from platform_api_python_client.models.list_daily_bill_response import ListDailyBillResponse
108
130
  from platform_api_python_client.models.list_deployment_revisions_response import ListDeploymentRevisionsResponse
@@ -110,44 +132,77 @@ from platform_api_python_client.models.list_get_cluster_response import ListGetC
110
132
  from platform_api_python_client.models.list_get_deployment_response import ListGetDeploymentResponse
111
133
  from platform_api_python_client.models.list_hardware_instance_response import ListHardwareInstanceResponse
112
134
  from platform_api_python_client.models.list_hardware_preset_response import ListHardwarePresetResponse
135
+ from platform_api_python_client.models.list_insights_response import ListInsightsResponse
113
136
  from platform_api_python_client.models.list_organization_gpu_quota_response import ListOrganizationGpuQuotaResponse
114
137
  from platform_api_python_client.models.list_prebuilt_image_response import ListPrebuiltImageResponse
115
138
  from platform_api_python_client.models.list_service_accounts_response import ListServiceAccountsResponse
116
139
  from platform_api_python_client.models.list_user_vault_items_response import ListUserVaultItemsResponse
117
140
  from platform_api_python_client.models.list_volumes_response import ListVolumesResponse
118
- from platform_api_python_client.models.longhorn import Longhorn
141
+ from platform_api_python_client.models.location_inner import LocationInner
142
+ from platform_api_python_client.models.mig import MIG
119
143
  from platform_api_python_client.models.metric import Metric
144
+ from platform_api_python_client.models.metrics import Metrics
120
145
  from platform_api_python_client.models.metrics_config import MetricsConfig
121
- from platform_api_python_client.models.metrics_server import MetricsServer
122
- from platform_api_python_client.models.network_operator import NetworkOperator
123
146
  from platform_api_python_client.models.object_storage_provider import ObjectStorageProvider
124
- from platform_api_python_client.models.opentelemetry_collector import OpentelemetryCollector
147
+ from platform_api_python_client.models.operator import Operator
125
148
  from platform_api_python_client.models.organization_gpu_quota_request import OrganizationGpuQuotaRequest
126
149
  from platform_api_python_client.models.organization_gpu_quota_response import OrganizationGpuQuotaResponse
150
+ from platform_api_python_client.models.pilot import Pilot
127
151
  from platform_api_python_client.models.pod_details import PodDetails
128
152
  from platform_api_python_client.models.pod_status import PodStatus
153
+ from platform_api_python_client.models.pool import Pool
129
154
  from platform_api_python_client.models.prebuilt_image_response import PrebuiltImageResponse
130
- from platform_api_python_client.models.prometheus_adapter import PrometheusAdapter
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
131
163
  from platform_api_python_client.models.revision_pod_details import RevisionPodDetails
132
164
  from platform_api_python_client.models.rollout_status import RolloutStatus
133
165
  from platform_api_python_client.models.rollout_strategy_params import RolloutStrategyParams
166
+ from platform_api_python_client.models.scheduler import Scheduler
134
167
  from platform_api_python_client.models.service_account_response import ServiceAccountResponse
135
168
  from platform_api_python_client.models.service_status import ServiceStatus
136
- from platform_api_python_client.models.spire import Spire
137
- from platform_api_python_client.models.spire_crds import SpireCrds
138
- 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
171
+ from platform_api_python_client.models.unified_get_compute_deployment_response import UnifiedGetComputeDeploymentResponse
172
+ from platform_api_python_client.models.unified_get_deployment_logs_response import UnifiedGetDeploymentLogsResponse
173
+ from platform_api_python_client.models.unified_get_deployment_pods_response import UnifiedGetDeploymentPodsResponse
174
+ from platform_api_python_client.models.unified_get_deployment_response import UnifiedGetDeploymentResponse
175
+ from platform_api_python_client.models.unified_get_deployment_revision_response import UnifiedGetDeploymentRevisionResponse
176
+ from platform_api_python_client.models.unified_get_deployment_rollout_response import UnifiedGetDeploymentRolloutResponse
177
+ from platform_api_python_client.models.unified_get_deployment_usage_response import UnifiedGetDeploymentUsageResponse
178
+ from platform_api_python_client.models.unified_get_dynamo_deployment_response import UnifiedGetDynamoDeploymentResponse
179
+ from platform_api_python_client.models.unified_get_inference_v3_deployment_response import UnifiedGetInferenceV3DeploymentResponse
180
+ from platform_api_python_client.models.unified_get_job_deployment_response import UnifiedGetJobDeploymentResponse
181
+ from platform_api_python_client.models.unified_list_deployment_revisions_response import UnifiedListDeploymentRevisionsResponse
182
+ from platform_api_python_client.models.unified_update_deployment_rollout_request import UnifiedUpdateDeploymentRolloutRequest
183
+ from platform_api_python_client.models.unified_write_compute_deployment_request import UnifiedWriteComputeDeploymentRequest
184
+ from platform_api_python_client.models.unified_write_deployment_request import UnifiedWriteDeploymentRequest
185
+ from platform_api_python_client.models.unified_write_deployment_response import UnifiedWriteDeploymentResponse
186
+ from platform_api_python_client.models.unified_write_dynamo_deployment_request import UnifiedWriteDynamoDeploymentRequest
187
+ from platform_api_python_client.models.unified_write_inference_v3_deployment_request import UnifiedWriteInferenceV3DeploymentRequest
188
+ from platform_api_python_client.models.unified_write_job_deployment_request import UnifiedWriteJobDeploymentRequest
139
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
140
191
  from platform_api_python_client.models.update_deployment_response import UpdateDeploymentResponse
141
192
  from platform_api_python_client.models.update_deployment_status_v3_request import UpdateDeploymentStatusV3Request
193
+ from platform_api_python_client.models.update_insight_status_request import UpdateInsightStatusRequest
142
194
  from platform_api_python_client.models.update_service_account_request import UpdateServiceAccountRequest
143
195
  from platform_api_python_client.models.upsert_user_vault_item_request import UpsertUserVaultItemRequest
196
+ from platform_api_python_client.models.usage_availability import UsageAvailability
197
+ from platform_api_python_client.models.usage_component import UsageComponent
144
198
  from platform_api_python_client.models.user_vault_item import UserVaultItem
145
199
  from platform_api_python_client.models.user_vault_type import UserVaultType
146
200
  from platform_api_python_client.models.validation_error import ValidationError
147
- from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner
148
201
  from platform_api_python_client.models.vault_scope import VaultScope
149
202
  from platform_api_python_client.models.volume_access_mode import VolumeAccessMode
150
203
  from platform_api_python_client.models.volume_backend import VolumeBackend
151
204
  from platform_api_python_client.models.volume_mount import VolumeMount
152
205
  from platform_api_python_client.models.volume_status import VolumeStatus
153
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
+
@@ -0,0 +1,117 @@
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.pool import Pool
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+ from pydantic_core import to_jsonable_python
26
+
27
+ class CclDynamoPools(BaseModel):
28
+ """
29
+ Hardware and scaling per worker role. Aggregated mode uses exactly `worker`; disaggregated mode uses exactly `prefill` and `decode`. Unused roles are null.
30
+ """ # noqa: E501
31
+ worker: Optional[Pool] = None
32
+ prefill: Optional[Pool] = None
33
+ decode: Optional[Pool] = None
34
+ __properties: ClassVar[List[str]] = ["worker", "prefill", "decode"]
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 CclDynamoPools 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
+ """
67
+ excluded_fields: Set[str] = set([
68
+ ])
69
+
70
+ _dict = self.model_dump(
71
+ by_alias=True,
72
+ exclude=excluded_fields,
73
+ exclude_none=True,
74
+ )
75
+ # override the default output from pydantic by calling `to_dict()` of worker
76
+ if self.worker:
77
+ _dict['worker'] = self.worker.to_dict()
78
+ # override the default output from pydantic by calling `to_dict()` of prefill
79
+ if self.prefill:
80
+ _dict['prefill'] = self.prefill.to_dict()
81
+ # override the default output from pydantic by calling `to_dict()` of decode
82
+ if self.decode:
83
+ _dict['decode'] = self.decode.to_dict()
84
+ # set to None if worker (nullable) is None
85
+ # and model_fields_set contains the field
86
+ if self.worker is None and "worker" in self.model_fields_set:
87
+ _dict['worker'] = None
88
+
89
+ # set to None if prefill (nullable) is None
90
+ # and model_fields_set contains the field
91
+ if self.prefill is None and "prefill" in self.model_fields_set:
92
+ _dict['prefill'] = None
93
+
94
+ # set to None if decode (nullable) is None
95
+ # and model_fields_set contains the field
96
+ if self.decode is None and "decode" in self.model_fields_set:
97
+ _dict['decode'] = 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 CclDynamoPools 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
+ "worker": Pool.from_dict(obj["worker"]) if obj.get("worker") is not None else None,
112
+ "prefill": Pool.from_dict(obj["prefill"]) if obj.get("prefill") is not None else None,
113
+ "decode": Pool.from_dict(obj["decode"]) if obj.get("decode") is not None else None
114
+ })
115
+ return _obj
116
+
117
+
@@ -17,23 +17,23 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from datetime import datetime
21
- from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict
22
21
  from typing import Any, ClassVar, Dict, List
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
- class CreateCServeV2DeploymentResponse(BaseModel):
27
+ class CclMainPools(BaseModel):
27
28
  """
28
- CreateCServeV2DeploymentResponse
29
+ CclMainPools
29
30
  """ # noqa: E501
30
- id: StrictInt
31
- created_at: datetime
32
- endpoint_url: StrictStr
33
- __properties: ClassVar[List[str]] = ["id", "created_at", "endpoint_url"]
31
+ main: Pool
32
+ __properties: ClassVar[List[str]] = ["main"]
34
33
 
35
34
  model_config = ConfigDict(
36
- populate_by_name=True,
35
+ validate_by_name=True,
36
+ validate_by_alias=True,
37
37
  validate_assignment=True,
38
38
  protected_namespaces=(),
39
39
  )
@@ -45,12 +45,11 @@ class CreateCServeV2DeploymentResponse(BaseModel):
45
45
 
46
46
  def to_json(self) -> str:
47
47
  """Returns the JSON representation of the model using alias"""
48
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
- return json.dumps(self.to_dict())
48
+ return json.dumps(to_jsonable_python(self.to_dict()))
50
49
 
51
50
  @classmethod
52
51
  def from_json(cls, json_str: str) -> Optional[Self]:
53
- """Create an instance of CreateCServeV2DeploymentResponse from a JSON string"""
52
+ """Create an instance of CclMainPools from a JSON string"""
54
53
  return cls.from_dict(json.loads(json_str))
55
54
 
56
55
  def to_dict(self) -> Dict[str, Any]:
@@ -71,11 +70,14 @@ class CreateCServeV2DeploymentResponse(BaseModel):
71
70
  exclude=excluded_fields,
72
71
  exclude_none=True,
73
72
  )
73
+ # override the default output from pydantic by calling `to_dict()` of main
74
+ if self.main:
75
+ _dict['main'] = self.main.to_dict()
74
76
  return _dict
75
77
 
76
78
  @classmethod
77
79
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
- """Create an instance of CreateCServeV2DeploymentResponse from a dict"""
80
+ """Create an instance of CclMainPools from a dict"""
79
81
  if obj is None:
80
82
  return None
81
83
 
@@ -83,9 +85,7 @@ class CreateCServeV2DeploymentResponse(BaseModel):
83
85
  return cls.model_validate(obj)
84
86
 
85
87
  _obj = cls.model_validate({
86
- "id": obj.get("id"),
87
- "created_at": obj.get("created_at"),
88
- "endpoint_url": obj.get("endpoint_url")
88
+ "main": Pool.from_dict(obj["main"]) if obj.get("main") is not None else None
89
89
  })
90
90
  return _obj
91
91