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
@@ -1,193 +0,0 @@
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 datetime import datetime
21
- from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
22
- from typing import Any, ClassVar, Dict, List, Optional
23
- from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
24
- from platform_api_python_client.models.deployment_status import DeploymentStatus
25
- from platform_api_python_client.models.deployment_type import DeploymentType
26
- from platform_api_python_client.models.volume_mount import VolumeMount
27
- from typing import Optional, Set
28
- from typing_extensions import Self
29
-
30
- class GetCServeV2DeploymentResponse(BaseModel):
31
- """
32
- GetCServeV2DeploymentResponse
33
- """ # noqa: E501
34
- creator_email: StrictStr
35
- cluster_id: StrictInt
36
- id: StrictInt
37
- name: StrictStr
38
- endpoint_url: StrictStr
39
- image_url: Optional[StrictStr] = None
40
- type: DeploymentType
41
- status: DeploymentStatus
42
- created_at: datetime
43
- hardware_instance_id: StrictInt
44
- revision_number: StrictInt
45
- chart_revision: Optional[StrictStr] = None
46
- user_annotations: Optional[Dict[str, StrictStr]] = None
47
- priority: Optional[StrictStr] = None
48
- volume_mounts: Optional[List[VolumeMount]] = None
49
- recipe: CServeV2Recipe
50
- cserve_version: Optional[StrictStr] = None
51
- min_scale: StrictInt
52
- max_scale: StrictInt
53
- initial_scale: Optional[StrictInt] = None
54
- endpoint_certificate_authority: Optional[StrictStr] = None
55
- endpoint_bearer_token: Optional[StrictStr] = None
56
- concurrency: Optional[StrictInt] = None
57
- env_vars: Optional[Dict[str, StrictStr]] = None
58
- __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "recipe", "cserve_version", "min_scale", "max_scale", "initial_scale", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "env_vars"]
59
-
60
- model_config = ConfigDict(
61
- populate_by_name=True,
62
- validate_assignment=True,
63
- protected_namespaces=(),
64
- )
65
-
66
-
67
- def to_str(self) -> str:
68
- """Returns the string representation of the model using alias"""
69
- return pprint.pformat(self.model_dump(by_alias=True))
70
-
71
- def to_json(self) -> str:
72
- """Returns the JSON representation of the model using alias"""
73
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
74
- return json.dumps(self.to_dict())
75
-
76
- @classmethod
77
- def from_json(cls, json_str: str) -> Optional[Self]:
78
- """Create an instance of GetCServeV2DeploymentResponse from a JSON string"""
79
- return cls.from_dict(json.loads(json_str))
80
-
81
- def to_dict(self) -> Dict[str, Any]:
82
- """Return the dictionary representation of the model using alias.
83
-
84
- This has the following differences from calling pydantic's
85
- `self.model_dump(by_alias=True)`:
86
-
87
- * `None` is only added to the output dict for nullable fields that
88
- were set at model initialization. Other fields with value `None`
89
- are ignored.
90
- """
91
- excluded_fields: Set[str] = set([
92
- ])
93
-
94
- _dict = self.model_dump(
95
- by_alias=True,
96
- exclude=excluded_fields,
97
- exclude_none=True,
98
- )
99
- # override the default output from pydantic by calling `to_dict()` of each item in volume_mounts (list)
100
- _items = []
101
- if self.volume_mounts:
102
- for _item_volume_mounts in self.volume_mounts:
103
- if _item_volume_mounts:
104
- _items.append(_item_volume_mounts.to_dict())
105
- _dict['volume_mounts'] = _items
106
- # override the default output from pydantic by calling `to_dict()` of recipe
107
- if self.recipe:
108
- _dict['recipe'] = self.recipe.to_dict()
109
- # set to None if image_url (nullable) is None
110
- # and model_fields_set contains the field
111
- if self.image_url is None and "image_url" in self.model_fields_set:
112
- _dict['image_url'] = None
113
-
114
- # set to None if chart_revision (nullable) is None
115
- # and model_fields_set contains the field
116
- if self.chart_revision is None and "chart_revision" in self.model_fields_set:
117
- _dict['chart_revision'] = None
118
-
119
- # set to None if user_annotations (nullable) is None
120
- # and model_fields_set contains the field
121
- if self.user_annotations is None and "user_annotations" in self.model_fields_set:
122
- _dict['user_annotations'] = None
123
-
124
- # set to None if priority (nullable) is None
125
- # and model_fields_set contains the field
126
- if self.priority is None and "priority" in self.model_fields_set:
127
- _dict['priority'] = None
128
-
129
- # set to None if cserve_version (nullable) is None
130
- # and model_fields_set contains the field
131
- if self.cserve_version is None and "cserve_version" in self.model_fields_set:
132
- _dict['cserve_version'] = None
133
-
134
- # set to None if initial_scale (nullable) is None
135
- # and model_fields_set contains the field
136
- if self.initial_scale is None and "initial_scale" in self.model_fields_set:
137
- _dict['initial_scale'] = None
138
-
139
- # set to None if endpoint_certificate_authority (nullable) is None
140
- # and model_fields_set contains the field
141
- if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
142
- _dict['endpoint_certificate_authority'] = None
143
-
144
- # set to None if endpoint_bearer_token (nullable) is None
145
- # and model_fields_set contains the field
146
- if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
147
- _dict['endpoint_bearer_token'] = None
148
-
149
- # set to None if concurrency (nullable) is None
150
- # and model_fields_set contains the field
151
- if self.concurrency is None and "concurrency" in self.model_fields_set:
152
- _dict['concurrency'] = None
153
-
154
- return _dict
155
-
156
- @classmethod
157
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
158
- """Create an instance of GetCServeV2DeploymentResponse from a dict"""
159
- if obj is None:
160
- return None
161
-
162
- if not isinstance(obj, dict):
163
- return cls.model_validate(obj)
164
-
165
- _obj = cls.model_validate({
166
- "creator_email": obj.get("creator_email"),
167
- "cluster_id": obj.get("cluster_id"),
168
- "id": obj.get("id"),
169
- "name": obj.get("name"),
170
- "endpoint_url": obj.get("endpoint_url"),
171
- "image_url": obj.get("image_url"),
172
- "type": obj.get("type"),
173
- "status": obj.get("status"),
174
- "created_at": obj.get("created_at"),
175
- "hardware_instance_id": obj.get("hardware_instance_id"),
176
- "revision_number": obj.get("revision_number"),
177
- "chart_revision": obj.get("chart_revision"),
178
- "user_annotations": obj.get("user_annotations"),
179
- "priority": obj.get("priority"),
180
- "volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
181
- "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
182
- "cserve_version": obj.get("cserve_version"),
183
- "min_scale": obj.get("min_scale"),
184
- "max_scale": obj.get("max_scale"),
185
- "initial_scale": obj.get("initial_scale"),
186
- "endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
187
- "endpoint_bearer_token": obj.get("endpoint_bearer_token"),
188
- "concurrency": obj.get("concurrency"),
189
- "env_vars": obj.get("env_vars")
190
- })
191
- return _obj
192
-
193
-
@@ -1,194 +0,0 @@
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 datetime import datetime
21
- from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
22
- from typing import Any, ClassVar, Dict, List, Optional
23
- from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
24
- from platform_api_python_client.models.deployment_status import DeploymentStatus
25
- from platform_api_python_client.models.deployment_type import DeploymentType
26
- from platform_api_python_client.models.volume_mount import VolumeMount
27
- from typing import Optional, Set
28
- from typing_extensions import Self
29
-
30
- class GetCServeV3DeploymentResponse(BaseModel):
31
- """
32
- GetCServeV3DeploymentResponse
33
- """ # noqa: E501
34
- creator_email: StrictStr
35
- cluster_id: StrictInt
36
- id: StrictInt
37
- name: StrictStr
38
- endpoint_url: StrictStr
39
- image_url: Optional[StrictStr] = None
40
- type: DeploymentType
41
- status: DeploymentStatus
42
- created_at: datetime
43
- hardware_instance_id: StrictInt
44
- revision_number: StrictInt
45
- chart_revision: Optional[StrictStr] = None
46
- user_annotations: Optional[Dict[str, StrictStr]] = None
47
- priority: Optional[StrictStr] = None
48
- volume_mounts: Optional[List[VolumeMount]] = None
49
- recipe: CServeV2Recipe
50
- cserve_version: Optional[StrictStr] = None
51
- min_replicas: StrictInt
52
- max_replicas: StrictInt
53
- endpoint_certificate_authority: Optional[StrictStr] = None
54
- endpoint_bearer_token: Optional[StrictStr] = None
55
- concurrency: Optional[StrictInt] = None
56
- cooldown_period: Optional[StrictInt] = 1800
57
- env_vars: Optional[Dict[str, StrictStr]] = None
58
- enable_logging: Optional[StrictBool] = True
59
- enable_node_model_cache: Optional[StrictBool] = False
60
- 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.")
61
- __properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "chart_revision", "user_annotations", "priority", "volume_mounts", "recipe", "cserve_version", "min_replicas", "max_replicas", "endpoint_certificate_authority", "endpoint_bearer_token", "concurrency", "cooldown_period", "env_vars", "enable_logging", "enable_node_model_cache", "session_affinity"]
62
-
63
- model_config = ConfigDict(
64
- populate_by_name=True,
65
- validate_assignment=True,
66
- protected_namespaces=(),
67
- )
68
-
69
-
70
- def to_str(self) -> str:
71
- """Returns the string representation of the model using alias"""
72
- return pprint.pformat(self.model_dump(by_alias=True))
73
-
74
- def to_json(self) -> str:
75
- """Returns the JSON representation of the model using alias"""
76
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
77
- return json.dumps(self.to_dict())
78
-
79
- @classmethod
80
- def from_json(cls, json_str: str) -> Optional[Self]:
81
- """Create an instance of GetCServeV3DeploymentResponse from a JSON string"""
82
- return cls.from_dict(json.loads(json_str))
83
-
84
- def to_dict(self) -> Dict[str, Any]:
85
- """Return the dictionary representation of the model using alias.
86
-
87
- This has the following differences from calling pydantic's
88
- `self.model_dump(by_alias=True)`:
89
-
90
- * `None` is only added to the output dict for nullable fields that
91
- were set at model initialization. Other fields with value `None`
92
- are ignored.
93
- """
94
- excluded_fields: Set[str] = set([
95
- ])
96
-
97
- _dict = self.model_dump(
98
- by_alias=True,
99
- exclude=excluded_fields,
100
- exclude_none=True,
101
- )
102
- # override the default output from pydantic by calling `to_dict()` of each item in volume_mounts (list)
103
- _items = []
104
- if self.volume_mounts:
105
- for _item_volume_mounts in self.volume_mounts:
106
- if _item_volume_mounts:
107
- _items.append(_item_volume_mounts.to_dict())
108
- _dict['volume_mounts'] = _items
109
- # override the default output from pydantic by calling `to_dict()` of recipe
110
- if self.recipe:
111
- _dict['recipe'] = self.recipe.to_dict()
112
- # set to None if image_url (nullable) is None
113
- # and model_fields_set contains the field
114
- if self.image_url is None and "image_url" in self.model_fields_set:
115
- _dict['image_url'] = None
116
-
117
- # set to None if chart_revision (nullable) is None
118
- # and model_fields_set contains the field
119
- if self.chart_revision is None and "chart_revision" in self.model_fields_set:
120
- _dict['chart_revision'] = None
121
-
122
- # set to None if user_annotations (nullable) is None
123
- # and model_fields_set contains the field
124
- if self.user_annotations is None and "user_annotations" in self.model_fields_set:
125
- _dict['user_annotations'] = None
126
-
127
- # set to None if priority (nullable) is None
128
- # and model_fields_set contains the field
129
- if self.priority is None and "priority" in self.model_fields_set:
130
- _dict['priority'] = None
131
-
132
- # set to None if cserve_version (nullable) is None
133
- # and model_fields_set contains the field
134
- if self.cserve_version is None and "cserve_version" in self.model_fields_set:
135
- _dict['cserve_version'] = None
136
-
137
- # set to None if endpoint_certificate_authority (nullable) is None
138
- # and model_fields_set contains the field
139
- if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
140
- _dict['endpoint_certificate_authority'] = None
141
-
142
- # set to None if endpoint_bearer_token (nullable) is None
143
- # and model_fields_set contains the field
144
- if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
145
- _dict['endpoint_bearer_token'] = None
146
-
147
- # set to None if concurrency (nullable) is None
148
- # and model_fields_set contains the field
149
- if self.concurrency is None and "concurrency" in self.model_fields_set:
150
- _dict['concurrency'] = None
151
-
152
- return _dict
153
-
154
- @classmethod
155
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
156
- """Create an instance of GetCServeV3DeploymentResponse from a dict"""
157
- if obj is None:
158
- return None
159
-
160
- if not isinstance(obj, dict):
161
- return cls.model_validate(obj)
162
-
163
- _obj = cls.model_validate({
164
- "creator_email": obj.get("creator_email"),
165
- "cluster_id": obj.get("cluster_id"),
166
- "id": obj.get("id"),
167
- "name": obj.get("name"),
168
- "endpoint_url": obj.get("endpoint_url"),
169
- "image_url": obj.get("image_url"),
170
- "type": obj.get("type"),
171
- "status": obj.get("status"),
172
- "created_at": obj.get("created_at"),
173
- "hardware_instance_id": obj.get("hardware_instance_id"),
174
- "revision_number": obj.get("revision_number"),
175
- "chart_revision": obj.get("chart_revision"),
176
- "user_annotations": obj.get("user_annotations"),
177
- "priority": obj.get("priority"),
178
- "volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
179
- "recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
180
- "cserve_version": obj.get("cserve_version"),
181
- "min_replicas": obj.get("min_replicas"),
182
- "max_replicas": obj.get("max_replicas"),
183
- "endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
184
- "endpoint_bearer_token": obj.get("endpoint_bearer_token"),
185
- "concurrency": obj.get("concurrency"),
186
- "cooldown_period": obj.get("cooldown_period") if obj.get("cooldown_period") is not None else 1800,
187
- "env_vars": obj.get("env_vars"),
188
- "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True,
189
- "enable_node_model_cache": obj.get("enable_node_model_cache") if obj.get("enable_node_model_cache") is not None else False,
190
- "session_affinity": obj.get("session_affinity") if obj.get("session_affinity") is not None else False
191
- })
192
- return _obj
193
-
194
-
@@ -1,89 +0,0 @@
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, StrictBool
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from typing import Optional, Set
23
- from typing_extensions import Self
24
-
25
- class GpuOperator(BaseModel):
26
- """
27
- GpuOperator
28
- """ # noqa: E501
29
- enabled: Optional[StrictBool] = True
30
- values: Optional[Dict[str, Any]] = None
31
- __properties: ClassVar[List[str]] = ["enabled", "values"]
32
-
33
- model_config = ConfigDict(
34
- populate_by_name=True,
35
- validate_assignment=True,
36
- protected_namespaces=(),
37
- )
38
-
39
-
40
- def to_str(self) -> str:
41
- """Returns the string representation of the model using alias"""
42
- return pprint.pformat(self.model_dump(by_alias=True))
43
-
44
- def to_json(self) -> str:
45
- """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
-
49
- @classmethod
50
- def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of GpuOperator from a JSON string"""
52
- return cls.from_dict(json.loads(json_str))
53
-
54
- def to_dict(self) -> Dict[str, Any]:
55
- """Return the dictionary representation of the model using alias.
56
-
57
- This has the following differences from calling pydantic's
58
- `self.model_dump(by_alias=True)`:
59
-
60
- * `None` is only added to the output dict for nullable fields that
61
- were set at model initialization. Other fields with value `None`
62
- are ignored.
63
- """
64
- excluded_fields: Set[str] = set([
65
- ])
66
-
67
- _dict = self.model_dump(
68
- by_alias=True,
69
- exclude=excluded_fields,
70
- exclude_none=True,
71
- )
72
- return _dict
73
-
74
- @classmethod
75
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
- """Create an instance of GpuOperator from a dict"""
77
- if obj is None:
78
- return None
79
-
80
- if not isinstance(obj, dict):
81
- return cls.model_validate(obj)
82
-
83
- _obj = cls.model_validate({
84
- "enabled": obj.get("enabled") if obj.get("enabled") is not None else True,
85
- "values": obj.get("values")
86
- })
87
- return _obj
88
-
89
-
@@ -1,89 +0,0 @@
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, StrictBool
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from typing import Optional, Set
23
- from typing_extensions import Self
24
-
25
- class KubePrometheusStack(BaseModel):
26
- """
27
- KubePrometheusStack
28
- """ # noqa: E501
29
- enabled: Optional[StrictBool] = True
30
- values: Optional[Dict[str, Any]] = None
31
- __properties: ClassVar[List[str]] = ["enabled", "values"]
32
-
33
- model_config = ConfigDict(
34
- populate_by_name=True,
35
- validate_assignment=True,
36
- protected_namespaces=(),
37
- )
38
-
39
-
40
- def to_str(self) -> str:
41
- """Returns the string representation of the model using alias"""
42
- return pprint.pformat(self.model_dump(by_alias=True))
43
-
44
- def to_json(self) -> str:
45
- """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
-
49
- @classmethod
50
- def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of KubePrometheusStack from a JSON string"""
52
- return cls.from_dict(json.loads(json_str))
53
-
54
- def to_dict(self) -> Dict[str, Any]:
55
- """Return the dictionary representation of the model using alias.
56
-
57
- This has the following differences from calling pydantic's
58
- `self.model_dump(by_alias=True)`:
59
-
60
- * `None` is only added to the output dict for nullable fields that
61
- were set at model initialization. Other fields with value `None`
62
- are ignored.
63
- """
64
- excluded_fields: Set[str] = set([
65
- ])
66
-
67
- _dict = self.model_dump(
68
- by_alias=True,
69
- exclude=excluded_fields,
70
- exclude_none=True,
71
- )
72
- return _dict
73
-
74
- @classmethod
75
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
- """Create an instance of KubePrometheusStack from a dict"""
77
- if obj is None:
78
- return None
79
-
80
- if not isinstance(obj, dict):
81
- return cls.model_validate(obj)
82
-
83
- _obj = cls.model_validate({
84
- "enabled": obj.get("enabled") if obj.get("enabled") is not None else True,
85
- "values": obj.get("values")
86
- })
87
- return _obj
88
-
89
-
@@ -1,89 +0,0 @@
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, StrictBool
21
- from typing import Any, ClassVar, Dict, List, Optional
22
- from typing import Optional, Set
23
- from typing_extensions import Self
24
-
25
- class MetricsServer(BaseModel):
26
- """
27
- MetricsServer
28
- """ # noqa: E501
29
- enabled: Optional[StrictBool] = True
30
- values: Optional[Dict[str, Any]] = None
31
- __properties: ClassVar[List[str]] = ["enabled", "values"]
32
-
33
- model_config = ConfigDict(
34
- populate_by_name=True,
35
- validate_assignment=True,
36
- protected_namespaces=(),
37
- )
38
-
39
-
40
- def to_str(self) -> str:
41
- """Returns the string representation of the model using alias"""
42
- return pprint.pformat(self.model_dump(by_alias=True))
43
-
44
- def to_json(self) -> str:
45
- """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
-
49
- @classmethod
50
- def from_json(cls, json_str: str) -> Optional[Self]:
51
- """Create an instance of MetricsServer from a JSON string"""
52
- return cls.from_dict(json.loads(json_str))
53
-
54
- def to_dict(self) -> Dict[str, Any]:
55
- """Return the dictionary representation of the model using alias.
56
-
57
- This has the following differences from calling pydantic's
58
- `self.model_dump(by_alias=True)`:
59
-
60
- * `None` is only added to the output dict for nullable fields that
61
- were set at model initialization. Other fields with value `None`
62
- are ignored.
63
- """
64
- excluded_fields: Set[str] = set([
65
- ])
66
-
67
- _dict = self.model_dump(
68
- by_alias=True,
69
- exclude=excluded_fields,
70
- exclude_none=True,
71
- )
72
- return _dict
73
-
74
- @classmethod
75
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
- """Create an instance of MetricsServer from a dict"""
77
- if obj is None:
78
- return None
79
-
80
- if not isinstance(obj, dict):
81
- return cls.model_validate(obj)
82
-
83
- _obj = cls.model_validate({
84
- "enabled": obj.get("enabled") if obj.get("enabled") is not None else True,
85
- "values": obj.get("values")
86
- })
87
- return _obj
88
-
89
-