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.
Files changed (191) hide show
  1. platform_api_python_client/__init__.py +410 -177
  2. platform_api_python_client/api/external_api.py +41 -47
  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 +52 -26
  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 +4 -3
  10. platform_api_python_client/models/ccl_main_pools.py +4 -3
  11. platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_chart_values.py +121 -0
  12. platform_api_python_client/models/ccluster_catalogs_cluster_base_argo_rollouts_controller.py +106 -0
  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/{spire_crds.py → cdi.py} +36 -12
  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 +4 -3
  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 +10 -10
  39. platform_api_python_client/models/create_compute_deployment_response.py +4 -3
  40. platform_api_python_client/models/create_dynamo_deployment_request.py +29 -23
  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 -7
  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 +14 -12
  46. platform_api_python_client/models/create_job_deployment_request.py +10 -10
  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 -9
  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_status_request.py +4 -3
  61. platform_api_python_client/models/deployment_status_response.py +4 -3
  62. platform_api_python_client/models/deployment_status_v3_response.py +5 -5
  63. platform_api_python_client/models/deployment_usage.py +5 -5
  64. platform_api_python_client/models/deployment_usage_value.py +4 -3
  65. platform_api_python_client/models/dynamo_communications_input.py +4 -3
  66. platform_api_python_client/models/dynamo_frontend_config.py +105 -0
  67. platform_api_python_client/models/dynamo_frontend_config_response.py +105 -0
  68. platform_api_python_client/models/dynamo_image.py +6 -5
  69. platform_api_python_client/models/dynamo_kv_transfer_configuration.py +4 -3
  70. platform_api_python_client/models/dynamo_weight_transfer_configuration.py +4 -3
  71. platform_api_python_client/models/dynamo_worker_pool_config.py +5 -4
  72. platform_api_python_client/models/dynamo_worker_pools.py +4 -3
  73. platform_api_python_client/models/env.py +4 -3
  74. platform_api_python_client/models/generate_service_account_secret_response.py +4 -3
  75. platform_api_python_client/models/get_cluster_response.py +4 -3
  76. platform_api_python_client/models/get_compute_deployment_response.py +8 -8
  77. platform_api_python_client/models/get_deployment_log_response.py +4 -3
  78. platform_api_python_client/models/get_deployment_log_v4_response.py +5 -5
  79. platform_api_python_client/models/get_deployment_pods_response.py +4 -3
  80. platform_api_python_client/models/get_deployment_response.py +7 -7
  81. platform_api_python_client/models/get_deployment_revision_response.py +4 -3
  82. platform_api_python_client/models/get_deployment_usage_response.py +5 -5
  83. platform_api_python_client/models/get_dynamo_deployment_response.py +23 -17
  84. platform_api_python_client/models/get_filesystem_volume_response.py +4 -3
  85. platform_api_python_client/models/get_inference_deployment_response.py +7 -7
  86. platform_api_python_client/models/get_inference_v3_deployment_response.py +11 -9
  87. platform_api_python_client/models/get_job_deployment_response.py +8 -8
  88. platform_api_python_client/models/get_object_volume_response.py +4 -3
  89. platform_api_python_client/models/gpu_type_capacity.py +4 -3
  90. platform_api_python_client/models/hardware_instance_response.py +4 -3
  91. platform_api_python_client/models/hardware_preset_response.py +4 -3
  92. platform_api_python_client/models/http_validation_error.py +5 -5
  93. platform_api_python_client/models/image.py +6 -5
  94. platform_api_python_client/models/image_pull_secret_credentials.py +4 -3
  95. platform_api_python_client/models/ingress.py +4 -3
  96. platform_api_python_client/models/insight_list_item_response.py +4 -3
  97. platform_api_python_client/models/insight_resource.py +4 -3
  98. platform_api_python_client/models/insight_response.py +5 -5
  99. platform_api_python_client/models/insight_status_change_response.py +4 -3
  100. platform_api_python_client/models/invite_user_request.py +4 -3
  101. platform_api_python_client/models/istio_base.py +106 -0
  102. platform_api_python_client/models/istio_cni.py +124 -0
  103. platform_api_python_client/models/{argo_rollouts.py → istio_gateway.py} +29 -12
  104. platform_api_python_client/models/{istio_cni_subchart_overrides.py → istiod.py} +31 -17
  105. platform_api_python_client/models/list_cluster_capacity_response.py +5 -5
  106. platform_api_python_client/models/list_daily_bill_response.py +5 -5
  107. platform_api_python_client/models/list_deployment_revisions_response.py +5 -5
  108. platform_api_python_client/models/list_get_cluster_response.py +5 -5
  109. platform_api_python_client/models/list_get_deployment_response.py +5 -5
  110. platform_api_python_client/models/list_hardware_instance_response.py +5 -5
  111. platform_api_python_client/models/list_hardware_preset_response.py +5 -5
  112. platform_api_python_client/models/list_insights_response.py +5 -5
  113. platform_api_python_client/models/list_organization_gpu_quota_response.py +5 -5
  114. platform_api_python_client/models/list_prebuilt_image_response.py +5 -5
  115. platform_api_python_client/models/list_service_accounts_response.py +5 -5
  116. platform_api_python_client/models/list_user_vault_items_response.py +5 -5
  117. platform_api_python_client/models/list_volumes_response.py +5 -5
  118. platform_api_python_client/models/{validation_error_loc_inner.py → location_inner.py} +6 -6
  119. platform_api_python_client/models/metrics.py +117 -0
  120. platform_api_python_client/models/metrics_config.py +6 -5
  121. platform_api_python_client/models/{istio_overrides.py → mig.py} +28 -18
  122. platform_api_python_client/models/operator.py +117 -0
  123. platform_api_python_client/models/organization_gpu_quota_request.py +4 -3
  124. platform_api_python_client/models/organization_gpu_quota_response.py +4 -3
  125. platform_api_python_client/models/pilot.py +106 -0
  126. platform_api_python_client/models/pod_details.py +4 -3
  127. platform_api_python_client/models/pool.py +4 -3
  128. platform_api_python_client/models/prebuilt_image_response.py +4 -3
  129. platform_api_python_client/models/prometheus.py +110 -0
  130. platform_api_python_client/models/prometheus_rules.py +120 -0
  131. platform_api_python_client/models/prometheus_spec.py +113 -0
  132. platform_api_python_client/models/prometheus_values.py +117 -0
  133. platform_api_python_client/models/quota.py +106 -0
  134. platform_api_python_client/models/replicas.py +106 -0
  135. platform_api_python_client/models/resource_list.py +113 -0
  136. platform_api_python_client/models/resource_requirements.py +120 -0
  137. platform_api_python_client/models/revision_pod_details.py +5 -5
  138. platform_api_python_client/models/rollout_strategy_params.py +4 -3
  139. platform_api_python_client/models/scheduler.py +117 -0
  140. platform_api_python_client/models/service_account_response.py +4 -3
  141. platform_api_python_client/models/{istio.py → toggle.py} +27 -19
  142. platform_api_python_client/models/toleration.py +134 -0
  143. platform_api_python_client/models/unified_get_compute_deployment_response.py +8 -8
  144. platform_api_python_client/models/unified_get_deployment_logs_response.py +5 -5
  145. platform_api_python_client/models/unified_get_deployment_pods_response.py +4 -3
  146. platform_api_python_client/models/unified_get_deployment_revision_response.py +4 -3
  147. platform_api_python_client/models/unified_get_deployment_rollout_response.py +4 -3
  148. platform_api_python_client/models/unified_get_deployment_usage_response.py +5 -5
  149. platform_api_python_client/models/unified_get_dynamo_deployment_response.py +13 -13
  150. platform_api_python_client/models/unified_get_inference_v3_deployment_response.py +9 -9
  151. platform_api_python_client/models/unified_get_job_deployment_response.py +8 -8
  152. platform_api_python_client/models/unified_list_deployment_revisions_response.py +5 -5
  153. platform_api_python_client/models/unified_update_deployment_rollout_request.py +4 -3
  154. platform_api_python_client/models/unified_write_compute_deployment_request.py +8 -8
  155. platform_api_python_client/models/unified_write_deployment_response.py +4 -3
  156. platform_api_python_client/models/unified_write_dynamo_deployment_request.py +11 -11
  157. platform_api_python_client/models/unified_write_inference_v3_deployment_request.py +9 -9
  158. platform_api_python_client/models/unified_write_job_deployment_request.py +8 -8
  159. platform_api_python_client/models/update_cluster_metadata_request.py +4 -3
  160. platform_api_python_client/models/{cluster_config.py → update_cluster_request.py} +11 -10
  161. platform_api_python_client/models/update_deployment_response.py +4 -3
  162. platform_api_python_client/models/update_deployment_status_v3_request.py +4 -3
  163. platform_api_python_client/models/update_insight_status_request.py +7 -6
  164. platform_api_python_client/models/update_service_account_request.py +4 -3
  165. platform_api_python_client/models/upsert_user_vault_item_request.py +4 -3
  166. platform_api_python_client/models/user_vault_item.py +4 -3
  167. platform_api_python_client/models/validation_error.py +8 -8
  168. platform_api_python_client/models/volume_mount.py +4 -3
  169. platform_api_python_client/models/volume_status_response.py +4 -3
  170. platform_api_python_client/models/{dynamo_communications_output.py → workload.py} +34 -15
  171. platform_api_python_client/rest.py +87 -10
  172. platform_api_python_client-4.41.0.dist-info/METADATA +418 -0
  173. platform_api_python_client-4.41.0.dist-info/RECORD +206 -0
  174. platform_api_python_client/models/cert_manager.py +0 -89
  175. platform_api_python_client/models/cluster_components.py +0 -193
  176. platform_api_python_client/models/external_dns.py +0 -89
  177. platform_api_python_client/models/final_stack.py +0 -89
  178. platform_api_python_client/models/gpu_operator.py +0 -89
  179. platform_api_python_client/models/ingress_nginx.py +0 -89
  180. platform_api_python_client/models/keda.py +0 -89
  181. platform_api_python_client/models/kube_prometheus_stack.py +0 -89
  182. platform_api_python_client/models/longhorn.py +0 -89
  183. platform_api_python_client/models/metrics_server.py +0 -89
  184. platform_api_python_client/models/network_operator.py +0 -89
  185. platform_api_python_client/models/opentelemetry_collector.py +0 -89
  186. platform_api_python_client/models/spire.py +0 -89
  187. platform_api_python_client/models/teleport_kube_agent.py +0 -89
  188. platform_api_python_client-4.37.1.dist-info/METADATA +0 -23
  189. platform_api_python_client-4.37.1.dist-info/RECORD +0 -180
  190. {platform_api_python_client-4.37.1.dist-info → platform_api_python_client-4.41.0.dist-info}/WHEEL +0 -0
  191. {platform_api_python_client-4.37.1.dist-info → platform_api_python_client-4.41.0.dist-info}/top_level.txt +0 -0
