stackit-kms 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_kms-0.4.1 → stackit_kms-0.5.0}/PKG-INFO +1 -1
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/pyproject.toml +1 -1
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/create_key_payload.py +11 -1
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/create_key_ring_payload.py +11 -2
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/create_wrapping_key_payload.py +11 -2
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/LICENSE.md +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/NOTICE.txt +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/README.md +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/__init__.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/api/__init__.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/api/default_api.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/api_client.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/api_response.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/configuration.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/exceptions.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/__init__.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/access_scope.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/algorithm.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/decrypt_payload.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/decrypted_data.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/encrypt_payload.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/encrypted_data.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/http_error.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/import_key_payload.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/key.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/key_list.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/key_ring.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/key_ring_list.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/protection.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/purpose.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/sign_payload.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/signed_data.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/verified_data.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/verify_payload.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/version.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/version_list.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/wrapping_algorithm.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/wrapping_key.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/wrapping_key_list.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/wrapping_purpose.py +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/py.typed +0 -0
- {stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/rest.py +0 -0
|
@@ -15,6 +15,7 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
20
|
|
|
20
21
|
from pydantic import (
|
|
@@ -23,6 +24,7 @@ from pydantic import (
|
|
|
23
24
|
Field,
|
|
24
25
|
StrictBool,
|
|
25
26
|
StrictStr,
|
|
27
|
+
field_validator,
|
|
26
28
|
)
|
|
27
29
|
from typing_extensions import Annotated, Self
|
|
28
30
|
|
|
@@ -43,7 +45,8 @@ class CreateKeyPayload(BaseModel):
|
|
|
43
45
|
default=None, description="A user chosen description to distinguish multiple keys."
|
|
44
46
|
)
|
|
45
47
|
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
|
|
46
|
-
description="The display name to distinguish multiple keys.
|
|
48
|
+
description="The display name to distinguish multiple keys. Valid characters: letters, digits, underscores and hyphens.",
|
|
49
|
+
alias="displayName",
|
|
47
50
|
)
|
|
48
51
|
import_only: Optional[StrictBool] = Field(
|
|
49
52
|
default=False, description="States whether versions can be created or only imported.", alias="importOnly"
|
|
@@ -60,6 +63,13 @@ class CreateKeyPayload(BaseModel):
|
|
|
60
63
|
"purpose",
|
|
61
64
|
]
|
|
62
65
|
|
|
66
|
+
@field_validator("display_name")
|
|
67
|
+
def display_name_validate_regular_expression(cls, value):
|
|
68
|
+
"""Validates the regular expression"""
|
|
69
|
+
if not re.match(r"^[a-zA-Z0-9_-]+$", value):
|
|
70
|
+
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9_-]+$/")
|
|
71
|
+
return value
|
|
72
|
+
|
|
63
73
|
model_config = ConfigDict(
|
|
64
74
|
populate_by_name=True,
|
|
65
75
|
validate_assignment=True,
|
|
@@ -15,9 +15,10 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
20
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
22
|
from typing_extensions import Annotated, Self
|
|
22
23
|
|
|
23
24
|
|
|
@@ -30,10 +31,18 @@ class CreateKeyRingPayload(BaseModel):
|
|
|
30
31
|
default=None, description="A user chosen description to distinguish multiple key rings."
|
|
31
32
|
)
|
|
32
33
|
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
|
|
33
|
-
description="The display name to distinguish multiple key rings.
|
|
34
|
+
description="The display name to distinguish multiple key rings. Valid characters: letters, digits, underscores and hyphens.",
|
|
35
|
+
alias="displayName",
|
|
34
36
|
)
|
|
35
37
|
__properties: ClassVar[List[str]] = ["description", "displayName"]
|
|
36
38
|
|
|
39
|
+
@field_validator("display_name")
|
|
40
|
+
def display_name_validate_regular_expression(cls, value):
|
|
41
|
+
"""Validates the regular expression"""
|
|
42
|
+
if not re.match(r"^[a-zA-Z0-9_-]+$", value):
|
|
43
|
+
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9_-]+$/")
|
|
44
|
+
return value
|
|
45
|
+
|
|
37
46
|
model_config = ConfigDict(
|
|
38
47
|
populate_by_name=True,
|
|
39
48
|
validate_assignment=True,
|
{stackit_kms-0.4.1 → stackit_kms-0.5.0}/src/stackit/kms/models/create_wrapping_key_payload.py
RENAMED
|
@@ -15,9 +15,10 @@ from __future__ import annotations
|
|
|
15
15
|
|
|
16
16
|
import json
|
|
17
17
|
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
18
19
|
from typing import Any, ClassVar, Dict, List, Optional, Set
|
|
19
20
|
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
|
|
21
22
|
from typing_extensions import Annotated, Self
|
|
22
23
|
|
|
23
24
|
from stackit.kms.models.access_scope import AccessScope
|
|
@@ -37,7 +38,8 @@ class CreateWrappingKeyPayload(BaseModel):
|
|
|
37
38
|
default=None, description="A user chosen description to distinguish multiple wrapping keys."
|
|
38
39
|
)
|
|
39
40
|
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
|
|
40
|
-
description="The display name to distinguish multiple wrapping keys.
|
|
41
|
+
description="The display name to distinguish multiple wrapping keys. Valid characters: letters, digits, underscores and hyphens.",
|
|
42
|
+
alias="displayName",
|
|
41
43
|
)
|
|
42
44
|
protection: Protection
|
|
43
45
|
purpose: WrappingPurpose
|
|
@@ -50,6 +52,13 @@ class CreateWrappingKeyPayload(BaseModel):
|
|
|
50
52
|
"purpose",
|
|
51
53
|
]
|
|
52
54
|
|
|
55
|
+
@field_validator("display_name")
|
|
56
|
+
def display_name_validate_regular_expression(cls, value):
|
|
57
|
+
"""Validates the regular expression"""
|
|
58
|
+
if not re.match(r"^[a-zA-Z0-9_-]+$", value):
|
|
59
|
+
raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9_-]+$/")
|
|
60
|
+
return value
|
|
61
|
+
|
|
53
62
|
model_config = ConfigDict(
|
|
54
63
|
populate_by_name=True,
|
|
55
64
|
validate_assignment=True,
|
|
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
|
|
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
|
|
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
|
|
File without changes
|