Skip to content

Commit 7c79439

Browse files
algolia-botkai687
andcommitted
chore: generated code for commit 200f07e9. [skip ci]
algolia/api-clients-automation@200f07e Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]>
1 parent 5752f02 commit 7c79439

File tree

3 files changed

+1639
-5
lines changed

3 files changed

+1639
-5
lines changed

algoliasearch/src/main/java/com/algolia/api/SearchClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2658,7 +2658,7 @@ public CompletableFuture<Rule> getRuleAsync(@Nonnull String indexName, @Nonnull
26582658
* the transporter requestOptions.
26592659
* @throws AlgoliaRuntimeException If it fails to process the API call
26602660
*/
2661-
public IndexSettings getSettings(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException {
2661+
public SettingsResponse getSettings(@Nonnull String indexName, RequestOptions requestOptions) throws AlgoliaRuntimeException {
26622662
return LaunderThrowable.await(getSettingsAsync(indexName, requestOptions));
26632663
}
26642664

@@ -2668,7 +2668,7 @@ public IndexSettings getSettings(@Nonnull String indexName, RequestOptions reque
26682668
* @param indexName Name of the index on which to perform the operation. (required)
26692669
* @throws AlgoliaRuntimeException If it fails to process the API call
26702670
*/
2671-
public IndexSettings getSettings(@Nonnull String indexName) throws AlgoliaRuntimeException {
2671+
public SettingsResponse getSettings(@Nonnull String indexName) throws AlgoliaRuntimeException {
26722672
return this.getSettings(indexName, null);
26732673
}
26742674

@@ -2680,12 +2680,12 @@ public IndexSettings getSettings(@Nonnull String indexName) throws AlgoliaRuntim
26802680
* the transporter requestOptions.
26812681
* @throws AlgoliaRuntimeException If it fails to process the API call
26822682
*/
2683-
public CompletableFuture<IndexSettings> getSettingsAsync(@Nonnull String indexName, RequestOptions requestOptions)
2683+
public CompletableFuture<SettingsResponse> getSettingsAsync(@Nonnull String indexName, RequestOptions requestOptions)
26842684
throws AlgoliaRuntimeException {
26852685
Parameters.requireNonNull(indexName, "Parameter `indexName` is required when calling `getSettings`.");
26862686

26872687
HttpRequest request = HttpRequest.builder().setPath("/1/indexes/{indexName}/settings", indexName).setMethod("GET").build();
2688-
return executeAsync(request, requestOptions, new TypeReference<IndexSettings>() {});
2688+
return executeAsync(request, requestOptions, new TypeReference<SettingsResponse>() {});
26892689
}
26902690

26912691
/**
@@ -2694,7 +2694,7 @@ public CompletableFuture<IndexSettings> getSettingsAsync(@Nonnull String indexNa
26942694
* @param indexName Name of the index on which to perform the operation. (required)
26952695
* @throws AlgoliaRuntimeException If it fails to process the API call
26962696
*/
2697-
public CompletableFuture<IndexSettings> getSettingsAsync(@Nonnull String indexName) throws AlgoliaRuntimeException {
2697+
public CompletableFuture<SettingsResponse> getSettingsAsync(@Nonnull String indexName) throws AlgoliaRuntimeException {
26982698
return this.getSettingsAsync(indexName, null);
26992699
}
27002700

0 commit comments

Comments
 (0)