stackit-sfs 0.4.0__tar.gz → 0.6.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_sfs-0.4.0 → stackit_sfs-0.6.0}/PKG-INFO +1 -1
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/pyproject.toml +1 -1
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/__init__.py +4 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/api_client.py +15 -17
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/__init__.py +3 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_resource_pool_payload.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_resource_pool_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_resource_pool_snapshot_payload.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_resource_pool_snapshot_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_share_export_policy_payload.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_share_export_policy_request_rule.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_share_export_policy_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_share_payload.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_share_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/enable_lock_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/error.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_lock_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_resource_pool_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_resource_pool_snapshot_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_schedule_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_share_export_policy_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_share_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_snapshot_policy_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/google_protobuf_any.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/list_performance_classes_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/list_resource_pool_snapshots_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/list_resource_pools_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/list_schedules_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/list_share_export_policies_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/list_shares_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/list_snapshot_policies_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/performance_class.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/resource_pool.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/resource_pool_performance_class.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/resource_pool_snapshot.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/resource_pool_snapshot_policy.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/resource_pool_space.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/schedule.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/share.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/share_export_policy.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/share_export_policy_rule.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/snapshot_policy.py +34 -5
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/snapshot_policy_schedule.py +17 -8
- stackit_sfs-0.6.0/src/stackit/sfs/models/snapshot_policy_snapshot_policy_schedule.py +127 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/status.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/update_resource_pool_payload.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/update_resource_pool_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/update_resource_pool_snapshot_payload.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/update_resource_pool_snapshot_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/update_share_export_policy_body_rule.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/update_share_export_policy_payload.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/update_share_export_policy_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/update_share_payload.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/update_share_response.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/validation_error.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/validation_error_field.py +4 -3
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/.gitignore +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/LICENSE.md +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/NOTICE.txt +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/README.md +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/api/__init__.py +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/api/default_api.py +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/api_response.py +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/configuration.py +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/exceptions.py +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/py.typed +0 -0
- {stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: stackit-sfs
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: STACKIT File Storage (SFS)
|
|
5
5
|
Project-URL: Homepage, https://github.com/stackitcloud/stackit-sdk-python
|
|
6
6
|
Project-URL: Issues, https://github.com/stackitcloud/stackit-sdk-python/issues
|
|
@@ -66,6 +66,7 @@ __all__ = [
|
|
|
66
66
|
"ShareExportPolicyRule",
|
|
67
67
|
"SnapshotPolicy",
|
|
68
68
|
"SnapshotPolicySchedule",
|
|
69
|
+
"SnapshotPolicySnapshotPolicySchedule",
|
|
69
70
|
"Status",
|
|
70
71
|
"UpdateResourcePoolPayload",
|
|
71
72
|
"UpdateResourcePoolResponse",
|
|
@@ -193,6 +194,9 @@ from stackit.sfs.models.snapshot_policy import SnapshotPolicy as SnapshotPolicy
|
|
|
193
194
|
from stackit.sfs.models.snapshot_policy_schedule import (
|
|
194
195
|
SnapshotPolicySchedule as SnapshotPolicySchedule,
|
|
195
196
|
)
|
|
197
|
+
from stackit.sfs.models.snapshot_policy_snapshot_policy_schedule import (
|
|
198
|
+
SnapshotPolicySnapshotPolicySchedule as SnapshotPolicySnapshotPolicySchedule,
|
|
199
|
+
)
|
|
196
200
|
from stackit.sfs.models.status import Status as Status
|
|
197
201
|
from stackit.sfs.models.update_resource_pool_payload import (
|
|
198
202
|
UpdateResourcePoolPayload as UpdateResourcePoolPayload,
|
|
@@ -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:
|
|
@@ -75,6 +75,9 @@ from stackit.sfs.models.share_export_policy import ShareExportPolicy
|
|
|
75
75
|
from stackit.sfs.models.share_export_policy_rule import ShareExportPolicyRule
|
|
76
76
|
from stackit.sfs.models.snapshot_policy import SnapshotPolicy
|
|
77
77
|
from stackit.sfs.models.snapshot_policy_schedule import SnapshotPolicySchedule
|
|
78
|
+
from stackit.sfs.models.snapshot_policy_snapshot_policy_schedule import (
|
|
79
|
+
SnapshotPolicySnapshotPolicySchedule,
|
|
80
|
+
)
|
|
78
81
|
from stackit.sfs.models.status import Status
|
|
79
82
|
from stackit.sfs.models.update_resource_pool_payload import UpdateResourcePoolPayload
|
|
80
83
|
from stackit.sfs.models.update_resource_pool_response import UpdateResourcePoolResponse
|
{stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_resource_pool_payload.py
RENAMED
|
@@ -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
|
|
|
@@ -67,7 +68,8 @@ class CreateResourcePoolPayload(BaseModel):
|
|
|
67
68
|
]
|
|
68
69
|
|
|
69
70
|
model_config = ConfigDict(
|
|
70
|
-
|
|
71
|
+
validate_by_name=True,
|
|
72
|
+
validate_by_alias=True,
|
|
71
73
|
validate_assignment=True,
|
|
72
74
|
protected_namespaces=(),
|
|
73
75
|
)
|
|
@@ -78,8 +80,7 @@ class CreateResourcePoolPayload(BaseModel):
|
|
|
78
80
|
|
|
79
81
|
def to_json(self) -> str:
|
|
80
82
|
"""Returns the JSON representation of the model using alias"""
|
|
81
|
-
|
|
82
|
-
return json.dumps(self.to_dict())
|
|
83
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
83
84
|
|
|
84
85
|
@classmethod
|
|
85
86
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
{stackit_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_resource_pool_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.sfs.models.resource_pool import ResourcePool
|
|
@@ -34,7 +35,8 @@ class CreateResourcePoolResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["resourcePool"]
|
|
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 CreateResourcePoolResponse(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, Field, StrictInt, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -38,7 +39,8 @@ class CreateResourcePoolSnapshotPayload(BaseModel):
|
|
|
38
39
|
__properties: ClassVar[List[str]] = ["comment", "name", "snaplockRetentionHours"]
|
|
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 CreateResourcePoolSnapshotPayload(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]:
|
|
@@ -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.sfs.models.resource_pool_snapshot import ResourcePoolSnapshot
|
|
@@ -34,7 +35,8 @@ class CreateResourcePoolSnapshotResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["resourcePoolSnapshot"]
|
|
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 CreateResourcePoolSnapshotResponse(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_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/create_share_export_policy_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.sfs.models.create_share_export_policy_request_rule import (
|
|
@@ -42,7 +43,8 @@ class CreateShareExportPolicyPayload(BaseModel):
|
|
|
42
43
|
__properties: ClassVar[List[str]] = ["labels", "name", "rules"]
|
|
43
44
|
|
|
44
45
|
model_config = ConfigDict(
|
|
45
|
-
|
|
46
|
+
validate_by_name=True,
|
|
47
|
+
validate_by_alias=True,
|
|
46
48
|
validate_assignment=True,
|
|
47
49
|
protected_namespaces=(),
|
|
48
50
|
)
|
|
@@ -53,8 +55,7 @@ class CreateShareExportPolicyPayload(BaseModel):
|
|
|
53
55
|
|
|
54
56
|
def to_json(self) -> str:
|
|
55
57
|
"""Returns the JSON representation of the model using alias"""
|
|
56
|
-
|
|
57
|
-
return json.dumps(self.to_dict())
|
|
58
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
58
59
|
|
|
59
60
|
@classmethod
|
|
60
61
|
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
|
|
|
@@ -59,7 +60,8 @@ class CreateShareExportPolicyRequestRule(BaseModel):
|
|
|
59
60
|
__properties: ClassVar[List[str]] = ["description", "ipAcl", "order", "readOnly", "setUuid", "superUser"]
|
|
60
61
|
|
|
61
62
|
model_config = ConfigDict(
|
|
62
|
-
|
|
63
|
+
validate_by_name=True,
|
|
64
|
+
validate_by_alias=True,
|
|
63
65
|
validate_assignment=True,
|
|
64
66
|
protected_namespaces=(),
|
|
65
67
|
)
|
|
@@ -70,8 +72,7 @@ class CreateShareExportPolicyRequestRule(BaseModel):
|
|
|
70
72
|
|
|
71
73
|
def to_json(self) -> str:
|
|
72
74
|
"""Returns the JSON representation of the model using alias"""
|
|
73
|
-
|
|
74
|
-
return json.dumps(self.to_dict())
|
|
75
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
75
76
|
|
|
76
77
|
@classmethod
|
|
77
78
|
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
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.sfs.models.share_export_policy import ShareExportPolicy
|
|
@@ -34,7 +35,8 @@ class CreateShareExportPolicyResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["shareExportPolicy"]
|
|
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 CreateShareExportPolicyResponse(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, Field, StrictInt, StrictStr
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -43,7 +44,8 @@ class CreateSharePayload(BaseModel):
|
|
|
43
44
|
__properties: ClassVar[List[str]] = ["exportPolicyName", "labels", "name", "spaceHardLimitGigabytes"]
|
|
44
45
|
|
|
45
46
|
model_config = ConfigDict(
|
|
46
|
-
|
|
47
|
+
validate_by_name=True,
|
|
48
|
+
validate_by_alias=True,
|
|
47
49
|
validate_assignment=True,
|
|
48
50
|
protected_namespaces=(),
|
|
49
51
|
)
|
|
@@ -54,8 +56,7 @@ class CreateSharePayload(BaseModel):
|
|
|
54
56
|
|
|
55
57
|
def to_json(self) -> str:
|
|
56
58
|
"""Returns the JSON representation of the model using alias"""
|
|
57
|
-
|
|
58
|
-
return json.dumps(self.to_dict())
|
|
59
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
59
60
|
|
|
60
61
|
@classmethod
|
|
61
62
|
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
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.sfs.models.share import Share
|
|
@@ -32,7 +33,8 @@ class CreateShareResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["share"]
|
|
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 CreateShareResponse(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, 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 EnableLockResponse(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["lockId"]
|
|
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 EnableLockResponse(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, Field, 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 Error(BaseModel):
|
|
|
36
37
|
__properties: ClassVar[List[str]] = ["error_description", "title", "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 Error(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]:
|
|
@@ -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 GetLockResponse(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["lockId"]
|
|
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 GetLockResponse(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_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_resource_pool_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.sfs.models.resource_pool import ResourcePool
|
|
@@ -32,7 +33,8 @@ class GetResourcePoolResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["resourcePool"]
|
|
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 GetResourcePoolResponse(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, Field
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.sfs.models.resource_pool_snapshot import ResourcePoolSnapshot
|
|
@@ -34,7 +35,8 @@ class GetResourcePoolSnapshotResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["resourcePoolSnapshot"]
|
|
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 GetResourcePoolSnapshotResponse(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, Field
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.sfs.models.schedule import Schedule
|
|
@@ -32,7 +33,8 @@ class GetScheduleResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["schedule"]
|
|
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 GetScheduleResponse(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_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_share_export_policy_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.sfs.models.share_export_policy import ShareExportPolicy
|
|
@@ -34,7 +35,8 @@ class GetShareExportPolicyResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["shareExportPolicy"]
|
|
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 GetShareExportPolicyResponse(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, Field
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.sfs.models.share import Share
|
|
@@ -32,7 +33,8 @@ class GetShareResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["share"]
|
|
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 GetShareResponse(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_sfs-0.4.0 → stackit_sfs-0.6.0}/src/stackit/sfs/models/get_snapshot_policy_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.sfs.models.snapshot_policy import SnapshotPolicy
|
|
@@ -34,7 +35,8 @@ class GetSnapshotPolicyResponse(BaseModel):
|
|
|
34
35
|
__properties: ClassVar[List[str]] = ["snapshotPolicy"]
|
|
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 GetSnapshotPolicyResponse(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, Field, 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 GoogleProtobufAny(BaseModel):
|
|
|
31
32
|
__properties: ClassVar[List[str]] = ["@type"]
|
|
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 GoogleProtobufAny(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]:
|