stackit-redis 0.3.1__tar.gz → 0.4.0__tar.gz
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_redis-0.3.1 → stackit_redis-0.4.0}/PKG-INFO +1 -1
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/pyproject.toml +1 -1
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/api/default_api.py +5 -5
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/api_client.py +15 -17
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/backup.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/create_backup_response_item.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/create_instance_payload.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/create_instance_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/credentials.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/credentials_list_item.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/credentials_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/error.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/get_metrics_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/instance.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/instance_last_operation.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/instance_parameters.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/instance_schema.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_backups_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_credentials_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_instances_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_offerings_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_restores_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/model_schema.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/offering.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/partial_update_instance_payload.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/plan.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/raw_credentials.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/restore.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/trigger_restore_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/update_backups_config_payload.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/update_backups_config_response.py +4 -3
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/.gitignore +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/LICENSE.md +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/NOTICE.txt +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/README.md +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/__init__.py +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/api/__init__.py +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/api_response.py +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/configuration.py +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/exceptions.py +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/__init__.py +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/py.typed +0 -0
- {stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/rest.py +0 -0
|
@@ -1332,7 +1332,7 @@ class DefaultApi:
|
|
|
1332
1332
|
_content_type: Optional[StrictStr] = None,
|
|
1333
1333
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1334
1334
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1335
|
-
) ->
|
|
1335
|
+
) -> bytes:
|
|
1336
1336
|
"""download backup
|
|
1337
1337
|
|
|
1338
1338
|
|
|
@@ -1375,7 +1375,7 @@ class DefaultApi:
|
|
|
1375
1375
|
)
|
|
1376
1376
|
|
|
1377
1377
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1378
|
-
"200": "
|
|
1378
|
+
"200": "bytes",
|
|
1379
1379
|
"500": "Error",
|
|
1380
1380
|
}
|
|
1381
1381
|
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
@@ -1400,7 +1400,7 @@ class DefaultApi:
|
|
|
1400
1400
|
_content_type: Optional[StrictStr] = None,
|
|
1401
1401
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1402
1402
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1403
|
-
) -> ApiResponse[
|
|
1403
|
+
) -> ApiResponse[bytes]:
|
|
1404
1404
|
"""download backup
|
|
1405
1405
|
|
|
1406
1406
|
|
|
@@ -1443,7 +1443,7 @@ class DefaultApi:
|
|
|
1443
1443
|
)
|
|
1444
1444
|
|
|
1445
1445
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1446
|
-
"200": "
|
|
1446
|
+
"200": "bytes",
|
|
1447
1447
|
"500": "Error",
|
|
1448
1448
|
}
|
|
1449
1449
|
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
@@ -1511,7 +1511,7 @@ class DefaultApi:
|
|
|
1511
1511
|
)
|
|
1512
1512
|
|
|
1513
1513
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1514
|
-
"200": "
|
|
1514
|
+
"200": "bytes",
|
|
1515
1515
|
"500": "Error",
|
|
1516
1516
|
}
|
|
1517
1517
|
response_data = self.api_client.call_api(*_param, _request_timeout=_request_timeout)
|
|
@@ -66,6 +66,7 @@ class ApiClient:
|
|
|
66
66
|
"date": datetime.date,
|
|
67
67
|
"datetime": datetime.datetime,
|
|
68
68
|
"decimal": decimal.Decimal,
|
|
69
|
+
"UUID": uuid.UUID,
|
|
69
70
|
"object": object,
|
|
70
71
|
}
|
|
71
72
|
_pool = None
|
|
@@ -265,7 +266,7 @@ class ApiClient:
|
|
|
265
266
|
response_text = None
|
|
266
267
|
return_data = None
|
|
267
268
|
try:
|
|
268
|
-
if response_type
|
|
269
|
+
if response_type in ("bytearray", "bytes"):
|
|
269
270
|
return_data = response_data.data
|
|
270
271
|
elif response_type == "file":
|
|
271
272
|
return_data = self.__deserialize_file(response_data)
|
|
@@ -326,25 +327,20 @@ class ApiClient:
|
|
|
326
327
|
return obj.isoformat()
|
|
327
328
|
elif isinstance(obj, decimal.Decimal):
|
|
328
329
|
return str(obj)
|
|
329
|
-
|
|
330
330
|
elif isinstance(obj, dict):
|
|
331
|
-
|
|
331
|
+
return {key: self.sanitize_for_serialization(val) for key, val in obj.items()}
|
|
332
|
+
|
|
333
|
+
# Convert model obj to dict except
|
|
334
|
+
# attributes `openapi_types`, `attribute_map`
|
|
335
|
+
# and attributes which value is not None.
|
|
336
|
+
# Convert attribute name to json key in
|
|
337
|
+
# model definition for request.
|
|
338
|
+
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
|
|
339
|
+
obj_dict = obj.to_dict()
|
|
332
340
|
else:
|
|
333
|
-
|
|
334
|
-
# attributes `openapi_types`, `attribute_map`
|
|
335
|
-
# and attributes which value is not None.
|
|
336
|
-
# Convert attribute name to json key in
|
|
337
|
-
# model definition for request.
|
|
338
|
-
if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009
|
|
339
|
-
obj_dict = obj.to_dict()
|
|
340
|
-
else:
|
|
341
|
-
obj_dict = obj.__dict__
|
|
342
|
-
|
|
343
|
-
if isinstance(obj_dict, list):
|
|
344
|
-
# here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() # noqa: E501
|
|
345
|
-
return self.sanitize_for_serialization(obj_dict)
|
|
341
|
+
obj_dict = obj.__dict__
|
|
346
342
|
|
|
347
|
-
return
|
|
343
|
+
return self.sanitize_for_serialization(obj_dict)
|
|
348
344
|
|
|
349
345
|
def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
|
|
350
346
|
"""Deserializes response into an object.
|
|
@@ -417,6 +413,8 @@ class ApiClient:
|
|
|
417
413
|
return self.__deserialize_datetime(data)
|
|
418
414
|
elif klass is decimal.Decimal:
|
|
419
415
|
return decimal.Decimal(data)
|
|
416
|
+
elif klass is uuid.UUID:
|
|
417
|
+
return uuid.UUID(data)
|
|
420
418
|
elif issubclass(klass, Enum):
|
|
421
419
|
return self.__deserialize_enum(data, klass)
|
|
422
420
|
else:
|
|
@@ -24,6 +24,7 @@ from pydantic import (
|
|
|
24
24
|
StrictInt,
|
|
25
25
|
StrictStr,
|
|
26
26
|
)
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
27
28
|
from typing_extensions import Self
|
|
28
29
|
|
|
29
30
|
|
|
@@ -41,7 +42,8 @@ class Backup(BaseModel):
|
|
|
41
42
|
__properties: ClassVar[List[str]] = ["downloadable", "finished_at", "id", "size", "status", "triggered_at"]
|
|
42
43
|
|
|
43
44
|
model_config = ConfigDict(
|
|
44
|
-
|
|
45
|
+
validate_by_name=True,
|
|
46
|
+
validate_by_alias=True,
|
|
45
47
|
validate_assignment=True,
|
|
46
48
|
protected_namespaces=(),
|
|
47
49
|
)
|
|
@@ -52,8 +54,7 @@ class Backup(BaseModel):
|
|
|
52
54
|
|
|
53
55
|
def to_json(self) -> str:
|
|
54
56
|
"""Returns the JSON representation of the model using alias"""
|
|
55
|
-
|
|
56
|
-
return json.dumps(self.to_dict())
|
|
57
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
57
58
|
|
|
58
59
|
@classmethod
|
|
59
60
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/create_backup_response_item.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -31,7 +32,8 @@ class CreateBackupResponseItem(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["id", "message"]
|
|
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 CreateBackupResponseItem(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/create_instance_payload.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.instance_parameters import InstanceParameters
|
|
@@ -34,7 +35,8 @@ class CreateInstancePayload(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["instanceName", "parameters", "planId"]
|
|
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 CreateInstancePayload(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/create_instance_response.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -30,7 +31,8 @@ class CreateInstanceResponse(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["instanceId"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
33
|
-
|
|
34
|
+
validate_by_name=True,
|
|
35
|
+
validate_by_alias=True,
|
|
34
36
|
validate_assignment=True,
|
|
35
37
|
protected_namespaces=(),
|
|
36
38
|
)
|
|
@@ -41,8 +43,7 @@ class CreateInstanceResponse(BaseModel):
|
|
|
41
43
|
|
|
42
44
|
def to_json(self) -> str:
|
|
43
45
|
"""Returns the JSON representation of the model using alias"""
|
|
44
|
-
|
|
45
|
-
return json.dumps(self.to_dict())
|
|
46
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
46
47
|
|
|
47
48
|
@classmethod
|
|
48
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -36,7 +37,8 @@ class Credentials(BaseModel):
|
|
|
36
37
|
__properties: ClassVar[List[str]] = ["host", "hosts", "load_balanced_host", "password", "port", "uri", "username"]
|
|
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 Credentials(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/credentials_list_item.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -30,7 +31,8 @@ class CredentialsListItem(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["id"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
33
|
-
|
|
34
|
+
validate_by_name=True,
|
|
35
|
+
validate_by_alias=True,
|
|
34
36
|
validate_assignment=True,
|
|
35
37
|
protected_namespaces=(),
|
|
36
38
|
)
|
|
@@ -41,8 +43,7 @@ class CredentialsListItem(BaseModel):
|
|
|
41
43
|
|
|
42
44
|
def to_json(self) -> str:
|
|
43
45
|
"""Returns the JSON representation of the model using alias"""
|
|
44
|
-
|
|
45
|
-
return json.dumps(self.to_dict())
|
|
46
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
46
47
|
|
|
47
48
|
@classmethod
|
|
48
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/credentials_response.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.raw_credentials import RawCredentials
|
|
@@ -34,7 +35,8 @@ class CredentialsResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["id", "raw", "uri"]
|
|
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 CredentialsResponse(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]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -31,7 +32,8 @@ class Error(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["description", "error"]
|
|
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 Error(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/get_metrics_response.py
RENAMED
|
@@ -25,6 +25,7 @@ from pydantic import (
|
|
|
25
25
|
StrictFloat,
|
|
26
26
|
StrictInt,
|
|
27
27
|
)
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
28
29
|
from typing_extensions import Self
|
|
29
30
|
|
|
30
31
|
|
|
@@ -83,7 +84,8 @@ class GetMetricsResponse(BaseModel):
|
|
|
83
84
|
]
|
|
84
85
|
|
|
85
86
|
model_config = ConfigDict(
|
|
86
|
-
|
|
87
|
+
validate_by_name=True,
|
|
88
|
+
validate_by_alias=True,
|
|
87
89
|
validate_assignment=True,
|
|
88
90
|
protected_namespaces=(),
|
|
89
91
|
)
|
|
@@ -94,8 +96,7 @@ class GetMetricsResponse(BaseModel):
|
|
|
94
96
|
|
|
95
97
|
def to_json(self) -> str:
|
|
96
98
|
"""Returns the JSON representation of the model using alias"""
|
|
97
|
-
|
|
98
|
-
return json.dumps(self.to_dict())
|
|
99
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
99
100
|
|
|
100
101
|
@classmethod
|
|
101
102
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.instance_last_operation import InstanceLastOperation
|
|
@@ -72,7 +73,8 @@ class Instance(BaseModel):
|
|
|
72
73
|
return value
|
|
73
74
|
|
|
74
75
|
model_config = ConfigDict(
|
|
75
|
-
|
|
76
|
+
validate_by_name=True,
|
|
77
|
+
validate_by_alias=True,
|
|
76
78
|
validate_assignment=True,
|
|
77
79
|
protected_namespaces=(),
|
|
78
80
|
)
|
|
@@ -83,8 +85,7 @@ class Instance(BaseModel):
|
|
|
83
85
|
|
|
84
86
|
def to_json(self) -> str:
|
|
85
87
|
"""Returns the JSON representation of the model using alias"""
|
|
86
|
-
|
|
87
|
-
return json.dumps(self.to_dict())
|
|
88
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
88
89
|
|
|
89
90
|
@classmethod
|
|
90
91
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/instance_last_operation.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -46,7 +47,8 @@ class InstanceLastOperation(BaseModel):
|
|
|
46
47
|
return value
|
|
47
48
|
|
|
48
49
|
model_config = ConfigDict(
|
|
49
|
-
|
|
50
|
+
validate_by_name=True,
|
|
51
|
+
validate_by_alias=True,
|
|
50
52
|
validate_assignment=True,
|
|
51
53
|
protected_namespaces=(),
|
|
52
54
|
)
|
|
@@ -57,8 +59,7 @@ class InstanceLastOperation(BaseModel):
|
|
|
57
59
|
|
|
58
60
|
def to_json(self) -> str:
|
|
59
61
|
"""Returns the JSON representation of the model using alias"""
|
|
60
|
-
|
|
61
|
-
return json.dumps(self.to_dict())
|
|
62
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
62
63
|
|
|
63
64
|
@classmethod
|
|
64
65
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -26,6 +26,7 @@ from pydantic import (
|
|
|
26
26
|
StrictStr,
|
|
27
27
|
field_validator,
|
|
28
28
|
)
|
|
29
|
+
from pydantic_core import to_jsonable_python
|
|
29
30
|
from typing_extensions import Annotated, Self
|
|
30
31
|
|
|
31
32
|
|
|
@@ -150,7 +151,8 @@ class InstanceParameters(BaseModel):
|
|
|
150
151
|
return value
|
|
151
152
|
|
|
152
153
|
model_config = ConfigDict(
|
|
153
|
-
|
|
154
|
+
validate_by_name=True,
|
|
155
|
+
validate_by_alias=True,
|
|
154
156
|
validate_assignment=True,
|
|
155
157
|
protected_namespaces=(),
|
|
156
158
|
)
|
|
@@ -161,8 +163,7 @@ class InstanceParameters(BaseModel):
|
|
|
161
163
|
|
|
162
164
|
def to_json(self) -> str:
|
|
163
165
|
"""Returns the JSON representation of the model using alias"""
|
|
164
|
-
|
|
165
|
-
return json.dumps(self.to_dict())
|
|
166
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
166
167
|
|
|
167
168
|
@classmethod
|
|
168
169
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.model_schema import ModelSchema
|
|
@@ -33,7 +34,8 @@ class InstanceSchema(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["create", "update"]
|
|
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 InstanceSchema(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_backups_response.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.backup import Backup
|
|
@@ -32,7 +33,8 @@ class ListBackupsResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["instanceBackups"]
|
|
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 ListBackupsResponse(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_credentials_response.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.credentials_list_item import CredentialsListItem
|
|
@@ -32,7 +33,8 @@ class ListCredentialsResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["credentialsList"]
|
|
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 ListCredentialsResponse(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_instances_response.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.instance import Instance
|
|
@@ -32,7 +33,8 @@ class ListInstancesResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["instances"]
|
|
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 ListInstancesResponse(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_offerings_response.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.offering import Offering
|
|
@@ -32,7 +33,8 @@ class ListOfferingsResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["offerings"]
|
|
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 ListOfferingsResponse(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/list_restores_response.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.restore import Restore
|
|
@@ -32,7 +33,8 @@ class ListRestoresResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["instanceRestores"]
|
|
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 ListRestoresResponse(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]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -30,7 +31,8 @@ class ModelSchema(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["parameters"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
33
|
-
|
|
34
|
+
validate_by_name=True,
|
|
35
|
+
validate_by_alias=True,
|
|
34
36
|
validate_assignment=True,
|
|
35
37
|
protected_namespaces=(),
|
|
36
38
|
)
|
|
@@ -41,8 +43,7 @@ class ModelSchema(BaseModel):
|
|
|
41
43
|
|
|
42
44
|
def to_json(self) -> str:
|
|
43
45
|
"""Returns the JSON representation of the model using alias"""
|
|
44
|
-
|
|
45
|
-
return json.dumps(self.to_dict())
|
|
46
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
46
47
|
|
|
47
48
|
@classmethod
|
|
48
49
|
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
|
from stackit.redis.models.instance_schema import InstanceSchema
|
|
@@ -60,7 +61,8 @@ class Offering(BaseModel):
|
|
|
60
61
|
]
|
|
61
62
|
|
|
62
63
|
model_config = ConfigDict(
|
|
63
|
-
|
|
64
|
+
validate_by_name=True,
|
|
65
|
+
validate_by_alias=True,
|
|
64
66
|
validate_assignment=True,
|
|
65
67
|
protected_namespaces=(),
|
|
66
68
|
)
|
|
@@ -71,8 +73,7 @@ class Offering(BaseModel):
|
|
|
71
73
|
|
|
72
74
|
def to_json(self) -> str:
|
|
73
75
|
"""Returns the JSON representation of the model using alias"""
|
|
74
|
-
|
|
75
|
-
return json.dumps(self.to_dict())
|
|
76
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
76
77
|
|
|
77
78
|
@classmethod
|
|
78
79
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.instance_parameters import InstanceParameters
|
|
@@ -34,7 +35,8 @@ class PartialUpdateInstancePayload(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["instanceName", "parameters", "planId"]
|
|
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 PartialUpdateInstancePayload(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]:
|
|
@@ -24,6 +24,7 @@ from pydantic import (
|
|
|
24
24
|
StrictBool,
|
|
25
25
|
StrictStr,
|
|
26
26
|
)
|
|
27
|
+
from pydantic_core import to_jsonable_python
|
|
27
28
|
from typing_extensions import Self
|
|
28
29
|
|
|
29
30
|
|
|
@@ -40,7 +41,8 @@ class Plan(BaseModel):
|
|
|
40
41
|
__properties: ClassVar[List[str]] = ["description", "free", "id", "name", "skuName"]
|
|
41
42
|
|
|
42
43
|
model_config = ConfigDict(
|
|
43
|
-
|
|
44
|
+
validate_by_name=True,
|
|
45
|
+
validate_by_alias=True,
|
|
44
46
|
validate_assignment=True,
|
|
45
47
|
protected_namespaces=(),
|
|
46
48
|
)
|
|
@@ -51,8 +53,7 @@ class Plan(BaseModel):
|
|
|
51
53
|
|
|
52
54
|
def to_json(self) -> str:
|
|
53
55
|
"""Returns the JSON representation of the model using alias"""
|
|
54
|
-
|
|
55
|
-
return json.dumps(self.to_dict())
|
|
56
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
56
57
|
|
|
57
58
|
@classmethod
|
|
58
59
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.redis.models.credentials import Credentials
|
|
@@ -32,7 +33,8 @@ class RawCredentials(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["credentials"]
|
|
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 RawCredentials(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]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -34,7 +35,8 @@ class Restore(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["backup_id", "finished_at", "id", "status", "triggered_at"]
|
|
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 Restore(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]:
|
{stackit_redis-0.3.1 → stackit_redis-0.4.0}/src/stackit/redis/models/trigger_restore_response.py
RENAMED
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -30,7 +31,8 @@ class TriggerRestoreResponse(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["id"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
33
|
-
|
|
34
|
+
validate_by_name=True,
|
|
35
|
+
validate_by_alias=True,
|
|
34
36
|
validate_assignment=True,
|
|
35
37
|
protected_namespaces=(),
|
|
36
38
|
)
|
|
@@ -41,8 +43,7 @@ class TriggerRestoreResponse(BaseModel):
|
|
|
41
43
|
|
|
42
44
|
def to_json(self) -> str:
|
|
43
45
|
"""Returns the JSON representation of the model using alias"""
|
|
44
|
-
|
|
45
|
-
return json.dumps(self.to_dict())
|
|
46
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
46
47
|
|
|
47
48
|
@classmethod
|
|
48
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -30,7 +31,8 @@ class UpdateBackupsConfigPayload(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["encryption_key"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
33
|
-
|
|
34
|
+
validate_by_name=True,
|
|
35
|
+
validate_by_alias=True,
|
|
34
36
|
validate_assignment=True,
|
|
35
37
|
protected_namespaces=(),
|
|
36
38
|
)
|
|
@@ -41,8 +43,7 @@ class UpdateBackupsConfigPayload(BaseModel):
|
|
|
41
43
|
|
|
42
44
|
def to_json(self) -> str:
|
|
43
45
|
"""Returns the JSON representation of the model using alias"""
|
|
44
|
-
|
|
45
|
-
return json.dumps(self.to_dict())
|
|
46
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
46
47
|
|
|
47
48
|
@classmethod
|
|
48
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -18,6 +18,7 @@ import pprint
|
|
|
18
18
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
19
|
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -30,7 +31,8 @@ class UpdateBackupsConfigResponse(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["message"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
33
|
-
|
|
34
|
+
validate_by_name=True,
|
|
35
|
+
validate_by_alias=True,
|
|
34
36
|
validate_assignment=True,
|
|
35
37
|
protected_namespaces=(),
|
|
36
38
|
)
|
|
@@ -41,8 +43,7 @@ class UpdateBackupsConfigResponse(BaseModel):
|
|
|
41
43
|
|
|
42
44
|
def to_json(self) -> str:
|
|
43
45
|
"""Returns the JSON representation of the model using alias"""
|
|
44
|
-
|
|
45
|
-
return json.dumps(self.to_dict())
|
|
46
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
46
47
|
|
|
47
48
|
@classmethod
|
|
48
49
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|