@@ -19,20 +19,21 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, StrictBool
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
- from platform_api_python_client.models.istio_overrides import IstioOverrides
23
22
  from typing import Optional, Set
24
23
  from typing_extensions import Self
24
+ from pydantic_core import to_jsonable_python
25
25
 
26
- class Istio(BaseModel):
26
+ class Toggle(BaseModel):
27
27
  """
28
- Istio
28
+ Toggle is a subchart's enable flag.
29
29
  """ # noqa: E501
30
- enabled: Optional[StrictBool] = True
31
- values: Optional[IstioOverrides] = None
32
- __properties: ClassVar[List[str]] = ["enabled", "values"]
30
+ enabled: Optional[StrictBool] = None
31
+ additional_properties: Dict[str, Any] = {}
32
+ __properties: ClassVar[List[str]] = ["enabled"]
33
33
 
34
34
  model_config = ConfigDict(
35
- populate_by_name=True,
35
+ validate_by_name=True,
36
+ validate_by_alias=True,
36
37
  validate_assignment=True,
37
38
  protected_namespaces=(),
38
39
  )
@@ -44,12 +45,11 @@ class Istio(BaseModel):
44
45
 
45
46
  def to_json(self) -> str:
46
47
  """Returns the JSON representation of the model using alias"""
47
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
- return json.dumps(self.to_dict())
48
+ return json.dumps(to_jsonable_python(self.to_dict()))
49
49
 
