Skip to content

Commit 6f07f31

Browse files
Generate kms
1 parent 815ef3e commit 6f07f31

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

services/kms/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
467fe4d305e48699c34835e45fd1c7b486be01d2
1+
c4128703f9d3ed3951e55d042b5a6ecc57011f2e

services/kms/src/stackit/kms/exceptions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None) ->
4545
full_msg = msg
4646
if path_to_item:
4747
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
48-
super(ApiTypeError, self).__init__(full_msg)
48+
super(ApiTypeError, self).__init__(full_msg, path_to_item, valid_classes, key_type)
4949

5050

5151
class ApiValueError(OpenApiException, ValueError):
@@ -63,7 +63,7 @@ def __init__(self, msg, path_to_item=None) -> None:
6363
full_msg = msg
6464
if path_to_item:
6565
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
66-
super(ApiValueError, self).__init__(full_msg)
66+
super(ApiValueError, self).__init__(full_msg, path_to_item)
6767

6868

6969
class ApiAttributeError(OpenApiException, AttributeError):
@@ -82,7 +82,7 @@ def __init__(self, msg, path_to_item=None) -> None:
8282
full_msg = msg
8383
if path_to_item:
8484
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
85-
super(ApiAttributeError, self).__init__(full_msg)
85+
super(ApiAttributeError, self).__init__(full_msg, path_to_item)
8686

8787

8888
class ApiKeyError(OpenApiException, KeyError):
@@ -99,7 +99,7 @@ def __init__(self, msg, path_to_item=None) -> None:
9999
full_msg = msg
100100
if path_to_item:
101101
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
102-
super(ApiKeyError, self).__init__(full_msg)
102+
super(ApiKeyError, self).__init__(full_msg, path_to_item)
103103

104104

105105
class ApiException(OpenApiException):

services/kms/src/stackit/kms/models/protection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121

2222
class Protection(str, Enum):
2323
"""
24-
The underlying system that is responsible for protecting the key material.
24+
The underlying system that is responsible for protecting the key material. (\"hsm\" is a private preview feature).
2525
"""
2626

2727
"""
2828
allowed enum values
2929
"""
3030
SOFTWARE = "software"
31+
HSM = "hsm"
3132

3233
@classmethod
3334
def from_json(cls, json_str: str) -> Self:

0 commit comments

Comments
 (0)