platform-api-python-client 4.20.0__py3-none-any.whl → 4.23.1__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.
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'OpenAPI-Generator/4.20.0/python'
93
+ self.user_agent = 'OpenAPI-Generator/4.23.1/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
@@ -392,7 +392,7 @@ class Configuration:
392
392
  "OS: {env}\n"\
393
393
  "Python Version: {pyversion}\n"\
394
394
  "Version of the API: 0.1.0\n"\
395
- "SDK Package Version: 4.20.0".\
395
+ "SDK Package Version: 4.23.1".\
396
396
  format(env=sys.platform, pyversion=sys.version)
397
397
 
398
398
  def get_host_settings(self):
@@ -34,6 +34,8 @@ from platform_api_python_client.models.create_c_serve_v3_deployment_request impo
34
34
  from platform_api_python_client.models.create_c_serve_v3_deployment_response import CreateCServeV3DeploymentResponse
35
35
  from platform_api_python_client.models.create_compute_deployment_request import CreateComputeDeploymentRequest
36
36
  from platform_api_python_client.models.create_compute_deployment_response import CreateComputeDeploymentResponse
37
+ from platform_api_python_client.models.create_dynamo_deployment_request import CreateDynamoDeploymentRequest
38
+ from platform_api_python_client.models.create_dynamo_deployment_response import CreateDynamoDeploymentResponse
37
39
  from platform_api_python_client.models.create_hardware_instance_request import CreateHardwareInstanceRequest
38
40
  from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse
39
41
  from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest
@@ -47,6 +49,7 @@ from platform_api_python_client.models.create_service_account_response import Cr
47
49
  from platform_api_python_client.models.create_volume_request import CreateVolumeRequest
48
50
  from platform_api_python_client.models.credits_response import CreditsResponse
49
51
  from platform_api_python_client.models.daily_bill_response import DailyBillResponse
52
+ from platform_api_python_client.models.deployment_component_type import DeploymentComponentType
50
53
  from platform_api_python_client.models.deployment_response import DeploymentResponse
51
54
  from platform_api_python_client.models.deployment_status import DeploymentStatus
52
55
  from platform_api_python_client.models.deployment_status_request import DeploymentStatusRequest
@@ -68,6 +71,7 @@ from platform_api_python_client.models.get_deployment_log_response import GetDep
68
71
  from platform_api_python_client.models.get_deployment_response import GetDeploymentResponse
69
72
  from platform_api_python_client.models.get_deployment_revision_response import GetDeploymentRevisionResponse
70
73
  from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse
74
+ from platform_api_python_client.models.get_dynamo_deployment_response import GetDynamoDeploymentResponse
71
75
  from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
72
76
  from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
73
77
  from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse
@@ -125,4 +129,6 @@ from platform_api_python_client.models.validation_error import ValidationError
125
129
  from platform_api_python_client.models.validation_error_loc_inner import ValidationErrorLocInner
126
130
  from platform_api_python_client.models.vault_scope import VaultScope
127
131
  from platform_api_python_client.models.volume_access_mode import VolumeAccessMode
132
+ from platform_api_python_client.models.volume_backend import VolumeBackend
128
133
  from platform_api_python_client.models.volume_status import VolumeStatus
134
+ from platform_api_python_client.models.volume_status_response import VolumeStatusResponse
@@ -31,7 +31,8 @@ class CreateBlockVolumeRequest(BaseModel):
31
31
  cluster_id: StrictInt
32
32
  backend: StrictStr
33
33
  size_gb: Optional[Annotated[int, Field(le=65536, strict=True, ge=1)]] = 100
34
- __properties: ClassVar[List[str]] = ["name", "cluster_id", "backend", "size_gb"]
34
+ storage_class: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=253)]] = None
35
+ __properties: ClassVar[List[str]] = ["name", "cluster_id", "backend", "size_gb", "storage_class"]
35
36
 
36
37
  @field_validator('name')
37
38
  def name_validate_regular_expression(cls, value):
