Skip to content

Commit 5e142d5

Browse files
Generate kms
1 parent eee58eb commit 5e142d5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class Key(BaseModel):
5050
description="This date is set when a key is pending deletion and refers to the scheduled date of deletion",
5151
alias="deletionDate",
5252
)
53-
description: Annotated[str, Field(strict=True, max_length=256)] = Field(
54-
description="A user chosen description to distinguish multiple keys."
53+
description: Optional[Annotated[str, Field(strict=True, max_length=256)]] = Field(
54+
default=None, description="A user chosen description to distinguish multiple keys."
5555
)
5656
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
5757
description="The display name to distinguish multiple keys.", alias="displayName"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class KeyRing(BaseModel):
3131
created_at: datetime = Field(
3232
description="The date and time the creation of the key ring was triggered.", alias="createdAt"
3333
)
34-
description: Annotated[str, Field(strict=True, max_length=256)] = Field(
35-
description="A user chosen description to distinguish multiple key rings."
34+
description: Optional[Annotated[str, Field(strict=True, max_length=256)]] = Field(
35+
default=None, description="A user chosen description to distinguish multiple key rings."
3636
)
3737
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
3838
description="The display name to distinguish multiple key rings.", alias="displayName"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class WrappingKey(BaseModel):
3838
created_at: datetime = Field(
3939
description="The date and time the creation of the wrapping key was triggered.", alias="createdAt"
4040
)
41-
description: Annotated[str, Field(strict=True, max_length=256)] = Field(
42-
description="A user chosen description to distinguish multiple wrapping keys."
41+
description: Optional[Annotated[str, Field(strict=True, max_length=256)]] = Field(
42+
default=None, description="A user chosen description to distinguish multiple wrapping keys."
4343
)
4444
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
4545
description="The display name to distinguish multiple wrapping keys.", alias="displayName"

0 commit comments

Comments
 (0)