Skip to content

Commit 6112cd0

Browse files
fix(specs): returns an response [skip-bc] (generated)
algolia/api-clients-automation#4107 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent abdc209 commit 6112cd0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

algoliasearch/search/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ async def delete_by(
19191919
],
19201920
delete_by_params: Union[DeleteByParams, dict[str, Any]],
19211921
request_options: Optional[Union[dict, RequestOptions]] = None,
1922-
) -> DeletedAtResponse:
1922+
) -> UpdatedAtResponse:
19231923
"""
19241924
This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](#tag/Records/operation/batch).
19251925
@@ -1931,12 +1931,12 @@ async def delete_by(
19311931
:param delete_by_params: (required)
19321932
:type delete_by_params: DeleteByParams
19331933
: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)
1934-
:return: Returns the deserialized response in a 'DeletedAtResponse' result object.
1934+
:return: Returns the deserialized response in a 'UpdatedAtResponse' result object.
19351935
"""
19361936
resp = await self.delete_by_with_http_info(
19371937
index_name, delete_by_params, request_options
19381938
)
1939-
return resp.deserialize(DeletedAtResponse, resp.raw_data)
1939+
return resp.deserialize(UpdatedAtResponse, resp.raw_data)
19401940

19411941
async def delete_index_with_http_info(
19421942
self,
@@ -6919,7 +6919,7 @@ def delete_by(
69196919
],
69206920
delete_by_params: Union[DeleteByParams, dict[str, Any]],
69216921
request_options: Optional[Union[dict, RequestOptions]] = None,
6922-
) -> DeletedAtResponse:
6922+
) -> UpdatedAtResponse:
69236923
"""
69246924
This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](#tag/Records/operation/batch).
69256925
@@ -6931,12 +6931,12 @@ def delete_by(
69316931
:param delete_by_params: (required)
69326932
:type delete_by_params: DeleteByParams
69336933
: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)
6934-
:return: Returns the deserialized response in a 'DeletedAtResponse' result object.
6934+
:return: Returns the deserialized response in a 'UpdatedAtResponse' result object.
69356935
"""
69366936
resp = self.delete_by_with_http_info(
69376937
index_name, delete_by_params, request_options
69386938
)
6939-
return resp.deserialize(DeletedAtResponse, resp.raw_data)
6939+
return resp.deserialize(UpdatedAtResponse, resp.raw_data)
69406940

69416941
def delete_index_with_http_info(
69426942
self,

0 commit comments

Comments
 (0)