diff --git a/services/secretsmanager/oas_commit b/services/secretsmanager/oas_commit index f137f4d6..e3713dde 100644 --- a/services/secretsmanager/oas_commit +++ b/services/secretsmanager/oas_commit @@ -1 +1 @@ -cb550f3c2129447568c2855337b1874968e033bb +0e64886dd0847341800d7191ed193b75413be998 diff --git a/services/secretsmanager/src/stackit/secretsmanager/api/default_api.py b/services/secretsmanager/src/stackit/secretsmanager/api/default_api.py index 32b23299..c1ca1e5a 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/api/default_api.py +++ b/services/secretsmanager/src/stackit/secretsmanager/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, StrictFloat, StrictInt, StrictStr, validate_call from stackit.core.configuration import Configuration @@ -52,9 +53,9 @@ def __init__(self, configuration: Configuration = None) -> None: def create_acl( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], create_acl_payload: CreateACLPayload, _request_timeout: Union[ None, @@ -71,9 +72,9 @@ def create_acl( Creates a new Secrets Manager acl within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param create_acl_payload: (required) :type create_acl_payload: CreateACLPayload :param _request_timeout: timeout setting for this request. If one @@ -127,9 +128,9 @@ def create_acl( def create_acl_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], create_acl_payload: CreateACLPayload, _request_timeout: Union[ None, @@ -146,9 +147,9 @@ def create_acl_with_http_info( Creates a new Secrets Manager acl within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param create_acl_payload: (required) :type create_acl_payload: CreateACLPayload :param _request_timeout: timeout setting for this request. If one @@ -202,9 +203,9 @@ def create_acl_with_http_info( def create_acl_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], create_acl_payload: CreateACLPayload, _request_timeout: Union[ None, @@ -221,9 +222,9 @@ def create_acl_without_preload_content( Creates a new Secrets Manager acl within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param create_acl_payload: (required) :type create_acl_payload: CreateACLPayload :param _request_timeout: timeout setting for this request. If one @@ -337,7 +338,7 @@ def _create_acl_serialize( def create_instance( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], create_instance_payload: CreateInstancePayload, _request_timeout: Union[ @@ -355,7 +356,7 @@ def create_instance( Creates a new Secrets Manager instance within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param create_instance_payload: (required) :type create_instance_payload: CreateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -406,7 +407,7 @@ def create_instance( def create_instance_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], create_instance_payload: CreateInstancePayload, _request_timeout: Union[ @@ -424,7 +425,7 @@ def create_instance_with_http_info( Creates a new Secrets Manager instance within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param create_instance_payload: (required) :type create_instance_payload: CreateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -475,7 +476,7 @@ def create_instance_with_http_info( def create_instance_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], create_instance_payload: CreateInstancePayload, _request_timeout: Union[ @@ -493,7 +494,7 @@ def create_instance_without_preload_content( Creates a new Secrets Manager instance within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param create_instance_payload: (required) :type create_instance_payload: CreateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -601,9 +602,9 @@ def _create_instance_serialize( def create_user( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], create_user_payload: CreateUserPayload, _request_timeout: Union[ None, @@ -620,9 +621,9 @@ def create_user( Creates a new user for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param create_user_payload: (required) :type create_user_payload: CreateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -676,9 +677,9 @@ def create_user( def create_user_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], create_user_payload: CreateUserPayload, _request_timeout: Union[ None, @@ -695,9 +696,9 @@ def create_user_with_http_info( Creates a new user for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param create_user_payload: (required) :type create_user_payload: CreateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -751,9 +752,9 @@ def create_user_with_http_info( def create_user_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], create_user_payload: CreateUserPayload, _request_timeout: Union[ None, @@ -770,9 +771,9 @@ def create_user_without_preload_content( Creates a new user for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param create_user_payload: (required) :type create_user_payload: CreateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -886,10 +887,10 @@ def _create_user_serialize( def delete_acl( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - acl_id: Annotated[StrictStr, Field(description="The acl UUID of the Secrets Manager instance.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + acl_id: Annotated[UUID, Field(description="The acl UUID of the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -905,11 +906,11 @@ def delete_acl( Deletes the given acl. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param acl_id: The acl UUID of the Secrets Manager instance. (required) - :type acl_id: str + :type acl_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 @@ -960,10 +961,10 @@ def delete_acl( def delete_acl_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - acl_id: Annotated[StrictStr, Field(description="The acl UUID of the Secrets Manager instance.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + acl_id: Annotated[UUID, Field(description="The acl UUID of the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -979,11 +980,11 @@ def delete_acl_with_http_info( Deletes the given acl. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param acl_id: The acl UUID of the Secrets Manager instance. (required) - :type acl_id: str + :type acl_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 @@ -1034,10 +1035,10 @@ def delete_acl_with_http_info( def delete_acl_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - acl_id: Annotated[StrictStr, Field(description="The acl UUID of the Secrets Manager instance.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + acl_id: Annotated[UUID, Field(description="The acl UUID of the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1053,11 +1054,11 @@ def delete_acl_without_preload_content( Deletes the given acl. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param acl_id: The acl UUID of the Secrets Manager instance. (required) - :type acl_id: str + :type acl_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 @@ -1160,9 +1161,9 @@ def _delete_acl_serialize( def delete_instance( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1178,9 +1179,9 @@ def delete_instance( Deletes the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -1230,9 +1231,9 @@ def delete_instance( def delete_instance_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1248,9 +1249,9 @@ def delete_instance_with_http_info( Deletes the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -1300,9 +1301,9 @@ def delete_instance_with_http_info( def delete_instance_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1318,9 +1319,9 @@ def delete_instance_without_preload_content( Deletes the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -1419,12 +1420,10 @@ def _delete_instance_serialize( def delete_user( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") - ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - user_id: Annotated[ - StrictStr, Field(description="The user UUID with permissions on the Secrets Manager instance.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + user_id: Annotated[UUID, Field(description="The user UUID with permissions on the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1440,11 +1439,11 @@ def delete_user( Deletes the given user. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param user_id: The user UUID with permissions on the Secrets Manager instance. (required) - :type user_id: str + :type user_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 @@ -1495,12 +1494,10 @@ def delete_user( def delete_user_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") - ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - user_id: Annotated[ - StrictStr, Field(description="The user UUID with permissions on the Secrets Manager instance.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + user_id: Annotated[UUID, Field(description="The user UUID with permissions on the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1516,11 +1513,11 @@ def delete_user_with_http_info( Deletes the given user. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param user_id: The user UUID with permissions on the Secrets Manager instance. (required) - :type user_id: str + :type user_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 @@ -1571,12 +1568,10 @@ def delete_user_with_http_info( def delete_user_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") - ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - user_id: Annotated[ - StrictStr, Field(description="The user UUID with permissions on the Secrets Manager instance.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + user_id: Annotated[UUID, Field(description="The user UUID with permissions on the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1592,11 +1587,11 @@ def delete_user_without_preload_content( Deletes the given user. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param user_id: The user UUID with permissions on the Secrets Manager instance. (required) - :type user_id: str + :type user_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 @@ -1699,10 +1694,10 @@ def _delete_user_serialize( def get_acl( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - acl_id: Annotated[StrictStr, Field(description="The acl UUID of the Secrets Manager instance.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + acl_id: Annotated[UUID, Field(description="The acl UUID of the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1718,11 +1713,11 @@ def get_acl( Returns the details for the given acl. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param acl_id: The acl UUID of the Secrets Manager instance. (required) - :type acl_id: str + :type acl_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 @@ -1773,10 +1768,10 @@ def get_acl( def get_acl_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - acl_id: Annotated[StrictStr, Field(description="The acl UUID of the Secrets Manager instance.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + acl_id: Annotated[UUID, Field(description="The acl UUID of the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1792,11 +1787,11 @@ def get_acl_with_http_info( Returns the details for the given acl. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param acl_id: The acl UUID of the Secrets Manager instance. (required) - :type acl_id: str + :type acl_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 @@ -1847,10 +1842,10 @@ def get_acl_with_http_info( def get_acl_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - acl_id: Annotated[StrictStr, Field(description="The acl UUID of the Secrets Manager instance.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + acl_id: Annotated[UUID, Field(description="The acl UUID of the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1866,11 +1861,11 @@ def get_acl_without_preload_content( Returns the details for the given acl. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param acl_id: The acl UUID of the Secrets Manager instance. (required) - :type acl_id: str + :type acl_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 @@ -1973,9 +1968,9 @@ def _get_acl_serialize( def get_instance( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1991,9 +1986,9 @@ def get_instance( Returns the details for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -2043,9 +2038,9 @@ def get_instance( def get_instance_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2061,9 +2056,9 @@ def get_instance_with_http_info( Returns the details for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -2113,9 +2108,9 @@ def get_instance_with_http_info( def get_instance_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2131,9 +2126,9 @@ def get_instance_without_preload_content( Returns the details for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -2232,12 +2227,10 @@ def _get_instance_serialize( def get_user( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") - ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - user_id: Annotated[ - StrictStr, Field(description="The user UUID with permissions on the Secrets Manager instance.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + user_id: Annotated[UUID, Field(description="The user UUID with permissions on the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2253,11 +2246,11 @@ def get_user( Returns the details for the given user. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param user_id: The user UUID with permissions on the Secrets Manager instance. (required) - :type user_id: str + :type user_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 @@ -2308,12 +2301,10 @@ def get_user( def get_user_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") - ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - user_id: Annotated[ - StrictStr, Field(description="The user UUID with permissions on the Secrets Manager instance.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + user_id: Annotated[UUID, Field(description="The user UUID with permissions on the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2329,11 +2320,11 @@ def get_user_with_http_info( Returns the details for the given user. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param user_id: The user UUID with permissions on the Secrets Manager instance. (required) - :type user_id: str + :type user_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 @@ -2384,12 +2375,10 @@ def get_user_with_http_info( def get_user_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") - ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - user_id: Annotated[ - StrictStr, Field(description="The user UUID with permissions on the Secrets Manager instance.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + user_id: Annotated[UUID, Field(description="The user UUID with permissions on the Secrets Manager instance.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2405,11 +2394,11 @@ def get_user_without_preload_content( Returns the details for the given user. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param user_id: The user UUID with permissions on the Secrets Manager instance. (required) - :type user_id: str + :type user_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 @@ -2512,9 +2501,9 @@ def _get_user_serialize( def list_acls( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2530,9 +2519,9 @@ def list_acls( Returns the acls for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -2582,9 +2571,9 @@ def list_acls( def list_acls_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2600,9 +2589,9 @@ def list_acls_with_http_info( Returns the acls for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -2652,9 +2641,9 @@ def list_acls_with_http_info( def list_acls_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2670,9 +2659,9 @@ def list_acls_without_preload_content( Returns the acls for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -2771,7 +2760,7 @@ def _list_acls_serialize( def list_instances( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], _request_timeout: Union[ None, @@ -2788,7 +2777,7 @@ def list_instances( Returns a list of all Secrets Manager instances within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_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 @@ -2836,7 +2825,7 @@ def list_instances( def list_instances_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], _request_timeout: Union[ None, @@ -2853,7 +2842,7 @@ def list_instances_with_http_info( Returns a list of all Secrets Manager instances within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_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 @@ -2901,7 +2890,7 @@ def list_instances_with_http_info( def list_instances_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], _request_timeout: Union[ None, @@ -2918,7 +2907,7 @@ def list_instances_without_preload_content( Returns a list of all Secrets Manager instances within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_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 @@ -3012,9 +3001,9 @@ def _list_instances_serialize( def list_users( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3030,9 +3019,9 @@ def list_users( Returns the users for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -3082,9 +3071,9 @@ def list_users( def list_users_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3100,9 +3089,9 @@ def list_users_with_http_info( Returns the users for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -3152,9 +3141,9 @@ def list_users_with_http_info( def list_users_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3170,9 +3159,9 @@ def list_users_without_preload_content( Returns the users for the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_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 @@ -3271,10 +3260,10 @@ def _list_users_serialize( def update_acl( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - acl_id: Annotated[StrictStr, Field(description="The acl UUID of the Secrets Manager instance.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + acl_id: Annotated[UUID, Field(description="The acl UUID of the Secrets Manager instance.")], update_acl_payload: UpdateACLPayload, _request_timeout: Union[ None, @@ -3291,11 +3280,11 @@ def update_acl( Updates the ip ranges for the acl. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param acl_id: The acl UUID of the Secrets Manager instance. (required) - :type acl_id: str + :type acl_id: UUID :param update_acl_payload: (required) :type update_acl_payload: UpdateACLPayload :param _request_timeout: timeout setting for this request. If one @@ -3349,10 +3338,10 @@ def update_acl( def update_acl_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - acl_id: Annotated[StrictStr, Field(description="The acl UUID of the Secrets Manager instance.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + acl_id: Annotated[UUID, Field(description="The acl UUID of the Secrets Manager instance.")], update_acl_payload: UpdateACLPayload, _request_timeout: Union[ None, @@ -3369,11 +3358,11 @@ def update_acl_with_http_info( Updates the ip ranges for the acl. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param acl_id: The acl UUID of the Secrets Manager instance. (required) - :type acl_id: str + :type acl_id: UUID :param update_acl_payload: (required) :type update_acl_payload: UpdateACLPayload :param _request_timeout: timeout setting for this request. If one @@ -3427,10 +3416,10 @@ def update_acl_with_http_info( def update_acl_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - acl_id: Annotated[StrictStr, Field(description="The acl UUID of the Secrets Manager instance.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + acl_id: Annotated[UUID, Field(description="The acl UUID of the Secrets Manager instance.")], update_acl_payload: UpdateACLPayload, _request_timeout: Union[ None, @@ -3447,11 +3436,11 @@ def update_acl_without_preload_content( Updates the ip ranges for the acl. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param acl_id: The acl UUID of the Secrets Manager instance. (required) - :type acl_id: str + :type acl_id: UUID :param update_acl_payload: (required) :type update_acl_payload: UpdateACLPayload :param _request_timeout: timeout setting for this request. If one @@ -3568,9 +3557,9 @@ def _update_acl_serialize( def update_acls( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], update_acls_payload: UpdateACLsPayload, _request_timeout: Union[ None, @@ -3587,9 +3576,9 @@ def update_acls( Changes a list of ACLs within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param update_acls_payload: (required) :type update_acls_payload: UpdateACLsPayload :param _request_timeout: timeout setting for this request. If one @@ -3643,9 +3632,9 @@ def update_acls( def update_acls_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], update_acls_payload: UpdateACLsPayload, _request_timeout: Union[ None, @@ -3662,9 +3651,9 @@ def update_acls_with_http_info( Changes a list of ACLs within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param update_acls_payload: (required) :type update_acls_payload: UpdateACLsPayload :param _request_timeout: timeout setting for this request. If one @@ -3718,9 +3707,9 @@ def update_acls_with_http_info( def update_acls_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], update_acls_payload: UpdateACLsPayload, _request_timeout: Union[ None, @@ -3737,9 +3726,9 @@ def update_acls_without_preload_content( Changes a list of ACLs within the project. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param update_acls_payload: (required) :type update_acls_payload: UpdateACLsPayload :param _request_timeout: timeout setting for this request. If one @@ -3853,9 +3842,9 @@ def _update_acls_serialize( def update_instance( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], update_instance_payload: UpdateInstancePayload, _request_timeout: Union[ None, @@ -3872,9 +3861,9 @@ def update_instance( Updates the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param update_instance_payload: (required) :type update_instance_payload: UpdateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -3927,9 +3916,9 @@ def update_instance( def update_instance_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], update_instance_payload: UpdateInstancePayload, _request_timeout: Union[ None, @@ -3946,9 +3935,9 @@ def update_instance_with_http_info( Updates the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param update_instance_payload: (required) :type update_instance_payload: UpdateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -4001,9 +3990,9 @@ def update_instance_with_http_info( def update_instance_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], update_instance_payload: UpdateInstancePayload, _request_timeout: Union[ None, @@ -4020,9 +4009,9 @@ def update_instance_without_preload_content( Updates the given Secrets Manager instance. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param update_instance_payload: (required) :type update_instance_payload: UpdateInstancePayload :param _request_timeout: timeout setting for this request. If one @@ -4135,12 +4124,10 @@ def _update_instance_serialize( def update_user( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") - ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - user_id: Annotated[ - StrictStr, Field(description="The user UUID with permissions on the Secrets Manager instance.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + user_id: Annotated[UUID, Field(description="The user UUID with permissions on the Secrets Manager instance.")], update_user_payload: UpdateUserPayload, _request_timeout: Union[ None, @@ -4157,11 +4144,11 @@ def update_user( Updates the details for the given user. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param user_id: The user UUID with permissions on the Secrets Manager instance. (required) - :type user_id: str + :type user_id: UUID :param update_user_payload: (required) :type update_user_payload: UpdateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -4215,12 +4202,10 @@ def update_user( def update_user_with_http_info( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") - ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - user_id: Annotated[ - StrictStr, Field(description="The user UUID with permissions on the Secrets Manager instance.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + user_id: Annotated[UUID, Field(description="The user UUID with permissions on the Secrets Manager instance.")], update_user_payload: UpdateUserPayload, _request_timeout: Union[ None, @@ -4237,11 +4222,11 @@ def update_user_with_http_info( Updates the details for the given user. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param user_id: The user UUID with permissions on the Secrets Manager instance. (required) - :type user_id: str + :type user_id: UUID :param update_user_payload: (required) :type update_user_payload: UpdateUserPayload :param _request_timeout: timeout setting for this request. If one @@ -4295,12 +4280,10 @@ def update_user_with_http_info( def update_user_without_preload_content( self, project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") - ], - instance_id: Annotated[StrictStr, Field(description="The Secrets Manager instance UUID.")], - user_id: Annotated[ - StrictStr, Field(description="The user UUID with permissions on the Secrets Manager instance.") + UUID, Field(description="The STACKIT portal project UUID the Secrets Manager instance is part of.") ], + instance_id: Annotated[UUID, Field(description="The Secrets Manager instance UUID.")], + user_id: Annotated[UUID, Field(description="The user UUID with permissions on the Secrets Manager instance.")], update_user_payload: UpdateUserPayload, _request_timeout: Union[ None, @@ -4317,11 +4300,11 @@ def update_user_without_preload_content( Updates the details for the given user. :param project_id: The STACKIT portal project UUID the Secrets Manager instance is part of. (required) - :type project_id: str + :type project_id: UUID :param instance_id: The Secrets Manager instance UUID. (required) - :type instance_id: str + :type instance_id: UUID :param user_id: The user UUID with permissions on the Secrets Manager instance. (required) - :type user_id: str + :type user_id: UUID :param update_user_payload: (required) :type update_user_payload: UpdateUserPayload :param _request_timeout: timeout setting for this request. If one diff --git a/services/secretsmanager/src/stackit/secretsmanager/api_client.py b/services/secretsmanager/src/stackit/secretsmanager/api_client.py index d955412c..255a9138 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/api_client.py +++ b/services/secretsmanager/src/stackit/secretsmanager/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")): 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/secretsmanager/src/stackit/secretsmanager/exceptions.py b/services/secretsmanager/src/stackit/secretsmanager/exceptions.py index c951a1f7..52428382 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/exceptions.py +++ b/services/secretsmanager/src/stackit/secretsmanager/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/secretsmanager/src/stackit/secretsmanager/models/__init__.py b/services/secretsmanager/src/stackit/secretsmanager/models/__init__.py index 09c1d72d..63a511d3 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/models/__init__.py +++ b/services/secretsmanager/src/stackit/secretsmanager/models/__init__.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - # import models into model package from stackit.secretsmanager.models.acl import ACL from stackit.secretsmanager.models.bad_request import BadRequest diff --git a/services/secretsmanager/src/stackit/secretsmanager/models/acl.py b/services/secretsmanager/src/stackit/secretsmanager/models/acl.py index e3b277a5..5e8fe246 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/models/acl.py +++ b/services/secretsmanager/src/stackit/secretsmanager/models/acl.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 @@ -27,7 +28,7 @@ class ACL(BaseModel): """ # noqa: E501 cidr: StrictStr = Field(description="The given IP/IP Range that is permitted to access.") - id: StrictStr = Field(description="A auto generated unique id which identifies the acl.") + id: UUID = Field(description="A auto generated unique id which identifies the acl.") __properties: ClassVar[List[str]] = ["cidr", "id"] model_config = ConfigDict( diff --git a/services/secretsmanager/src/stackit/secretsmanager/models/instance.py b/services/secretsmanager/src/stackit/secretsmanager/models/instance.py index 41c27f16..927d115c 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/models/instance.py +++ b/services/secretsmanager/src/stackit/secretsmanager/models/instance.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, StrictInt, StrictStr from typing_extensions import Self @@ -38,7 +39,7 @@ class Instance(BaseModel): description="The date and time the creation of the Secrets Manager instance was triggered.", alias="creationStartDate", ) - id: StrictStr = Field(description="A auto generated unique id which identifies the secrets manager instances.") + id: UUID = Field(description="A auto generated unique id which identifies the secrets manager instances.") kms_key: Optional[KmsKeyPayload] = Field(default=None, alias="kmsKey") name: StrictStr = Field(description="A user chosen name to distinguish multiple secrets manager instances.") secret_count: StrictInt = Field( diff --git a/services/secretsmanager/src/stackit/secretsmanager/models/kms_key_payload.py b/services/secretsmanager/src/stackit/secretsmanager/models/kms_key_payload.py index a4c94840..d088cfec 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/models/kms_key_payload.py +++ b/services/secretsmanager/src/stackit/secretsmanager/models/kms_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, StrictInt, StrictStr from typing_extensions import Self @@ -26,8 +27,8 @@ class KmsKeyPayload(BaseModel): The key for secret encryption and decryption. """ # noqa: E501 - key_id: StrictStr = Field(description="The key UUID.", alias="keyId") - key_ring_id: StrictStr = Field(description="The key ring UUID the key is part of.", alias="keyRingId") + key_id: UUID = Field(description="The key UUID.", alias="keyId") + key_ring_id: UUID = Field(description="The key ring UUID the key is part of.", alias="keyRingId") key_version: StrictInt = Field(description="The Key version number.", alias="keyVersion") service_account_email: StrictStr = Field( description="The Service account email that will consume the key. Must be in the same project as the Secrets Manager instance.", diff --git a/services/secretsmanager/src/stackit/secretsmanager/models/list_acls_response.py b/services/secretsmanager/src/stackit/secretsmanager/models/list_acls_response.py index d5b8e015..695bd4be 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/models/list_acls_response.py +++ b/services/secretsmanager/src/stackit/secretsmanager/models/list_acls_response.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 acls (list) _items = [] if self.acls: - for _item in self.acls: - if _item: - _items.append(_item.to_dict()) + for _item_acls in self.acls: + if _item_acls: + _items.append(_item_acls.to_dict()) _dict["acls"] = _items return _dict diff --git a/services/secretsmanager/src/stackit/secretsmanager/models/list_instances_response.py b/services/secretsmanager/src/stackit/secretsmanager/models/list_instances_response.py index 8b636366..b1769e91 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/models/list_instances_response.py +++ b/services/secretsmanager/src/stackit/secretsmanager/models/list_instances_response.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 instances (list) _items = [] if self.instances: - for _item in self.instances: - if _item: - _items.append(_item.to_dict()) + for _item_instances in self.instances: + if _item_instances: + _items.append(_item_instances.to_dict()) _dict["instances"] = _items return _dict diff --git a/services/secretsmanager/src/stackit/secretsmanager/models/list_users_response.py b/services/secretsmanager/src/stackit/secretsmanager/models/list_users_response.py index 281d6367..e690b4e7 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/models/list_users_response.py +++ b/services/secretsmanager/src/stackit/secretsmanager/models/list_users_response.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 users (list) _items = [] if self.users: - for _item in self.users: - if _item: - _items.append(_item.to_dict()) + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) _dict["users"] = _items return _dict diff --git a/services/secretsmanager/src/stackit/secretsmanager/models/update_acls_payload.py b/services/secretsmanager/src/stackit/secretsmanager/models/update_acls_payload.py index f278299c..4eb534e1 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/models/update_acls_payload.py +++ b/services/secretsmanager/src/stackit/secretsmanager/models/update_acls_payload.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 cidrs (list) _items = [] if self.cidrs: - for _item in self.cidrs: - if _item: - _items.append(_item.to_dict()) + for _item_cidrs in self.cidrs: + if _item_cidrs: + _items.append(_item_cidrs.to_dict()) _dict["cidrs"] = _items return _dict diff --git a/services/secretsmanager/src/stackit/secretsmanager/models/user.py b/services/secretsmanager/src/stackit/secretsmanager/models/user.py index 2fa65512..44b957ca 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/models/user.py +++ b/services/secretsmanager/src/stackit/secretsmanager/models/user.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, @@ -33,7 +34,7 @@ class User(BaseModel): """ # noqa: E501 description: StrictStr = Field(description="A user chosen description to differentiate between multiple users.") - id: StrictStr = Field(description="A auto generated unique id which identifies the users.") + id: UUID = Field(description="A auto generated unique id which identifies the users.") password: StrictStr = Field(description="A auto generated password for logging in with the user.") username: StrictStr = Field(description="A auto generated username for logging in with the user.") write: StrictBool = Field( diff --git a/services/secretsmanager/src/stackit/secretsmanager/rest.py b/services/secretsmanager/src/stackit/secretsmanager/rest.py index 88df57c9..9a799450 100644 --- a/services/secretsmanager/src/stackit/secretsmanager/rest.py +++ b/services/secretsmanager/src/stackit/secretsmanager/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)])