platform-api-python-client 4.23.1__py3-none-any.whl → 4.25.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 (30) hide show
  1. platform_api_python_client/__init__.py +12 -3
  2. platform_api_python_client/api/external_api.py +2259 -798
  3. platform_api_python_client/api_client.py +1 -1
  4. platform_api_python_client/configuration.py +1 -1
  5. platform_api_python_client/models/__init__.py +11 -2
  6. platform_api_python_client/models/create_dynamo_deployment_request.py +22 -3
  7. platform_api_python_client/models/{create_block_volume_request.py → create_filesystem_volume_request.py} +6 -6
  8. platform_api_python_client/models/create_volume_request.py +16 -16
  9. platform_api_python_client/models/delete_user_vault_item_request.py +108 -0
  10. platform_api_python_client/models/deployment_component_type.py +2 -0
  11. platform_api_python_client/models/deployment_log_event_v4.py +91 -0
  12. platform_api_python_client/models/deployment_response.py +21 -6
  13. platform_api_python_client/models/dynamo_serving_mode.py +37 -0
  14. platform_api_python_client/models/dynamo_worker_pool_config.py +103 -0
  15. platform_api_python_client/models/dynamo_worker_pools.py +109 -0
  16. platform_api_python_client/models/get_cluster_response.py +5 -3
  17. platform_api_python_client/models/get_deployment_log_v4_response.py +95 -0
  18. platform_api_python_client/models/get_deployment_pods_response.py +87 -0
  19. platform_api_python_client/models/get_dynamo_deployment_response.py +15 -1
  20. platform_api_python_client/models/{get_block_volume_response.py → get_filesystem_volume_response.py} +6 -6
  21. platform_api_python_client/models/get_volume_response.py +16 -16
  22. platform_api_python_client/models/update_cluster_metadata_request.py +87 -0
  23. platform_api_python_client/models/upsert_user_vault_item_request.py +103 -0
  24. platform_api_python_client/models/user_vault_item.py +6 -3
  25. platform_api_python_client/models/volume_access_mode.py +0 -1
  26. platform_api_python_client/models/volume_backend.py +1 -1
  27. {platform_api_python_client-4.23.1.dist-info → platform_api_python_client-4.25.0.dist-info}/METADATA +1 -1
  28. {platform_api_python_client-4.23.1.dist-info → platform_api_python_client-4.25.0.dist-info}/RECORD +30 -21
  29. {platform_api_python_client-4.23.1.dist-info → platform_api_python_client-4.25.0.dist-info}/WHEEL +1 -1
  30. {platform_api_python_client-4.23.1.dist-info → platform_api_python_client-4.25.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,103 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictInt
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing_extensions import Annotated
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class DynamoWorkerPoolConfig(BaseModel):
27
+ """
28
+ DynamoWorkerPoolConfig
29
+ """ # noqa: E501
30
+ hardware_instance_id: StrictInt
31
+ replicas: Annotated[int, Field(strict=True, ge=1)]
32
+ additional_properties: Dict[str, Any] = {}
33
+ __properties: ClassVar[List[str]] = ["hardware_instance_id", "replicas"]
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 DynamoWorkerPoolConfig 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
+ * Fields in `self.additional_properties` are added to the output dict.
66
+ """
67
+ excluded_fields: Set[str] = set([
68
+ "additional_properties",
69
+ ])
70
+
71
+ _dict = self.model_dump(
72
+ by_alias=True,
73
+ exclude=excluded_fields,
74
+ exclude_none=True,
75
+ )
76
+ # puts key-value pairs in additional_properties in the top level
77
+ if self.additional_properties is not None:
78
+ for _key, _value in self.additional_properties.items():
79
+ _dict[_key] = _value
80
+
81
+ return _dict
82
+
83
+ @classmethod
84
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
85
+ """Create an instance of DynamoWorkerPoolConfig from a dict"""
86
+ if obj is None:
87
+ return None
88
+
89
+ if not isinstance(obj, dict):
90
+ return cls.model_validate(obj)
91
+
92
+ _obj = cls.model_validate({
93
+ "hardware_instance_id": obj.get("hardware_instance_id"),
94
+ "replicas": obj.get("replicas")
95
+ })
96
+ # store additional fields in additional_properties
97
+ for _key in obj.keys():
98
+ if _key not in cls.__properties:
99
+ _obj.additional_properties[_key] = obj.get(_key)
100
+
101
+ return _obj
102
+
103
+
@@ -0,0 +1,109 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Platform External API
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 0.1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict
21
+ from typing import Any, ClassVar, Dict, List
22
+ from platform_api_python_client.models.dynamo_worker_pool_config import DynamoWorkerPoolConfig
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class DynamoWorkerPools(BaseModel):
27
+ """
28
+ DynamoWorkerPools
29
+ """ # noqa: E501
30
+ prefill: DynamoWorkerPoolConfig
31
+ decode: DynamoWorkerPoolConfig
32
+ additional_properties: Dict[str, Any] = {}
33
+ __properties: ClassVar[List[str]] = ["prefill", "decode"]
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 DynamoWorkerPools 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
+ * Fields in `self.additional_properties` are added to the output dict.
66
+ """
67
+ excluded_fields: Set[str] = set([
68
+ "additional_properties",
69
+ ])
70
+
71
+ _dict = self.model_dump(
72
+ by_alias=True,
73
+ exclude=excluded_fields,
74
+ exclude_none=True,
75
+ )
76
+ # override the default output from pydantic by calling `to_dict()` of prefill
77
+ if self.prefill:
78
+ _dict['prefill'] = self.prefill.to_dict()
79
+ # override the default output from pydantic by calling `to_dict()` of decode
80
+ if self.decode:
81
+ _dict['decode'] = self.decode.to_dict()
82
+ # puts key-value pairs in additional_properties in the top level
83
+ if self.additional_properties is not None:
84
+ for _key, _value in self.additional_properties.items():
85
+ _dict[_key] = _value
86
+
87
+ return _dict
88
+
89
+ @classmethod
90
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
91
+ """Create an instance of DynamoWorkerPools from a dict"""
92
+ if obj is None:
93
+ return None
94
+
95
+ if not isinstance(obj, dict):
96
+ return cls.model_validate(obj)
97
+
98
+ _obj = cls.model_validate({
99
+ "prefill": DynamoWorkerPoolConfig.from_dict(obj["prefill"]) if obj.get("prefill") is not None else None,
100
+ "decode": DynamoWorkerPoolConfig.from_dict(obj["decode"]) if obj.get("decode") is not None else None
101
+ })
102
+ # store additional fields in additional_properties
103
+ for _key in obj.keys():
104
+ if _key not in cls.__properties:
105
+ _obj.additional_properties[_key] = obj.get(_key)
106
+
107
+ return _obj
108
+
109
+
@@ -17,7 +17,7 @@ import pprint
17
17
  import re # noqa: F401
18
18
  import json
19
19
 
20
- from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
20
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List, Optional
22
22
  from typing import Optional, Set
23
23
  from typing_extensions import Self
@@ -30,7 +30,8 @@ class GetClusterResponse(BaseModel):
30
30
  cluster_name: StrictStr
31
31
  display_name: StrictStr
32
32
  region: Optional[StrictStr] = None
33
- __properties: ClassVar[List[str]] = ["id", "cluster_name", "display_name", "region"]
33
+ deployment_creation_disabled: Optional[StrictBool] = False
34
+ __properties: ClassVar[List[str]] = ["id", "cluster_name", "display_name", "region", "deployment_creation_disabled"]
34
35
 
35
36
  model_config = ConfigDict(
36
37
  populate_by_name=True,
@@ -91,7 +92,8 @@ class GetClusterResponse(BaseModel):
91
92
  "id": obj.get("id"),
92
93
  "cluster_name": obj.get("cluster_name"),
93
94
  "display_name": obj.get("display_name"),
94
- "region": obj.get("region")
95
+ "region": obj.get("region"),
96
+ "deployment_creation_disabled": obj.get("deployment_creation_disabled") if obj.get("deployment_creation_disabled") is not None else False
95
97
  })
