Skip to content

Commit

Permalink
fix(specs): returns an response [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4107

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Nov 15, 2024
1 parent abdc209 commit 6112cd0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions algoliasearch/search/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1919,7 +1919,7 @@ async def delete_by(
],
delete_by_params: Union[DeleteByParams, dict[str, Any]],
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> DeletedAtResponse:
) -> UpdatedAtResponse:
"""
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).
Expand All @@ -1931,12 +1931,12 @@ async def delete_by(
:param delete_by_params: (required)
:type delete_by_params: DeleteByParams
: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)
:return: Returns the deserialized response in a 'DeletedAtResponse' result object.
:return: Returns the deserialized response in a 'UpdatedAtResponse' result object.
"""
resp = await self.delete_by_with_http_info(
index_name, delete_by_params, request_options
)
return resp.deserialize(DeletedAtResponse, resp.raw_data)
return resp.deserialize(UpdatedAtResponse, resp.raw_data)

async def delete_index_with_http_info(
self,
Expand Down Expand Up @@ -6919,7 +6919,7 @@ def delete_by(
],
delete_by_params: Union[DeleteByParams, dict[str, Any]],
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> DeletedAtResponse:
) -> UpdatedAtResponse:
"""
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).
Expand All @@ -6931,12 +6931,12 @@ def delete_by(
:param delete_by_params: (required)
:type delete_by_params: DeleteByParams
: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)
:return: Returns the deserialized response in a 'DeletedAtResponse' result object.
:return: Returns the deserialized response in a 'UpdatedAtResponse' result object.
"""
resp = self.delete_by_with_http_info(
index_name, delete_by_params, request_options
)
return resp.deserialize(DeletedAtResponse, resp.raw_data)
return resp.deserialize(UpdatedAtResponse, resp.raw_data)

def delete_index_with_http_info(
self,
Expand Down

0 comments on commit 6112cd0

Please sign in to comment.