stackit-sqlserverflex 1.1.1__py3-none-any.whl → 1.2.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/sqlserverflex/api_client.py +36 -25
- stackit/sqlserverflex/exceptions.py +1 -1
- stackit/sqlserverflex/models/__init__.py +0 -1
- stackit/sqlserverflex/models/acl.py +4 -3
- stackit/sqlserverflex/models/backup.py +4 -3
- stackit/sqlserverflex/models/backup_list_backups_response_grouped.py +7 -6
- stackit/sqlserverflex/models/create_database_payload.py +4 -3
- stackit/sqlserverflex/models/create_database_response.py +4 -3
- stackit/sqlserverflex/models/create_instance_payload.py +4 -3
- stackit/sqlserverflex/models/create_instance_response.py +4 -3
- stackit/sqlserverflex/models/create_user_payload.py +4 -3
- stackit/sqlserverflex/models/create_user_response.py +4 -3
- stackit/sqlserverflex/models/data_point.py +4 -3
- stackit/sqlserverflex/models/database.py +4 -3
- stackit/sqlserverflex/models/database_documentation_create_database_request_options.py +4 -3
- stackit/sqlserverflex/models/database_options.py +4 -3
- stackit/sqlserverflex/models/flavor.py +4 -3
- stackit/sqlserverflex/models/get_backup_response.py +4 -3
- stackit/sqlserverflex/models/get_database_response.py +4 -3
- stackit/sqlserverflex/models/get_instance_response.py +4 -3
- stackit/sqlserverflex/models/get_user_response.py +4 -3
- stackit/sqlserverflex/models/host.py +7 -6
- stackit/sqlserverflex/models/host_metric.py +7 -6
- stackit/sqlserverflex/models/instance.py +4 -3
- stackit/sqlserverflex/models/instance_documentation_acl.py +4 -3
- stackit/sqlserverflex/models/instance_documentation_options.py +4 -3
- stackit/sqlserverflex/models/instance_documentation_storage.py +4 -3
- stackit/sqlserverflex/models/instance_error.py +4 -3
- stackit/sqlserverflex/models/instance_flavor_entry.py +4 -3
- stackit/sqlserverflex/models/instance_list_instance.py +4 -3
- stackit/sqlserverflex/models/instance_list_user.py +4 -3
- stackit/sqlserverflex/models/list_backups_response.py +7 -6
- stackit/sqlserverflex/models/list_collations_response.py +7 -6
- stackit/sqlserverflex/models/list_compatibility_response.py +7 -6
- stackit/sqlserverflex/models/list_databases_response.py +7 -6
- stackit/sqlserverflex/models/list_flavors_response.py +7 -6
- stackit/sqlserverflex/models/list_instances_response.py +7 -6
- stackit/sqlserverflex/models/list_metrics_response.py +7 -6
- stackit/sqlserverflex/models/list_restore_jobs_response.py +7 -6
- stackit/sqlserverflex/models/list_roles_response.py +4 -3
- stackit/sqlserverflex/models/list_storages_response.py +4 -3
- stackit/sqlserverflex/models/list_users_response.py +7 -6
- stackit/sqlserverflex/models/list_versions_response.py +4 -3
- stackit/sqlserverflex/models/mssql_database_collation.py +4 -3
- stackit/sqlserverflex/models/mssql_database_compatibility.py +4 -3
- stackit/sqlserverflex/models/partial_update_instance_payload.py +4 -3
- stackit/sqlserverflex/models/reset_user_response.py +4 -3
- stackit/sqlserverflex/models/restore_running_restore.py +4 -3
- stackit/sqlserverflex/models/single_database.py +4 -3
- stackit/sqlserverflex/models/single_user.py +4 -3
- stackit/sqlserverflex/models/storage.py +4 -3
- stackit/sqlserverflex/models/storage_range.py +4 -3
- stackit/sqlserverflex/models/trigger_database_restore_payload.py +4 -3
- stackit/sqlserverflex/models/update_instance_payload.py +4 -3
- stackit/sqlserverflex/models/update_instance_response.py +4 -3
- stackit/sqlserverflex/models/user.py +4 -3
- stackit/sqlserverflex/models/user_response_user.py +4 -3
- stackit/sqlserverflex/rest.py +19 -3
- {stackit_sqlserverflex-1.1.1.dist-info → stackit_sqlserverflex-1.2.0.dist-info}/METADATA +10 -11
- stackit_sqlserverflex-1.2.0.dist-info/RECORD +70 -0
- {stackit_sqlserverflex-1.1.1.dist-info → stackit_sqlserverflex-1.2.0.dist-info}/WHEEL +1 -1
- stackit_sqlserverflex-1.1.1.dist-info/RECORD +0 -70
- {stackit_sqlserverflex-1.1.1.dist-info → stackit_sqlserverflex-1.2.0.dist-info}/licenses/LICENSE.md +0 -0
- {stackit_sqlserverflex-1.1.1.dist-info → stackit_sqlserverflex-1.2.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
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.sqlserverflex.models.user_response_user import UserResponseUser
|
|
@@ -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, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.sqlserverflex.models.host_metric import HostMetric
|
|
@@ -34,7 +35,8 @@ class Host(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 Host(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]:
|
|
@@ -73,9 +74,9 @@ class Host(BaseModel):
|
|
|
73
74
|
# override the default output from pydantic by calling `to_dict()` of each item in host_metrics (list)
|
|
74
75
|
_items = []
|
|
75
76
|
if self.host_metrics:
|
|
76
|
-
for
|
|
77
|
-
if
|
|
78
|
-
_items.append(
|
|
77
|
+
for _item_host_metrics in self.host_metrics:
|
|
78
|
+
if _item_host_metrics:
|
|
79
|
+
_items.append(_item_host_metrics.to_dict())
|
|
79
80
|
_dict["hostMetrics"] = _items
|
|
80
81
|
return _dict
|
|
81
82
|
|
|
@@ -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.sqlserverflex.models.data_point import DataPoint
|
|
@@ -35,7 +36,8 @@ class HostMetric(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 HostMetric(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]:
|
|
@@ -74,9 +75,9 @@ class HostMetric(BaseModel):
|
|
|
74
75
|
# override the default output from pydantic by calling `to_dict()` of each item in datapoints (list)
|
|
75
76
|
_items = []
|
|
76
77
|
if self.datapoints:
|
|
77
|
-
for
|
|
78
|
-
if
|
|
79
|
-
_items.append(
|
|
78
|
+
for _item_datapoints in self.datapoints:
|
|
79
|
+
if _item_datapoints:
|
|
80
|
+
_items.append(_item_datapoints.to_dict())
|
|
80
81
|
_dict["datapoints"] = _items
|
|
81
82
|
return _dict
|
|
82
83
|
|
|
@@ -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.sqlserverflex.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, Field, 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 InstanceDocumentationACL(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["items"]
|
|
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 InstanceDocumentationACL(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, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -36,7 +37,8 @@ class InstanceDocumentationOptions(BaseModel):
|
|
|
36
37
|
__properties: ClassVar[List[str]] = ["edition", "retentionDays"]
|
|
37
38
|
|
|
38
39
|
model_config = ConfigDict(
|
|
39
|
-
|
|
40
|
+
validate_by_name=True,
|
|
41
|
+
validate_by_alias=True,
|
|
40
42
|
validate_assignment=True,
|
|
41
43
|
protected_namespaces=(),
|
|
42
44
|
)
|
|
@@ -47,8 +49,7 @@ class InstanceDocumentationOptions(BaseModel):
|
|
|
47
49
|
|
|
48
50
|
def to_json(self) -> str:
|
|
49
51
|
"""Returns the JSON representation of the model using alias"""
|
|
50
|
-
|
|
51
|
-
return json.dumps(self.to_dict())
|
|
52
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
52
53
|
|
|
53
54
|
@classmethod
|
|
54
55
|
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
|
|
|
@@ -34,7 +35,8 @@ class InstanceDocumentationStorage(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["class", "size"]
|
|
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 InstanceDocumentationStorage(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, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.sqlserverflex.models.type import Type
|
|
@@ -36,7 +37,8 @@ class InstanceError(BaseModel):
|
|
|
36
37
|
__properties: ClassVar[List[str]] = ["code", "fields", "message", "type"]
|
|
37
38
|
|
|
38
39
|
model_config = ConfigDict(
|
|
39
|
-
|
|
40
|
+
validate_by_name=True,
|
|
41
|
+
validate_by_alias=True,
|
|
40
42
|
validate_assignment=True,
|
|
41
43
|
protected_namespaces=(),
|
|
42
44
|
)
|
|
@@ -47,8 +49,7 @@ class InstanceError(BaseModel):
|
|
|
47
49
|
|
|
48
50
|
def to_json(self) -> str:
|
|
49
51
|
"""Returns the JSON representation of the model using alias"""
|
|
50
|
-
|
|
51
|
-
return json.dumps(self.to_dict())
|
|
52
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
52
53
|
|
|
53
54
|
@classmethod
|
|
54
55
|
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, StrictStr
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
|
|
@@ -35,7 +36,8 @@ class InstanceFlavorEntry(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["categories", "cpu", "description", "id", "memory"]
|
|
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 InstanceFlavorEntry(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, 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, 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 InstanceListUser(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 InstanceListUser(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
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.sqlserverflex.models.backup_list_backups_response_grouped import (
|
|
@@ -35,7 +36,8 @@ class ListBackupsResponse(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["databases"]
|
|
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 ListBackupsResponse(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]:
|
|
@@ -74,9 +75,9 @@ class ListBackupsResponse(BaseModel):
|
|
|
74
75
|
# override the default output from pydantic by calling `to_dict()` of each item in databases (list)
|
|
75
76
|
_items = []
|
|
76
77
|
if self.databases:
|
|
77
|
-
for
|
|
78
|
-
if
|
|
79
|
-
_items.append(
|
|
78
|
+
for _item_databases in self.databases:
|
|
79
|
+
if _item_databases:
|
|
80
|
+
_items.append(_item_databases.to_dict())
|
|
80
81
|
_dict["databases"] = _items
|
|
81
82
|
return _dict
|
|
82
83
|
|
|
@@ -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.sqlserverflex.models.mssql_database_collation import MssqlDatabaseCollation
|
|
@@ -33,7 +34,8 @@ class ListCollationsResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["collations"]
|
|
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 ListCollationsResponse(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]:
|
|
@@ -72,9 +73,9 @@ class ListCollationsResponse(BaseModel):
|
|
|
72
73
|
# override the default output from pydantic by calling `to_dict()` of each item in collations (list)
|
|
73
74
|
_items = []
|
|
74
75
|
if self.collations:
|
|
75
|
-
for
|
|
76
|
-
if
|
|
77
|
-
_items.append(
|
|
76
|
+
for _item_collations in self.collations:
|
|
77
|
+
if _item_collations:
|
|
78
|
+
_items.append(_item_collations.to_dict())
|
|
78
79
|
_dict["collations"] = _items
|
|
79
80
|
return _dict
|
|
80
81
|
|
|
@@ -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.sqlserverflex.models.mssql_database_compatibility import (
|
|
@@ -35,7 +36,8 @@ class ListCompatibilityResponse(BaseModel):
|
|
|
35
36
|
__properties: ClassVar[List[str]] = ["compatibilities"]
|
|
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 ListCompatibilityResponse(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]:
|
|
@@ -74,9 +75,9 @@ class ListCompatibilityResponse(BaseModel):
|
|
|
74
75
|
# override the default output from pydantic by calling `to_dict()` of each item in compatibilities (list)
|
|
75
76
|
_items = []
|
|
76
77
|
if self.compatibilities:
|
|
77
|
-
for
|
|
78
|
-
if
|
|
79
|
-
_items.append(
|
|
78
|
+
for _item_compatibilities in self.compatibilities:
|
|
79
|
+
if _item_compatibilities:
|
|
80
|
+
_items.append(_item_compatibilities.to_dict())
|
|
80
81
|
_dict["compatibilities"] = _items
|
|
81
82
|
return _dict
|
|
82
83
|
|
|
@@ -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.sqlserverflex.models.database import Database
|
|
@@ -33,7 +34,8 @@ class ListDatabasesResponse(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 ListDatabasesResponse(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]:
|
|
@@ -72,9 +73,9 @@ class ListDatabasesResponse(BaseModel):
|
|
|
72
73
|
# override the default output from pydantic by calling `to_dict()` of each item in databases (list)
|
|
73
74
|
_items = []
|
|
74
75
|
if self.databases:
|
|
75
|
-
for
|
|
76
|
-
if
|
|
77
|
-
_items.append(
|
|
76
|
+
for _item_databases in self.databases:
|
|
77
|
+
if _item_databases:
|
|
78
|
+
_items.append(_item_databases.to_dict())
|
|
78
79
|
_dict["databases"] = _items
|
|
79
80
|
return _dict
|
|
80
81
|
|
|
@@ -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.sqlserverflex.models.instance_flavor_entry import InstanceFlavorEntry
|
|
@@ -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]:
|
|
@@ -72,9 +73,9 @@ class ListFlavorsResponse(BaseModel):
|
|
|
72
73
|
# override the default output from pydantic by calling `to_dict()` of each item in flavors (list)
|
|
73
74
|
_items = []
|
|
74
75
|
if self.flavors:
|
|
75
|
-
for
|
|
76
|
-
if
|
|
77
|
-
_items.append(
|
|
76
|
+
for _item_flavors in self.flavors:
|
|
77
|
+
if _item_flavors:
|
|
78
|
+
_items.append(_item_flavors.to_dict())
|
|
78
79
|
_dict["flavors"] = _items
|
|
79
80
|
return _dict
|
|
80
81
|
|
|
@@ -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.sqlserverflex.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]:
|
|
@@ -73,9 +74,9 @@ class ListInstancesResponse(BaseModel):
|
|
|
73
74
|
# override the default output from pydantic by calling `to_dict()` of each item in items (list)
|
|
74
75
|
_items = []
|
|
75
76
|
if self.items:
|
|
76
|
-
for
|
|
77
|
-
if
|
|
78
|
-
_items.append(
|
|
77
|
+
for _item_items in self.items:
|
|
78
|
+
if _item_items:
|
|
79
|
+
_items.append(_item_items.to_dict())
|
|
79
80
|
_dict["items"] = _items
|
|
80
81
|
return _dict
|
|
81
82
|
|
|
@@ -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.sqlserverflex.models.host import Host
|
|
@@ -33,7 +34,8 @@ class ListMetricsResponse(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 ListMetricsResponse(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]:
|
|
@@ -72,9 +73,9 @@ class ListMetricsResponse(BaseModel):
|
|
|
72
73
|
# override the default output from pydantic by calling `to_dict()` of each item in hosts (list)
|
|
73
74
|
_items = []
|
|
74
75
|
if self.hosts:
|
|
75
|
-
for
|
|
76
|
-
if
|
|
77
|
-
_items.append(
|
|
76
|
+
for _item_hosts in self.hosts:
|
|
77
|
+
if _item_hosts:
|
|
78
|
+
_items.append(_item_hosts.to_dict())
|
|
78
79
|
_dict["hosts"] = _items
|
|
79
80
|
return _dict
|
|
80
81
|
|
|
@@ -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
|
|
22
|
+
from pydantic_core import to_jsonable_python
|
|
22
23
|
from typing_extensions import Self
|
|
23
24
|
|
|
24
25
|
from stackit.sqlserverflex.models.restore_running_restore import RestoreRunningRestore
|
|
@@ -33,7 +34,8 @@ class ListRestoreJobsResponse(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["runningRestores"]
|
|
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 ListRestoreJobsResponse(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]:
|
|
@@ -72,9 +73,9 @@ class ListRestoreJobsResponse(BaseModel):
|
|
|
72
73
|
# override the default output from pydantic by calling `to_dict()` of each item in running_restores (list)
|
|
73
74
|
_items = []
|
|
74
75
|
if self.running_restores:
|
|
75
|
-
for
|
|
76
|
-
if
|
|
77
|
-
_items.append(
|
|
76
|
+
for _item_running_restores in self.running_restores:
|
|
77
|
+
if _item_running_restores:
|
|
78
|
+
_items.append(_item_running_restores.to_dict())
|
|
78
79
|
_dict["runningRestores"] = _items
|
|
79
80
|
return _dict
|
|
80
81
|
|