diff --git a/services/intake/oas_commit b/services/intake/oas_commit index f137f4d6..e3713dde 100644 --- a/services/intake/oas_commit +++ b/services/intake/oas_commit @@ -1 +1 @@ -cb550f3c2129447568c2855337b1874968e033bb +0e64886dd0847341800d7191ed193b75413be998 diff --git a/services/intake/src/stackit/intake/api/default_api.py b/services/intake/src/stackit/intake/api/default_api.py index fd2b13ac..45000513 100644 --- a/services/intake/src/stackit/intake/api/default_api.py +++ b/services/intake/src/stackit/intake/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, @@ -57,9 +58,7 @@ def __init__(self, configuration: Configuration = None) -> None: @validate_call def create_intake( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], create_intake_payload: CreateIntakePayload, _request_timeout: Union[ @@ -77,7 +76,7 @@ def create_intake( Creates a new intake within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param create_intake_payload: (required) @@ -131,9 +130,7 @@ def create_intake( @validate_call def create_intake_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], create_intake_payload: CreateIntakePayload, _request_timeout: Union[ @@ -151,7 +148,7 @@ def create_intake_with_http_info( Creates a new intake within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param create_intake_payload: (required) @@ -205,9 +202,7 @@ def create_intake_with_http_info( @validate_call def create_intake_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], create_intake_payload: CreateIntakePayload, _request_timeout: Union[ @@ -225,7 +220,7 @@ def create_intake_without_preload_content( Creates a new intake within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param create_intake_payload: (required) @@ -339,9 +334,7 @@ def _create_intake_serialize( @validate_call def create_intake_runner( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], create_intake_runner_payload: CreateIntakeRunnerPayload, _request_timeout: Union[ @@ -359,7 +352,7 @@ def create_intake_runner( Creates a new intake runner within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param create_intake_runner_payload: (required) @@ -413,9 +406,7 @@ def create_intake_runner( @validate_call def create_intake_runner_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], create_intake_runner_payload: CreateIntakeRunnerPayload, _request_timeout: Union[ @@ -433,7 +424,7 @@ def create_intake_runner_with_http_info( Creates a new intake runner within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param create_intake_runner_payload: (required) @@ -487,9 +478,7 @@ def create_intake_runner_with_http_info( @validate_call def create_intake_runner_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], create_intake_runner_payload: CreateIntakeRunnerPayload, _request_timeout: Union[ @@ -507,7 +496,7 @@ def create_intake_runner_without_preload_content( Creates a new intake runner within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param create_intake_runner_payload: (required) @@ -621,11 +610,9 @@ def _create_intake_runner_serialize( @validate_call def create_intake_user( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], create_intake_user_payload: CreateIntakeUserPayload, _request_timeout: Union[ None, @@ -642,11 +629,11 @@ def create_intake_user( Creates a new user for this intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param create_intake_user_payload: (required) :type create_intake_user_payload: CreateIntakeUserPayload :param _request_timeout: timeout setting for this request. If one @@ -699,11 +686,9 @@ def create_intake_user( @validate_call def create_intake_user_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], create_intake_user_payload: CreateIntakeUserPayload, _request_timeout: Union[ None, @@ -720,11 +705,11 @@ def create_intake_user_with_http_info( Creates a new user for this intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param create_intake_user_payload: (required) :type create_intake_user_payload: CreateIntakeUserPayload :param _request_timeout: timeout setting for this request. If one @@ -777,11 +762,9 @@ def create_intake_user_with_http_info( @validate_call def create_intake_user_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], create_intake_user_payload: CreateIntakeUserPayload, _request_timeout: Union[ None, @@ -798,11 +781,11 @@ def create_intake_user_without_preload_content( Creates a new user for this intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param create_intake_user_payload: (required) :type create_intake_user_payload: CreateIntakeUserPayload :param _request_timeout: timeout setting for this request. If one @@ -918,11 +901,9 @@ def _create_intake_user_serialize( @validate_call def delete_intake( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], force: Annotated[ Optional[StrictBool], Field( @@ -944,11 +925,11 @@ def delete_intake( Deletes the given intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. :type force: bool :param _request_timeout: timeout setting for this request. If one @@ -1001,11 +982,9 @@ def delete_intake( @validate_call def delete_intake_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], force: Annotated[ Optional[StrictBool], Field( @@ -1027,11 +1006,11 @@ def delete_intake_with_http_info( Deletes the given intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. :type force: bool :param _request_timeout: timeout setting for this request. If one @@ -1084,11 +1063,9 @@ def delete_intake_with_http_info( @validate_call def delete_intake_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], force: Annotated[ Optional[StrictBool], Field( @@ -1110,11 +1087,11 @@ def delete_intake_without_preload_content( Deletes the given intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. :type force: bool :param _request_timeout: timeout setting for this request. If one @@ -1220,11 +1197,9 @@ def _delete_intake_serialize( @validate_call def delete_intake_runner( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")], + intake_runner_id: Annotated[UUID, Field(description="The intake runner UUID.")], force: Annotated[ Optional[StrictBool], Field( @@ -1246,11 +1221,11 @@ def delete_intake_runner( Deletes the given intake runner. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_runner_id: The intake runner UUID. (required) - :type intake_runner_id: str + :type intake_runner_id: UUID :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. :type force: bool :param _request_timeout: timeout setting for this request. If one @@ -1303,11 +1278,9 @@ def delete_intake_runner( @validate_call def delete_intake_runner_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")], + intake_runner_id: Annotated[UUID, Field(description="The intake runner UUID.")], force: Annotated[ Optional[StrictBool], Field( @@ -1329,11 +1302,11 @@ def delete_intake_runner_with_http_info( Deletes the given intake runner. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_runner_id: The intake runner UUID. (required) - :type intake_runner_id: str + :type intake_runner_id: UUID :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. :type force: bool :param _request_timeout: timeout setting for this request. If one @@ -1386,11 +1359,9 @@ def delete_intake_runner_with_http_info( @validate_call def delete_intake_runner_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")], + intake_runner_id: Annotated[UUID, Field(description="The intake runner UUID.")], force: Annotated[ Optional[StrictBool], Field( @@ -1412,11 +1383,11 @@ def delete_intake_runner_without_preload_content( Deletes the given intake runner. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_runner_id: The intake runner UUID. (required) - :type intake_runner_id: str + :type intake_runner_id: UUID :param force: If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. :type force: bool :param _request_timeout: timeout setting for this request. If one @@ -1522,12 +1493,10 @@ def _delete_intake_runner_serialize( @validate_call def delete_intake_user( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], - intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], + intake_user_id: Annotated[UUID, Field(description="The intake user UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1543,13 +1512,13 @@ def delete_intake_user( Deletes the given intake user. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param intake_user_id: The intake user UUID. (required) - :type intake_user_id: str + :type intake_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 @@ -1600,12 +1569,10 @@ def delete_intake_user( @validate_call def delete_intake_user_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], - intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], + intake_user_id: Annotated[UUID, Field(description="The intake user UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1621,13 +1588,13 @@ def delete_intake_user_with_http_info( Deletes the given intake user. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param intake_user_id: The intake user UUID. (required) - :type intake_user_id: str + :type intake_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 @@ -1678,12 +1645,10 @@ def delete_intake_user_with_http_info( @validate_call def delete_intake_user_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], - intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], + intake_user_id: Annotated[UUID, Field(description="The intake user UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1699,13 +1664,13 @@ def delete_intake_user_without_preload_content( Deletes the given intake user. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param intake_user_id: The intake user UUID. (required) - :type intake_user_id: str + :type intake_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 @@ -1807,11 +1772,9 @@ def _delete_intake_user_serialize( @validate_call def get_intake( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1827,11 +1790,11 @@ def get_intake( Returns the details for the given intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_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,11 +1843,9 @@ def get_intake( @validate_call def get_intake_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1900,11 +1861,11 @@ def get_intake_with_http_info( Returns the details for the given intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_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 @@ -1953,11 +1914,9 @@ def get_intake_with_http_info( @validate_call def get_intake_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1973,11 +1932,11 @@ def get_intake_without_preload_content( Returns the details for the given intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_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 @@ -2078,11 +2037,9 @@ def _get_intake_serialize( @validate_call def get_intake_runner( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")], + intake_runner_id: Annotated[UUID, Field(description="The intake runner UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2098,11 +2055,11 @@ def get_intake_runner( Returns the details for the given intake runner. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_runner_id: The intake runner UUID. (required) - :type intake_runner_id: str + :type intake_runner_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 @@ -2151,11 +2108,9 @@ def get_intake_runner( @validate_call def get_intake_runner_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")], + intake_runner_id: Annotated[UUID, Field(description="The intake runner UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2171,11 +2126,11 @@ def get_intake_runner_with_http_info( Returns the details for the given intake runner. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_runner_id: The intake runner UUID. (required) - :type intake_runner_id: str + :type intake_runner_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 @@ -2224,11 +2179,9 @@ def get_intake_runner_with_http_info( @validate_call def get_intake_runner_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")], + intake_runner_id: Annotated[UUID, Field(description="The intake runner UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2244,11 +2197,11 @@ def get_intake_runner_without_preload_content( Returns the details for the given intake runner. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_runner_id: The intake runner UUID. (required) - :type intake_runner_id: str + :type intake_runner_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 @@ -2349,12 +2302,10 @@ def _get_intake_runner_serialize( @validate_call def get_intake_user( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], - intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], + intake_user_id: Annotated[UUID, Field(description="The intake user UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2370,13 +2321,13 @@ def get_intake_user( Returns the details for the given user. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param intake_user_id: The intake user UUID. (required) - :type intake_user_id: str + :type intake_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 @@ -2426,12 +2377,10 @@ def get_intake_user( @validate_call def get_intake_user_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], - intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], + intake_user_id: Annotated[UUID, Field(description="The intake user UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2447,13 +2396,13 @@ def get_intake_user_with_http_info( Returns the details for the given user. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param intake_user_id: The intake user UUID. (required) - :type intake_user_id: str + :type intake_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 @@ -2503,12 +2452,10 @@ def get_intake_user_with_http_info( @validate_call def get_intake_user_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], - intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], + intake_user_id: Annotated[UUID, Field(description="The intake user UUID.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2524,13 +2471,13 @@ def get_intake_user_without_preload_content( Returns the details for the given user. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param intake_user_id: The intake user UUID. (required) - :type intake_user_id: str + :type intake_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 @@ -2635,9 +2582,7 @@ def _get_intake_user_serialize( @validate_call def list_intake_runners( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], page_token: Annotated[ Optional[Annotated[str, Field(strict=True, max_length=1024)]], @@ -2662,7 +2607,7 @@ def list_intake_runners( Returns a list of all intake runners within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param page_token: A token to retrieve the next page of results. @@ -2717,9 +2662,7 @@ def list_intake_runners( @validate_call def list_intake_runners_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], page_token: Annotated[ Optional[Annotated[str, Field(strict=True, max_length=1024)]], @@ -2744,7 +2687,7 @@ def list_intake_runners_with_http_info( Returns a list of all intake runners within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param page_token: A token to retrieve the next page of results. @@ -2799,9 +2742,7 @@ def list_intake_runners_with_http_info( @validate_call def list_intake_runners_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], page_token: Annotated[ Optional[Annotated[str, Field(strict=True, max_length=1024)]], @@ -2826,7 +2767,7 @@ def list_intake_runners_without_preload_content( Returns a list of all intake runners within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param page_token: A token to retrieve the next page of results. @@ -2940,11 +2881,9 @@ def _list_intake_runners_serialize( @validate_call def list_intake_users( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], page_token: Annotated[ Optional[Annotated[str, Field(strict=True, max_length=1024)]], Field(description="A token to retrieve the next page of results."), @@ -2968,11 +2907,11 @@ def list_intake_users( Returns a list of all intake users within the project and intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param page_token: A token to retrieve the next page of results. :type page_token: str :param page_size: Maximum number of items to return @@ -3026,11 +2965,9 @@ def list_intake_users( @validate_call def list_intake_users_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], page_token: Annotated[ Optional[Annotated[str, Field(strict=True, max_length=1024)]], Field(description="A token to retrieve the next page of results."), @@ -3054,11 +2991,11 @@ def list_intake_users_with_http_info( Returns a list of all intake users within the project and intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param page_token: A token to retrieve the next page of results. :type page_token: str :param page_size: Maximum number of items to return @@ -3112,11 +3049,9 @@ def list_intake_users_with_http_info( @validate_call def list_intake_users_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], page_token: Annotated[ Optional[Annotated[str, Field(strict=True, max_length=1024)]], Field(description="A token to retrieve the next page of results."), @@ -3140,11 +3075,11 @@ def list_intake_users_without_preload_content( Returns a list of all intake users within the project and intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param page_token: A token to retrieve the next page of results. :type page_token: str :param page_size: Maximum number of items to return @@ -3260,9 +3195,7 @@ def _list_intake_users_serialize( @validate_call def list_intakes( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], page_token: Annotated[ Optional[Annotated[str, Field(strict=True, max_length=1024)]], @@ -3287,7 +3220,7 @@ def list_intakes( Returns a list of all intakes within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param page_token: A token to retrieve the next page of results. @@ -3342,9 +3275,7 @@ def list_intakes( @validate_call def list_intakes_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], page_token: Annotated[ Optional[Annotated[str, Field(strict=True, max_length=1024)]], @@ -3369,7 +3300,7 @@ def list_intakes_with_http_info( Returns a list of all intakes within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param page_token: A token to retrieve the next page of results. @@ -3424,9 +3355,7 @@ def list_intakes_with_http_info( @validate_call def list_intakes_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], page_token: Annotated[ Optional[Annotated[str, Field(strict=True, max_length=1024)]], @@ -3451,7 +3380,7 @@ def list_intakes_without_preload_content( Returns a list of all intakes within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param page_token: A token to retrieve the next page of results. @@ -3565,11 +3494,9 @@ def _list_intakes_serialize( @validate_call def update_intake( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], update_intake_payload: UpdateIntakePayload, _request_timeout: Union[ None, @@ -3586,11 +3513,11 @@ def update_intake( Updates the given intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param update_intake_payload: (required) :type update_intake_payload: UpdateIntakePayload :param _request_timeout: timeout setting for this request. If one @@ -3643,11 +3570,9 @@ def update_intake( @validate_call def update_intake_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], update_intake_payload: UpdateIntakePayload, _request_timeout: Union[ None, @@ -3664,11 +3589,11 @@ def update_intake_with_http_info( Updates the given intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param update_intake_payload: (required) :type update_intake_payload: UpdateIntakePayload :param _request_timeout: timeout setting for this request. If one @@ -3721,11 +3646,9 @@ def update_intake_with_http_info( @validate_call def update_intake_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], update_intake_payload: UpdateIntakePayload, _request_timeout: Union[ None, @@ -3742,11 +3665,11 @@ def update_intake_without_preload_content( Updates the given intake. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param update_intake_payload: (required) :type update_intake_payload: UpdateIntakePayload :param _request_timeout: timeout setting for this request. If one @@ -3862,11 +3785,9 @@ def _update_intake_serialize( @validate_call def update_intake_runner( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")], + intake_runner_id: Annotated[UUID, Field(description="The intake runner UUID.")], update_intake_runner_payload: UpdateIntakeRunnerPayload, _request_timeout: Union[ None, @@ -3883,11 +3804,11 @@ def update_intake_runner( Updates a intake runner within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_runner_id: The intake runner UUID. (required) - :type intake_runner_id: str + :type intake_runner_id: UUID :param update_intake_runner_payload: (required) :type update_intake_runner_payload: UpdateIntakeRunnerPayload :param _request_timeout: timeout setting for this request. If one @@ -3940,11 +3861,9 @@ def update_intake_runner( @validate_call def update_intake_runner_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")], + intake_runner_id: Annotated[UUID, Field(description="The intake runner UUID.")], update_intake_runner_payload: UpdateIntakeRunnerPayload, _request_timeout: Union[ None, @@ -3961,11 +3880,11 @@ def update_intake_runner_with_http_info( Updates a intake runner within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_runner_id: The intake runner UUID. (required) - :type intake_runner_id: str + :type intake_runner_id: UUID :param update_intake_runner_payload: (required) :type update_intake_runner_payload: UpdateIntakeRunnerPayload :param _request_timeout: timeout setting for this request. If one @@ -4018,11 +3937,9 @@ def update_intake_runner_with_http_info( @validate_call def update_intake_runner_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_runner_id: Annotated[StrictStr, Field(description="The intake runner UUID.")], + intake_runner_id: Annotated[UUID, Field(description="The intake runner UUID.")], update_intake_runner_payload: UpdateIntakeRunnerPayload, _request_timeout: Union[ None, @@ -4039,11 +3956,11 @@ def update_intake_runner_without_preload_content( Updates a intake runner within the project. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_runner_id: The intake runner UUID. (required) - :type intake_runner_id: str + :type intake_runner_id: UUID :param update_intake_runner_payload: (required) :type update_intake_runner_payload: UpdateIntakeRunnerPayload :param _request_timeout: timeout setting for this request. If one @@ -4159,12 +4076,10 @@ def _update_intake_runner_serialize( @validate_call def update_intake_user( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], - intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], + intake_user_id: Annotated[UUID, Field(description="The intake user UUID.")], update_intake_user_payload: UpdateIntakeUserPayload, _request_timeout: Union[ None, @@ -4181,13 +4096,13 @@ def update_intake_user( Updates the given intake user. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param intake_user_id: The intake user UUID. (required) - :type intake_user_id: str + :type intake_user_id: UUID :param update_intake_user_payload: (required) :type update_intake_user_payload: UpdateIntakeUserPayload :param _request_timeout: timeout setting for this request. If one @@ -4241,12 +4156,10 @@ def update_intake_user( @validate_call def update_intake_user_with_http_info( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], - intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], + intake_user_id: Annotated[UUID, Field(description="The intake user UUID.")], update_intake_user_payload: UpdateIntakeUserPayload, _request_timeout: Union[ None, @@ -4263,13 +4176,13 @@ def update_intake_user_with_http_info( Updates the given intake user. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param intake_user_id: The intake user UUID. (required) - :type intake_user_id: str + :type intake_user_id: UUID :param update_intake_user_payload: (required) :type update_intake_user_payload: UpdateIntakeUserPayload :param _request_timeout: timeout setting for this request. If one @@ -4323,12 +4236,10 @@ def update_intake_user_with_http_info( @validate_call def update_intake_user_without_preload_content( self, - project_id: Annotated[ - StrictStr, Field(description="The STACKIT portal project UUID the resource is located in.") - ], + project_id: Annotated[UUID, Field(description="The STACKIT portal project UUID the resource is located in.")], region_id: Annotated[StrictStr, Field(description="The STACKIT region name the resource is located in.")], - intake_id: Annotated[StrictStr, Field(description="The intake UUID.")], - intake_user_id: Annotated[StrictStr, Field(description="The intake user UUID.")], + intake_id: Annotated[UUID, Field(description="The intake UUID.")], + intake_user_id: Annotated[UUID, Field(description="The intake user UUID.")], update_intake_user_payload: UpdateIntakeUserPayload, _request_timeout: Union[ None, @@ -4345,13 +4256,13 @@ def update_intake_user_without_preload_content( Updates the given intake user. :param project_id: The STACKIT portal project UUID the resource is located in. (required) - :type project_id: str + :type project_id: UUID :param region_id: The STACKIT region name the resource is located in. (required) :type region_id: str :param intake_id: The intake UUID. (required) - :type intake_id: str + :type intake_id: UUID :param intake_user_id: The intake user UUID. (required) - :type intake_user_id: str + :type intake_user_id: UUID :param update_intake_user_payload: (required) :type update_intake_user_payload: UpdateIntakeUserPayload :param _request_timeout: timeout setting for this request. If one diff --git a/services/intake/src/stackit/intake/api_client.py b/services/intake/src/stackit/intake/api_client.py index bad8c790..eac3689a 100644 --- a/services/intake/src/stackit/intake/api_client.py +++ b/services/intake/src/stackit/intake/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/intake/src/stackit/intake/exceptions.py b/services/intake/src/stackit/intake/exceptions.py index e7826c00..7cfdb14e 100644 --- a/services/intake/src/stackit/intake/exceptions.py +++ b/services/intake/src/stackit/intake/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/intake/src/stackit/intake/models/__init__.py b/services/intake/src/stackit/intake/models/__init__.py index 175cc18d..84274d83 100644 --- a/services/intake/src/stackit/intake/models/__init__.py +++ b/services/intake/src/stackit/intake/models/__init__.py @@ -12,7 +12,6 @@ Do not edit the class manually. """ # noqa: E501 - # import models into model package from stackit.intake.models.catalog_auth import CatalogAuth from stackit.intake.models.catalog_auth_patch import CatalogAuthPatch diff --git a/services/intake/src/stackit/intake/models/create_intake_payload.py b/services/intake/src/stackit/intake/models/create_intake_payload.py index 71c85014..42eb2c82 100644 --- a/services/intake/src/stackit/intake/models/create_intake_payload.py +++ b/services/intake/src/stackit/intake/models/create_intake_payload.py @@ -17,6 +17,7 @@ import pprint import re # noqa: F401 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 CreateIntakePayload(BaseModel): display_name: Annotated[str, Field(min_length=1, strict=True, max_length=32)] = Field( description="The display name is a short name chosen by the user to identify the resource.", alias="displayName" ) - intake_runner_id: StrictStr = Field( + intake_runner_id: UUID = Field( description="The unique id of the intake runner this intake should run on.", alias="intakeRunnerId" ) labels: Optional[Dict[str, StrictStr]] = Field( diff --git a/services/intake/src/stackit/intake/models/intake_response.py b/services/intake/src/stackit/intake/models/intake_response.py index daf44e96..762ec320 100644 --- a/services/intake/src/stackit/intake/models/intake_response.py +++ b/services/intake/src/stackit/intake/models/intake_response.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, StrictInt, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -45,8 +46,8 @@ class IntakeResponse(BaseModel): failure_message: Optional[StrictStr] = Field( default=None, description="A human-readable description of the error, if the state is 'failed'." ) - id: StrictStr = Field(description="A auto generated unique id which identifies the resource.") - intake_runner_id: StrictStr = Field( + id: UUID = Field(description="A auto generated unique id which identifies the resource.") + intake_runner_id: UUID = Field( description="The unique id of the intake runner this intake is running on.", alias="intakeRunnerId" ) labels: Optional[Dict[str, StrictStr]] = Field( diff --git a/services/intake/src/stackit/intake/models/intake_runner_response.py b/services/intake/src/stackit/intake/models/intake_runner_response.py index 09779d8b..7fbe137f 100644 --- a/services/intake/src/stackit/intake/models/intake_runner_response.py +++ b/services/intake/src/stackit/intake/models/intake_runner_response.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, StrictInt, StrictStr, field_validator from typing_extensions import Annotated, Self @@ -36,7 +37,7 @@ class IntakeRunnerResponse(BaseModel): display_name: Annotated[str, Field(min_length=1, strict=True, max_length=32)] = Field( description="The display name is a short name chosen by the user to identify the resource.", alias="displayName" ) - id: StrictStr = Field(description="A auto generated unique id which identifies the resource.") + id: UUID = Field(description="A auto generated unique id which identifies the resource.") labels: Optional[Dict[str, StrictStr]] = Field( default=None, description="Labels are a set of key-value pairs assigned to resources." ) diff --git a/services/intake/src/stackit/intake/models/intake_user_response.py b/services/intake/src/stackit/intake/models/intake_user_response.py index 116a5402..6201fa62 100644 --- a/services/intake/src/stackit/intake/models/intake_user_response.py +++ b/services/intake/src/stackit/intake/models/intake_user_response.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 @@ -40,7 +41,7 @@ class IntakeUserResponse(BaseModel): display_name: Annotated[str, Field(min_length=1, strict=True, max_length=32)] = Field( description="The display name is a short name chosen by the user to identify the resource.", alias="displayName" ) - id: StrictStr = Field(description="A auto generated unique id which identifies the resource.") + id: UUID = Field(description="A auto generated unique id which identifies the resource.") labels: Optional[Dict[str, StrictStr]] = Field( default=None, description="Labels are a set of key-value pairs assigned to resources." ) diff --git a/services/intake/src/stackit/intake/models/list_intake_runners_response.py b/services/intake/src/stackit/intake/models/list_intake_runners_response.py index 21a11d23..3cdfa2d4 100644 --- a/services/intake/src/stackit/intake/models/list_intake_runners_response.py +++ b/services/intake/src/stackit/intake/models/list_intake_runners_response.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in intake_runners (list) _items = [] if self.intake_runners: - for _item in self.intake_runners: - if _item: - _items.append(_item.to_dict()) + for _item_intake_runners in self.intake_runners: + if _item_intake_runners: + _items.append(_item_intake_runners.to_dict()) _dict["intakeRunners"] = _items return _dict diff --git a/services/intake/src/stackit/intake/models/list_intake_users_response.py b/services/intake/src/stackit/intake/models/list_intake_users_response.py index 561bd639..d132fc23 100644 --- a/services/intake/src/stackit/intake/models/list_intake_users_response.py +++ b/services/intake/src/stackit/intake/models/list_intake_users_response.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in intake_users (list) _items = [] if self.intake_users: - for _item in self.intake_users: - if _item: - _items.append(_item.to_dict()) + for _item_intake_users in self.intake_users: + if _item_intake_users: + _items.append(_item_intake_users.to_dict()) _dict["intakeUsers"] = _items return _dict diff --git a/services/intake/src/stackit/intake/models/list_intakes_response.py b/services/intake/src/stackit/intake/models/list_intakes_response.py index 046d5148..8bb3b18d 100644 --- a/services/intake/src/stackit/intake/models/list_intakes_response.py +++ b/services/intake/src/stackit/intake/models/list_intakes_response.py @@ -74,9 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in intakes (list) _items = [] if self.intakes: - for _item in self.intakes: - if _item: - _items.append(_item.to_dict()) + for _item_intakes in self.intakes: + if _item_intakes: + _items.append(_item_intakes.to_dict()) _dict["intakes"] = _items return _dict diff --git a/services/intake/src/stackit/intake/models/update_intake_payload.py b/services/intake/src/stackit/intake/models/update_intake_payload.py index fd736130..2c645d7b 100644 --- a/services/intake/src/stackit/intake/models/update_intake_payload.py +++ b/services/intake/src/stackit/intake/models/update_intake_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 Annotated, Self @@ -38,7 +39,7 @@ class UpdateIntakePayload(BaseModel): description="The display name is a short name chosen by the user to identify the resource.", alias="displayName", ) - intake_runner_id: StrictStr = Field( + intake_runner_id: UUID = Field( description="The unique id of the intake runner this intake should run on.", alias="intakeRunnerId" ) labels: Optional[Dict[str, StrictStr]] = Field( diff --git a/services/intake/src/stackit/intake/rest.py b/services/intake/src/stackit/intake/rest.py index 2ecf56c0..b489ee5c 100644 --- a/services/intake/src/stackit/intake/rest.py +++ b/services/intake/src/stackit/intake/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/intake/uv.lock b/services/intake/uv.lock index d572f593..f1ed53f9 100644 --- a/services/intake/uv.lock +++ b/services/intake/uv.lock @@ -1348,7 +1348,7 @@ dev = [ [[package]] name = "stackit-intake" -version = "0.4.0" +version = "0.5.0" source = { editable = "." } dependencies = [ { name = "pydantic" },