50
50
  @classmethod
51
51
  def from_json(cls, json_str: str) -> Optional[Self]:
52
- """Create an instance of Istio from a JSON string"""
52
+ """Create an instance of Toggle from a JSON string"""
53
53
  return cls.from_dict(json.loads(json_str))
54
54
 
55
55
  def to_dict(self) -> Dict[str, Any]:
@@ -61,8 +61,10 @@ class Istio(BaseModel):
61
61
  * `None` is only added to the output dict for nullable fields that
62
62
  were set at model initialization. Other fields with value `None`
63
63
  are ignored.
64
+ * Fields in `self.additional_properties` are added to the output dict.
64
65
  """
65
66
  excluded_fields: Set[str] = set([
67
+ "additional_properties",
66
68
  ])
67
69
 
68
70
  _dict = self.model_dump(
@@ -70,19 +72,21 @@ class Istio(BaseModel):
70
72
  exclude=excluded_fields,
71
73
  exclude_none=True,
72
74
  )
73
- # override the default output from pydantic by calling `to_dict()` of values
74
- if self.values:
75
- _dict['values'] = self.values.to_dict()
76
- # set to None if values (nullable) is None
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 enabled (nullable) is None
77
81
  # and model_fields_set contains the field
78
- if self.values is None and "values" in self.model_fields_set:
79
- _dict['values'] = None
82
+ if self.enabled is None and "enabled" in self.model_fields_set:
83
+ _dict['enabled'] = None
80
84
 
81
85
  return _dict
82
86
 
83
87
  @classmethod
84
88
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
85
- """Create an instance of Istio from a dict"""
89
+ """Create an instance of Toggle from a dict"""
86
90
  if obj is None:
87
91
  return None
88
92
 
@@ -90,9 +94,13 @@ class Istio(BaseModel):
90
94
  return cls.model_validate(obj)
91
95
 
92
96
  _obj = cls.model_validate({
93
- "enabled": obj.get("enabled") if obj.get("enabled") is not None else True,
94
- "values": IstioOverrides.from_dict(obj["values"]) if obj.get("values") is not None else None
97
+ "enabled": obj.get("enabled")
95
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
+
96
104
  return _obj
97
105
 
98
106
 
@@ -0,0 +1,134 @@
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, StrictInt, 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 Toleration(BaseModel):
27
+ """
28
+ Toleration
29
+ """ # noqa: E501
30
+ key: Optional[StrictStr] = None
31
+ operator: Optional[StrictStr] = None
32
+ value: Optional[StrictStr] = None
33
+ effect: Optional[StrictStr] = None
34
+ toleration_seconds: Optional[StrictInt] = Field(default=None, alias="tolerationSeconds")
35
+ additional_properties: Dict[str, Any] = {}
36
+ __properties: ClassVar[List[str]] = ["key", "operator", "value", "effect", "tolerationSeconds"]
37
+
38
+ model_config = ConfigDict(
39
+ validate_by_name=True,
40
+ validate_by_alias=True,
41
+ validate_assignment=True,
42
+ protected_namespaces=(),
43
+ )
44
+
45
+
46
+ def to_str(self) -> str:
47
+ """Returns the string representation of the model using alias"""
48
+ return pprint.pformat(self.model_dump(by_alias=True))
49
+
50
+ def to_json(self) -> str:
51
+ """Returns the JSON representation of the model using alias"""
52
+ return json.dumps(to_jsonable_python(self.to_dict()))
53
+
54
+ @classmethod
55
+ def from_json(cls, json_str: str) -> Optional[Self]:
56
+ """Create an instance of Toleration from a JSON string"""
57
+ return cls.from_dict(json.loads(json_str))
58
+
59
+ def to_dict(self) -> Dict[str, Any]:
60
+ """Return the dictionary representation of the model using alias.
61
+
62
+ This has the following differences from calling pydantic's
63
+ `self.model_dump(by_alias=True)`:
64
+
65
+ * `None` is only added to the output dict for nullable fields that
66
+ were set at model initialization. Other fields with value `None`
67
+ are ignored.
68
+ * Fields in `self.additional_properties` are added to the output dict.
69
+ """
70
+ excluded_fields: Set[str] = set([
71
+ "additional_properties",
72
+ ])
73
+
74
+ _dict = self.model_dump(
75
+ by_alias=True,
76
+ exclude=excluded_fields,
77
+ exclude_none=True,
78
+ )
79
+ # puts key-value pairs in additional_properties in the top level
80
+ if self.additional_properties is not None:
81
+ for _key, _value in self.additional_properties.items():
82
+ _dict[_key] = _value
83
+
84
+ # set to None if key (nullable) is None
85
+ # and model_fields_set contains the field
86
+ if self.key is None and "key" in self.model_fields_set:
87
+ _dict['key'] = None
88
+
89
+ # set to None if operator (nullable) is None
90
+ # and model_fields_set contains the field
91
+ if self.operator is None and "operator" in self.model_fields_set:
92
+ _dict['operator'] = None
93
+
94
+ # set to None if value (nullable) is None
95
+ # and model_fields_set contains the field
96
+ if self.value is None and "value" in self.model_fields_set:
97
+ _dict['value'] = None
98
+
99
+ # set to None if effect (nullable) is None
100
+ # and model_fields_set contains the field
101
+ if self.effect is None and "effect" in self.model_fields_set:
102
+ _dict['effect'] = None
103
+
104
+ # set to None if toleration_seconds (nullable) is None
105
+ # and model_fields_set contains the field
106
+ if self.toleration_seconds is None and "toleration_seconds" in self.model_fields_set:
107
+ _dict['tolerationSeconds'] = None
108
+
109
+ return _dict
110
+
111
+ @classmethod
112
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
113
+ """Create an instance of Toleration from a dict"""
114
+ if obj is None:
115
+ return None
116
+
117
+ if not isinstance(obj, dict):
118
+ return cls.model_validate(obj)
119
+
120
+ _obj = cls.model_validate({
121
+ "key": obj.get("key"),
122
+ "operator": obj.get("operator"),
123
+ "value": obj.get("value"),
124
+ "effect": obj.get("effect"),
125
+ "tolerationSeconds": obj.get("tolerationSeconds")
126
+ })
127
+ # store additional fields in additional_properties
128
+ for _key in obj.keys():
129
+ if _key not in cls.__properties:
130
+ _obj.additional_properties[_key] = obj.get(_key)
131
+
132
+ return _obj
133
+
134
+
@@ -28,6 +28,7 @@ from platform_api_python_client.models.image import Image
28
28
  from platform_api_python_client.models.volume_mount import VolumeMount
29
29
  from typing import Optional, Set
30
30
  from typing_extensions import Self
31
+ from pydantic_core import to_jsonable_python
31
32
 
32
33
  class UnifiedGetComputeDeploymentResponse(BaseModel):
33
34
  """
