Skip to content

Commit 938e99e

Browse files
Generate iaasalpha (#796)
1 parent 8567e63 commit 938e99e

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

services/iaasalpha/src/stackit/iaasalpha/api/default_api.py

+32
Original file line numberDiff line numberDiff line change
@@ -21567,6 +21567,12 @@ def list_machine_types(
2156721567
str,
2156821568
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
2156921569
],
21570+
filter: Annotated[
21571+
Optional[StrictStr],
21572+
Field(
21573+
description="Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details."
21574+
),
21575+
] = None,
2157021576
_request_timeout: Union[
2157121577
None,
2157221578
Annotated[StrictFloat, Field(gt=0)],
@@ -21583,6 +21589,8 @@ def list_machine_types(
2158321589

2158421590
:param project_id: The identifier (ID) of a STACKIT Project. (required)
2158521591
:type project_id: str
21592+
:param filter: Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details.
21593+
:type filter: str
2158621594
:param _request_timeout: timeout setting for this request. If one
2158721595
number provided, it will be total request
2158821596
timeout. It can also be a pair (tuple) of
@@ -21607,6 +21615,7 @@ def list_machine_types(
2160721615

2160821616
_param = self._list_machine_types_serialize(
2160921617
project_id=project_id,
21618+
filter=filter,
2161021619
_request_auth=_request_auth,
2161121620
_content_type=_content_type,
2161221621
_headers=_headers,
@@ -21635,6 +21644,12 @@ def list_machine_types_with_http_info(
2163521644
str,
2163621645
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
2163721646
],
21647+
filter: Annotated[
21648+
Optional[StrictStr],
21649+
Field(
21650+
description="Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details."
21651+
),
21652+
] = None,
2163821653
_request_timeout: Union[
2163921654
None,
2164021655
Annotated[StrictFloat, Field(gt=0)],
@@ -21651,6 +21666,8 @@ def list_machine_types_with_http_info(
2165121666

2165221667
:param project_id: The identifier (ID) of a STACKIT Project. (required)
2165321668
:type project_id: str
21669+
:param filter: Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details.
21670+
:type filter: str
2165421671
:param _request_timeout: timeout setting for this request. If one
2165521672
number provided, it will be total request
2165621673
timeout. It can also be a pair (tuple) of
@@ -21675,6 +21692,7 @@ def list_machine_types_with_http_info(
2167521692

2167621693
_param = self._list_machine_types_serialize(
2167721694
project_id=project_id,
21695+
filter=filter,
2167821696
_request_auth=_request_auth,
2167921697
_content_type=_content_type,
2168021698
_headers=_headers,
@@ -21703,6 +21721,12 @@ def list_machine_types_without_preload_content(
2170321721
str,
2170421722
Field(min_length=36, strict=True, max_length=36, description="The identifier (ID) of a STACKIT Project."),
2170521723
],
21724+
filter: Annotated[
21725+
Optional[StrictStr],
21726+
Field(
21727+
description="Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details."
21728+
),
21729+
] = None,
2170621730
_request_timeout: Union[
2170721731
None,
2170821732
Annotated[StrictFloat, Field(gt=0)],
@@ -21719,6 +21743,8 @@ def list_machine_types_without_preload_content(
2171921743

2172021744
:param project_id: The identifier (ID) of a STACKIT Project. (required)
2172121745
:type project_id: str
21746+
:param filter: Filter resources by fields. A subset of expr-lang is supported. See https://expr-lang.org/docs/language-definition for usage details.
21747+
:type filter: str
2172221748
:param _request_timeout: timeout setting for this request. If one
2172321749
number provided, it will be total request
2172421750
timeout. It can also be a pair (tuple) of
@@ -21743,6 +21769,7 @@ def list_machine_types_without_preload_content(
2174321769

2174421770
_param = self._list_machine_types_serialize(
2174521771
project_id=project_id,
21772+
filter=filter,
2174621773
_request_auth=_request_auth,
2174721774
_content_type=_content_type,
2174821775
_headers=_headers,
@@ -21763,6 +21790,7 @@ def list_machine_types_without_preload_content(
2176321790
def _list_machine_types_serialize(
2176421791
self,
2176521792
project_id,
21793+
filter,
2176621794
_request_auth,
2176721795
_content_type,
2176821796
_headers,
@@ -21784,6 +21812,10 @@ def _list_machine_types_serialize(
2178421812
if project_id is not None:
2178521813
_path_params["projectId"] = project_id
2178621814
# process the query parameters
21815+
if filter is not None:
21816+
21817+
_query_params.append(("filter", filter))
21818+
2178721819
# process the header parameters
2178821820
# process the form parameters
2178921821
# process the body parameter

services/iaasalpha/src/stackit/iaasalpha/models/machine_type.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
class MachineType(BaseModel):
2727
"""
28-
Machine Type.
28+
Machine Type. Filterable Fields: name, ram, vcpus, disk, extraSpecs.
2929
"""
3030

3131
description: Optional[Annotated[str, Field(strict=True, max_length=127)]] = Field(

0 commit comments

Comments
 (0)