@@ -47,6 +48,16 @@ class CreateBlockVolumeRequest(BaseModel):
47
48
  raise ValueError("must be one of enum values ('block')")
48
49
  return value
49
50
 
51
+ @field_validator('storage_class')
52
+ def storage_class_validate_regular_expression(cls, value):
53
+ """Validates the regular expression"""
54
+ if value is None:
55
+ return value
56
+
57
+ if not re.match(r"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$", value):
58
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/")
59
+ return value
60
+
50
61
  model_config = ConfigDict(
51
62
  populate_by_name=True,
52
63
  validate_assignment=True,
@@ -86,6 +97,11 @@ class CreateBlockVolumeRequest(BaseModel):
86
97
  exclude=excluded_fields,
87
98
  exclude_none=True,
88
99
  )
100
+ # set to None if storage_class (nullable) is None
101
+ # and model_fields_set contains the field
102
+ if self.storage_class is None and "storage_class" in self.model_fields_set:
103
+ _dict['storage_class'] = None
104
+
89
105
  return _dict
90
106
 
91
107
  @classmethod
@@ -101,7 +117,8 @@ class CreateBlockVolumeRequest(BaseModel):
101
117
  "name": obj.get("name"),
102
118
  "cluster_id": obj.get("cluster_id"),
103
119
  "backend": obj.get("backend"),
104
- "size_gb": obj.get("size_gb") if obj.get("size_gb") is not None else 100
120
+ "size_gb": obj.get("size_gb") if obj.get("size_gb") is not None else 100,
121
+ "storage_class": obj.get("storage_class")
105
122
  })
106
123
  return _obj
107
124
 