@@ -46,7 +47,7 @@ class UnifiedGetComputeDeploymentResponse(BaseModel):
46
47
  user_annotations: Optional[Dict[str, StrictStr]] = None
47
48
  chart_revision: Optional[StrictStr] = None
48
49
  volume_mounts: Optional[Annotated[List[VolumeMount], Field(max_length=10)]] = None
49
- priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = None
50
+ priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = Field(default=None, description="Kubernetes PriorityClass name on the pod spec. Omit to leave unset.")
50
51
  pools: CclMainPools
51
52
  env: Optional[Env] = None
52
53
  image: Image
@@ -62,15 +63,16 @@ class UnifiedGetComputeDeploymentResponse(BaseModel):
62
63
  raise ValueError("must be one of enum values ('ccl_compute')")
63
64
  return value
64
65
 
65
- @field_validator('name')
66
+ @field_validator('name', mode="before")
66
67
  def name_validate_regular_expression(cls, value):
67
68
  """Validates the regular expression"""
68
- if not re.match(r"^[a-z][a-z0-9-]*$", value):
69
+ if isinstance(value, str) and not re.match(r"^[a-z][a-z0-9-]*$", value):
69
70
  raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/")
70
71
  return value
71
72
 
72
73
  model_config = ConfigDict(
73
- populate_by_name=True,
74
+ validate_by_name=True,
75
+ validate_by_alias=True,
74
76
  validate_assignment=True,
75
77
  protected_namespaces=(),
76
78
  )
