From 9bd3d01bf09c355d37ef37823392567f13e91574 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 24 Mar 2025 10:29:34 +0000 Subject: [PATCH] Generate iaasalpha --- .../src/stackit/iaasalpha/api/default_api.py | 32 +++++++++++++++++++ .../stackit/iaasalpha/models/machine_type.py | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/services/iaasalpha/src/stackit/iaasalpha/api/default_api.py b/services/iaasalpha/src/stackit/iaasalpha/api/default_api.py index 05229424..740ec3cd 100644 --- a/services/iaasalpha/src/stackit/iaasalpha/api/default_api.py +++ b/services/iaasalpha/src/stackit/iaasalpha/api/default_api.py @@ -21567,6 +21567,12 @@ def list_machine_types( str, Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."), ], + filter: Annotated[ + Optional[StrictStr], + Field( + description="Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21583,6 +21589,8 @@ def list_machine_types( :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: str + :param filter: Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details. + :type filter: str :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 @@ -21607,6 +21615,7 @@ def list_machine_types( _param = self._list_machine_types_serialize( project_id=project_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21635,6 +21644,12 @@ def list_machine_types_with_http_info( str, Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."), ], + filter: Annotated[ + Optional[StrictStr], + Field( + description="Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21651,6 +21666,8 @@ def list_machine_types_with_http_info( :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: str + :param filter: Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details. + :type filter: str :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 @@ -21675,6 +21692,7 @@ def list_machine_types_with_http_info( _param = self._list_machine_types_serialize( project_id=project_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21703,6 +21721,12 @@ def list_machine_types_without_preload_content( str, Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."), ], + filter: Annotated[ + Optional[StrictStr], + Field( + description="Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21719,6 +21743,8 @@ def list_machine_types_without_preload_content( :param project_id: The identifier (ID) of a STACKIT Project. (required) :type project_id: str + :param filter: Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details. + :type filter: str :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 @@ -21743,6 +21769,7 @@ def list_machine_types_without_preload_content( _param = self._list_machine_types_serialize( project_id=project_id, + filter=filter, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21763,6 +21790,7 @@ def list_machine_types_without_preload_content( def _list_machine_types_serialize( self, project_id, + filter, _request_auth, _content_type, _headers, @@ -21784,6 +21812,10 @@ def _list_machine_types_serialize( if project_id is not None: _path_params["projectId"] = project_id # process the query parameters + if filter is not None: + + _query_params.append(("filter", filter)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/services/iaasalpha/src/stackit/iaasalpha/models/machine_type.py b/services/iaasalpha/src/stackit/iaasalpha/models/machine_type.py index 9f0cf3a9..d0af11cc 100644 --- a/services/iaasalpha/src/stackit/iaasalpha/models/machine_type.py +++ b/services/iaasalpha/src/stackit/iaasalpha/models/machine_type.py @@ -25,7 +25,7 @@ class MachineType(BaseModel): """ - Machine Type. + Machine Type. Filterable Fields: name, ram, vcpus, disk, extraSpecs. """ description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(