@@ -0,0 +1,186 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing_extensions import Annotated
23
+ from platform_api_python_client.models.backend_protocol import BackendProtocol
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class CreateDynamoDeploymentRequest(BaseModel):
28
+ """
29
+ Create a NVIDIA Dynamo (DynamoGraphDeployment) inference deployment. Aggregated + KV-router pattern with a vLLM backend. The Frontend pod enables KV-aware routing across worker replicas.
30
+ """ # noqa: E501
31
+ max_surge: Optional[StrictInt] = None
32
+ max_unavailable: Optional[StrictInt] = None
33
+ name: Annotated[str, Field(min_length=1, strict=True, max_length=20)]
34
+ cluster_id: StrictInt
35
+ hardware_instance_id: StrictInt
36
+ user_annotations: Optional[Dict[str, StrictStr]] = None
37
+ chart_revision: Optional[StrictStr] = None
38
+ model: StrictStr
39
+ served_model_name: Optional[StrictStr] = None
40
+ min_replicas: Optional[StrictInt] = 1
41
+ max_replicas: Optional[StrictInt] = 1
42
+ concurrency: Optional[StrictInt] = None
43
+ cooldown_period: Optional[StrictInt] = None
44
+ extra_args: Optional[StrictStr] = None
45
+ hf_token: Optional[StrictStr] = None
46
+ env_vars: Optional[Dict[str, StrictStr]] = None
47
+ endpoint_bearer_token: Optional[StrictStr] = None
48
+ endpoint_certificate_authority: Optional[StrictStr] = None
49
+ enable_logging: Optional[StrictBool] = True
50
+ enable_node_model_cache: Optional[StrictBool] = False
51
+ backend_protocol: Optional[BackendProtocol] = None
52
+ __properties: ClassVar[List[str]] = ["max_surge", "max_unavailable", "name", "cluster_id", "hardware_instance_id", "user_annotations", "chart_revision", "model", "served_model_name", "min_replicas", "max_replicas", "concurrency", "cooldown_period", "extra_args", "hf_token", "env_vars", "endpoint_bearer_token", "endpoint_certificate_authority", "enable_logging", "enable_node_model_cache", "backend_protocol"]
53
+
54
+ @field_validator('name')
55
+ def name_validate_regular_expression(cls, value):
56
+ """Validates the regular expression"""
57
+ if not re.match(r"^[a-z][a-z0-9-]*$", value):
58
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9-]*$/")
59
+ return value
60
+
61
+ model_config = ConfigDict(
62
+ populate_by_name=True,
63
+ validate_assignment=True,
64
+ protected_namespaces=(),
65
+ )
66
+
67
+
68
+ def to_str(self) -> str:
69
+ """Returns the string representation of the model using alias"""
70
+ return pprint.pformat(self.model_dump(by_alias=True))
71
+
72
+ def to_json(self) -> str:
73
+ """Returns the JSON representation of the model using alias"""
74
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
75
+ return json.dumps(self.to_dict())
76
+
77
+ @classmethod
78
+ def from_json(cls, json_str: str) -> Optional[Self]:
79
+ """Create an instance of CreateDynamoDeploymentRequest from a JSON string"""
80
+ return cls.from_dict(json.loads(json_str))
81
+
82
+ def to_dict(self) -> Dict[str, Any]:
83
+ """Return the dictionary representation of the model using alias.
84
+
85
+ This has the following differences from calling pydantic's
86
+ `self.model_dump(by_alias=True)`:
87
+
88
+ * `None` is only added to the output dict for nullable fields that
89
+ were set at model initialization. Other fields with value `None`
90
+ are ignored.
91
+ """
92
+ excluded_fields: Set[str] = set([
93
+ ])
94
+
95
+ _dict = self.model_dump(
96
+ by_alias=True,
97
+ exclude=excluded_fields,
98
+ exclude_none=True,
99
+ )
100
+ # set to None if max_surge (nullable) is None
101
+ # and model_fields_set contains the field
102
+ if self.max_surge is None and "max_surge" in self.model_fields_set:
103
+ _dict['max_surge'] = None
104
+
105
+ # set to None if max_unavailable (nullable) is None
106
+ # and model_fields_set contains the field
107
+ if self.max_unavailable is None and "max_unavailable" in self.model_fields_set:
108
+ _dict['max_unavailable'] = None
109
+
110
+ # set to None if user_annotations (nullable) is None
111
+ # and model_fields_set contains the field
112
+ if self.user_annotations is None and "user_annotations" in self.model_fields_set:
113
+ _dict['user_annotations'] = None
114
+
115
+ # set to None if served_model_name (nullable) is None
116
+ # and model_fields_set contains the field
117
+ if self.served_model_name is None and "served_model_name" in self.model_fields_set:
118
+ _dict['served_model_name'] = None
119
+
120
+ # set to None if concurrency (nullable) is None
121
+ # and model_fields_set contains the field
122
+ if self.concurrency is None and "concurrency" in self.model_fields_set:
123
+ _dict['concurrency'] = None
124
+
125
+ # set to None if cooldown_period (nullable) is None
126
+ # and model_fields_set contains the field
127
+ if self.cooldown_period is None and "cooldown_period" in self.model_fields_set:
128
+ _dict['cooldown_period'] = None
129
+
130
+ # set to None if extra_args (nullable) is None
131
+ # and model_fields_set contains the field
132
+ if self.extra_args is None and "extra_args" in self.model_fields_set:
133
+ _dict['extra_args'] = None
134
+
135
+ # set to None if hf_token (nullable) is None
136
+ # and model_fields_set contains the field
137
+ if self.hf_token is None and "hf_token" in self.model_fields_set:
138
+ _dict['hf_token'] = None
139
+
140
+ # set to None if endpoint_bearer_token (nullable) is None
141
+ # and model_fields_set contains the field
142
+ if self.endpoint_bearer_token is None and "endpoint_bearer_token" in self.model_fields_set:
143
+ _dict['endpoint_bearer_token'] = None
144
+
145
+ # set to None if endpoint_certificate_authority (nullable) is None
146
+ # and model_fields_set contains the field
147
+ if self.endpoint_certificate_authority is None and "endpoint_certificate_authority" in self.model_fields_set:
148
+ _dict['endpoint_certificate_authority'] = None
149
+
150
+ return _dict
151
+
152
+ @classmethod
153
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
154
+ """Create an instance of CreateDynamoDeploymentRequest from a dict"""
155
+ if obj is None:
156
+ return None
157
+
158
+ if not isinstance(obj, dict):
159
+ return cls.model_validate(obj)
160
+
161
+ _obj = cls.model_validate({
162
+ "max_surge": obj.get("max_surge"),
163
+ "max_unavailable": obj.get("max_unavailable"),
164
+ "name": obj.get("name"),
165
+ "cluster_id": obj.get("cluster_id"),
166
+ "hardware_instance_id": obj.get("hardware_instance_id"),
167
+ "user_annotations": obj.get("user_annotations"),
168
+ "chart_revision": obj.get("chart_revision"),
169
+ "model": obj.get("model"),
170
+ "served_model_name": obj.get("served_model_name"),
171
+ "min_replicas": obj.get("min_replicas") if obj.get("min_replicas") is not None else 1,
172
+ "max_replicas": obj.get("max_replicas") if obj.get("max_replicas") is not None else 1,
173
+ "concurrency": obj.get("concurrency"),
174
+ "cooldown_period": obj.get("cooldown_period"),
175
+ "extra_args": obj.get("extra_args"),
176
+ "hf_token": obj.get("hf_token"),
177
+ "env_vars": obj.get("env_vars"),
178
+ "endpoint_bearer_token": obj.get("endpoint_bearer_token"),
179
+ "endpoint_certificate_authority": obj.get("endpoint_certificate_authority"),
180
+ "enable_logging": obj.get("enable_logging") if obj.get("enable_logging") is not None else True,
181
+ "enable_node_model_cache": obj.get("enable_node_model_cache") if obj.get("enable_node_model_cache") is not None else False,
182
+ "backend_protocol": obj.get("backend_protocol")
183
+ })
184
+ return _obj
185
+
186
+
@@ -0,0 +1,92 @@
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
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class CreateDynamoDeploymentResponse(BaseModel):
27
+ """
28
+ CreateDynamoDeploymentResponse
29
+ """ # noqa: E501
30
+ id: StrictInt
31
+ created_at: datetime
32
+ endpoint_url: StrictStr
33
+ __properties: ClassVar[List[str]] = ["id", "created_at", "endpoint_url"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of CreateDynamoDeploymentResponse from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of CreateDynamoDeploymentResponse from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate({
86
+ "id": obj.get("id"),
87
+ "created_at": obj.get("created_at"),
88
+ "endpoint_url": obj.get("endpoint_url")
89
+ })
90
+ return _obj
91
+
92
+
@@ -0,0 +1,40 @@
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 json
17
+ from enum import Enum
18
+ from typing_extensions import Self
19
+
20
+
21
+ class DeploymentComponentType(str, Enum):
22
+ """
23
+ DeploymentComponentType
24
+ """
25
+
26
+ """
27
+ allowed enum values
28
+ """
29
+ USER_MINUS_CONTAINER = 'user-container'
30
+ FRONTEND = 'frontend'
31
+ WORKER = 'worker'
32
+ PREFILL = 'prefill'
33
+ DECODE = 'decode'
34
+ PLANNER = 'planner'
35
+ EPP = 'epp'
36
+
37
+ @classmethod
38
+ def from_json(cls, json_str: str) -> Self:
39
+ """Create an instance of DeploymentComponentType from a JSON string"""
40
+ return cls(json.loads(json_str))
@@ -20,27 +20,30 @@ import re # noqa: F401
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
21
21
  from typing import Optional
22
22
  from platform_api_python_client.models.get_c_serve_v3_deployment_response import GetCServeV3DeploymentResponse
23
+ from platform_api_python_client.models.get_dynamo_deployment_response import GetDynamoDeploymentResponse
23
24
  from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
24
25
  from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict
25
26
  from typing_extensions import Literal, Self
26
27
  from pydantic import Field
27
28
 
28
- DEPLOYMENTRESPONSE_ANY_OF_SCHEMAS = ["GetCServeV3DeploymentResponse", "GetInferenceV3DeploymentResponse"]
29
+ DEPLOYMENTRESPONSE_ANY_OF_SCHEMAS = ["GetCServeV3DeploymentResponse", "GetDynamoDeploymentResponse", "GetInferenceV3DeploymentResponse"]
29
30
 
30
31
  class DeploymentResponse(BaseModel):
31
32
  """
32
33
  DeploymentResponse
33
34
  """
34
35
 
36
+ # data type: GetDynamoDeploymentResponse
37
+ anyof_schema_1_validator: Optional[GetDynamoDeploymentResponse] = None
35
38
  # data type: GetCServeV3DeploymentResponse
36
- anyof_schema_1_validator: Optional[GetCServeV3DeploymentResponse] = None
39
+ anyof_schema_2_validator: Optional[GetCServeV3DeploymentResponse] = None
37
40
  # data type: GetInferenceV3DeploymentResponse
38
- anyof_schema_2_validator: Optional[GetInferenceV3DeploymentResponse] = None
41
+ anyof_schema_3_validator: Optional[GetInferenceV3DeploymentResponse] = None
39
42
  if TYPE_CHECKING:
40
- actual_instance: Optional[Union[GetCServeV3DeploymentResponse, GetInferenceV3DeploymentResponse]] = None
43
+ actual_instance: Optional[Union[GetCServeV3DeploymentResponse, GetDynamoDeploymentResponse, GetInferenceV3DeploymentResponse]] = None
41
44
  else:
42
45
  actual_instance: Any = None
43
- any_of_schemas: Set[str] = { "GetCServeV3DeploymentResponse", "GetInferenceV3DeploymentResponse" }
46
+ any_of_schemas: Set[str] = { "GetCServeV3DeploymentResponse", "GetDynamoDeploymentResponse", "GetInferenceV3DeploymentResponse" }
44
47
 
45
48
  model_config = {
46
49
  "validate_assignment": True,
@@ -61,6 +64,12 @@ class DeploymentResponse(BaseModel):
61
64
  def actual_instance_must_validate_anyof(cls, v):
62
65
  instance = DeploymentResponse.model_construct()
63
66
  error_messages = []
67
+ # validate data type: GetDynamoDeploymentResponse
68
+ if not isinstance(v, GetDynamoDeploymentResponse):
69
+ error_messages.append(f"Error! Input type `{type(v)}` is not `GetDynamoDeploymentResponse`")
70
+ else:
71
+ return v
72
+
64
73
  # validate data type: GetCServeV3DeploymentResponse
65
74
  if not isinstance(v, GetCServeV3DeploymentResponse):
66
75
  error_messages.append(f"Error! Input type `{type(v)}` is not `GetCServeV3DeploymentResponse`")
@@ -75,7 +84,7 @@ class DeploymentResponse(BaseModel):
75
84
 
76
85
  if error_messages:
77
86
  # no match
78
- raise ValueError("No match found when setting the actual_instance in DeploymentResponse with anyOf schemas: GetCServeV3DeploymentResponse, GetInferenceV3DeploymentResponse. Details: " + ", ".join(error_messages))
87
+ raise ValueError("No match found when setting the actual_instance in DeploymentResponse with anyOf schemas: GetCServeV3DeploymentResponse, GetDynamoDeploymentResponse, GetInferenceV3DeploymentResponse. Details: " + ", ".join(error_messages))
79
88
  else:
80
89
  return v
81
90
 
@@ -88,13 +97,19 @@ class DeploymentResponse(BaseModel):
88
97
  """Returns the object represented by the json string"""
89
98
  instance = cls.model_construct()
90
99
  error_messages = []
91
- # anyof_schema_1_validator: Optional[GetCServeV3DeploymentResponse] = None
100
+ # anyof_schema_1_validator: Optional[GetDynamoDeploymentResponse] = None
101
+ try:
102
+ instance.actual_instance = GetDynamoDeploymentResponse.from_json(json_str)
103
+ return instance
104
+ except (ValidationError, ValueError) as e:
105
+ error_messages.append(str(e))
106
+ # anyof_schema_2_validator: Optional[GetCServeV3DeploymentResponse] = None
92
107
  try:
93
108
  instance.actual_instance = GetCServeV3DeploymentResponse.from_json(json_str)
94
109
  return instance
95
110
  except (ValidationError, ValueError) as e:
96
111
  error_messages.append(str(e))
97
- # anyof_schema_2_validator: Optional[GetInferenceV3DeploymentResponse] = None
112
+ # anyof_schema_3_validator: Optional[GetInferenceV3DeploymentResponse] = None
98
113
  try:
99
114
  instance.actual_instance = GetInferenceV3DeploymentResponse.from_json(json_str)
100
115
  return instance
@@ -103,7 +118,7 @@ class DeploymentResponse(BaseModel):
103
118
 
104
119
  if error_messages:
105
120
  # no match
106
- raise ValueError("No match found when deserializing the JSON string into DeploymentResponse with anyOf schemas: GetCServeV3DeploymentResponse, GetInferenceV3DeploymentResponse. Details: " + ", ".join(error_messages))
121
+ raise ValueError("No match found when deserializing the JSON string into DeploymentResponse with anyOf schemas: GetCServeV3DeploymentResponse, GetDynamoDeploymentResponse, GetInferenceV3DeploymentResponse. Details: " + ", ".join(error_messages))
107
122
  else:
108
123
  return instance
109
124
 
@@ -117,7 +132,7 @@ class DeploymentResponse(BaseModel):
117
132
  else:
118
133
  return json.dumps(self.actual_instance)
119
134
 
120
- def to_dict(self) -> Optional[Union[Dict[str, Any], GetCServeV3DeploymentResponse, GetInferenceV3DeploymentResponse]]:
135
+ def to_dict(self) -> Optional[Union[Dict[str, Any], GetCServeV3DeploymentResponse, GetDynamoDeploymentResponse, GetInferenceV3DeploymentResponse]]:
121
136
  """Returns the dict representation of the actual instance"""
122
137
  if self.actual_instance is None:
123
138
  return None
@@ -39,6 +39,7 @@ class DeploymentType(str, Enum):
39
39
  DEPLOYMENT = 'deployment'
40
40
  RAG = 'rag'
41
41
  JOB = 'job'
42
+ DYNAMO = 'dynamo'
42
43
 
43
44
  @classmethod
44
45
  def from_json(cls, json_str: str) -> Self:
@@ -38,7 +38,8 @@ class GetBlockVolumeResponse(BaseModel):
38
38
  pvc_name: StrictStr
39
39
  created_at: datetime
40
40
  size_gb: StrictInt
41
- __properties: ClassVar[List[str]] = ["id", "name", "cluster_id", "backend", "access_mode", "status", "pvc_name", "created_at", "size_gb"]
41
+ storage_class: StrictStr
42
+ __properties: ClassVar[List[str]] = ["id", "name", "cluster_id", "backend", "access_mode", "status", "pvc_name", "created_at", "size_gb", "storage_class"]
42
43
 
43
44
  @field_validator('backend')
44
45
  def backend_validate_enum(cls, value):
@@ -106,7 +107,8 @@ class GetBlockVolumeResponse(BaseModel):
106
107
  "status": obj.get("status"),
107
108
  "pvc_name": obj.get("pvc_name"),
108
109
  "created_at": obj.get("created_at"),
109
- "size_gb": obj.get("size_gb")
110
+ "size_gb": obj.get("size_gb"),
111
+ "storage_class": obj.get("storage_class")
110
112
  })
111
113
  return _obj
112
114