@@ -82,8 +84,7 @@ class UnifiedGetComputeDeploymentResponse(BaseModel):
82
84
 
83
85
  def to_json(self) -> str:
84
86
  """Returns the JSON representation of the model using alias"""
85
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
86
- return json.dumps(self.to_dict())
87
+ return json.dumps(to_jsonable_python(self.to_dict()))
87
88
 
88
89
  @classmethod
89
90
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -112,8 +113,7 @@ class UnifiedGetComputeDeploymentResponse(BaseModel):
112
113
  _items = []
113
114
  if self.volume_mounts:
114
115
  for _item_volume_mounts in self.volume_mounts:
115
- if _item_volume_mounts:
116
- _items.append(_item_volume_mounts.to_dict())
116
+ _items.append(_item_volume_mounts.to_dict() if _item_volume_mounts is not None else None)
117
117
  _dict['volume_mounts'] = _items
118
118
  # override the default output from pydantic by calling `to_dict()` of pools
119
119
  if self.pools:
@@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List
22
22
  from platform_api_python_client.models.deployment_log_event_v4 import DeploymentLogEventV4
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 UnifiedGetDeploymentLogsResponse(BaseModel):
27
28
  """
@@ -31,7 +32,8 @@ class UnifiedGetDeploymentLogsResponse(BaseModel):
31
32
  __properties: ClassVar[List[str]] = ["events"]
32
33
 
33
34
  model_config = ConfigDict(
34
- populate_by_name=True,
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 UnifiedGetDeploymentLogsResponse(BaseModel):
43
45
 
44
46
  def to_json(self) -> str:
45
47
  """Returns the JSON representation of the model using alias"""
46
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
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]:
@@ -73,8 +74,7 @@ class UnifiedGetDeploymentLogsResponse(BaseModel):
73
74
  _items = []
74
75
  if self.events:
75
76
  for _item_events in self.events:
76
- if _item_events:
77
- _items.append(_item_events.to_dict())
77
+ _items.append(_item_events.to_dict() if _item_events is not None else None)
78
78
  _dict['events'] = _items
79
79
  return _dict
80
80
 
@@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
24
+ from pydantic_core import to_jsonable_python
24
25
 
25
26
  class UnifiedGetDeploymentPodsResponse(BaseModel):
26
27
  """
@@ -30,7 +31,8 @@ class UnifiedGetDeploymentPodsResponse(BaseModel):
30
31
  __properties: ClassVar[List[str]] = ["pods"]
31
32
 
32
33
  model_config = ConfigDict(
33
- populate_by_name=True,
34
+ validate_by_name=True,
35
+ validate_by_alias=True,
34
36
  validate_assignment=True,
35
37
  protected_namespaces=(),
36
38
  )
@@ -42,8 +44,7 @@ class UnifiedGetDeploymentPodsResponse(BaseModel):
42
44
 
43
45
  def to_json(self) -> str:
44
46
  """Returns the JSON representation of the model using alias"""
45
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
- return json.dumps(self.to_dict())
47
+ return json.dumps(to_jsonable_python(self.to_dict()))
47
48
 
48
49
  @classmethod
49
50
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from platform_api_python_client.models.unified_get_deployment_response import UnifiedGetDeploymentResponse
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
+ from pydantic_core import to_jsonable_python
26
27
 
27
28
  class UnifiedGetDeploymentRevisionResponse(BaseModel):
28
29
  """
@@ -38,7 +39,8 @@ class UnifiedGetDeploymentRevisionResponse(BaseModel):
38
39
  __properties: ClassVar[List[str]] = ["id", "revision_number", "deployment_id", "deployment_response", "notes", "created_at", "updated_at"]
39
40
 
40
41
  model_config = ConfigDict(
41
- populate_by_name=True,
42
+ validate_by_name=True,
43
+ validate_by_alias=True,
42
44
  validate_assignment=True,
43
45
  protected_namespaces=(),
44
46
  )
@@ -50,8 +52,7 @@ class UnifiedGetDeploymentRevisionResponse(BaseModel):
50
52
 
51
53
  def to_json(self) -> str:
52
54
  """Returns the JSON representation of the model using alias"""
53
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
54
- return json.dumps(self.to_dict())
55
+ return json.dumps(to_jsonable_python(self.to_dict()))
55
56
 
56
57
  @classmethod
57
58
  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.rollout_status import RolloutStatus
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 UnifiedGetDeploymentRolloutResponse(BaseModel):
27
28
  """
@@ -32,7 +33,8 @@ class UnifiedGetDeploymentRolloutResponse(BaseModel):
32
33
  __properties: ClassVar[List[str]] = ["paused", "status"]
