Skip to content

Commit 848e29f

Browse files
feat(specs): allow filtering transformations type (generated)
algolia/api-clients-automation#5363 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent c364f46 commit 848e29f

File tree

1 file changed

+51
-2
lines changed

1 file changed

+51
-2
lines changed

algoliasearch/ingestion/client.py

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
TransformationSortKeys,
105105
TransformationTry,
106106
TransformationTryResponse,
107+
TransformationType,
107108
TransformationUpdateResponse,
108109
TriggerType,
109110
WatchResponse,
@@ -3524,6 +3525,15 @@ async def list_transformations_with_http_info(
35243525
],
35253526
str,
35263527
] = None,
3528+
type: Union[
3529+
Annotated[
3530+
Optional[TransformationType],
3531+
Field(
3532+
description="Whether to filter the list of transformations by the type of transformation."
3533+
),
3534+
],
3535+
str,
3536+
] = None,
35273537
request_options: Optional[Union[dict, RequestOptions]] = None,
35283538
) -> ApiResponse[str]:
35293539
"""
@@ -3542,6 +3552,8 @@ async def list_transformations_with_http_info(
35423552
:type sort: TransformationSortKeys
35433553
:param order: Sort order of the response, ascending or descending.
35443554
:type order: OrderKeys
3555+
:param type: Whether to filter the list of transformations by the type of transformation.
3556+
:type type: TransformationType
35453557
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
35463558
:return: Returns the raw algoliasearch 'APIResponse' object.
35473559
"""
@@ -3556,6 +3568,8 @@ async def list_transformations_with_http_info(
35563568
_query_parameters["sort"] = sort
35573569
if order is not None:
35583570
_query_parameters["order"] = order
3571+
if type is not None:
3572+
_query_parameters["type"] = type
35593573

35603574
return await self._transporter.request(
35613575
verb=Verb.GET,
@@ -3595,6 +3609,15 @@ async def list_transformations(
35953609
],
35963610
str,
35973611
] = None,
3612+
type: Union[
3613+
Annotated[
3614+
Optional[TransformationType],
3615+
Field(
3616+
description="Whether to filter the list of transformations by the type of transformation."
3617+
),
3618+
],
3619+
str,
3620+
] = None,
35983621
request_options: Optional[Union[dict, RequestOptions]] = None,
35993622
) -> ListTransformationsResponse:
36003623
"""
@@ -3613,11 +3636,13 @@ async def list_transformations(
36133636
:type sort: TransformationSortKeys
36143637
:param order: Sort order of the response, ascending or descending.
36153638
:type order: OrderKeys
3639+
:param type: Whether to filter the list of transformations by the type of transformation.
3640+
:type type: TransformationType
36163641
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
36173642
:return: Returns the deserialized response in a 'ListTransformationsResponse' result object.
36183643
"""
36193644
resp = await self.list_transformations_with_http_info(
3620-
items_per_page, page, sort, order, request_options
3645+
items_per_page, page, sort, order, type, request_options
36213646
)
36223647
return resp.deserialize(ListTransformationsResponse, resp.raw_data)
36233648

@@ -8700,6 +8725,15 @@ def list_transformations_with_http_info(
87008725
],
87018726
str,
87028727
] = None,
8728+
type: Union[
8729+
Annotated[
8730+
Optional[TransformationType],
8731+
Field(
8732+
description="Whether to filter the list of transformations by the type of transformation."
8733+
),
8734+
],
8735+
str,
8736+
] = None,
87038737
request_options: Optional[Union[dict, RequestOptions]] = None,
87048738
) -> ApiResponse[str]:
87058739
"""
@@ -8718,6 +8752,8 @@ def list_transformations_with_http_info(
87188752
:type sort: TransformationSortKeys
87198753
:param order: Sort order of the response, ascending or descending.
87208754
:type order: OrderKeys
8755+
:param type: Whether to filter the list of transformations by the type of transformation.
8756+
:type type: TransformationType
87218757
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
87228758
:return: Returns the raw algoliasearch 'APIResponse' object.
87238759
"""
@@ -8732,6 +8768,8 @@ def list_transformations_with_http_info(
87328768
_query_parameters["sort"] = sort
87338769
if order is not None:
87348770
_query_parameters["order"] = order
8771+
if type is not None:
8772+
_query_parameters["type"] = type
87358773

87368774
return self._transporter.request(
87378775
verb=Verb.GET,
@@ -8771,6 +8809,15 @@ def list_transformations(
87718809
],
87728810
str,
87738811
] = None,
8812+
type: Union[
8813+
Annotated[
8814+
Optional[TransformationType],
8815+
Field(
8816+
description="Whether to filter the list of transformations by the type of transformation."
8817+
),
8818+
],
8819+
str,
8820+
] = None,
87748821
request_options: Optional[Union[dict, RequestOptions]] = None,
87758822
) -> ListTransformationsResponse:
87768823
"""
@@ -8789,11 +8836,13 @@ def list_transformations(
87898836
:type sort: TransformationSortKeys
87908837
:param order: Sort order of the response, ascending or descending.
87918838
:type order: OrderKeys
8839+
:param type: Whether to filter the list of transformations by the type of transformation.
8840+
:type type: TransformationType
87928841
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
87938842
:return: Returns the deserialized response in a 'ListTransformationsResponse' result object.
87948843
"""
87958844
resp = self.list_transformations_with_http_info(
8796-
items_per_page, page, sort, order, request_options
8845+
items_per_page, page, sort, order, type, request_options
87978846
)
87988847
return resp.deserialize(ListTransformationsResponse, resp.raw_data)
87998848

0 commit comments

Comments
 (0)