stackit-secretsmanager 0.4.1__tar.gz → 0.5.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_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/PKG-INFO +1 -1
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/pyproject.toml +1 -1
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/api_client.py +15 -17
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/acl.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/bad_request.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/conflict.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/create_acl_payload.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/create_instance_payload.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/create_user_payload.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/instance.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/kms_key_payload.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/list_acls_response.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/list_instances_response.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/list_users_response.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/not_found.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/update_acl_payload.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/update_acls_payload.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/update_instance_payload.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/update_user_payload.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/user.py +4 -3
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/.gitignore +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/LICENSE.md +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/NOTICE.txt +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/README.md +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/__init__.py +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/api/__init__.py +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/api/default_api.py +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/api_response.py +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/configuration.py +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/exceptions.py +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/models/__init__.py +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/py.typed +0 -0
- {stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/rest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: stackit-secretsmanager
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Summary: STACKIT Secrets Manager API
|
|
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 @@ 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:
|
|
@@ -19,6 +19,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
|
19
19
|
from uuid import UUID
|
|
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
|
|
|
@@ -32,7 +33,8 @@ class ACL(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["cidr", "id"]
|
|
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 ACL(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 BadRequest(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 BadRequest(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
|
|
|
@@ -30,7 +31,8 @@ class Conflict(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 Conflict(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
|
|
|
@@ -30,7 +31,8 @@ class CreateACLPayload(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["cidr"]
|
|
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 CreateACLPayload(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
|
from stackit.secretsmanager.models.kms_key_payload import KmsKeyPayload
|
|
@@ -33,7 +34,8 @@ class CreateInstancePayload(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["kmsKey", "name"]
|
|
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 CreateInstancePayload(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]:
|
|
@@ -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
|
|
|
@@ -39,7 +40,8 @@ class CreateUserPayload(BaseModel):
|
|
|
39
40
|
__properties: ClassVar[List[str]] = ["description", "write"]
|
|
40
41
|
|
|
41
42
|
model_config = ConfigDict(
|
|
42
|
-
|
|
43
|
+
validate_by_name=True,
|
|
44
|
+
validate_by_alias=True,
|
|
43
45
|
validate_assignment=True,
|
|
44
46
|
protected_namespaces=(),
|
|
45
47
|
)
|
|
@@ -50,8 +52,7 @@ class CreateUserPayload(BaseModel):
|
|
|
50
52
|
|
|
51
53
|
def to_json(self) -> str:
|
|
52
54
|
"""Returns the JSON representation of the model using alias"""
|
|
53
|
-
|
|
54
|
-
return json.dumps(self.to_dict())
|
|
55
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
55
56
|
|
|
56
57
|
@classmethod
|
|
57
58
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
|
19
19
|
from uuid import UUID
|
|
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.secretsmanager.models.kms_key_payload import KmsKeyPayload
|
|
@@ -65,7 +66,8 @@ class Instance(BaseModel):
|
|
|
65
66
|
]
|
|
66
67
|
|
|
67
68
|
model_config = ConfigDict(
|
|
68
|
-
|
|
69
|
+
validate_by_name=True,
|
|
70
|
+
validate_by_alias=True,
|
|
69
71
|
validate_assignment=True,
|
|
70
72
|
protected_namespaces=(),
|
|
71
73
|
)
|
|
@@ -76,8 +78,7 @@ class Instance(BaseModel):
|
|
|
76
78
|
|
|
77
79
|
def to_json(self) -> str:
|
|
78
80
|
"""Returns the JSON representation of the model using alias"""
|
|
79
|
-
|
|
80
|
-
return json.dumps(self.to_dict())
|
|
81
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
81
82
|
|
|
82
83
|
@classmethod
|
|
83
84
|
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
@@ -19,6 +19,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
|
19
19
|
from uuid import UUID
|
|
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
|
|
|
@@ -37,7 +38,8 @@ class KmsKeyPayload(BaseModel):
|
|
|
37
38
|
__properties: ClassVar[List[str]] = ["keyId", "keyRingId", "keyVersion", "serviceAccountEmail"]
|
|
38
39
|
|
|
39
40
|
model_config = ConfigDict(
|
|
40
|
-
|
|
41
|
+
validate_by_name=True,
|
|
42
|
+
validate_by_alias=True,
|
|
41
43
|
validate_assignment=True,
|
|
42
44
|
protected_namespaces=(),
|
|
43
45
|
)
|
|
@@ -48,8 +50,7 @@ class KmsKeyPayload(BaseModel):
|
|
|
48
50
|
|
|
49
51
|
def to_json(self) -> str:
|
|
50
52
|
"""Returns the JSON representation of the model using alias"""
|
|
51
|
-
|
|
52
|
-
return json.dumps(self.to_dict())
|
|
53
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
53
54
|
|
|
54
55
|
@classmethod
|
|
55
56
|
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.secretsmanager.models.acl import ACL
|
|
@@ -32,7 +33,8 @@ class ListACLsResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["acls"]
|
|
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 ListACLsResponse(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
|
from stackit.secretsmanager.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]:
|
|
@@ -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.secretsmanager.models.user import User
|
|
@@ -32,7 +33,8 @@ class ListUsersResponse(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["users"]
|
|
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 ListUsersResponse(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 NotFound(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 NotFound(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
|
|
|
@@ -30,7 +31,8 @@ class UpdateACLPayload(BaseModel):
|
|
|
30
31
|
__properties: ClassVar[List[str]] = ["cidr"]
|
|
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 UpdateACLPayload(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
|
|
21
|
+
from pydantic_core import to_jsonable_python
|
|
21
22
|
from typing_extensions import Self
|
|
22
23
|
|
|
23
24
|
from stackit.secretsmanager.models.update_acl_payload import UpdateACLPayload
|
|
@@ -32,7 +33,8 @@ class UpdateACLsPayload(BaseModel):
|
|
|
32
33
|
__properties: ClassVar[List[str]] = ["cidrs"]
|
|
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 UpdateACLsPayload(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
|
from stackit.secretsmanager.models.kms_key_payload import KmsKeyPayload
|
|
@@ -33,7 +34,8 @@ class UpdateInstancePayload(BaseModel):
|
|
|
33
34
|
__properties: ClassVar[List[str]] = ["kmsKey", "name"]
|
|
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 UpdateInstancePayload(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]:
|
|
@@ -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
|
|
|
@@ -42,7 +43,8 @@ class UpdateUserPayload(BaseModel):
|
|
|
42
43
|
__properties: ClassVar[List[str]] = ["description", "write"]
|
|
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 UpdateUserPayload(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
|
StrictBool,
|
|
26
26
|
StrictStr,
|
|
27
27
|
)
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
28
29
|
from typing_extensions import Self
|
|
29
30
|
|
|
30
31
|
|
|
@@ -43,7 +44,8 @@ class User(BaseModel):
|
|
|
43
44
|
__properties: ClassVar[List[str]] = ["description", "id", "password", "username", "write"]
|
|
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 User(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]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/py.typed
RENAMED
|
File without changes
|
{stackit_secretsmanager-0.4.1 → stackit_secretsmanager-0.5.0}/src/stackit/secretsmanager/rest.py
RENAMED
|
File without changes
|