33
34
 
34
35
  model_config = ConfigDict(
35
- populate_by_name=True,
36
+ validate_by_name=True,
37
+ validate_by_alias=True,
36
38
  validate_assignment=True,
37
39
  protected_namespaces=(),
38
40
  )
@@ -44,8 +46,7 @@ class UnifiedGetDeploymentRolloutResponse(BaseModel):
44
46
 
45
47
  def to_json(self) -> str:
46
48
  """Returns the JSON representation of the model using alias"""
47
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
- return json.dumps(self.to_dict())
49
+ return json.dumps(to_jsonable_python(self.to_dict()))
49
50
 
50
51
  @classmethod
51
52
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -23,6 +23,7 @@ from platform_api_python_client.models.deployment_usage import DeploymentUsage
23
23
  from platform_api_python_client.models.usage_availability import UsageAvailability
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
26
+ from pydantic_core import to_jsonable_python
26
27
 
27
28
  class UnifiedGetDeploymentUsageResponse(BaseModel):
28
29
  """
@@ -34,7 +35,8 @@ class UnifiedGetDeploymentUsageResponse(BaseModel):
34
35
  __properties: ClassVar[List[str]] = ["values", "availability", "last_sample_at"]
35
36
 
36
37
  model_config = ConfigDict(
37
- populate_by_name=True,
38
+ validate_by_name=True,
39
+ validate_by_alias=True,
38
40
  validate_assignment=True,
39
41
  protected_namespaces=(),
40
42
  )
@@ -46,8 +48,7 @@ class UnifiedGetDeploymentUsageResponse(BaseModel):
46
48
 
47
49
  def to_json(self) -> str:
48
50
  """Returns the JSON representation of the model using alias"""
49
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
50
- return json.dumps(self.to_dict())
51
+ return json.dumps(to_jsonable_python(self.to_dict()))
51
52
 
52
53
  @classmethod
53
54
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -76,8 +77,7 @@ class UnifiedGetDeploymentUsageResponse(BaseModel):
76
77
  _items = []
77
78
  if self.values:
78
79
  for _item_values in self.values:
79
- if _item_values:
80
- _items.append(_item_values.to_dict())
80
+ _items.append(_item_values.to_dict() if _item_values is not None else None)
81
81
  _dict['values'] = _items
82
82
  # set to None if availability (nullable) is None
83
83
  # and model_fields_set contains the field
@@ -23,7 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing_extensions import Annotated
24
24
  from platform_api_python_client.models.ccl_dynamo_pools import CclDynamoPools
25
25
  from platform_api_python_client.models.deployment_status import DeploymentStatus
26
- from platform_api_python_client.models.dynamo_communications_output import DynamoCommunicationsOutput
26
+ from platform_api_python_client.models.dynamo_communications_input import DynamoCommunicationsInput
27
27
  from platform_api_python_client.models.dynamo_image import DynamoImage
28
28
  from platform_api_python_client.models.dynamo_serving_mode import DynamoServingMode
29
29
  from platform_api_python_client.models.env import Env
@@ -31,6 +31,7 @@ from platform_api_python_client.models.ingress import Ingress
31
31
  from platform_api_python_client.models.volume_mount import VolumeMount
32
32
  from typing import Optional, Set
33
33
  from typing_extensions import Self
34
+ from pydantic_core import to_jsonable_python
34
35
 
35
36
  class UnifiedGetDynamoDeploymentResponse(BaseModel):
36
37
  """
@@ -49,17 +50,17 @@ class UnifiedGetDynamoDeploymentResponse(BaseModel):
49
50
  user_annotations: Optional[Dict[str, StrictStr]] = None
50
51
  chart_revision: Optional[StrictStr] = None
51
52
  volume_mounts: Optional[Annotated[List[VolumeMount], Field(max_length=10)]] = None
52
- priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = None
53
+ priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = Field(default=None, description="Kubernetes PriorityClass name on the pod spec. Omit to leave unset.")
53
54
  pools: CclDynamoPools
54
55
  env: Optional[Env] = None
55
56
  image: Optional[DynamoImage] = None
56
57
  ingress: Ingress
57
58
  serving_mode: Optional[DynamoServingMode] = None
58
- communications: Optional[DynamoCommunicationsOutput] = None
59
+ communications: Optional[DynamoCommunicationsInput] = Field(default=None, description="Platform-managed worker communications. Only disaggregated KV transfer is supported. Omit or set null to preserve the legacy connector configuration.")
59
60
  model: StrictStr
60
61
  served_model_name: Optional[StrictStr] = None
61
- extra_args: Optional[StrictStr] = None
62
- hf_token_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
62
+ extra_args: Optional[StrictStr] = Field(default=None, description="Extra worker CLI arguments as a single shell-style string, split into argv with POSIX shell quoting (shlex). Backslash is an escape character, so `\\` is consumed unless quoted: e.g. `--regex \\d+` reaches the worker as `d+`. Wrap literal backslashes in single quotes (`--regex '\\d+'`). Unbalanced quotes or a trailing backslash are rejected.")
63
+ hf_token_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Access-token vault item ID for HF_TOKEN.")
63
64
  enable_logging: Optional[StrictBool] = True
