Skip to content

Commit 2d05871

Browse files
Generate kms
1 parent 869578b commit 2d05871

8 files changed

Lines changed: 13 additions & 48 deletions

File tree

services/kms/oas_commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c09e232a83532c75ca1041153e3ebc7ce2d50eb6
1+
1b4e383a63b4f8144eb8431fd22d86f7da9cab44

services/kms/src/stackit/kms/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"KeyList",
4343
"KeyRing",
4444
"KeyRingList",
45-
"Protection",
4645
"Purpose",
4746
"SignPayload",
4847
"SignedData",
@@ -90,7 +89,6 @@
9089
from stackit.kms.models.key_list import KeyList as KeyList
9190
from stackit.kms.models.key_ring import KeyRing as KeyRing
9291
from stackit.kms.models.key_ring_list import KeyRingList as KeyRingList
93-
from stackit.kms.models.protection import Protection as Protection
9492
from stackit.kms.models.purpose import Purpose as Purpose
9593
from stackit.kms.models.sign_payload import SignPayload as SignPayload
9694
from stackit.kms.models.signed_data import SignedData as SignedData

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
from stackit.kms.models.key_list import KeyList
2929
from stackit.kms.models.key_ring import KeyRing
3030
from stackit.kms.models.key_ring_list import KeyRingList
31-
from stackit.kms.models.protection import Protection
3231
from stackit.kms.models.purpose import Purpose
3332
from stackit.kms.models.sign_payload import SignPayload
3433
from stackit.kms.models.signed_data import SignedData

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
from stackit.kms.models.access_scope import AccessScope
3333
from stackit.kms.models.algorithm import Algorithm
34-
from stackit.kms.models.protection import Protection
3534
from stackit.kms.models.purpose import Purpose
3635

3736

@@ -52,7 +51,9 @@ class CreateKeyPayload(BaseModel):
5251
import_only: Optional[StrictBool] = Field(
5352
default=False, description="States whether versions can be created or only imported.", alias="importOnly"
5453
)
55-
protection: Protection
54+
protection: StrictStr = Field(
55+
description='The underlying system that is responsible for protecting the key material. Possible values are "software" or "hsm"'
56+
)
5657
purpose: Purpose
5758
__properties: ClassVar[List[str]] = [
5859
"access_scope",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from typing_extensions import Annotated, Self
2424

2525
from stackit.kms.models.access_scope import AccessScope
26-
from stackit.kms.models.protection import Protection
2726
from stackit.kms.models.wrapping_algorithm import WrappingAlgorithm
2827
from stackit.kms.models.wrapping_purpose import WrappingPurpose
2928

@@ -42,7 +41,9 @@ class CreateWrappingKeyPayload(BaseModel):
4241
description="The display name to distinguish multiple wrapping keys. Valid characters: letters, digits, underscores and hyphens.",
4342
alias="displayName",
4443
)
45-
protection: Protection
44+
protection: StrictStr = Field(
45+
description='The underlying system that is responsible for protecting the key material. Possible values are "software" or "hsm"'
46+
)
4647
purpose: WrappingPurpose
4748
__properties: ClassVar[List[str]] = [
4849
"access_scope",

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
from stackit.kms.models.access_scope import AccessScope
3535
from stackit.kms.models.algorithm import Algorithm
36-
from stackit.kms.models.protection import Protection
3736
from stackit.kms.models.purpose import Purpose
3837

3938

@@ -63,7 +62,9 @@ class Key(BaseModel):
6362
description="States whether versions can be created or only imported.", alias="importOnly"
6463
)
6564
key_ring_id: UUID = Field(description="The unique id of the key ring this key is assigned to.", alias="keyRingId")
66-
protection: Protection
65+
protection: StrictStr = Field(
66+
description='The underlying system that is responsible for protecting the key material. Possible values are "software" or "hsm"'
67+
)
6768
purpose: Purpose
6869
state: StrictStr = Field(description="The current state of the key.")
6970
__properties: ClassVar[List[str]] = [

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

Lines changed: 0 additions & 36 deletions
This file was deleted.

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from typing_extensions import Annotated, Self
2626

2727
from stackit.kms.models.access_scope import AccessScope
28-
from stackit.kms.models.protection import Protection
2928
from stackit.kms.models.wrapping_algorithm import WrappingAlgorithm
3029
from stackit.kms.models.wrapping_purpose import WrappingPurpose
3130

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

0 commit comments

Comments
 (0)