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 <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 15, 2024
1 parent 1667dc6 commit 58d3451
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions algoliasearch/src/main/java/com/algolia/api/SearchClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ public CompletableFuture<DeleteApiKeyResponse> deleteApiKeyAsync(@Nonnull String
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public DeletedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams, RequestOptions requestOptions)
public UpdatedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams, RequestOptions requestOptions)
throws AlgoliaRuntimeException {
return LaunderThrowable.await(deleteByAsync(indexName, deleteByParams, requestOptions));
}
Expand All @@ -1504,7 +1504,7 @@ public DeletedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByPa
* @param deleteByParams (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public DeletedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams) throws AlgoliaRuntimeException {
public UpdatedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams) throws AlgoliaRuntimeException {
return this.deleteBy(indexName, deleteByParams, null);
}

Expand All @@ -1519,7 +1519,7 @@ public DeletedAtResponse deleteBy(@Nonnull String indexName, @Nonnull DeleteByPa
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<DeletedAtResponse> deleteByAsync(
public CompletableFuture<UpdatedAtResponse> deleteByAsync(
@Nonnull String indexName,
@Nonnull DeleteByParams deleteByParams,
RequestOptions requestOptions
Expand All @@ -1533,7 +1533,7 @@ public CompletableFuture<DeletedAtResponse> deleteByAsync(
.setMethod("POST")
.setBody(deleteByParams)
.build();
return executeAsync(request, requestOptions, new TypeReference<DeletedAtResponse>() {});
return executeAsync(request, requestOptions, new TypeReference<UpdatedAtResponse>() {});
}

/**
Expand All @@ -1545,7 +1545,7 @@ public CompletableFuture<DeletedAtResponse> deleteByAsync(
* @param deleteByParams (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<DeletedAtResponse> deleteByAsync(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams)
public CompletableFuture<UpdatedAtResponse> deleteByAsync(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams)
throws AlgoliaRuntimeException {
return this.deleteByAsync(indexName, deleteByParams, null);
}
Expand Down

0 comments on commit 58d3451

Please sign in to comment.