64
65
  enable_node_model_cache: Optional[StrictBool] = False
65
66
  __properties: ClassVar[List[str]] = ["id", "status", "creator_email", "created_at", "updated_at", "revision_number", "endpoint_url", "type", "name", "cluster_id", "user_annotations", "chart_revision", "volume_mounts", "priority", "pools", "env", "image", "ingress", "serving_mode", "communications", "model", "served_model_name", "extra_args", "hf_token_ref", "enable_logging", "enable_node_model_cache"]
@@ -71,15 +72,16 @@ class UnifiedGetDynamoDeploymentResponse(BaseModel):
71
72
  raise ValueError("must be one of enum values ('ccl_dynamo')")
72
73
  return value
73
74
 
74
- @field_validator('name')
75
+ @field_validator('name', mode="before")
75
76
  def name_validate_regular_expression(cls, value):
76
77
  """Validates the regular expression"""
77
- if not re.match(r"^[a-z][a-z0-9-]*$", value):
78
+ if isinstance(value, str) and not re.match(r"^[a-z][a-z0-9-]*$", value):
78
79
  raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/")
79
80
  return value
80
81
 
81
82
  model_config = ConfigDict(
82
- populate_by_name=True,
83
+ validate_by_name=True,
84
+ validate_by_alias=True,
83
85
  validate_assignment=True,
84
86
  protected_namespaces=(),
85
87
  )
@@ -91,8 +93,7 @@ class UnifiedGetDynamoDeploymentResponse(BaseModel):
91
93
 
92
94
  def to_json(self) -> str:
93
95
  """Returns the JSON representation of the model using alias"""
94
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
95
- return json.dumps(self.to_dict())
96
+ return json.dumps(to_jsonable_python(self.to_dict()))
96
97
 
97
98
  @classmethod
98
99
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -121,8 +122,7 @@ class UnifiedGetDynamoDeploymentResponse(BaseModel):
121
122
  _items = []
122
123
  if self.volume_mounts:
123
124
  for _item_volume_mounts in self.volume_mounts:
124
- if _item_volume_mounts:
125
- _items.append(_item_volume_mounts.to_dict())
125
+ _items.append(_item_volume_mounts.to_dict() if _item_volume_mounts is not None else None)
126
126
  _dict['volume_mounts'] = _items
127
127
  # override the default output from pydantic by calling `to_dict()` of pools
128
128
  if self.pools:
@@ -205,7 +205,7 @@ class UnifiedGetDynamoDeploymentResponse(BaseModel):
205
205
  "image": DynamoImage.from_dict(obj["image"]) if obj.get("image") is not None else None,
206
206
  "ingress": Ingress.from_dict(obj["ingress"]) if obj.get("ingress") is not None else None,
207
207
  "serving_mode": obj.get("serving_mode"),
208
- "communications": DynamoCommunicationsOutput.from_dict(obj["communications"]) if obj.get("communications") is not None else None,
208
+ "communications": DynamoCommunicationsInput.from_dict(obj["communications"]) if obj.get("communications") is not None else None,
209
209
  "model": obj.get("model"),
210
210
  "served_model_name": obj.get("served_model_name"),
211
211
  "extra_args": obj.get("extra_args"),
@@ -31,6 +31,7 @@ from platform_api_python_client.models.metrics_config import MetricsConfig
31
31
  from platform_api_python_client.models.volume_mount import VolumeMount
32
32
  from typing import Optional, Set
33
33
  from typing_extensions import Self
34
+ from pydantic_core import to_jsonable_python
34
35
 
35
36
  class UnifiedGetInferenceV3DeploymentResponse(BaseModel):
