platform-api-python-client 4.25.0__py3-none-any.whl → 4.31.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- platform_api_python_client/__init__.py +11 -1
- platform_api_python_client/api/external_api.py +1786 -481
- platform_api_python_client/api_client.py +1 -1
- platform_api_python_client/configuration.py +1 -1
- platform_api_python_client/models/__init__.py +10 -0
- platform_api_python_client/models/cloud_provider.py +5 -0
- platform_api_python_client/models/create_c_serve_v3_deployment_request.py +18 -8
- platform_api_python_client/models/create_compute_deployment_request.py +18 -1
- platform_api_python_client/models/create_dynamo_deployment_request.py +56 -6
- platform_api_python_client/models/create_filesystem_volume_request.py +13 -0
- platform_api_python_client/models/create_inference_v3_deployment_request.py +18 -8
- platform_api_python_client/models/create_job_deployment_request.py +18 -1
- platform_api_python_client/models/create_object_volume_request.py +32 -19
- platform_api_python_client/models/deployment_response.py +21 -6
- platform_api_python_client/models/dynamo_communications_input.py +104 -0
- platform_api_python_client/models/dynamo_communications_output.py +104 -0
- platform_api_python_client/models/dynamo_kv_transfer_configuration.py +101 -0
- platform_api_python_client/models/dynamo_kv_transfer_policy.py +37 -0
- platform_api_python_client/models/dynamo_worker_pool_config.py +38 -5
- platform_api_python_client/models/dynamo_worker_pools.py +24 -4
- platform_api_python_client/models/get_c_serve_v2_deployment_response.py +25 -1
- platform_api_python_client/models/get_c_serve_v3_deployment_response.py +25 -8
- platform_api_python_client/models/get_compute_deployment_response.py +25 -1
- platform_api_python_client/models/get_deployment_response.py +26 -2
- platform_api_python_client/models/get_dynamo_deployment_response.py +47 -5
- platform_api_python_client/models/get_inference_deployment_response.py +25 -1
- platform_api_python_client/models/get_inference_v3_deployment_response.py +23 -6
- platform_api_python_client/models/get_job_deployment_response.py +25 -1
- platform_api_python_client/models/get_object_volume_response.py +2 -16
- platform_api_python_client/models/hardware_instance_response.py +1 -3
- platform_api_python_client/models/hardware_preset_response.py +96 -0
- platform_api_python_client/models/list_hardware_preset_response.py +95 -0
- platform_api_python_client/models/list_organization_gpu_quota_response.py +95 -0
- platform_api_python_client/models/organization_gpu_quota_request.py +88 -0
- platform_api_python_client/models/organization_gpu_quota_response.py +91 -0
- platform_api_python_client/models/validation_error.py +12 -3
- platform_api_python_client/models/volume_mount.py +92 -0
- {platform_api_python_client-4.25.0.dist-info → platform_api_python_client-4.31.0.dist-info}/METADATA +1 -1
- {platform_api_python_client-4.25.0.dist-info → platform_api_python_client-4.31.0.dist-info}/RECORD +41 -31
- {platform_api_python_client-4.25.0.dist-info → platform_api_python_client-4.31.0.dist-info}/WHEEL +0 -0
- {platform_api_python_client-4.25.0.dist-info → platform_api_python_client-4.31.0.dist-info}/top_level.txt +0 -0
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
23
23
|
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
|
|
24
24
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
25
25
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
26
|
+
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
26
27
|
from typing import Optional, Set
|
|
27
28
|
from typing_extensions import Self
|
|
28
29
|
|
|
@@ -41,12 +42,14 @@ class GetCServeV3DeploymentResponse(BaseModel):
|
|
|
41
42
|
created_at: datetime
|
|
42
43
|
hardware_instance_id: StrictInt
|
|
43
44
|
revision_number: StrictInt
|
|
45
|
+
chart_revision: Optional[StrictStr] = None
|
|
44
46
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
47
|
+
priority: Optional[StrictStr] = None
|
|
48
|
+
volume_mounts: Optional[List[VolumeMount]] = None
|
|
45
49
|
recipe: CServeV2Recipe
|
|
46
50
|
cserve_version: Optional[StrictStr] = None
|
|
47
51
|
min_replicas: StrictInt
|
|
48
52
|
max_replicas: StrictInt
|
|
49
|
-
initial_replicas: Optional[StrictInt] = None
|
|
50
53
|
endpoint_certificate_authority: Optional[StrictStr] = None
|
|
51
54
|
endpoint_bearer_token: Optional[StrictStr] = None
|
|
52
55
|
concurrency: Optional[StrictInt] = None
|
|
@@ -55,7 +58,7 @@ class GetCServeV3DeploymentResponse(BaseModel):
|
|
|
55
58
|
enable_logging: Optional[StrictBool] = True
|
|
56
59
|
enable_node_model_cache: Optional[StrictBool] = False
|
|
57
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.")
|
|
58
|
-
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "recipe", "cserve_version", "min_replicas", "max_replicas", "
|
|
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"]
|
|
59
62
|
|
|
60
63
|
model_config = ConfigDict(
|
|
61
64
|
populate_by_name=True,
|
|
@@ -96,6 +99,13 @@ class GetCServeV3DeploymentResponse(BaseModel):
|
|
|
96
99
|
exclude=excluded_fields,
|
|
97
100
|
exclude_none=True,
|
|
98
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
|
|
99
109
|
# override the default output from pydantic by calling `to_dict()` of recipe
|
|
100
110
|
if self.recipe:
|
|
101
111
|
_dict['recipe'] = self.recipe.to_dict()
|
|
@@ -104,21 +114,26 @@ class GetCServeV3DeploymentResponse(BaseModel):
|
|
|
104
114
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
105
115
|
_dict['image_url'] = None
|
|
106
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
|
+
|
|
107
122
|
# set to None if user_annotations (nullable) is None
|
|
108
123
|
# and model_fields_set contains the field
|
|
109
124
|
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
|
|
110
125
|
_dict['user_annotations'] = None
|
|
111
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
|
+
|
|
112
132
|
# set to None if cserve_version (nullable) is None
|
|
113
133
|
# and model_fields_set contains the field
|
|
114
134
|
if self.cserve_version is None and "cserve_version" in self.model_fields_set:
|
|
115
135
|
_dict['cserve_version'] = None
|
|
116
136
|
|
|
117
|
-
# set to None if initial_replicas (nullable) is None
|
|
118
|
-
# and model_fields_set contains the field
|
|
119
|
-
if self.initial_replicas is None and "initial_replicas" in self.model_fields_set:
|
|
120
|
-
_dict['initial_replicas'] = None
|
|
121
|
-
|
|
122
137
|
# set to None if endpoint_certificate_authority (nullable) is None
|
|
123
138
|
# and model_fields_set contains the field
|
|
124
139
|
if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
|
|
@@ -157,12 +172,14 @@ class GetCServeV3DeploymentResponse(BaseModel):
|
|
|
157
172
|
"created_at": obj.get("created_at"),
|
|
158
173
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
159
174
|
"revision_number": obj.get("revision_number"),
|
|
175
|
+
"chart_revision": obj.get("chart_revision"),
|
|
160
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,
|
|
161
179
|
"recipe": CServeV2Recipe.from_dict(obj["recipe"]) if obj.get("recipe") is not None else None,
|
|
162
180
|
"cserve_version": obj.get("cserve_version"),
|
|
163
181
|
"min_replicas": obj.get("min_replicas"),
|
|
164
182
|
"max_replicas": obj.get("max_replicas"),
|
|
165
|
-
"initial_replicas": obj.get("initial_replicas"),
|
|
166
183
|
"endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
|
|
167
184
|
"endpoint_bearer_token": obj.get("endpoint_bearer_token"),
|
|
168
185
|
"concurrency": obj.get("concurrency"),
|
|
@@ -23,6 +23,7 @@ from typing import Any, ClassVar, Dict, List, Optional
|
|
|
23
23
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
24
24
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
25
25
|
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
|
|
26
|
+
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
26
27
|
from typing import Optional, Set
|
|
27
28
|
from typing_extensions import Self
|
|
28
29
|
|
|
@@ -41,14 +42,17 @@ class GetComputeDeploymentResponse(BaseModel):
|
|
|
41
42
|
created_at: datetime
|
|
42
43
|
hardware_instance_id: StrictInt
|
|
43
44
|
revision_number: StrictInt
|
|
45
|
+
chart_revision: Optional[StrictStr] = None
|
|
44
46
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
47
|
+
priority: Optional[StrictStr] = None
|
|
48
|
+
volume_mounts: Optional[List[VolumeMount]] = None
|
|
45
49
|
exposed_port: StrictInt
|
|
46
50
|
ssh_public_key: Optional[StrictStr] = None
|
|
47
51
|
ssh_password: Optional[StrictStr] = None
|
|
48
52
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
49
53
|
image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None
|
|
50
54
|
enable_logging: Optional[StrictBool] = True
|
|
51
|
-
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "exposed_port", "ssh_public_key", "ssh_password", "env_vars", "image_pull_secret_credentials", "enable_logging"]
|
|
55
|
+
__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", "exposed_port", "ssh_public_key", "ssh_password", "env_vars", "image_pull_secret_credentials", "enable_logging"]
|
|
52
56
|
|
|
53
57
|
model_config = ConfigDict(
|
|
54
58
|
populate_by_name=True,
|
|
@@ -89,6 +93,13 @@ class GetComputeDeploymentResponse(BaseModel):
|
|
|
89
93
|
exclude=excluded_fields,
|
|
90
94
|
exclude_none=True,
|
|
91
95
|
)
|
|
96
|
+
# override the default output from pydantic by calling `to_dict()` of each item in volume_mounts (list)
|
|
97
|
+
_items = []
|
|
98
|
+
if self.volume_mounts:
|
|
99
|
+
for _item_volume_mounts in self.volume_mounts:
|
|
100
|
+
if _item_volume_mounts:
|
|
101
|
+
_items.append(_item_volume_mounts.to_dict())
|
|
102
|
+
_dict['volume_mounts'] = _items
|
|
92
103
|
# override the default output from pydantic by calling `to_dict()` of image_pull_secret_credentials
|
|
93
104
|
if self.image_pull_secret_credentials:
|
|
94
105
|
_dict['image_pull_secret_credentials'] = self.image_pull_secret_credentials.to_dict()
|
|
@@ -97,11 +108,21 @@ class GetComputeDeploymentResponse(BaseModel):
|
|
|
97
108
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
98
109
|
_dict['image_url'] = None
|
|
99
110
|
|
|
111
|
+
# set to None if chart_revision (nullable) is None
|
|
112
|
+
# and model_fields_set contains the field
|
|
113
|
+
if self.chart_revision is None and "chart_revision" in self.model_fields_set:
|
|
114
|
+
_dict['chart_revision'] = None
|
|
115
|
+
|
|
100
116
|
# set to None if user_annotations (nullable) is None
|
|
101
117
|
# and model_fields_set contains the field
|
|
102
118
|
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
|
|
103
119
|
_dict['user_annotations'] = None
|
|
104
120
|
|
|
121
|
+
# set to None if priority (nullable) is None
|
|
122
|
+
# and model_fields_set contains the field
|
|
123
|
+
if self.priority is None and "priority" in self.model_fields_set:
|
|
124
|
+
_dict['priority'] = None
|
|
125
|
+
|
|
105
126
|
# set to None if ssh_public_key (nullable) is None
|
|
106
127
|
# and model_fields_set contains the field
|
|
107
128
|
if self.ssh_public_key is None and "ssh_public_key" in self.model_fields_set:
|
|
@@ -145,7 +166,10 @@ class GetComputeDeploymentResponse(BaseModel):
|
|
|
145
166
|
"created_at": obj.get("created_at"),
|
|
146
167
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
147
168
|
"revision_number": obj.get("revision_number"),
|
|
169
|
+
"chart_revision": obj.get("chart_revision"),
|
|
148
170
|
"user_annotations": obj.get("user_annotations"),
|
|
171
|
+
"priority": obj.get("priority"),
|
|
172
|
+
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
|
|
149
173
|
"exposed_port": obj.get("exposed_port"),
|
|
150
174
|
"ssh_public_key": obj.get("ssh_public_key"),
|
|
151
175
|
"ssh_password": obj.get("ssh_password"),
|
|
@@ -22,6 +22,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
24
24
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
25
|
+
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
25
26
|
from typing import Optional, Set
|
|
26
27
|
from typing_extensions import Self
|
|
27
28
|
|
|
@@ -40,8 +41,11 @@ class GetDeploymentResponse(BaseModel):
|
|
|
40
41
|
created_at: datetime
|
|
41
42
|
hardware_instance_id: StrictInt
|
|
42
43
|
revision_number: StrictInt
|
|
44
|
+
chart_revision: Optional[StrictStr] = None
|
|
43
45
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
44
|
-
|
|
46
|
+
priority: Optional[StrictStr] = None
|
|
47
|
+
volume_mounts: Optional[List[VolumeMount]] = None
|
|
48
|
+
__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"]
|
|
45
49
|
|
|
46
50
|
model_config = ConfigDict(
|
|
47
51
|
populate_by_name=True,
|
|
@@ -82,16 +86,33 @@ class GetDeploymentResponse(BaseModel):
|
|
|
82
86
|
exclude=excluded_fields,
|
|
83
87
|
exclude_none=True,
|
|
84
88
|
)
|
|
89
|
+
# override the default output from pydantic by calling `to_dict()` of each item in volume_mounts (list)
|
|
90
|
+
_items = []
|
|
91
|
+
if self.volume_mounts:
|
|
92
|
+
for _item_volume_mounts in self.volume_mounts:
|
|
93
|
+
if _item_volume_mounts:
|
|
94
|
+
_items.append(_item_volume_mounts.to_dict())
|
|
95
|
+
_dict['volume_mounts'] = _items
|
|
85
96
|
# set to None if image_url (nullable) is None
|
|
86
97
|
# and model_fields_set contains the field
|
|
87
98
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
88
99
|
_dict['image_url'] = None
|
|
89
100
|
|
|
101
|
+
# set to None if chart_revision (nullable) is None
|
|
102
|
+
# and model_fields_set contains the field
|
|
103
|
+
if self.chart_revision is None and "chart_revision" in self.model_fields_set:
|
|
104
|
+
_dict['chart_revision'] = None
|
|
105
|
+
|
|
90
106
|
# set to None if user_annotations (nullable) is None
|
|
91
107
|
# and model_fields_set contains the field
|
|
92
108
|
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
|
|
93
109
|
_dict['user_annotations'] = None
|
|
94
110
|
|
|
111
|
+
# set to None if priority (nullable) is None
|
|
112
|
+
# and model_fields_set contains the field
|
|
113
|
+
if self.priority is None and "priority" in self.model_fields_set:
|
|
114
|
+
_dict['priority'] = None
|
|
115
|
+
|
|
95
116
|
return _dict
|
|
96
117
|
|
|
97
118
|
@classmethod
|
|
@@ -115,7 +136,10 @@ class GetDeploymentResponse(BaseModel):
|
|
|
115
136
|
"created_at": obj.get("created_at"),
|
|
116
137
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
117
138
|
"revision_number": obj.get("revision_number"),
|
|
118
|
-
"
|
|
139
|
+
"chart_revision": obj.get("chart_revision"),
|
|
140
|
+
"user_annotations": obj.get("user_annotations"),
|
|
141
|
+
"priority": obj.get("priority"),
|
|
142
|
+
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None
|
|
119
143
|
})
|
|
120
144
|
return _obj
|
|
121
145
|
|
|
@@ -18,19 +18,21 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
from datetime import datetime
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from platform_api_python_client.models.backend_protocol import BackendProtocol
|
|
24
24
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
25
25
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
26
|
+
from platform_api_python_client.models.dynamo_communications_output import DynamoCommunicationsOutput
|
|
26
27
|
from platform_api_python_client.models.dynamo_serving_mode import DynamoServingMode
|
|
27
28
|
from platform_api_python_client.models.dynamo_worker_pools import DynamoWorkerPools
|
|
29
|
+
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
28
30
|
from typing import Optional, Set
|
|
29
31
|
from typing_extensions import Self
|
|
30
32
|
|
|
31
33
|
class GetDynamoDeploymentResponse(BaseModel):
|
|
32
34
|
"""
|
|
33
|
-
|
|
35
|
+
Dynamo deployment read model. ``worker_pools`` is the authoritative hardware/scaling view for both serving modes. The inherited ``hardware_instance_id`` is the single-hardware projection (worker for aggregated, decode for disaggregated) and the top-level scaling fields mirror ``worker_pools.worker``; both remain for consumers that predate ``worker_pools``.
|
|
34
36
|
""" # noqa: E501
|
|
35
37
|
creator_email: StrictStr
|
|
36
38
|
cluster_id: StrictInt
|
|
@@ -43,13 +45,18 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
43
45
|
created_at: datetime
|
|
44
46
|
hardware_instance_id: StrictInt
|
|
45
47
|
revision_number: StrictInt
|
|
48
|
+
chart_revision: Optional[StrictStr] = None
|
|
46
49
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
50
|
+
priority: Optional[StrictStr] = None
|
|
51
|
+
volume_mounts: Optional[List[VolumeMount]] = None
|
|
47
52
|
serving_mode: Optional[DynamoServingMode] = None
|
|
48
53
|
worker_pools: Optional[DynamoWorkerPools] = None
|
|
54
|
+
communications: Optional[DynamoCommunicationsOutput] = None
|
|
49
55
|
model: StrictStr
|
|
50
56
|
served_model_name: Optional[StrictStr] = None
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
runtime_version: Optional[StrictStr] = None
|
|
58
|
+
min_replicas: StrictInt = Field(description="Deprecated aggregated-only spelling; set this under worker_pools.worker instead. Accepted alongside worker_pools when the values agree.")
|
|
59
|
+
max_replicas: StrictInt = Field(description="Deprecated aggregated-only spelling; set this under worker_pools.worker instead. Accepted alongside worker_pools when the values agree.")
|
|
53
60
|
concurrency: Optional[StrictInt] = None
|
|
54
61
|
cooldown_period: Optional[StrictInt] = None
|
|
55
62
|
extra_args: Optional[StrictStr] = None
|
|
@@ -59,7 +66,7 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
59
66
|
enable_logging: Optional[StrictBool] = True
|
|
60
67
|
enable_node_model_cache: Optional[StrictBool] = False
|
|
61
68
|
backend_protocol: Optional[BackendProtocol] = None
|
|
62
|
-
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "serving_mode", "worker_pools", "model", "served_model_name", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "extra_args", "env_vars", "endpoint_certificate_authority", "endpoint_bearer_token", "enable_logging", "enable_node_model_cache", "backend_protocol"]
|
|
69
|
+
__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", "serving_mode", "worker_pools", "communications", "model", "served_model_name", "runtime_version", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "extra_args", "env_vars", "endpoint_certificate_authority", "endpoint_bearer_token", "enable_logging", "enable_node_model_cache", "backend_protocol"]
|
|
63
70
|
|
|
64
71
|
model_config = ConfigDict(
|
|
65
72
|
populate_by_name=True,
|
|
@@ -100,29 +107,59 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
100
107
|
exclude=excluded_fields,
|
|
101
108
|
exclude_none=True,
|
|
102
109
|
)
|
|
110
|
+
# override the default output from pydantic by calling `to_dict()` of each item in volume_mounts (list)
|
|
111
|
+
_items = []
|
|
112
|
+
if self.volume_mounts:
|
|
113
|
+
for _item_volume_mounts in self.volume_mounts:
|
|
114
|
+
if _item_volume_mounts:
|
|
115
|
+
_items.append(_item_volume_mounts.to_dict())
|
|
116
|
+
_dict['volume_mounts'] = _items
|
|
103
117
|
# override the default output from pydantic by calling `to_dict()` of worker_pools
|
|
104
118
|
if self.worker_pools:
|
|
105
119
|
_dict['worker_pools'] = self.worker_pools.to_dict()
|
|
120
|
+
# override the default output from pydantic by calling `to_dict()` of communications
|
|
121
|
+
if self.communications:
|
|
122
|
+
_dict['communications'] = self.communications.to_dict()
|
|
106
123
|
# set to None if image_url (nullable) is None
|
|
107
124
|
# and model_fields_set contains the field
|
|
108
125
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
109
126
|
_dict['image_url'] = None
|
|
110
127
|
|
|
128
|
+
# set to None if chart_revision (nullable) is None
|
|
129
|
+
# and model_fields_set contains the field
|
|
130
|
+
if self.chart_revision is None and "chart_revision" in self.model_fields_set:
|
|
131
|
+
_dict['chart_revision'] = None
|
|
132
|
+
|
|
111
133
|
# set to None if user_annotations (nullable) is None
|
|
112
134
|
# and model_fields_set contains the field
|
|
113
135
|
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
|
|
114
136
|
_dict['user_annotations'] = None
|
|
115
137
|
|
|
138
|
+
# set to None if priority (nullable) is None
|
|
139
|
+
# and model_fields_set contains the field
|
|
140
|
+
if self.priority is None and "priority" in self.model_fields_set:
|
|
141
|
+
_dict['priority'] = None
|
|
142
|
+
|
|
116
143
|
# set to None if worker_pools (nullable) is None
|
|
117
144
|
# and model_fields_set contains the field
|
|
118
145
|
if self.worker_pools is None and "worker_pools" in self.model_fields_set:
|
|
119
146
|
_dict['worker_pools'] = None
|
|
120
147
|
|
|
148
|
+
# set to None if communications (nullable) is None
|
|
149
|
+
# and model_fields_set contains the field
|
|
150
|
+
if self.communications is None and "communications" in self.model_fields_set:
|
|
151
|
+
_dict['communications'] = None
|
|
152
|
+
|
|
121
153
|
# set to None if served_model_name (nullable) is None
|
|
122
154
|
# and model_fields_set contains the field
|
|
123
155
|
if self.served_model_name is None and "served_model_name" in self.model_fields_set:
|
|
124
156
|
_dict['served_model_name'] = None
|
|
125
157
|
|
|
158
|
+
# set to None if runtime_version (nullable) is None
|
|
159
|
+
# and model_fields_set contains the field
|
|
160
|
+
if self.runtime_version is None and "runtime_version" in self.model_fields_set:
|
|
161
|
+
_dict['runtime_version'] = None
|
|
162
|
+
|
|
126
163
|
# set to None if concurrency (nullable) is None
|
|
127
164
|
# and model_fields_set contains the field
|
|
128
165
|
if self.concurrency is None and "concurrency" in self.model_fields_set:
|
|
@@ -171,11 +208,16 @@ class GetDynamoDeploymentResponse(BaseModel):
|
|
|
171
208
|
"created_at": obj.get("created_at"),
|
|
172
209
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
173
210
|
"revision_number": obj.get("revision_number"),
|
|
211
|
+
"chart_revision": obj.get("chart_revision"),
|
|
174
212
|
"user_annotations": obj.get("user_annotations"),
|
|
213
|
+
"priority": obj.get("priority"),
|
|
214
|
+
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
|
|
175
215
|
"serving_mode": obj.get("serving_mode"),
|
|
176
216
|
"worker_pools": DynamoWorkerPools.from_dict(obj["worker_pools"]) if obj.get("worker_pools") is not None else None,
|
|
217
|
+
"communications": DynamoCommunicationsOutput.from_dict(obj["communications"]) if obj.get("communications") is not None else None,
|
|
177
218
|
"model": obj.get("model"),
|
|
178
219
|
"served_model_name": obj.get("served_model_name"),
|
|
220
|
+
"runtime_version": obj.get("runtime_version"),
|
|
179
221
|
"min_replicas": obj.get("min_replicas"),
|
|
180
222
|
"max_replicas": obj.get("max_replicas"),
|
|
181
223
|
"concurrency": obj.get("concurrency"),
|
|
@@ -22,6 +22,7 @@ from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
23
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
24
24
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
25
|
+
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
25
26
|
from typing import Optional, Set
|
|
26
27
|
from typing_extensions import Self
|
|
27
28
|
|
|
@@ -40,7 +41,10 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
40
41
|
created_at: datetime
|
|
41
42
|
hardware_instance_id: StrictInt
|
|
42
43
|
revision_number: StrictInt
|
|
44
|
+
chart_revision: Optional[StrictStr] = None
|
|
43
45
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
46
|
+
priority: Optional[StrictStr] = None
|
|
47
|
+
volume_mounts: Optional[List[VolumeMount]] = None
|
|
44
48
|
container_port: StrictInt
|
|
45
49
|
min_scale: StrictInt
|
|
46
50
|
max_scale: StrictInt
|
|
@@ -52,7 +56,7 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
52
56
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
53
57
|
command: Optional[List[StrictStr]] = None
|
|
54
58
|
command_args: Optional[List[StrictStr]] = None
|
|
55
|
-
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "container_port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"]
|
|
59
|
+
__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", "container_port", "min_scale", "max_scale", "initial_scale", "concurrency", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args"]
|
|
56
60
|
|
|
57
61
|
model_config = ConfigDict(
|
|
58
62
|
populate_by_name=True,
|
|
@@ -93,16 +97,33 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
93
97
|
exclude=excluded_fields,
|
|
94
98
|
exclude_none=True,
|
|
95
99
|
)
|
|
100
|
+
# override the default output from pydantic by calling `to_dict()` of each item in volume_mounts (list)
|
|
101
|
+
_items = []
|
|
102
|
+
if self.volume_mounts:
|
|
103
|
+
for _item_volume_mounts in self.volume_mounts:
|
|
104
|
+
if _item_volume_mounts:
|
|
105
|
+
_items.append(_item_volume_mounts.to_dict())
|
|
106
|
+
_dict['volume_mounts'] = _items
|
|
96
107
|
# set to None if image_url (nullable) is None
|
|
97
108
|
# and model_fields_set contains the field
|
|
98
109
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
99
110
|
_dict['image_url'] = None
|
|
100
111
|
|
|
112
|
+
# set to None if chart_revision (nullable) is None
|
|
113
|
+
# and model_fields_set contains the field
|
|
114
|
+
if self.chart_revision is None and "chart_revision" in self.model_fields_set:
|
|
115
|
+
_dict['chart_revision'] = None
|
|
116
|
+
|
|
101
117
|
# set to None if user_annotations (nullable) is None
|
|
102
118
|
# and model_fields_set contains the field
|
|
103
119
|
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
|
|
104
120
|
_dict['user_annotations'] = None
|
|
105
121
|
|
|
122
|
+
# set to None if priority (nullable) is None
|
|
123
|
+
# and model_fields_set contains the field
|
|
124
|
+
if self.priority is None and "priority" in self.model_fields_set:
|
|
125
|
+
_dict['priority'] = None
|
|
126
|
+
|
|
106
127
|
# set to None if initial_scale (nullable) is None
|
|
107
128
|
# and model_fields_set contains the field
|
|
108
129
|
if self.initial_scale is None and "initial_scale" in self.model_fields_set:
|
|
@@ -166,7 +187,10 @@ class GetInferenceDeploymentResponse(BaseModel):
|
|
|
166
187
|
"created_at": obj.get("created_at"),
|
|
167
188
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
168
189
|
"revision_number": obj.get("revision_number"),
|
|
190
|
+
"chart_revision": obj.get("chart_revision"),
|
|
169
191
|
"user_annotations": obj.get("user_annotations"),
|
|
192
|
+
"priority": obj.get("priority"),
|
|
193
|
+
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
|
|
170
194
|
"container_port": obj.get("container_port"),
|
|
171
195
|
"min_scale": obj.get("min_scale"),
|
|
172
196
|
"max_scale": obj.get("max_scale"),
|
|
@@ -26,6 +26,7 @@ from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
|
26
26
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
27
27
|
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
|
|
28
28
|
from platform_api_python_client.models.metrics_config import MetricsConfig
|
|
29
|
+
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
29
30
|
from typing import Optional, Set
|
|
30
31
|
from typing_extensions import Self
|
|
31
32
|
|
|
@@ -44,11 +45,13 @@ class GetInferenceV3DeploymentResponse(BaseModel):
|
|
|
44
45
|
created_at: datetime
|
|
45
46
|
hardware_instance_id: StrictInt
|
|
46
47
|
revision_number: StrictInt
|
|
48
|
+
chart_revision: Optional[StrictStr] = None
|
|
47
49
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
50
|
+
priority: Optional[StrictStr] = None
|
|
51
|
+
volume_mounts: Optional[List[VolumeMount]] = None
|
|
48
52
|
container_port: StrictInt
|
|
49
53
|
min_replicas: StrictInt
|
|
50
54
|
max_replicas: StrictInt
|
|
51
|
-
initial_replicas: Optional[StrictInt] = None
|
|
52
55
|
concurrency: Optional[StrictInt] = None
|
|
53
56
|
cooldown_period: Optional[StrictInt] = 1800
|
|
54
57
|
healthcheck: Optional[StrictStr] = None
|
|
@@ -65,7 +68,7 @@ class GetInferenceV3DeploymentResponse(BaseModel):
|
|
|
65
68
|
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.")
|
|
66
69
|
config_file: Optional[ConfigFileMount] = None
|
|
67
70
|
metrics: Optional[MetricsConfig] = None
|
|
68
|
-
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "
|
|
71
|
+
__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", "container_port", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "healthcheck", "endpoint_certificate_authority", "endpoint_bearer_token", "env_vars", "command", "command_args", "original_command", "image_pull_secret_credentials", "backend_protocol", "enable_logging", "enable_node_model_cache", "session_affinity", "config_file", "metrics"]
|
|
69
72
|
|
|
70
73
|
model_config = ConfigDict(
|
|
71
74
|
populate_by_name=True,
|
|
@@ -106,6 +109,13 @@ class GetInferenceV3DeploymentResponse(BaseModel):
|
|
|
106
109
|
exclude=excluded_fields,
|
|
107
110
|
exclude_none=True,
|
|
108
111
|
)
|
|
112
|
+
# override the default output from pydantic by calling `to_dict()` of each item in volume_mounts (list)
|
|
113
|
+
_items = []
|
|
114
|
+
if self.volume_mounts:
|
|
115
|
+
for _item_volume_mounts in self.volume_mounts:
|
|
116
|
+
if _item_volume_mounts:
|
|
117
|
+
_items.append(_item_volume_mounts.to_dict())
|
|
118
|
+
_dict['volume_mounts'] = _items
|
|
109
119
|
# override the default output from pydantic by calling `to_dict()` of image_pull_secret_credentials
|
|
110
120
|
if self.image_pull_secret_credentials:
|
|
111
121
|
_dict['image_pull_secret_credentials'] = self.image_pull_secret_credentials.to_dict()
|
|
@@ -120,15 +130,20 @@ class GetInferenceV3DeploymentResponse(BaseModel):
|
|
|
120
130
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
121
131
|
_dict['image_url'] = None
|
|
122
132
|
|
|
133
|
+
# set to None if chart_revision (nullable) is None
|
|
134
|
+
# and model_fields_set contains the field
|
|
135
|
+
if self.chart_revision is None and "chart_revision" in self.model_fields_set:
|
|
136
|
+
_dict['chart_revision'] = None
|
|
137
|
+
|
|
123
138
|
# set to None if user_annotations (nullable) is None
|
|
124
139
|
# and model_fields_set contains the field
|
|
125
140
|
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
|
|
126
141
|
_dict['user_annotations'] = None
|
|
127
142
|
|
|
128
|
-
# set to None if
|
|
143
|
+
# set to None if priority (nullable) is None
|
|
129
144
|
# and model_fields_set contains the field
|
|
130
|
-
if self.
|
|
131
|
-
_dict['
|
|
145
|
+
if self.priority is None and "priority" in self.model_fields_set:
|
|
146
|
+
_dict['priority'] = None
|
|
132
147
|
|
|
133
148
|
# set to None if concurrency (nullable) is None
|
|
134
149
|
# and model_fields_set contains the field
|
|
@@ -208,11 +223,13 @@ class GetInferenceV3DeploymentResponse(BaseModel):
|
|
|
208
223
|
"created_at": obj.get("created_at"),
|
|
209
224
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
210
225
|
"revision_number": obj.get("revision_number"),
|
|
226
|
+
"chart_revision": obj.get("chart_revision"),
|
|
211
227
|
"user_annotations": obj.get("user_annotations"),
|
|
228
|
+
"priority": obj.get("priority"),
|
|
229
|
+
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
|
|
212
230
|
"container_port": obj.get("container_port"),
|
|
213
231
|
"min_replicas": obj.get("min_replicas"),
|
|
214
232
|
"max_replicas": obj.get("max_replicas"),
|
|
215
|
-
"initial_replicas": obj.get("initial_replicas"),
|
|
216
233
|
"concurrency": obj.get("concurrency"),
|
|
217
234
|
"cooldown_period": obj.get("cooldown_period") if obj.get("cooldown_period") is not None else 1800,
|
|
218
235
|
"healthcheck": obj.get("healthcheck"),
|
|
@@ -24,6 +24,7 @@ from platform_api_python_client.models.config_file_mount import ConfigFileMount
|
|
|
24
24
|
from platform_api_python_client.models.deployment_status import DeploymentStatus
|
|
25
25
|
from platform_api_python_client.models.deployment_type import DeploymentType
|
|
26
26
|
from platform_api_python_client.models.image_pull_secret_credentials import ImagePullSecretCredentials
|
|
27
|
+
from platform_api_python_client.models.volume_mount import VolumeMount
|
|
27
28
|
from typing import Optional, Set
|
|
28
29
|
from typing_extensions import Self
|
|
29
30
|
|
|
@@ -42,7 +43,10 @@ class GetJobDeploymentResponse(BaseModel):
|
|
|
42
43
|
created_at: datetime
|
|
43
44
|
hardware_instance_id: StrictInt
|
|
44
45
|
revision_number: StrictInt
|
|
46
|
+
chart_revision: Optional[StrictStr] = None
|
|
45
47
|
user_annotations: Optional[Dict[str, StrictStr]] = None
|
|
48
|
+
priority: Optional[StrictStr] = None
|
|
49
|
+
volume_mounts: Optional[List[VolumeMount]] = None
|
|
46
50
|
env_vars: Optional[Dict[str, StrictStr]] = None
|
|
47
51
|
command: Optional[List[StrictStr]] = None
|
|
48
52
|
args: Optional[List[StrictStr]] = None
|
|
@@ -54,7 +58,7 @@ class GetJobDeploymentResponse(BaseModel):
|
|
|
54
58
|
image_pull_secret_credentials: Optional[ImagePullSecretCredentials] = None
|
|
55
59
|
enable_logging: Optional[StrictBool] = True
|
|
56
60
|
config_file: Optional[ConfigFileMount] = None
|
|
57
|
-
__properties: ClassVar[List[str]] = ["creator_email", "cluster_id", "id", "name", "endpoint_url", "image_url", "type", "status", "created_at", "hardware_instance_id", "revision_number", "user_annotations", "env_vars", "command", "args", "original_command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "image_pull_secret_credentials", "enable_logging", "config_file"]
|
|
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", "env_vars", "command", "args", "original_command", "completions", "parallelism", "backoff_limit", "active_deadline_seconds", "image_pull_secret_credentials", "enable_logging", "config_file"]
|
|
58
62
|
|
|
59
63
|
model_config = ConfigDict(
|
|
60
64
|
populate_by_name=True,
|
|
@@ -95,6 +99,13 @@ class GetJobDeploymentResponse(BaseModel):
|
|
|
95
99
|
exclude=excluded_fields,
|
|
96
100
|
exclude_none=True,
|
|
97
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
|
|
98
109
|
# override the default output from pydantic by calling `to_dict()` of image_pull_secret_credentials
|
|
99
110
|
if self.image_pull_secret_credentials:
|
|
100
111
|
_dict['image_pull_secret_credentials'] = self.image_pull_secret_credentials.to_dict()
|
|
@@ -106,11 +117,21 @@ class GetJobDeploymentResponse(BaseModel):
|
|
|
106
117
|
if self.image_url is None and "image_url" in self.model_fields_set:
|
|
107
118
|
_dict['image_url'] = None
|
|
108
119
|
|
|
120
|
+
# set to None if chart_revision (nullable) is None
|
|
121
|
+
# and model_fields_set contains the field
|
|
122
|
+
if self.chart_revision is None and "chart_revision" in self.model_fields_set:
|
|
123
|
+
_dict['chart_revision'] = None
|
|
124
|
+
|
|
109
125
|
# set to None if user_annotations (nullable) is None
|
|
110
126
|
# and model_fields_set contains the field
|
|
111
127
|
if self.user_annotations is None and "user_annotations" in self.model_fields_set:
|
|
112
128
|
_dict['user_annotations'] = None
|
|
113
129
|
|
|
130
|
+
# set to None if priority (nullable) is None
|
|
131
|
+
# and model_fields_set contains the field
|
|
132
|
+
if self.priority is None and "priority" in self.model_fields_set:
|
|
133
|
+
_dict['priority'] = None
|
|
134
|
+
|
|
114
135
|
# set to None if env_vars (nullable) is None
|
|
115
136
|
# and model_fields_set contains the field
|
|
116
137
|
if self.env_vars is None and "env_vars" in self.model_fields_set:
|
|
@@ -169,7 +190,10 @@ class GetJobDeploymentResponse(BaseModel):
|
|
|
169
190
|
"created_at": obj.get("created_at"),
|
|
170
191
|
"hardware_instance_id": obj.get("hardware_instance_id"),
|
|
171
192
|
"revision_number": obj.get("revision_number"),
|
|
193
|
+
"chart_revision": obj.get("chart_revision"),
|
|
172
194
|
"user_annotations": obj.get("user_annotations"),
|
|
195
|
+
"priority": obj.get("priority"),
|
|
196
|
+
"volume_mounts": [VolumeMount.from_dict(_item) for _item in obj["volume_mounts"]] if obj.get("volume_mounts") is not None else None,
|
|
173
197
|
"env_vars": obj.get("env_vars"),
|
|
174
198
|
"command": obj.get("command"),
|
|
175
199
|
"args": obj.get("args"),
|
|
@@ -43,9 +43,7 @@ class GetObjectVolumeResponse(BaseModel):
|
|
|
43
43
|
region: StrictStr
|
|
44
44
|
prefix: Optional[StrictStr] = None
|
|
45
45
|
read_only: StrictBool
|
|
46
|
-
|
|
47
|
-
mount_options: Optional[List[StrictStr]] = None
|
|
48
|
-
__properties: ClassVar[List[str]] = ["id", "name", "cluster_id", "backend", "access_mode", "status", "pvc_name", "created_at", "provider", "bucket", "region", "prefix", "read_only", "volume_attributes", "mount_options"]
|
|
46
|
+
__properties: ClassVar[List[str]] = ["id", "name", "cluster_id", "backend", "access_mode", "status", "pvc_name", "created_at", "provider", "bucket", "region", "prefix", "read_only"]
|
|
49
47
|
|
|
50
48
|
@field_validator('backend')
|
|
51
49
|
def backend_validate_enum(cls, value):
|
|
@@ -98,16 +96,6 @@ class GetObjectVolumeResponse(BaseModel):
|
|
|
98
96
|
if self.prefix is None and "prefix" in self.model_fields_set:
|
|
99
97
|
_dict['prefix'] = None
|
|
100
98
|
|
|
101
|
-
# set to None if volume_attributes (nullable) is None
|
|
102
|
-
# and model_fields_set contains the field
|
|
103
|
-
if self.volume_attributes is None and "volume_attributes" in self.model_fields_set:
|
|
104
|
-
_dict['volume_attributes'] = None
|
|
105
|
-
|
|
106
|
-
# set to None if mount_options (nullable) is None
|
|
107
|
-
# and model_fields_set contains the field
|
|
108
|
-
if self.mount_options is None and "mount_options" in self.model_fields_set:
|
|
109
|
-
_dict['mount_options'] = None
|
|
110
|
-
|
|
111
99
|
return _dict
|
|
112
100
|
|
|
113
101
|
@classmethod
|
|
@@ -132,9 +120,7 @@ class GetObjectVolumeResponse(BaseModel):
|
|
|
132
120
|
"bucket": obj.get("bucket"),
|
|
133
121
|
"region": obj.get("region"),
|
|
134
122
|
"prefix": obj.get("prefix"),
|
|
135
|
-
"read_only": obj.get("read_only")
|
|
136
|
-
"volume_attributes": obj.get("volume_attributes"),
|
|
137
|
-
"mount_options": obj.get("mount_options")
|
|
123
|
+
"read_only": obj.get("read_only")
|
|
138
124
|
})
|
|
139
125
|
return _obj
|
|
140
126
|
|