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
1 change: 0 additions & 1 deletion services/kms/src/stackit/kms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
Do not edit the class manually.
""" # noqa: E501


__version__ = "1.0.0"

# Define package exports
Expand Down
781 changes: 391 additions & 390 deletions services/kms/src/stackit/kms/api/default_api.py

Large diffs are not rendered by default.

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 @@ -12,7 +12,6 @@
Do not edit the class manually.
""" # noqa: E501


# import models into model package
from stackit.kms.models.access_scope import AccessScope
from stackit.kms.models.algorithm import Algorithm
Expand Down
3 changes: 2 additions & 1 deletion services/kms/src/stackit/kms/models/import_key_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import json
import pprint
from typing import Any, ClassVar, Dict, List, Optional, Set
from uuid import UUID

from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing_extensions import Self
Expand All @@ -29,7 +30,7 @@ class ImportKeyPayload(BaseModel):
wrapped_key: StrictStr = Field(
description="The wrapped key material that has to be imported. Encoded in base64.", alias="wrappedKey"
)
wrapping_key_id: StrictStr = Field(
wrapping_key_id: UUID = Field(
description="The unique id of the wrapping key the key material has been wrapped with.", alias="wrappingKeyId"
)
__properties: ClassVar[List[str]] = ["wrappedKey", "wrappingKeyId"]
Expand Down
7 changes: 3 additions & 4 deletions services/kms/src/stackit/kms/models/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import re # noqa: F401
from datetime import datetime
from typing import Any, ClassVar, Dict, List, Optional, Set
from uuid import UUID

from pydantic import (
BaseModel,
Expand Down Expand Up @@ -56,13 +57,11 @@ class Key(BaseModel):
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
description="The display name to distinguish multiple keys.", alias="displayName"
)
id: StrictStr = Field(description="A auto generated unique id which identifies the keys.")
id: UUID = Field(description="A auto generated unique id which identifies the keys.")
import_only: StrictBool = Field(
description="States whether versions can be created or only imported.", alias="importOnly"
)
key_ring_id: StrictStr = Field(
description="The unique id of the key ring this key is assigned to.", alias="keyRingId"
)
key_ring_id: UUID = Field(description="The unique id of the key ring this key is assigned to.", alias="keyRingId")
protection: Protection
purpose: Purpose
state: StrictStr = Field(description="The current state of the key.")
Expand Down
3 changes: 2 additions & 1 deletion services/kms/src/stackit/kms/models/key_ring.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import re # noqa: F401
from datetime import datetime
from typing import Any, ClassVar, Dict, List, Optional, Set
from uuid import UUID

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

Expand Down
5 changes: 3 additions & 2 deletions services/kms/src/stackit/kms/models/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import re # noqa: F401
from datetime import datetime
from typing import Any, ClassVar, Dict, List, Optional, Set
from uuid import UUID

from pydantic import (
BaseModel,
Expand Down Expand Up @@ -45,8 +46,8 @@ class Version(BaseModel):
alias="destroyDate",
)
disabled: StrictBool = Field(description="States whether versions is enabled or disabled.")
key_id: StrictStr = Field(description="The unique id of the key this version is assigned to.", alias="keyId")
key_ring_id: StrictStr = Field(
key_id: UUID = Field(description="The unique id of the key this version is assigned to.", alias="keyId")
key_ring_id: UUID = Field(
description="The unique id of the key ring the key of this version is assigned to.", alias="keyRingId"
)
number: StrictInt = Field(description="A sequential number which identifies the key versions.")
Expand Down
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 @@ -18,6 +18,7 @@
import re # noqa: F401
from datetime import datetime
from typing import Any, ClassVar, Dict, List, Optional, Set
from uuid import UUID

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