36
37
  """
@@ -49,7 +50,7 @@ class UnifiedGetInferenceV3DeploymentResponse(BaseModel):
49
50
  user_annotations: Optional[Dict[str, StrictStr]] = None
50
51
  chart_revision: Optional[StrictStr] = None
51
52
  volume_mounts: Optional[Annotated[List[VolumeMount], Field(max_length=10)]] = None
52
- priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = None
53
+ priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = Field(default=None, description="Kubernetes PriorityClass name on the pod spec. Omit to leave unset.")
53
54
  pools: CclMainPools
54
55
  env: Optional[Env] = None
55
56
  image: Image
@@ -58,7 +59,7 @@ class UnifiedGetInferenceV3DeploymentResponse(BaseModel):
58
59
  healthcheck: Optional[StrictStr] = None
59
60
  command: Optional[StrictStr] = None
60
61
  config_file: Optional[ConfigFileMount] = None
61
- hf_token_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
62
+ hf_token_ref: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Access-token vault item ID for HF_TOKEN.")
62
63
  session_affinity: Optional[StrictBool] = Field(default=False, description="Enable best-effort sticky routing via the `X-Session-Id` request header. Requests carrying the same header value land on the same pod, improving KV cache reuse for agentic workloads. Requests without the header are routed at random. Affinity is NOT durable: scaling, rollouts, restarts, or readiness-probe transitions will remap sessions to different pods. Do not use for irreplaceable in-pod state.")
63
64
  metrics: Optional[MetricsConfig] = None
64
65
  enable_logging: Optional[StrictBool] = False
@@ -72,15 +73,16 @@ class UnifiedGetInferenceV3DeploymentResponse(BaseModel):
72
73
  raise ValueError("must be one of enum values ('ccl_inference')")
73
74
  return value
74
75
 
75
- @field_validator('name')
76
+ @field_validator('name', mode="before")
76
77
  def name_validate_regular_expression(cls, value):
77
78
  """Validates the regular expression"""
78
- if not re.match(r"^[a-z][a-z0-9-]*$", value):
79
+ if isinstance(value, str) and not re.match(r"^[a-z][a-z0-9-]*$", value):
79
80
  raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/")
80
81
  return value
81
82
 
82
83
  model_config = ConfigDict(
83
- populate_by_name=True,
84
+ validate_by_name=True,
85
+ validate_by_alias=True,
84
86
  validate_assignment=True,
85
87
  protected_namespaces=(),
86
88
  )
@@ -92,8 +94,7 @@ class UnifiedGetInferenceV3DeploymentResponse(BaseModel):
92
94
 
93
95
  def to_json(self) -> str:
94
96
  """Returns the JSON representation of the model using alias"""
95
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
96
- return json.dumps(self.to_dict())
97
+ return json.dumps(to_jsonable_python(self.to_dict()))
97
98
 
98
99
  @classmethod
99
100
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -122,8 +123,7 @@ class UnifiedGetInferenceV3DeploymentResponse(BaseModel):
122
123
  _items = []
123
124
  if self.volume_mounts:
124
125
  for _item_volume_mounts in self.volume_mounts:
125
- if _item_volume_mounts:
126
- _items.append(_item_volume_mounts.to_dict())
126
+ _items.append(_item_volume_mounts.to_dict() if _item_volume_mounts is not None else None)
127
127
  _dict['volume_mounts'] = _items
128
128
  # override the default output from pydantic by calling `to_dict()` of pools
129
129
  if self.pools:
@@ -29,6 +29,7 @@ from platform_api_python_client.models.image import Image
29
29
  from platform_api_python_client.models.volume_mount import VolumeMount
30
30
  from typing import Optional, Set
31
31
  from typing_extensions import Self
32
+ from pydantic_core import to_jsonable_python
32
33
 
33
34
  class UnifiedGetJobDeploymentResponse(BaseModel):
34
35
  """
@@ -47,7 +48,7 @@ class UnifiedGetJobDeploymentResponse(BaseModel):
47
48
  user_annotations: Optional[Dict[str, StrictStr]] = None
48
49
  chart_revision: Optional[StrictStr] = None
49
50
  volume_mounts: Optional[Annotated[List[VolumeMount], Field(max_length=10)]] = None
50
- priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = None
51
+ priority: Optional[Annotated[str, Field(strict=True, max_length=253)]] = Field(default=None, description="Kubernetes PriorityClass name on the pod spec. Omit to leave unset.")
51
52
  pools: CclMainPools
52
53
  env: Optional[Env] = None
53
54
  image: Image
@@ -67,15 +68,16 @@ class UnifiedGetJobDeploymentResponse(BaseModel):
67
68
  raise ValueError("must be one of enum values ('ccl_job')")
68
69
  return value
69
70
 
70
- @field_validator('name')
71
+ @field_validator('name', mode="before")
71
72
  def name_validate_regular_expression(cls, value):
72
73
  """Validates the regular expression"""
73
- if not re.match(r"^[a-z][a-z0-9-]*$", value):
74
+ if isinstance(value, str) and not re.match(r"^[a-z][a-z0-9-]*$", value):
74
75
  raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/")
75
76
  return value
76
77
 
77
78
  model_config = ConfigDict(
78
- populate_by_name=True,
79
+ validate_by_name=True,
80
+ validate_by_alias=True,
79
81
  validate_assignment=True,
80
82
  protected_namespaces=(),
81
83
  )
@@ -87,8 +89,7 @@ class UnifiedGetJobDeploymentResponse(BaseModel):
87
89
 
88
90
  def to_json(self) -> str:
89
91
  """Returns the JSON representation of the model using alias"""
90
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
91
- return json.dumps(self.to_dict())
92
+ return json.dumps(to_jsonable_python(self.to_dict()))
92
93
 
93
94
  @classmethod
94
95
  def from_json(cls, json_str: str) -> Optional[Self]:
@@ -117,8 +118,7 @@ class UnifiedGetJobDeploymentResponse(BaseModel):
117
118
  _items = []
118
119
  if self.volume_mounts:
119
120
  for _item_volume_mounts in self.volume_mounts:
120
- if _item_volume_mounts:
121
- _items.append(_item_volume_mounts.to_dict())
121
+ _items.append(_item_volume_mounts.to_dict() if _item_volume_mounts is not None else None)
122
122
  _dict['volume_mounts'] = _items
123
123
  # override the default output from pydantic by calling `to_dict()` of pools
124
124
  if self.pools: