From 489d42291948e7468e4ff84d31a911318228c009 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 13 Mar 2026 16:13:34 +0000 Subject: [PATCH] Generate kms --- services/kms/oas_commit | 2 +- .../kms/src/stackit/kms/api/default_api.py | 781 +++++++++--------- services/kms/src/stackit/kms/api_client.py | 31 +- services/kms/src/stackit/kms/exceptions.py | 2 +- .../kms/src/stackit/kms/models/__init__.py | 1 - .../stackit/kms/models/import_key_payload.py | 3 +- services/kms/src/stackit/kms/models/key.py | 7 +- .../kms/src/stackit/kms/models/key_list.py | 6 +- .../kms/src/stackit/kms/models/key_ring.py | 3 +- .../src/stackit/kms/models/key_ring_list.py | 6 +- .../kms/src/stackit/kms/models/version.py | 5 +- .../src/stackit/kms/models/version_list.py | 6 +- .../src/stackit/kms/models/wrapping_key.py | 5 +- .../stackit/kms/models/wrapping_key_list.py | 6 +- services/kms/src/stackit/kms/rest.py | 22 +- services/kms/uv.lock | 2 +- 16 files changed, 460 insertions(+), 428 deletions(-) diff --git a/services/kms/oas_commit b/services/kms/oas_commit index f137f4d66..e3713dde3 100644 --- a/services/kms/oas_commit +++ b/services/kms/oas_commit @@ -1 +1 @@ -cb550f3c2129447568c2855337b1874968e033bb +0e64886dd0847341800d7191ed193b75413be998 diff --git a/services/kms/src/stackit/kms/api/default_api.py b/services/kms/src/stackit/kms/api/default_api.py index 58268737b..2952fa330 100644 --- a/services/kms/src/stackit/kms/api/default_api.py +++ b/services/kms/src/stackit/kms/api/default_api.py @@ -12,6 +12,7 @@ """ # noqa: E501 from typing import Any, Dict, List, Optional, Tuple, Union +from uuid import UUID from pydantic import ( Field, @@ -64,9 +65,9 @@ def __init__(self, configuration: Configuration = None) -> None: @validate_call def create_key( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], create_key_payload: CreateKeyPayload, _request_timeout: Union[ None, @@ -83,11 +84,11 @@ def create_key( Creates a new key for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param create_key_payload: (required) :type create_key_payload: CreateKeyPayload :param _request_timeout: timeout setting for this request. If one @@ -140,9 +141,9 @@ def create_key( @validate_call def create_key_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], create_key_payload: CreateKeyPayload, _request_timeout: Union[ None, @@ -159,11 +160,11 @@ def create_key_with_http_info( Creates a new key for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param create_key_payload: (required) :type create_key_payload: CreateKeyPayload :param _request_timeout: timeout setting for this request. If one @@ -216,9 +217,9 @@ def create_key_with_http_info( @validate_call def create_key_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], create_key_payload: CreateKeyPayload, _request_timeout: Union[ None, @@ -235,11 +236,11 @@ def create_key_without_preload_content( Creates a new key for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param create_key_payload: (required) :type create_key_payload: CreateKeyPayload :param _request_timeout: timeout setting for this request. If one @@ -355,7 +356,7 @@ def _create_key_serialize( @validate_call def create_key_ring( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], create_key_ring_payload: CreateKeyRingPayload, _request_timeout: Union[ @@ -373,7 +374,7 @@ def create_key_ring( Creates a new key ring within the project. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param create_key_ring_payload: (required) @@ -426,7 +427,7 @@ def create_key_ring( @validate_call def create_key_ring_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], create_key_ring_payload: CreateKeyRingPayload, _request_timeout: Union[ @@ -444,7 +445,7 @@ def create_key_ring_with_http_info( Creates a new key ring within the project. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param create_key_ring_payload: (required) @@ -497,7 +498,7 @@ def create_key_ring_with_http_info( @validate_call def create_key_ring_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], create_key_ring_payload: CreateKeyRingPayload, _request_timeout: Union[ @@ -515,7 +516,7 @@ def create_key_ring_without_preload_content( Creates a new key ring within the project. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param create_key_ring_payload: (required) @@ -628,9 +629,9 @@ def _create_key_ring_serialize( @validate_call def create_wrapping_key( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], create_wrapping_key_payload: CreateWrappingKeyPayload, _request_timeout: Union[ None, @@ -647,11 +648,11 @@ def create_wrapping_key( Creates a new wrapping key for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param create_wrapping_key_payload: (required) :type create_wrapping_key_payload: CreateWrappingKeyPayload :param _request_timeout: timeout setting for this request. If one @@ -704,9 +705,9 @@ def create_wrapping_key( @validate_call def create_wrapping_key_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], create_wrapping_key_payload: CreateWrappingKeyPayload, _request_timeout: Union[ None, @@ -723,11 +724,11 @@ def create_wrapping_key_with_http_info( Creates a new wrapping key for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param create_wrapping_key_payload: (required) :type create_wrapping_key_payload: CreateWrappingKeyPayload :param _request_timeout: timeout setting for this request. If one @@ -780,9 +781,9 @@ def create_wrapping_key_with_http_info( @validate_call def create_wrapping_key_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], create_wrapping_key_payload: CreateWrappingKeyPayload, _request_timeout: Union[ None, @@ -799,11 +800,11 @@ def create_wrapping_key_without_preload_content( Creates a new wrapping key for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param create_wrapping_key_payload: (required) :type create_wrapping_key_payload: CreateWrappingKeyPayload :param _request_timeout: timeout setting for this request. If one @@ -919,10 +920,10 @@ def _create_wrapping_key_serialize( @validate_call def decrypt( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], decrypt_payload: DecryptPayload, _request_timeout: Union[ @@ -940,13 +941,13 @@ def decrypt( Decrypts data using the given key version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param decrypt_payload: (required) @@ -1005,10 +1006,10 @@ def decrypt( @validate_call def decrypt_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], decrypt_payload: DecryptPayload, _request_timeout: Union[ @@ -1026,13 +1027,13 @@ def decrypt_with_http_info( Decrypts data using the given key version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param decrypt_payload: (required) @@ -1091,10 +1092,10 @@ def decrypt_with_http_info( @validate_call def decrypt_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], decrypt_payload: DecryptPayload, _request_timeout: Union[ @@ -1112,13 +1113,13 @@ def decrypt_without_preload_content( Decrypts data using the given key version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param decrypt_payload: (required) @@ -1246,10 +1247,10 @@ def _decrypt_serialize( @validate_call def delete_key( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1265,13 +1266,13 @@ def delete_key( Schedules the deletion of the given key :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1323,10 +1324,10 @@ def delete_key( @validate_call def delete_key_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1342,13 +1343,13 @@ def delete_key_with_http_info( Schedules the deletion of the given key :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1400,10 +1401,10 @@ def delete_key_with_http_info( @validate_call def delete_key_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1419,13 +1420,13 @@ def delete_key_without_preload_content( Schedules the deletion of the given key :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1532,9 +1533,9 @@ def _delete_key_serialize( @validate_call def delete_key_ring( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1550,11 +1551,11 @@ def delete_key_ring( Deletes the given key ring if it is empty :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1605,9 +1606,9 @@ def delete_key_ring( @validate_call def delete_key_ring_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1623,11 +1624,11 @@ def delete_key_ring_with_http_info( Deletes the given key ring if it is empty :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1678,9 +1679,9 @@ def delete_key_ring_with_http_info( @validate_call def delete_key_ring_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1696,11 +1697,11 @@ def delete_key_ring_without_preload_content( Deletes the given key ring if it is empty :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1803,10 +1804,10 @@ def _delete_key_ring_serialize( @validate_call def delete_wrapping_key( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - wrapping_key_id: Annotated[StrictStr, Field(description="The wrapping key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + wrapping_key_id: Annotated[UUID, Field(description="The wrapping key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1822,13 +1823,13 @@ def delete_wrapping_key( Deletes the given wrapping key :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param wrapping_key_id: The wrapping key UUID. (required) - :type wrapping_key_id: str + :type wrapping_key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1880,10 +1881,10 @@ def delete_wrapping_key( @validate_call def delete_wrapping_key_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - wrapping_key_id: Annotated[StrictStr, Field(description="The wrapping key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + wrapping_key_id: Annotated[UUID, Field(description="The wrapping key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1899,13 +1900,13 @@ def delete_wrapping_key_with_http_info( Deletes the given wrapping key :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param wrapping_key_id: The wrapping key UUID. (required) - :type wrapping_key_id: str + :type wrapping_key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1957,10 +1958,10 @@ def delete_wrapping_key_with_http_info( @validate_call def delete_wrapping_key_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - wrapping_key_id: Annotated[StrictStr, Field(description="The wrapping key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + wrapping_key_id: Annotated[UUID, Field(description="The wrapping key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1976,13 +1977,13 @@ def delete_wrapping_key_without_preload_content( Deletes the given wrapping key :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param wrapping_key_id: The wrapping key UUID. (required) - :type wrapping_key_id: str + :type wrapping_key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2089,10 +2090,10 @@ def _delete_wrapping_key_serialize( @validate_call def destroy_version( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -2109,13 +2110,13 @@ def destroy_version( Removes the key material of a version permanently. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -2170,10 +2171,10 @@ def destroy_version( @validate_call def destroy_version_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -2190,13 +2191,13 @@ def destroy_version_with_http_info( Removes the key material of a version permanently. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -2251,10 +2252,10 @@ def destroy_version_with_http_info( @validate_call def destroy_version_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -2271,13 +2272,13 @@ def destroy_version_without_preload_content( Removes the key material of a version permanently. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -2390,10 +2391,10 @@ def _destroy_version_serialize( @validate_call def disable_version( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -2410,13 +2411,13 @@ def disable_version( Disables the given version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -2471,10 +2472,10 @@ def disable_version( @validate_call def disable_version_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -2491,13 +2492,13 @@ def disable_version_with_http_info( Disables the given version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -2552,10 +2553,10 @@ def disable_version_with_http_info( @validate_call def disable_version_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -2572,13 +2573,13 @@ def disable_version_without_preload_content( Disables the given version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -2691,10 +2692,10 @@ def _disable_version_serialize( @validate_call def enable_version( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -2711,13 +2712,13 @@ def enable_version( Enables the given version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -2772,10 +2773,10 @@ def enable_version( @validate_call def enable_version_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -2792,13 +2793,13 @@ def enable_version_with_http_info( Enables the given version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -2853,10 +2854,10 @@ def enable_version_with_http_info( @validate_call def enable_version_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -2873,13 +2874,13 @@ def enable_version_without_preload_content( Enables the given version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -2992,10 +2993,10 @@ def _enable_version_serialize( @validate_call def encrypt( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], encrypt_payload: EncryptPayload, _request_timeout: Union[ @@ -3013,13 +3014,13 @@ def encrypt( Encrypts data using the given key version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param encrypt_payload: (required) @@ -3078,10 +3079,10 @@ def encrypt( @validate_call def encrypt_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], encrypt_payload: EncryptPayload, _request_timeout: Union[ @@ -3099,13 +3100,13 @@ def encrypt_with_http_info( Encrypts data using the given key version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param encrypt_payload: (required) @@ -3164,10 +3165,10 @@ def encrypt_with_http_info( @validate_call def encrypt_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], encrypt_payload: EncryptPayload, _request_timeout: Union[ @@ -3185,13 +3186,13 @@ def encrypt_without_preload_content( Encrypts data using the given key version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param encrypt_payload: (required) @@ -3319,10 +3320,10 @@ def _encrypt_serialize( @validate_call def get_key( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3338,13 +3339,13 @@ def get_key( Returns the details for the given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3395,10 +3396,10 @@ def get_key( @validate_call def get_key_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3414,13 +3415,13 @@ def get_key_with_http_info( Returns the details for the given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3471,10 +3472,10 @@ def get_key_with_http_info( @validate_call def get_key_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3490,13 +3491,13 @@ def get_key_without_preload_content( Returns the details for the given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3602,9 +3603,9 @@ def _get_key_serialize( @validate_call def get_key_ring( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3620,11 +3621,11 @@ def get_key_ring( Returns the details for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3674,9 +3675,9 @@ def get_key_ring( @validate_call def get_key_ring_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3692,11 +3693,11 @@ def get_key_ring_with_http_info( Returns the details for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3746,9 +3747,9 @@ def get_key_ring_with_http_info( @validate_call def get_key_ring_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3764,11 +3765,11 @@ def get_key_ring_without_preload_content( Returns the details for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3870,10 +3871,10 @@ def _get_key_ring_serialize( @validate_call def get_version( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -3890,13 +3891,13 @@ def get_version( Returns the details for the given version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -3950,10 +3951,10 @@ def get_version( @validate_call def get_version_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -3970,13 +3971,13 @@ def get_version_with_http_info( Returns the details for the given version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -4030,10 +4031,10 @@ def get_version_with_http_info( @validate_call def get_version_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -4050,13 +4051,13 @@ def get_version_without_preload_content( Returns the details for the given version. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -4168,10 +4169,10 @@ def _get_version_serialize( @validate_call def get_wrapping_key( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - wrapping_key_id: Annotated[StrictStr, Field(description="The wrapping key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + wrapping_key_id: Annotated[UUID, Field(description="The wrapping key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4187,13 +4188,13 @@ def get_wrapping_key( Returns the details for the given wrapping key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param wrapping_key_id: The wrapping key UUID. (required) - :type wrapping_key_id: str + :type wrapping_key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4244,10 +4245,10 @@ def get_wrapping_key( @validate_call def get_wrapping_key_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - wrapping_key_id: Annotated[StrictStr, Field(description="The wrapping key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + wrapping_key_id: Annotated[UUID, Field(description="The wrapping key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4263,13 +4264,13 @@ def get_wrapping_key_with_http_info( Returns the details for the given wrapping key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param wrapping_key_id: The wrapping key UUID. (required) - :type wrapping_key_id: str + :type wrapping_key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4320,10 +4321,10 @@ def get_wrapping_key_with_http_info( @validate_call def get_wrapping_key_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - wrapping_key_id: Annotated[StrictStr, Field(description="The wrapping key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + wrapping_key_id: Annotated[UUID, Field(description="The wrapping key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4339,13 +4340,13 @@ def get_wrapping_key_without_preload_content( Returns the details for the given wrapping key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param wrapping_key_id: The wrapping key UUID. (required) - :type wrapping_key_id: str + :type wrapping_key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4451,10 +4452,10 @@ def _get_wrapping_key_serialize( @validate_call def import_key( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], import_key_payload: ImportKeyPayload, _request_timeout: Union[ None, @@ -4471,13 +4472,13 @@ def import_key( Imports a new version to the given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param import_key_payload: (required) :type import_key_payload: ImportKeyPayload :param _request_timeout: timeout setting for this request. If one @@ -4532,10 +4533,10 @@ def import_key( @validate_call def import_key_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], import_key_payload: ImportKeyPayload, _request_timeout: Union[ None, @@ -4552,13 +4553,13 @@ def import_key_with_http_info( Imports a new version to the given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param import_key_payload: (required) :type import_key_payload: ImportKeyPayload :param _request_timeout: timeout setting for this request. If one @@ -4613,10 +4614,10 @@ def import_key_with_http_info( @validate_call def import_key_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], import_key_payload: ImportKeyPayload, _request_timeout: Union[ None, @@ -4633,13 +4634,13 @@ def import_key_without_preload_content( Imports a new version to the given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param import_key_payload: (required) :type import_key_payload: ImportKeyPayload :param _request_timeout: timeout setting for this request. If one @@ -4760,7 +4761,7 @@ def _import_key_serialize( @validate_call def list_key_rings( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], _request_timeout: Union[ None, @@ -4777,7 +4778,7 @@ def list_key_rings( Returns a list of all key rings within the project. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param _request_timeout: timeout setting for this request. If one @@ -4827,7 +4828,7 @@ def list_key_rings( @validate_call def list_key_rings_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], _request_timeout: Union[ None, @@ -4844,7 +4845,7 @@ def list_key_rings_with_http_info( Returns a list of all key rings within the project. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param _request_timeout: timeout setting for this request. If one @@ -4894,7 +4895,7 @@ def list_key_rings_with_http_info( @validate_call def list_key_rings_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], _request_timeout: Union[ None, @@ -4911,7 +4912,7 @@ def list_key_rings_without_preload_content( Returns a list of all key rings within the project. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param _request_timeout: timeout setting for this request. If one @@ -5010,9 +5011,9 @@ def _list_key_rings_serialize( @validate_call def list_keys( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5028,11 +5029,11 @@ def list_keys( Returns the keys for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5082,9 +5083,9 @@ def list_keys( @validate_call def list_keys_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5100,11 +5101,11 @@ def list_keys_with_http_info( Returns the keys for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5154,9 +5155,9 @@ def list_keys_with_http_info( @validate_call def list_keys_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5172,11 +5173,11 @@ def list_keys_without_preload_content( Returns the keys for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5278,10 +5279,10 @@ def _list_keys_serialize( @validate_call def list_versions( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5297,13 +5298,13 @@ def list_versions( Returns a list of all versions of a given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5354,10 +5355,10 @@ def list_versions( @validate_call def list_versions_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5373,13 +5374,13 @@ def list_versions_with_http_info( Returns a list of all versions of a given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5430,10 +5431,10 @@ def list_versions_with_http_info( @validate_call def list_versions_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5449,13 +5450,13 @@ def list_versions_without_preload_content( Returns a list of all versions of a given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5561,9 +5562,9 @@ def _list_versions_serialize( @validate_call def list_wrapping_keys( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5579,11 +5580,11 @@ def list_wrapping_keys( Returns the wrapping keys for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5633,9 +5634,9 @@ def list_wrapping_keys( @validate_call def list_wrapping_keys_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5651,11 +5652,11 @@ def list_wrapping_keys_with_http_info( Returns the wrapping keys for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5705,9 +5706,9 @@ def list_wrapping_keys_with_http_info( @validate_call def list_wrapping_keys_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5723,11 +5724,11 @@ def list_wrapping_keys_without_preload_content( Returns the wrapping keys for the given key ring. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5829,10 +5830,10 @@ def _list_wrapping_keys_serialize( @validate_call def restore_key( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5848,13 +5849,13 @@ def restore_key( Restores the given key from being deleted. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5906,10 +5907,10 @@ def restore_key( @validate_call def restore_key_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5925,13 +5926,13 @@ def restore_key_with_http_info( Restores the given key from being deleted. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5983,10 +5984,10 @@ def restore_key_with_http_info( @validate_call def restore_key_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6002,13 +6003,13 @@ def restore_key_without_preload_content( Restores the given key from being deleted. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6115,10 +6116,10 @@ def _restore_key_serialize( @validate_call def restore_version( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -6135,13 +6136,13 @@ def restore_version( Restores the given version from being destroyed :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -6196,10 +6197,10 @@ def restore_version( @validate_call def restore_version_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -6216,13 +6217,13 @@ def restore_version_with_http_info( Restores the given version from being destroyed :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -6277,10 +6278,10 @@ def restore_version_with_http_info( @validate_call def restore_version_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], _request_timeout: Union[ None, @@ -6297,13 +6298,13 @@ def restore_version_without_preload_content( Restores the given version from being destroyed :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param _request_timeout: timeout setting for this request. If one @@ -6416,10 +6417,10 @@ def _restore_version_serialize( @validate_call def rotate_key( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6435,13 +6436,13 @@ def rotate_key( Rotates the given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6494,10 +6495,10 @@ def rotate_key( @validate_call def rotate_key_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6513,13 +6514,13 @@ def rotate_key_with_http_info( Rotates the given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6572,10 +6573,10 @@ def rotate_key_with_http_info( @validate_call def rotate_key_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6591,13 +6592,13 @@ def rotate_key_without_preload_content( Rotates the given key. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6705,10 +6706,10 @@ def _rotate_key_serialize( @validate_call def sign( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], sign_payload: SignPayload, _request_timeout: Union[ @@ -6726,13 +6727,13 @@ def sign( Sign data using the given key version as secret. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param sign_payload: (required) @@ -6791,10 +6792,10 @@ def sign( @validate_call def sign_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], sign_payload: SignPayload, _request_timeout: Union[ @@ -6812,13 +6813,13 @@ def sign_with_http_info( Sign data using the given key version as secret. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param sign_payload: (required) @@ -6877,10 +6878,10 @@ def sign_with_http_info( @validate_call def sign_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], sign_payload: SignPayload, _request_timeout: Union[ @@ -6898,13 +6899,13 @@ def sign_without_preload_content( Sign data using the given key version as secret. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param sign_payload: (required) @@ -7032,10 +7033,10 @@ def _sign_serialize( @validate_call def verify( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], verify_payload: VerifyPayload, _request_timeout: Union[ @@ -7053,13 +7054,13 @@ def verify( Verify data using the given key version as secret. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param verify_payload: (required) @@ -7118,10 +7119,10 @@ def verify( @validate_call def verify_with_http_info( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], verify_payload: VerifyPayload, _request_timeout: Union[ @@ -7139,13 +7140,13 @@ def verify_with_http_info( Verify data using the given key version as secret. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param verify_payload: (required) @@ -7204,10 +7205,10 @@ def verify_with_http_info( @validate_call def verify_without_preload_content( self, - project_id: Annotated[StrictStr, Field(description="The STACKIT portal project UUID the key ring is part of.")], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the key ring is part of.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the key ring is located in.")], - key_ring_id: Annotated[StrictStr, Field(description="The key ring UUID.")], - key_id: Annotated[StrictStr, Field(description="The key UUID.")], + key_ring_id: Annotated[UUID, Field(description="The key ring UUID.")], + key_id: Annotated[UUID, Field(description="The key UUID.")], version_number: Annotated[StrictInt, Field(description="The version number.")], verify_payload: VerifyPayload, _request_timeout: Union[ @@ -7225,13 +7226,13 @@ def verify_without_preload_content( Verify data using the given key version as secret. :param project_id: The STACKIT portal project UUID the key ring is part of. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the key ring is located in. (required) :type region_id: str :param key_ring_id: The key ring UUID. (required) - :type key_ring_id: str + :type key_ring_id: UUID :param key_id: The key UUID. (required) - :type key_id: str + :type key_id: UUID :param version_number: The version number. (required) :type version_number: int :param verify_payload: (required) diff --git a/services/kms/src/stackit/kms/api_client.py b/services/kms/src/stackit/kms/api_client.py index 45034e13c..0037f1120 100644 --- a/services/kms/src/stackit/kms/api_client.py +++ b/services/kms/src/stackit/kms/api_client.py @@ -12,11 +12,13 @@ """ # noqa: E501 import datetime +import decimal import json import mimetypes import os import re import tempfile +import uuid from enum import Enum from typing import Dict, List, Optional, Tuple, Union from urllib.parse import quote @@ -63,8 +65,10 @@ class ApiClient: "bool": bool, "date": datetime.date, "datetime": datetime.datetime, + "decimal": decimal.Decimal, "object": object, } + _pool = None def __init__(self, configuration, header_name=None, header_value=None, cookie=None) -> None: self.config: Configuration = configuration @@ -267,7 +271,7 @@ def response_deserialize( return_data = self.__deserialize_file(response_data) elif response_type is not None: match = None - content_type = response_data.getheader("content-type") + content_type = response_data.headers.get("content-type") if content_type is not None: match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type) encoding = match.group(1) if match else "utf-8" @@ -284,7 +288,7 @@ def response_deserialize( return ApiResponse( status_code=response_data.status, data=return_data, - headers=response_data.getheaders(), + headers=response_data.headers, raw_data=response_data.data, ) @@ -296,6 +300,7 @@ def sanitize_for_serialization(self, obj): If obj is str, int, long, float, bool, return directly. If obj is datetime.datetime, datetime.date convert to string in iso8601 format. + If obj is decimal.Decimal return string representation. If obj is list, sanitize each element in the list. If obj is dict, return the dict. If obj is OpenAPI model, return the properties dict. @@ -311,12 +316,16 @@ def sanitize_for_serialization(self, obj): return obj.get_secret_value() elif isinstance(obj, self.PRIMITIVE_TYPES): return obj + elif isinstance(obj, uuid.UUID): + return str(obj) elif isinstance(obj, list): return [self.sanitize_for_serialization(sub_obj) for sub_obj in obj] elif isinstance(obj, tuple): return tuple(self.sanitize_for_serialization(sub_obj) for sub_obj in obj) elif isinstance(obj, (datetime.datetime, datetime.date)): return obj.isoformat() + elif isinstance(obj, decimal.Decimal): + return str(obj) elif isinstance(obj, dict): obj_dict = obj @@ -326,7 +335,7 @@ def sanitize_for_serialization(self, obj): # and attributes which value is not None. # Convert attribute name to json key in # model definition for request. - if hasattr(obj, "to_dict") and callable(obj.to_dict): + if hasattr(obj, "to_dict") and callable(getattr(obj, "to_dict")): # noqa: B009 obj_dict = obj.to_dict() else: obj_dict = obj.__dict__ @@ -354,7 +363,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif re.match(r"^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE): + elif re.match(r"^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)", content_type, re.IGNORECASE): if response_text == "": data = "" else: @@ -400,12 +409,14 @@ def __deserialize(self, data, klass): if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) - elif klass == object: + elif klass is object: return self.__deserialize_object(data) - elif klass == datetime.date: + elif klass is datetime.date: return self.__deserialize_date(data) - elif klass == datetime.datetime: + elif klass is datetime.datetime: return self.__deserialize_datetime(data) + elif klass is decimal.Decimal: + return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) else: @@ -553,12 +564,14 @@ def __deserialize_file(self, response): os.close(fd) os.remove(path) - content_disposition = response.getheader("Content-Disposition") + content_disposition = response.headers.get("Content-Disposition") if content_disposition: m = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', content_disposition) if m is None: raise ValueError("Unexpected 'content-disposition' header value") - filename = m.group(1) + filename = os.path.basename(m.group(1)) # Strip any directory traversal + if filename in ("", ".", ".."): # fall back to tmp filename + filename = os.path.basename(path) path = os.path.join(os.path.dirname(path), filename) with open(path, "wb") as f: diff --git a/services/kms/src/stackit/kms/exceptions.py b/services/kms/src/stackit/kms/exceptions.py index 993863e49..0197b2264 100644 --- a/services/kms/src/stackit/kms/exceptions.py +++ b/services/kms/src/stackit/kms/exceptions.py @@ -129,7 +129,7 @@ def __init__( self.body = http_resp.data.decode("utf-8") except Exception: # noqa: S110 pass - self.headers = http_resp.getheaders() + self.headers = http_resp.headers @classmethod def from_response( diff --git a/services/kms/src/stackit/kms/models/__init__.py b/services/kms/src/stackit/kms/models/__init__.py index ad5dd2520..b2e8705b4 100644 --- a/services/kms/src/stackit/kms/models/__init__.py +++ b/services/kms/src/stackit/kms/models/__init__.py @@ -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 diff --git a/services/kms/src/stackit/kms/models/import_key_payload.py b/services/kms/src/stackit/kms/models/import_key_payload.py index 950909f47..5da52f65b 100644 --- a/services/kms/src/stackit/kms/models/import_key_payload.py +++ b/services/kms/src/stackit/kms/models/import_key_payload.py @@ -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 @@ -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"] diff --git a/services/kms/src/stackit/kms/models/key.py b/services/kms/src/stackit/kms/models/key.py index 6f2014a35..3f44e2f32 100644 --- a/services/kms/src/stackit/kms/models/key.py +++ b/services/kms/src/stackit/kms/models/key.py @@ -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, @@ -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.") diff --git a/services/kms/src/stackit/kms/models/key_list.py b/services/kms/src/stackit/kms/models/key_list.py index f2bb6e7d1..d78be2d30 100644 --- a/services/kms/src/stackit/kms/models/key_list.py +++ b/services/kms/src/stackit/kms/models/key_list.py @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in keys (list) _items = [] if self.keys: - for _item in self.keys: - if _item: - _items.append(_item.to_dict()) + for _item_keys in self.keys: + if _item_keys: + _items.append(_item_keys.to_dict()) _dict["keys"] = _items return _dict diff --git a/services/kms/src/stackit/kms/models/key_ring.py b/services/kms/src/stackit/kms/models/key_ring.py index 8d1d1f9bb..d327d3a8a 100644 --- a/services/kms/src/stackit/kms/models/key_ring.py +++ b/services/kms/src/stackit/kms/models/key_ring.py @@ -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 @@ -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"] diff --git a/services/kms/src/stackit/kms/models/key_ring_list.py b/services/kms/src/stackit/kms/models/key_ring_list.py index 23c1014f7..e8da6fcd8 100644 --- a/services/kms/src/stackit/kms/models/key_ring_list.py +++ b/services/kms/src/stackit/kms/models/key_ring_list.py @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in key_rings (list) _items = [] if self.key_rings: - for _item in self.key_rings: - if _item: - _items.append(_item.to_dict()) + for _item_key_rings in self.key_rings: + if _item_key_rings: + _items.append(_item_key_rings.to_dict()) _dict["keyRings"] = _items return _dict diff --git a/services/kms/src/stackit/kms/models/version.py b/services/kms/src/stackit/kms/models/version.py index 06cd31f74..cd1377bc0 100644 --- a/services/kms/src/stackit/kms/models/version.py +++ b/services/kms/src/stackit/kms/models/version.py @@ -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, @@ -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.") diff --git a/services/kms/src/stackit/kms/models/version_list.py b/services/kms/src/stackit/kms/models/version_list.py index 7744f369e..5d6d86287 100644 --- a/services/kms/src/stackit/kms/models/version_list.py +++ b/services/kms/src/stackit/kms/models/version_list.py @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in versions (list) _items = [] if self.versions: - for _item in self.versions: - if _item: - _items.append(_item.to_dict()) + for _item_versions in self.versions: + if _item_versions: + _items.append(_item_versions.to_dict()) _dict["versions"] = _items return _dict diff --git a/services/kms/src/stackit/kms/models/wrapping_key.py b/services/kms/src/stackit/kms/models/wrapping_key.py index 2d49d6127..3cc243152 100644 --- a/services/kms/src/stackit/kms/models/wrapping_key.py +++ b/services/kms/src/stackit/kms/models/wrapping_key.py @@ -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 @@ -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 diff --git a/services/kms/src/stackit/kms/models/wrapping_key_list.py b/services/kms/src/stackit/kms/models/wrapping_key_list.py index b85b09cf5..5810aae30 100644 --- a/services/kms/src/stackit/kms/models/wrapping_key_list.py +++ b/services/kms/src/stackit/kms/models/wrapping_key_list.py @@ -71,9 +71,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in wrapping_keys (list) _items = [] if self.wrapping_keys: - for _item in self.wrapping_keys: - if _item: - _items.append(_item.to_dict()) + for _item_wrapping_keys in self.wrapping_keys: + if _item_wrapping_keys: + _items.append(_item_wrapping_keys.to_dict()) _dict["wrappingKeys"] = _items return _dict diff --git a/services/kms/src/stackit/kms/rest.py b/services/kms/src/stackit/kms/rest.py index 395d7f138..0595e7b31 100644 --- a/services/kms/src/stackit/kms/rest.py +++ b/services/kms/src/stackit/kms/rest.py @@ -38,12 +38,17 @@ def read(self): self.data = self.response.content return self.data + @property + def headers(self): + """Returns a dictionary of response headers.""" + return self.response.headers + def getheaders(self): - """Returns a dictionary of the response headers.""" + """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers def getheader(self, name, default=None): - """Returns a given response header.""" + """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) @@ -93,6 +98,7 @@ def request(self, method, url, headers=None, body=None, post_params=None, _reque url, data=request_body, headers=headers, + timeout=_request_timeout, ) elif content_type == "application/x-www-form-urlencoded": r = self.session.request( @@ -100,6 +106,7 @@ def request(self, method, url, headers=None, body=None, post_params=None, _reque url, params=post_params, headers=headers, + timeout=_request_timeout, ) elif content_type == "multipart/form-data": # must del headers['Content-Type'], or the correct @@ -113,6 +120,7 @@ def request(self, method, url, headers=None, body=None, post_params=None, _reque url, files=post_params, headers=headers, + timeout=_request_timeout, ) # Pass a `string` parameter directly in the body to support # other content types than JSON when `body` argument is @@ -123,10 +131,17 @@ def request(self, method, url, headers=None, body=None, post_params=None, _reque url, data=body, headers=headers, + timeout=_request_timeout, ) elif headers["Content-Type"].startswith("text/") and isinstance(body, bool): request_body = "true" if body else "false" - r = self.session.request(method, url, data=request_body, headers=headers) + r = self.session.request( + method, + url, + data=request_body, + headers=headers, + timeout=_request_timeout, + ) else: # Cannot generate the request from given parameters msg = """Cannot prepare a request message for provided @@ -140,6 +155,7 @@ def request(self, method, url, headers=None, body=None, post_params=None, _reque url, params={}, headers=headers, + timeout=_request_timeout, ) except requests.exceptions.SSLError as e: msg = "\n".join([type(e).__name__, str(e)]) diff --git a/services/kms/uv.lock b/services/kms/uv.lock index 9858cd122..6f502acd4 100644 --- a/services/kms/uv.lock +++ b/services/kms/uv.lock @@ -907,7 +907,7 @@ dev = [ [[package]] name = "stackit-kms" -version = "0.7.0" +version = "0.8.0" source = { editable = "." } dependencies = [ { name = "pydantic" },