stackit-postgresflex 1.2.2__py3-none-any.whl → 1.3.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.
- stackit/postgresflex/api_client.py +15 -17
- stackit/postgresflex/models/acl.py +4 -3
- stackit/postgresflex/models/api_configuration.py +4 -3
- stackit/postgresflex/models/api_extension_config_load_response.py +4 -3
- stackit/postgresflex/models/api_extension_configure_response.py +4 -3
- stackit/postgresflex/models/api_extension_delete_response.py +4 -3
- stackit/postgresflex/models/api_extension_list.py +4 -3
- stackit/postgresflex/models/api_extension_load_response.py +4 -3
- stackit/postgresflex/models/api_install_response.py +4 -3
- stackit/postgresflex/models/api_installed_list_response.py +4 -3
- stackit/postgresflex/models/backup.py +4 -3
- stackit/postgresflex/models/clone_instance_payload.py +4 -3
- stackit/postgresflex/models/clone_instance_response.py +4 -3
- stackit/postgresflex/models/create_database_payload.py +4 -3
- stackit/postgresflex/models/create_instance_payload.py +4 -3
- stackit/postgresflex/models/create_instance_response.py +4 -3
- stackit/postgresflex/models/create_user_payload.py +4 -3
- stackit/postgresflex/models/create_user_response.py +4 -3
- stackit/postgresflex/models/error.py +4 -3
- stackit/postgresflex/models/extensions_configuration.py +4 -3
- stackit/postgresflex/models/extensions_extension_list_response.py +4 -3
- stackit/postgresflex/models/extensions_new_config.py +4 -3
- stackit/postgresflex/models/flavor.py +4 -3
- stackit/postgresflex/models/get_backup_response.py +4 -3
- stackit/postgresflex/models/get_user_response.py +4 -3
- stackit/postgresflex/models/instance.py +4 -3
- stackit/postgresflex/models/instance_create_database_response.py +4 -3
- stackit/postgresflex/models/instance_data_point.py +4 -3
- stackit/postgresflex/models/instance_database.py +4 -3
- stackit/postgresflex/models/instance_host.py +4 -3
- stackit/postgresflex/models/instance_host_metric.py +4 -3
- stackit/postgresflex/models/instance_list_databases_response.py +4 -3
- stackit/postgresflex/models/instance_list_instance.py +4 -3
- stackit/postgresflex/models/instance_metrics_response.py +4 -3
- stackit/postgresflex/models/instance_response.py +4 -3
- stackit/postgresflex/models/list_backups_response.py +4 -3
- stackit/postgresflex/models/list_flavors_response.py +4 -3
- stackit/postgresflex/models/list_instances_response.py +4 -3
- stackit/postgresflex/models/list_storages_response.py +4 -3
- stackit/postgresflex/models/list_users_response.py +4 -3
- stackit/postgresflex/models/list_users_response_item.py +4 -3
- stackit/postgresflex/models/list_versions_response.py +4 -3
- stackit/postgresflex/models/partial_update_instance_payload.py +4 -3
- stackit/postgresflex/models/partial_update_instance_response.py +4 -3
- stackit/postgresflex/models/partial_update_user_payload.py +4 -3
- stackit/postgresflex/models/postgres_database_parameter.py +4 -3
- stackit/postgresflex/models/postgres_database_parameter_response.py +4 -3
- stackit/postgresflex/models/reset_user_response.py +4 -3
- stackit/postgresflex/models/storage.py +4 -3
- stackit/postgresflex/models/storage_range.py +4 -3
- stackit/postgresflex/models/storage_update.py +4 -3
- stackit/postgresflex/models/update_backup_schedule_payload.py +4 -3
- stackit/postgresflex/models/update_instance_payload.py +4 -3
- stackit/postgresflex/models/update_user_payload.py +4 -3
- stackit/postgresflex/models/user.py +4 -3
- stackit/postgresflex/models/user_response.py +4 -3
- {stackit_postgresflex-1.2.2.dist-info → stackit_postgresflex-1.3.0.dist-info}/METADATA +1 -1
- stackit_postgresflex-1.3.0.dist-info/RECORD +70 -0
- stackit_postgresflex-1.2.2.dist-info/RECORD +0 -70
- {stackit_postgresflex-1.2.2.dist-info → stackit_postgresflex-1.3.0.dist-info}/WHEEL +0 -0
- {stackit_postgresflex-1.2.2.dist-info → stackit_postgresflex-1.3.0.dist-info}/licenses/LICENSE.md +0 -0
- {stackit_postgresflex-1.2.2.dist-info → stackit_postgresflex-1.3.0.dist-info}/licenses/NOTICE.txt +0 -0
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -34,7 +35,8 @@ class Flavor(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["cpu", "description", "id", "memory"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class Flavor(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.backup import Backup
|
|
@@ -33,7 +34,8 @@ class GetBackupResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["item"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class GetBackupResponse(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.user_response import UserResponse
|
|
@@ -33,7 +34,8 @@ class GetUserResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["item"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class GetUserResponse(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.acl import ACL
|
|
@@ -55,7 +56,8 @@ class Instance(BaseModel):
|
|
|
55
56
|
]
|
|
56
57
|
|
|
57
58
|
model_config = ConfigDict(
|
|
58
|
-
|
|
59
|
+
validate_by_name=True,
|
|
60
|
+
validate_by_alias=True,
|
|
59
61
|
validate_assignment=True,
|
|
60
62
|
protected_namespaces=(),
|
|
61
63
|
)
|
|
@@ -66,8 +68,7 @@ class Instance(BaseModel):
|
|
|
66
68
|
|
|
67
69
|
def to_json(self) -> str:
|
|
68
70
|
"""Returns the JSON representation of the model using alias"""
|
|
69
|
-
|
|
70
|
-
return json.dumps(self.to_dict())
|
|
71
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
71
72
|
|
|
72
73
|
@classmethod
|
|
73
74
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -31,7 +32,8 @@ class InstanceCreateDatabaseResponse(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["id"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -42,8 +44,7 @@ class InstanceCreateDatabaseResponse(BaseModel):
|
|
|
42
44
|
|
|
43
45
|
def to_json(self) -> str:
|
|
44
46
|
"""Returns the JSON representation of the model using alias"""
|
|
45
|
-
|
|
46
|
-
return json.dumps(self.to_dict())
|
|
47
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
47
48
|
|
|
48
49
|
@classmethod
|
|
49
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -25,6 +25,7 @@ from pydantic import (
|
|
|
25
25
|
StrictInt,
|
|
26
26
|
StrictStr,
|
|
27
27
|
)
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
28
29
|
from typing_extensions import Self
|
|
29
30
|
|
|
30
31
|
|
|
@@ -38,7 +39,8 @@ class InstanceDataPoint(BaseModel):
|
|
|
38
39
|
__properties: ClassVar[List[str]] = ["timestamp", "value"]
|
|
39
40
|
|
|
40
41
|
model_config = ConfigDict(
|
|
41
|
-
|
|
42
|
+
validate_by_name=True,
|
|
43
|
+
validate_by_alias=True,
|
|
42
44
|
validate_assignment=True,
|
|
43
45
|
protected_namespaces=(),
|
|
44
46
|
)
|
|
@@ -49,8 +51,7 @@ class InstanceDataPoint(BaseModel):
|
|
|
49
51
|
|
|
50
52
|
def to_json(self) -> str:
|
|
51
53
|
"""Returns the JSON representation of the model using alias"""
|
|
52
|
-
|
|
53
|
-
return json.dumps(self.to_dict())
|
|
54
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
54
55
|
|
|
55
56
|
@classmethod
|
|
56
57
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -33,7 +34,8 @@ class InstanceDatabase(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["id", "name", "options"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class InstanceDatabase(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.instance_host_metric import InstanceHostMetric
|
|
@@ -34,7 +35,8 @@ class InstanceHost(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["hostMetrics", "id"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class InstanceHost(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.instance_data_point import InstanceDataPoint
|
|
@@ -35,7 +36,8 @@ class InstanceHostMetric(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["datapoints", "name", "units"]
|
|
36
37
|
|
|
37
38
|
model_config = ConfigDict(
|
|
38
|
-
|
|
39
|
+
validate_by_name=True,
|
|
40
|
+
validate_by_alias=True,
|
|
39
41
|
validate_assignment=True,
|
|
40
42
|
protected_namespaces=(),
|
|
41
43
|
)
|
|
@@ -46,8 +48,7 @@ class InstanceHostMetric(BaseModel):
|
|
|
46
48
|
|
|
47
49
|
def to_json(self) -> str:
|
|
48
50
|
"""Returns the JSON representation of the model using alias"""
|
|
49
|
-
|
|
50
|
-
return json.dumps(self.to_dict())
|
|
51
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
51
52
|
|
|
52
53
|
@classmethod
|
|
53
54
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.instance_database import InstanceDatabase
|
|
@@ -33,7 +34,8 @@ class InstanceListDatabasesResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["databases"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class InstanceListDatabasesResponse(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -33,7 +34,8 @@ class InstanceListInstance(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["id", "name", "status"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class InstanceListInstance(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.instance_host import InstanceHost
|
|
@@ -33,7 +34,8 @@ class InstanceMetricsResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["hosts"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class InstanceMetricsResponse(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.instance import Instance
|
|
@@ -33,7 +34,8 @@ class InstanceResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["item"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class InstanceResponse(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.backup import Backup
|
|
@@ -34,7 +35,8 @@ class ListBackupsResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["count", "items"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class ListBackupsResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.flavor import Flavor
|
|
@@ -33,7 +34,8 @@ class ListFlavorsResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["flavors"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class ListFlavorsResponse(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.instance_list_instance import InstanceListInstance
|
|
@@ -34,7 +35,8 @@ class ListInstancesResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["count", "items"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class ListInstancesResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.storage_range import StorageRange
|
|
@@ -34,7 +35,8 @@ class ListStoragesResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["storageClasses", "storageRange"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class ListStoragesResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.list_users_response_item import ListUsersResponseItem
|
|
@@ -34,7 +35,8 @@ class ListUsersResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["count", "items"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
|
-
|
|
38
|
+
validate_by_name=True,
|
|
39
|
+
validate_by_alias=True,
|
|
38
40
|
validate_assignment=True,
|
|
39
41
|
protected_namespaces=(),
|
|
40
42
|
)
|
|
@@ -45,8 +47,7 @@ class ListUsersResponse(BaseModel):
|
|
|
45
47
|
|
|
46
48
|
def to_json(self) -> str:
|
|
47
49
|
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
50
51
|
|
|
51
52
|
@classmethod
|
|
52
53
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -32,7 +33,8 @@ class ListUsersResponseItem(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["id", "username"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class ListUsersResponseItem(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -31,7 +32,8 @@ class ListVersionsResponse(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["versions"]
|
|
32
33
|
|
|
33
34
|
model_config = ConfigDict(
|
|
34
|
-
|
|
35
|
+
validate_by_name=True,
|
|
36
|
+
validate_by_alias=True,
|
|
35
37
|
validate_assignment=True,
|
|
36
38
|
protected_namespaces=(),
|
|
37
39
|
)
|
|
@@ -42,8 +44,7 @@ class ListVersionsResponse(BaseModel):
|
|
|
42
44
|
|
|
43
45
|
def to_json(self) -> str:
|
|
44
46
|
"""Returns the JSON representation of the model using alias"""
|
|
45
|
-
|
|
46
|
-
return json.dumps(self.to_dict())
|
|
47
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
47
48
|
|
|
48
49
|
@classmethod
|
|
49
50
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.acl import ACL
|
|
@@ -52,7 +53,8 @@ class PartialUpdateInstancePayload(BaseModel):
|
|
|
52
53
|
]
|
|
53
54
|
|
|
54
55
|
model_config = ConfigDict(
|
|
55
|
-
|
|
56
|
+
validate_by_name=True,
|
|
57
|
+
validate_by_alias=True,
|
|
56
58
|
validate_assignment=True,
|
|
57
59
|
protected_namespaces=(),
|
|
58
60
|
)
|
|
@@ -63,8 +65,7 @@ class PartialUpdateInstancePayload(BaseModel):
|
|
|
63
65
|
|
|
64
66
|
def to_json(self) -> str:
|
|
65
67
|
"""Returns the JSON representation of the model using alias"""
|
|
66
|
-
|
|
67
|
-
return json.dumps(self.to_dict())
|
|
68
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
68
69
|
|
|
69
70
|
@classmethod
|
|
70
71
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.postgresflex.models.instance import Instance
|
|
@@ -33,7 +34,8 @@ class PartialUpdateInstanceResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["item"]
|
|
34
35
|
|
|
35
36
|
model_config = ConfigDict(
|
|
36
|
-
|
|
37
|
+
validate_by_name=True,
|
|
38
|
+
validate_by_alias=True,
|
|
37
39
|
validate_assignment=True,
|
|
38
40
|
protected_namespaces=(),
|
|
39
41
|
)
|
|
@@ -44,8 +46,7 @@ class PartialUpdateInstanceResponse(BaseModel):
|
|
|
44
46
|
|
|
45
47
|
def to_json(self) -> str:
|
|
46
48
|
"""Returns the JSON representation of the model using alias"""
|
|
47
|
-
|
|
48
|
-
return json.dumps(self.to_dict())
|
|
49
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
49
50
|
|
|
50
51
|
@classmethod
|
|
51
52
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ import pprint
|
|
|
19
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
20
20
|
|
|
21
21
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -32,7 +33,8 @@ class PartialUpdateUserPayload(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["database", "roles"]
|
|
33
34
|
|
|
34
35
|
model_config = ConfigDict(
|
|
35
|
-
|
|
36
|
+
validate_by_name=True,
|
|
37
|
+
validate_by_alias=True,
|
|
36
38
|
validate_assignment=True,
|
|
37
39
|
protected_namespaces=(),
|
|
38
40
|
)
|
|
@@ -43,8 +45,7 @@ class PartialUpdateUserPayload(BaseModel):
|
|
|
43
45
|
|
|
44
46
|
def to_json(self) -> str:
|
|
45
47
|
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
48
49
|
|
|
49
50
|
@classmethod
|
|
50
51
|
def from_json(cls, json_str: str) -> Optional[Self]:
|