96
98
  return _obj
97
99
 
@@ -0,0 +1,95 @@
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
21
+ from typing import Any, ClassVar, Dict, List
22
+ from platform_api_python_client.models.deployment_log_event_v4 import DeploymentLogEventV4
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class GetDeploymentLogV4Response(BaseModel):
27
+ """
28
+ GetDeploymentLogV4Response
29
+ """ # noqa: E501
30
+ events: List[DeploymentLogEventV4] = Field(description="Log events, oldest first. Page boundaries are minted client-side from the events' timestamp field (see the endpoint description): an empty fetch_newer=false page means history is exhausted; an empty fetch_newer=true page means nothing new yet.")
31
+ __properties: ClassVar[List[str]] = ["events"]
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 GetDeploymentLogV4Response 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
+ # override the default output from pydantic by calling `to_dict()` of each item in events (list)
73
+ _items = []
74
+ if self.events:
75
+ for _item_events in self.events:
76
+ if _item_events:
77
+ _items.append(_item_events.to_dict())
78
+ _dict['events'] = _items
79
+ return _dict
80
+
81
+ @classmethod
82
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
+ """Create an instance of GetDeploymentLogV4Response from a dict"""
84
+ if obj is None:
85
+ return None
86
+
87
+ if not isinstance(obj, dict):
88
+ return cls.model_validate(obj)
89
+
90
+ _obj = cls.model_validate({
91
+ "events": [DeploymentLogEventV4.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None
92
+ })
93
+ return _obj
94
+
95
+
@@ -0,0 +1,87 @@
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, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class GetDeploymentPodsResponse(BaseModel):
26
+ """
27
+ GetDeploymentPodsResponse
28
+ """ # noqa: E501
29
+ pods: List[StrictStr]
30
+ __properties: ClassVar[List[str]] = ["pods"]
31
+
32
+ model_config = ConfigDict(
33
+ populate_by_name=True,
34
+ validate_assignment=True,
35
+ protected_namespaces=(),
36
+ )
37
+
38
+
39
+ def to_str(self) -> str:
40
+ """Returns the string representation of the model using alias"""
41
+ return pprint.pformat(self.model_dump(by_alias=True))
42
+
43
+ def to_json(self) -> str:
44
+ """Returns the JSON representation of the model using alias"""
45
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
46
+ return json.dumps(self.to_dict())
47
+
48
+ @classmethod
49
+ def from_json(cls, json_str: str) -> Optional[Self]:
50
+ """Create an instance of GetDeploymentPodsResponse from a JSON string"""
51
+ return cls.from_dict(json.loads(json_str))
52
+
53
+ def to_dict(self) -> Dict[str, Any]:
54
+ """Return the dictionary representation of the model using alias.
55
+
56
+ This has the following differences from calling pydantic's
57
+ `self.model_dump(by_alias=True)`:
58
+
59
+ * `None` is only added to the output dict for nullable fields that
60
+ were set at model initialization. Other fields with value `None`
61
+ are ignored.
62
+ """
63
+ excluded_fields: Set[str] = set([
64
+ ])
65
+
66
+ _dict = self.model_dump(
67
+ by_alias=True,
68
+ exclude=excluded_fields,
69
+ exclude_none=True,
70
+ )
71
+ return _dict
72
+
73
+ @classmethod
74
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
75
+ """Create an instance of GetDeploymentPodsResponse from a dict"""
76
+ if obj is None:
77
+ return None
78
+
79
+ if not isinstance(obj, dict):
80
+ return cls.model_validate(obj)
81
+
82
+ _obj = cls.model_validate({
83
+ "pods": obj.get("pods")
84
+ })
85
+ return _obj
86
+
87
+
@@ -23,6 +23,8 @@ 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_serving_mode import DynamoServingMode
27
+ from platform_api_python_client.models.dynamo_worker_pools import DynamoWorkerPools
26
28
  from typing import Optional, Set
27
29
  from typing_extensions import Self
28
30
 
@@ -42,6 +44,8 @@ class GetDynamoDeploymentResponse(BaseModel):
42
44
  hardware_instance_id: StrictInt
43
45
  revision_number: StrictInt
44
46
  user_annotations: Optional[Dict[str, StrictStr]] = None
47
+ serving_mode: Optional[DynamoServingMode] = None
48
+ worker_pools: Optional[DynamoWorkerPools] = None
45
49
  model: StrictStr
46
50
  served_model_name: Optional[StrictStr] = None
47
51
  min_replicas: StrictInt
@@ -55,7 +59,7 @@ class GetDynamoDeploymentResponse(BaseModel):
55
59
  enable_logging: Optional[StrictBool] = True
56
60
  enable_node_model_cache: Optional[StrictBool] = False
57
61
  backend_protocol: Optional[BackendProtocol] = 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", "user_annotations", "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"]
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"]
59
63
 
60
64
  model_config = ConfigDict(
61
65
  populate_by_name=True,
@@ -96,6 +100,9 @@ class GetDynamoDeploymentResponse(BaseModel):
96
100
  exclude=excluded_fields,
97
101
  exclude_none=True,
98
102
  )
103
+ # override the default output from pydantic by calling `to_dict()` of worker_pools
104
+ if self.worker_pools:
105
+ _dict['worker_pools'] = self.worker_pools.to_dict()
99
106
  # set to None if image_url (nullable) is None
100
107
  # and model_fields_set contains the field
101
108
  if self.image_url is None and "image_url" in self.model_fields_set:
@@ -106,6 +113,11 @@ class GetDynamoDeploymentResponse(BaseModel):
106
113
  if self.user_annotations is None and "user_annotations" in self.model_fields_set:
107
114
  _dict['user_annotations'] = None
108
115
 
116
+ # set to None if worker_pools (nullable) is None
117
+ # and model_fields_set contains the field
118
+ if self.worker_pools is None and "worker_pools" in self.model_fields_set:
119
+ _dict['worker_pools'] = None
120
+
109
121
  # set to None if served_model_name (nullable) is None
110
122
  # and model_fields_set contains the field
111
123
  if self.served_model_name is None and "served_model_name" in self.model_fields_set:
@@ -160,6 +172,8 @@ class GetDynamoDeploymentResponse(BaseModel):
160
172
  "hardware_instance_id": obj.get("hardware_instance_id"),
161
173
  "revision_number": obj.get("revision_number"),
162
174
  "user_annotations": obj.get("user_annotations"),
175
+ "serving_mode": obj.get("serving_mode"),
176
+ "worker_pools": DynamoWorkerPools.from_dict(obj["worker_pools"]) if obj.get("worker_pools") is not None else None,
163
177
  "model": obj.get("model"),
164
178
  "served_model_name": obj.get("served_model_name"),
165
179
  "min_replicas": obj.get("min_replicas"),
@@ -25,9 +25,9 @@ from platform_api_python_client.models.volume_status import VolumeStatus
25
25
  from typing import Optional, Set
26
26
  from typing_extensions import Self
27
27
 
28
- class GetBlockVolumeResponse(BaseModel):
28
+ class GetFilesystemVolumeResponse(BaseModel):
29
29
  """
30
- GetBlockVolumeResponse
30
+ GetFilesystemVolumeResponse
31
31
  """ # noqa: E501
32
32
  id: StrictInt
33
33
  name: StrictStr
@@ -44,8 +44,8 @@ class GetBlockVolumeResponse(BaseModel):
44
44
  @field_validator('backend')
45
45
  def backend_validate_enum(cls, value):
46
46
  """Validates the enum"""
47
- if value not in set(['block']):
48
- raise ValueError("must be one of enum values ('block')")
47
+ if value not in set(['filesystem']):
48
+ raise ValueError("must be one of enum values ('filesystem')")
49
49
  return value
50
50
 
51
51
  model_config = ConfigDict(
@@ -66,7 +66,7 @@ class GetBlockVolumeResponse(BaseModel):
66
66
 
67
67
  @classmethod
68
68
  def from_json(cls, json_str: str) -> Optional[Self]:
69
- """Create an instance of GetBlockVolumeResponse from a JSON string"""
69
+ """Create an instance of GetFilesystemVolumeResponse from a JSON string"""
70
70
  return cls.from_dict(json.loads(json_str))
71
71
 
72
72
  def to_dict(self) -> Dict[str, Any]:
@@ -91,7 +91,7 @@ class GetBlockVolumeResponse(BaseModel):
91
91
 
92
92
  @classmethod
93
93
  def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
94
- """Create an instance of GetBlockVolumeResponse from a dict"""
94
+ """Create an instance of GetFilesystemVolumeResponse from a dict"""
95
95
  if obj is None:
96
96
  return None
97
97
 
@@ -17,24 +17,24 @@ import json
17
17
  import pprint
18
18
  from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
19
19
  from typing import Any, List, Optional
20
- from platform_api_python_client.models.get_block_volume_response import GetBlockVolumeResponse
20
+ from platform_api_python_client.models.get_filesystem_volume_response import GetFilesystemVolumeResponse
21
21
  from platform_api_python_client.models.get_object_volume_response import GetObjectVolumeResponse
22
22
  from pydantic import StrictStr, Field
23
23
  from typing import Union, List, Set, Optional, Dict
24
24
  from typing_extensions import Literal, Self
25
25
 
26
- GETVOLUMERESPONSE_ONE_OF_SCHEMAS = ["GetBlockVolumeResponse", "GetObjectVolumeResponse"]
26
+ GETVOLUMERESPONSE_ONE_OF_SCHEMAS = ["GetFilesystemVolumeResponse", "GetObjectVolumeResponse"]
27
27
 
28
28
  class GetVolumeResponse(BaseModel):
29
29
  """
30
30
  GetVolumeResponse
31
31
  """
32
- # data type: GetBlockVolumeResponse
33
- oneof_schema_1_validator: Optional[GetBlockVolumeResponse] = None
32
+ # data type: GetFilesystemVolumeResponse
33
+ oneof_schema_1_validator: Optional[GetFilesystemVolumeResponse] = None
34
34
  # data type: GetObjectVolumeResponse
35
35
  oneof_schema_2_validator: Optional[GetObjectVolumeResponse] = None
36
- actual_instance: Optional[Union[GetBlockVolumeResponse, GetObjectVolumeResponse]] = None
37
- one_of_schemas: Set[str] = { "GetBlockVolumeResponse", "GetObjectVolumeResponse" }
36
+ actual_instance: Optional[Union[GetFilesystemVolumeResponse, GetObjectVolumeResponse]] = None
37
+ one_of_schemas: Set[str] = { "GetFilesystemVolumeResponse", "GetObjectVolumeResponse" }
38
38
 
39
39
  model_config = ConfigDict(
40
40
  validate_assignment=True,
@@ -60,9 +60,9 @@ class GetVolumeResponse(BaseModel):
60
60
  instance = GetVolumeResponse.model_construct()
61
61
  error_messages = []
62
62
  match = 0
63
- # validate data type: GetBlockVolumeResponse
64
- if not isinstance(v, GetBlockVolumeResponse):
65
- error_messages.append(f"Error! Input type `{type(v)}` is not `GetBlockVolumeResponse`")
63
+ # validate data type: GetFilesystemVolumeResponse
64
+ if not isinstance(v, GetFilesystemVolumeResponse):
65
+ error_messages.append(f"Error! Input type `{type(v)}` is not `GetFilesystemVolumeResponse`")
66
66
  else:
67
67
  match += 1
68
68
  # validate data type: GetObjectVolumeResponse
@@ -72,10 +72,10 @@ class GetVolumeResponse(BaseModel):
72
72
  match += 1
73
73
  if match > 1:
74
74
  # more than 1 match
75
- raise ValueError("Multiple matches found when setting `actual_instance` in GetVolumeResponse with oneOf schemas: GetBlockVolumeResponse, GetObjectVolumeResponse. Details: " + ", ".join(error_messages))
75
+ raise ValueError("Multiple matches found when setting `actual_instance` in GetVolumeResponse with oneOf schemas: GetFilesystemVolumeResponse, GetObjectVolumeResponse. Details: " + ", ".join(error_messages))
76
76
  elif match == 0:
77
77
  # no match
78
- raise ValueError("No match found when setting `actual_instance` in GetVolumeResponse with oneOf schemas: GetBlockVolumeResponse, GetObjectVolumeResponse. Details: " + ", ".join(error_messages))
78
+ raise ValueError("No match found when setting `actual_instance` in GetVolumeResponse with oneOf schemas: GetFilesystemVolumeResponse, GetObjectVolumeResponse. Details: " + ", ".join(error_messages))
79
79
  else:
80
80
  return v
81
81
 
@@ -90,9 +90,9 @@ class GetVolumeResponse(BaseModel):
90
90
  error_messages = []
91
91
  match = 0
92
92
 
93
- # deserialize data into GetBlockVolumeResponse
93
+ # deserialize data into GetFilesystemVolumeResponse
94
94
  try:
95
- instance.actual_instance = GetBlockVolumeResponse.from_json(json_str)
95
+ instance.actual_instance = GetFilesystemVolumeResponse.from_json(json_str)
96
96
  match += 1
97
97
  except (ValidationError, ValueError) as e:
98
98
  error_messages.append(str(e))
@@ -105,10 +105,10 @@ class GetVolumeResponse(BaseModel):
105
105
 
106
106
  if match > 1:
107
107
  # more than 1 match
108
- raise ValueError("Multiple matches found when deserializing the JSON string into GetVolumeResponse with oneOf schemas: GetBlockVolumeResponse, GetObjectVolumeResponse. Details: " + ", ".join(error_messages))
108
+ raise ValueError("Multiple matches found when deserializing the JSON string into GetVolumeResponse with oneOf schemas: GetFilesystemVolumeResponse, GetObjectVolumeResponse. Details: " + ", ".join(error_messages))
109
109
  elif match == 0:
110
110
  # no match
111
- raise ValueError("No match found when deserializing the JSON string into GetVolumeResponse with oneOf schemas: GetBlockVolumeResponse, GetObjectVolumeResponse. Details: " + ", ".join(error_messages))
111
+ raise ValueError("No match found when deserializing the JSON string into GetVolumeResponse with oneOf schemas: GetFilesystemVolumeResponse, GetObjectVolumeResponse. Details: " + ", ".join(error_messages))
112
112
  else:
113
113
  return instance
114
114
 
@@ -122,7 +122,7 @@ class GetVolumeResponse(BaseModel):
122
122
  else:
123
123
  return json.dumps(self.actual_instance)
124
124
 
125
- def to_dict(self) -> Optional[Union[Dict[str, Any], GetBlockVolumeResponse, GetObjectVolumeResponse]]:
125
+ def to_dict(self) -> Optional[Union[Dict[str, Any], GetFilesystemVolumeResponse, GetObjectVolumeResponse]]:
126
126
  """Returns the dict representation of the actual instance"""
127
127
  if self.actual_instance is None:
128
128
  return None