From 58d3451f6f722e11a1d5ded0cba9794cfce9d9a3 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Fri, 15 Nov 2024 12:05:04 +0000 Subject: [PATCH] fix(specs): returns an response [skip-bc] (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/4107 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- .../src/main/java/com/algolia/api/SearchClient.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/algoliasearch/src/main/java/com/algolia/api/SearchClient.java b/algoliasearch/src/main/java/com/algolia/api/SearchClient.java index 5602bf3c..86cca4fc 100644 --- a/algoliasearch/src/main/java/com/algolia/api/SearchClient.java +++ b/algoliasearch/src/main/java/com/algolia/api/SearchClient.java @@ -1490,7 +1490,7 @@ public CompletableFuture 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)); } @@ -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); } @@ -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 deleteByAsync( + public CompletableFuture deleteByAsync( @Nonnull String indexName, @Nonnull DeleteByParams deleteByParams, RequestOptions requestOptions @@ -1533,7 +1533,7 @@ public CompletableFuture deleteByAsync( .setMethod("POST") .setBody(deleteByParams) .build(); - return executeAsync(request, requestOptions, new TypeReference() {}); + return executeAsync(request, requestOptions, new TypeReference() {}); } /** @@ -1545,7 +1545,7 @@ public CompletableFuture deleteByAsync( * @param deleteByParams (required) * @throws AlgoliaRuntimeException If it fails to process the API call */ - public CompletableFuture deleteByAsync(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams) + public CompletableFuture deleteByAsync(@Nonnull String indexName, @Nonnull DeleteByParams deleteByParams) throws AlgoliaRuntimeException { return this.deleteByAsync(indexName, deleteByParams, null); }