Skip to content

Commit 422e3cb

Browse files
fix(specs): saveRule response type [skip-bc] (generated)
algolia/api-clients-automation#4170 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 618a03c commit 422e3cb

File tree

2 files changed

+10
-114
lines changed

2 files changed

+10
-114
lines changed

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

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4218,7 +4218,7 @@ public CompletableFuture<SaveObjectResponse> saveObjectAsync(@Nonnull String ind
42184218
* the transporter requestOptions.
42194219
* @throws AlgoliaRuntimeException If it fails to process the API call
42204220
*/
4221-
public UpdatedRuleResponse saveRule(
4221+
public UpdatedAtResponse saveRule(
42224222
@Nonnull String indexName,
42234223
@Nonnull String objectID,
42244224
@Nonnull Rule rule,
@@ -4239,7 +4239,7 @@ public UpdatedRuleResponse saveRule(
42394239
* @param forwardToReplicas Whether changes are applied to replica indices. (optional)
42404240
* @throws AlgoliaRuntimeException If it fails to process the API call
42414241
*/
4242-
public UpdatedRuleResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule, Boolean forwardToReplicas)
4242+
public UpdatedAtResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule, Boolean forwardToReplicas)
42434243
throws AlgoliaRuntimeException {
42444244
return this.saveRule(indexName, objectID, rule, forwardToReplicas, null);
42454245
}
@@ -4256,12 +4256,8 @@ public UpdatedRuleResponse saveRule(@Nonnull String indexName, @Nonnull String o
42564256
* the transporter requestOptions.
42574257
* @throws AlgoliaRuntimeException If it fails to process the API call
42584258
*/
4259-
public UpdatedRuleResponse saveRule(
4260-
@Nonnull String indexName,
4261-
@Nonnull String objectID,
4262-
@Nonnull Rule rule,
4263-
RequestOptions requestOptions
4264-
) throws AlgoliaRuntimeException {
4259+
public UpdatedAtResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule, RequestOptions requestOptions)
4260+
throws AlgoliaRuntimeException {
42654261
return this.saveRule(indexName, objectID, rule, null, requestOptions);
42664262
}
42674263

@@ -4275,7 +4271,7 @@ public UpdatedRuleResponse saveRule(
42754271
* @param rule (required)
42764272
* @throws AlgoliaRuntimeException If it fails to process the API call
42774273
*/
4278-
public UpdatedRuleResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule)
4274+
public UpdatedAtResponse saveRule(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule)
42794275
throws AlgoliaRuntimeException {
42804276
return this.saveRule(indexName, objectID, rule, null, null);
42814277
}
@@ -4293,7 +4289,7 @@ public UpdatedRuleResponse saveRule(@Nonnull String indexName, @Nonnull String o
42934289
* the transporter requestOptions.
42944290
* @throws AlgoliaRuntimeException If it fails to process the API call
42954291
*/
4296-
public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
4292+
public CompletableFuture<UpdatedAtResponse> saveRuleAsync(
42974293
@Nonnull String indexName,
42984294
@Nonnull String objectID,
42994295
@Nonnull Rule rule,
@@ -4312,7 +4308,7 @@ public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
43124308
.setBody(rule)
43134309
.addQueryParameter("forwardToReplicas", forwardToReplicas)
43144310
.build();
4315-
return executeAsync(request, requestOptions, new TypeReference<UpdatedRuleResponse>() {});
4311+
return executeAsync(request, requestOptions, new TypeReference<UpdatedAtResponse>() {});
43164312
}
43174313

43184314
/**
@@ -4326,7 +4322,7 @@ public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
43264322
* @param forwardToReplicas Whether changes are applied to replica indices. (optional)
43274323
* @throws AlgoliaRuntimeException If it fails to process the API call
43284324
*/
4329-
public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
4325+
public CompletableFuture<UpdatedAtResponse> saveRuleAsync(
43304326
@Nonnull String indexName,
43314327
@Nonnull String objectID,
43324328
@Nonnull Rule rule,
@@ -4347,7 +4343,7 @@ public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
43474343
* the transporter requestOptions.
43484344
* @throws AlgoliaRuntimeException If it fails to process the API call
43494345
*/
4350-
public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
4346+
public CompletableFuture<UpdatedAtResponse> saveRuleAsync(
43514347
@Nonnull String indexName,
43524348
@Nonnull String objectID,
43534349
@Nonnull Rule rule,
@@ -4366,7 +4362,7 @@ public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(
43664362
* @param rule (required)
43674363
* @throws AlgoliaRuntimeException If it fails to process the API call
43684364
*/
4369-
public CompletableFuture<UpdatedRuleResponse> saveRuleAsync(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule)
4365+
public CompletableFuture<UpdatedAtResponse> saveRuleAsync(@Nonnull String indexName, @Nonnull String objectID, @Nonnull Rule rule)
43704366
throws AlgoliaRuntimeException {
43714367
return this.saveRuleAsync(indexName, objectID, rule, null, null);
43724368
}

algoliasearch/src/main/java/com/algolia/model/search/UpdatedRuleResponse.java

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)