Skip to content

Commit 9bef398

Browse files
Generate kms
1 parent d38df9f commit 9bef398

File tree

8 files changed

+404
-402
lines changed

8 files changed

+404
-402
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Do not edit the class manually.
1414
""" # noqa: E501
1515

16-
1716
__version__ = "1.0.0"
1817

1918
# Define package exports

services/kms/src/stackit/kms/api/default_api.py

Lines changed: 391 additions & 390 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
Do not edit the class manually.
1313
""" # noqa: E501
1414

15-
1615
# import models into model package
1716
from stackit.kms.models.access_scope import AccessScope
1817
from stackit.kms.models.algorithm import Algorithm

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import json
1717
import pprint
1818
from typing import Any, ClassVar, Dict, List, Optional, Set
19+
from uuid import UUID
1920

2021
from pydantic import BaseModel, ConfigDict, Field, StrictStr
2122
from typing_extensions import Self
@@ -29,7 +30,7 @@ class ImportKeyPayload(BaseModel):
2930
wrapped_key: StrictStr = Field(
3031
description="The wrapped key material that has to be imported. Encoded in base64.", alias="wrappedKey"
3132
)
32-
wrapping_key_id: StrictStr = Field(
33+
wrapping_key_id: UUID = Field(
3334
description="The unique id of the wrapping key the key material has been wrapped with.", alias="wrappingKeyId"
3435
)
3536
__properties: ClassVar[List[str]] = ["wrappedKey", "wrappingKeyId"]

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import re # noqa: F401
1919
from datetime import datetime
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import (
2324
BaseModel,
@@ -56,13 +57,11 @@ class Key(BaseModel):
5657
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
5758
description="The display name to distinguish multiple keys.", alias="displayName"
5859
)
59-
id: StrictStr = Field(description="A auto generated unique id which identifies the keys.")
60+
id: UUID = Field(description="A auto generated unique id which identifies the keys.")
6061
import_only: StrictBool = Field(
6162
description="States whether versions can be created or only imported.", alias="importOnly"
6263
)
63-
key_ring_id: StrictStr = Field(
64-
description="The unique id of the key ring this key is assigned to.", alias="keyRingId"
65-
)
64+
key_ring_id: UUID = Field(description="The unique id of the key ring this key is assigned to.", alias="keyRingId")
6665
protection: Protection
6766
purpose: Purpose
6867
state: StrictStr = Field(description="The current state of the key.")

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import re # noqa: F401
1919
from datetime import datetime
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2324
from typing_extensions import Annotated, Self
@@ -37,7 +38,7 @@ class KeyRing(BaseModel):
3738
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
3839
description="The display name to distinguish multiple key rings.", alias="displayName"
3940
)
40-
id: StrictStr = Field(description="A auto generated unique id which identifies the key ring.")
41+
id: UUID = Field(description="A auto generated unique id which identifies the key ring.")
4142
state: StrictStr = Field(description="The current state of the key ring.")
4243
__properties: ClassVar[List[str]] = ["createdAt", "description", "displayName", "id", "state"]
4344

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import re # noqa: F401
1919
from datetime import datetime
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import (
2324
BaseModel,
@@ -45,8 +46,8 @@ class Version(BaseModel):
4546
alias="destroyDate",
4647
)
4748
disabled: StrictBool = Field(description="States whether versions is enabled or disabled.")
48-
key_id: StrictStr = Field(description="The unique id of the key this version is assigned to.", alias="keyId")
49-
key_ring_id: StrictStr = Field(
49+
key_id: UUID = Field(description="The unique id of the key this version is assigned to.", alias="keyId")
50+
key_ring_id: UUID = Field(
5051
description="The unique id of the key ring the key of this version is assigned to.", alias="keyRingId"
5152
)
5253
number: StrictInt = Field(description="A sequential number which identifies the key versions.")

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import re # noqa: F401
1919
from datetime import datetime
2020
from typing import Any, ClassVar, Dict, List, Optional, Set
21+
from uuid import UUID
2122

2223
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2324
from typing_extensions import Annotated, Self
@@ -45,8 +46,8 @@ class WrappingKey(BaseModel):
4546
description="The display name to distinguish multiple wrapping keys.", alias="displayName"
4647
)
4748
expires_at: datetime = Field(description="The date and time the wrapping key will expire.", alias="expiresAt")
48-
id: StrictStr = Field(description="A auto generated unique id which identifies the wrapping keys.")
49-
key_ring_id: StrictStr = Field(
49+
id: UUID = Field(description="A auto generated unique id which identifies the wrapping keys.")
50+
key_ring_id: UUID = Field(
5051
description="The unique id of the key ring this wrapping key is assigned to.", alias="keyRingId"
5152
)
5253
protection: Protection

0 commit comments

Comments
 (0)