Skip to content

Commit

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

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 26, 2024
1 parent 618a03c commit 422e3cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 114 deletions.
24 changes: 10 additions & 14 deletions algoliasearch/src/main/java/com/algolia/api/SearchClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -4218,7 +4218,7 @@ public CompletableFuture<SaveObjectResponse> saveObjectAsync(@Nonnull String ind
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public UpdatedRuleResponse saveRule(
public UpdatedAtResponse saveRule(
@Nonnull String indexName,
@Nonnull String objectID,
@Nonnull Rule rule,
Expand All @@ -4239,7 +4239,7 @@ public UpdatedRuleResponse saveRule(
* @param forwardToReplicas Whether changes are applied to replica indices. (optional)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public UpdatedRuleResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule, Boolean forwardToReplicas)
public UpdatedAtResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule, Boolean forwardToReplicas)
throws AlgoliaRuntimeException {
return this.saveRule(indexName, objectID, rule, forwardToReplicas, null);
}
Expand All @@ -4256,12 +4256,8 @@ public UpdatedRuleResponse saveRule(@Nonnull String indexName, @Nonnull String o
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public UpdatedRuleResponse saveRule(
@Nonnull String indexName,
@Nonnull String objectID,
@Nonnull Rule rule,
RequestOptions requestOptions
) throws AlgoliaRuntimeException {
public UpdatedAtResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule, RequestOptions requestOptions)
throws AlgoliaRuntimeException {
return this.saveRule(indexName, objectID, rule, null, requestOptions);
}

Expand All @@ -4275,7 +4271,7 @@ public UpdatedRuleResponse saveRule(
* @param rule (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public UpdatedRuleResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule)
public UpdatedAtResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule)
throws AlgoliaRuntimeException {
return this.saveRule(indexName, objectID, rule, null, null);
}
Expand All @@ -4293,7 +4289,7 @@ public UpdatedRuleResponse saveRule(@Nonnull String indexName, @Nonnull String o
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
public CompletableFuture<UpdatedAtResponse> saveRuleAsync(
@Nonnull String indexName,
@Nonnull String objectID,
@Nonnull Rule rule,
Expand All @@ -4312,7 +4308,7 @@ public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
.setBody(rule)
.addQueryParameter("forwardToReplicas", forwardToReplicas)
.build();
return executeAsync(request, requestOptions, new TypeReference<UpdatedRuleResponse>() {});
return executeAsync(request, requestOptions, new TypeReference<UpdatedAtResponse>() {});
}

/**
Expand All @@ -4326,7 +4322,7 @@ public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
* @param forwardToReplicas Whether changes are applied to replica indices. (optional)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
public CompletableFuture<UpdatedAtResponse> saveRuleAsync(
@Nonnull String indexName,
@Nonnull String objectID,
@Nonnull Rule rule,
Expand All @@ -4347,7 +4343,7 @@ public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
* the transporter requestOptions.
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
public CompletableFuture<UpdatedAtResponse> saveRuleAsync(
@Nonnull String indexName,
@Nonnull String objectID,
@Nonnull Rule rule,
Expand All @@ -4366,7 +4362,7 @@ public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
* @param rule (required)
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule)
public CompletableFuture<UpdatedAtResponse> saveRuleAsync(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule)
throws AlgoliaRuntimeException {
return this.saveRuleAsync(indexName, objectID, rule, null, null);
}
Expand Down

This file was deleted.

0 comments on commit 422e3cb

Please sign in to comment.