Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/kms/oas_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c09e232a83532c75ca1041153e3ebc7ce2d50eb6
1b4e383a63b4f8144eb8431fd22d86f7da9cab44
2 changes: 0 additions & 2 deletions services/kms/src/stackit/kms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"KeyList",
"KeyRing",
"KeyRingList",
"Protection",
"Purpose",
"SignPayload",
"SignedData",
Expand Down Expand Up @@ -90,7 +89,6 @@
from stackit.kms.models.key_list import KeyList as KeyList
from stackit.kms.models.key_ring import KeyRing as KeyRing
from stackit.kms.models.key_ring_list import KeyRingList as KeyRingList
from stackit.kms.models.protection import Protection as Protection
from stackit.kms.models.purpose import Purpose as Purpose
from stackit.kms.models.sign_payload import SignPayload as SignPayload
from stackit.kms.models.signed_data import SignedData as SignedData
Expand Down
1 change: 0 additions & 1 deletion services/kms/src/stackit/kms/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
from stackit.kms.models.key_list import KeyList
from stackit.kms.models.key_ring import KeyRing
from stackit.kms.models.key_ring_list import KeyRingList
from stackit.kms.models.protection import Protection
from stackit.kms.models.purpose import Purpose
from stackit.kms.models.sign_payload import SignPayload
from stackit.kms.models.signed_data import SignedData
Expand Down
5 changes: 3 additions & 2 deletions services/kms/src/stackit/kms/models/create_key_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

from stackit.kms.models.access_scope import AccessScope
from stackit.kms.models.algorithm import Algorithm
from stackit.kms.models.protection import Protection
from stackit.kms.models.purpose import Purpose


Expand All @@ -52,7 +51,9 @@ class CreateKeyPayload(BaseModel):
import_only: Optional[StrictBool] = Field(
default=False, description="States whether versions can be created or only imported.", alias="importOnly"
)
protection: Protection
protection: StrictStr = Field(
description='The underlying system that is responsible for protecting the key material. Possible values are "software" or "hsm"'
)
purpose: Purpose
__properties: ClassVar[List[str]] = [
"access_scope",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from typing_extensions import Annotated, Self

from stackit.kms.models.access_scope import AccessScope
from stackit.kms.models.protection import Protection
from stackit.kms.models.wrapping_algorithm import WrappingAlgorithm
from stackit.kms.models.wrapping_purpose import WrappingPurpose

Expand All @@ -42,7 +41,9 @@ class CreateWrappingKeyPayload(BaseModel):
description="The display name to distinguish multiple wrapping keys. Valid characters: letters, digits, underscores and hyphens.",
alias="displayName",
)
protection: Protection
protection: StrictStr = Field(
description='The underlying system that is responsible for protecting the key material. Possible values are "software" or "hsm"'
)
purpose: WrappingPurpose
__properties: ClassVar[List[str]] = [
"access_scope",
Expand Down
5 changes: 3 additions & 2 deletions services/kms/src/stackit/kms/models/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

from stackit.kms.models.access_scope import AccessScope
from stackit.kms.models.algorithm import Algorithm
from stackit.kms.models.protection import Protection
from stackit.kms.models.purpose import Purpose


Expand Down Expand Up @@ -63,7 +62,9 @@ class Key(BaseModel):
description="States whether versions can be created or only imported.", alias="importOnly"
)
key_ring_id: UUID = Field(description="The unique id of the key ring this key is assigned to.", alias="keyRingId")
protection: Protection
protection: StrictStr = Field(
description='The underlying system that is responsible for protecting the key material. Possible values are "software" or "hsm"'
)
purpose: Purpose
state: StrictStr = Field(description="The current state of the key.")
__properties: ClassVar[List[str]] = [
Expand Down
36 changes: 0 additions & 36 deletions services/kms/src/stackit/kms/models/protection.py

This file was deleted.

5 changes: 3 additions & 2 deletions services/kms/src/stackit/kms/models/wrapping_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from typing_extensions import Annotated, Self

from stackit.kms.models.access_scope import AccessScope
from stackit.kms.models.protection import Protection
from stackit.kms.models.wrapping_algorithm import WrappingAlgorithm
from stackit.kms.models.wrapping_purpose import WrappingPurpose

Expand All @@ -51,7 +50,9 @@ class WrappingKey(BaseModel):
key_ring_id: UUID = Field(
description="The unique id of the key ring this wrapping key is assigned to.", alias="keyRingId"
)
protection: Protection
protection: StrictStr = Field(
description='The underlying system that is responsible for protecting the key material. Possible values are "software" or "hsm"'
)
public_key: Optional[StrictStr] = Field(
default=None, description="The public key of the wrapping key.", alias="publicKey"
)
Expand Down
Loading