From 25113e3b036cdc836446db0e266f2f34ec52e356 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Tue, 27 Aug 2024 06:53:21 +0000 Subject: [PATCH] fix(specs): filter run list by type (generated) https://github.com/algolia/api-clients-automation/pull/3577 Co-authored-by: algolia-bot Co-authored-by: Pierre Millot --- .../java/com/algolia/api/IngestionClient.java | 23 +++++++++++++------ .../com/algolia/model/ingestion/RunType.java | 6 ++++- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/algoliasearch/src/main/java/com/algolia/api/IngestionClient.java b/algoliasearch/src/main/java/com/algolia/api/IngestionClient.java index 1adfe90ef..16a13f835 100644 --- a/algoliasearch/src/main/java/com/algolia/api/IngestionClient.java +++ b/algoliasearch/src/main/java/com/algolia/api/IngestionClient.java @@ -2232,6 +2232,7 @@ public CompletableFuture listEventsAsync(@Nonnull String run * @param itemsPerPage Number of items per page. (optional, default to 10) * @param page Page number of the paginated API response. (optional) * @param status Run status for filtering the list of task runs. (optional) + * @param type Run type for filtering the list of task runs. (optional) * @param taskID Task ID for filtering the list of task runs. (optional) * @param sort Property by which to sort the list of task runs. (optional, default to createdAt) * @param order Sort order of the response, ascending or descending. (optional, default to desc) @@ -2247,6 +2248,7 @@ public RunListResponse listRuns( Integer itemsPerPage, Integer page, List status, + List type, String taskID, RunSortKeys sort, OrderKeys order, @@ -2254,7 +2256,7 @@ public RunListResponse listRuns( String endDate, RequestOptions requestOptions ) throws AlgoliaRuntimeException { - return LaunderThrowable.await(listRunsAsync(itemsPerPage, page, status, taskID, sort, order, startDate, endDate, requestOptions)); + return LaunderThrowable.await(listRunsAsync(itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate, requestOptions)); } /** @@ -2263,6 +2265,7 @@ public RunListResponse listRuns( * @param itemsPerPage Number of items per page. (optional, default to 10) * @param page Page number of the paginated API response. (optional) * @param status Run status for filtering the list of task runs. (optional) + * @param type Run type for filtering the list of task runs. (optional) * @param taskID Task ID for filtering the list of task runs. (optional) * @param sort Property by which to sort the list of task runs. (optional, default to createdAt) * @param order Sort order of the response, ascending or descending. (optional, default to desc) @@ -2276,13 +2279,14 @@ public RunListResponse listRuns( Integer itemsPerPage, Integer page, List status, + List type, String taskID, RunSortKeys sort, OrderKeys order, String startDate, String endDate ) throws AlgoliaRuntimeException { - return this.listRuns(itemsPerPage, page, status, taskID, sort, order, startDate, endDate, null); + return this.listRuns(itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate, null); } /** @@ -2293,7 +2297,7 @@ public RunListResponse listRuns( * @throws AlgoliaRuntimeException If it fails to process the API call */ public RunListResponse listRuns(RequestOptions requestOptions) throws AlgoliaRuntimeException { - return this.listRuns(null, null, null, null, null, null, null, null, requestOptions); + return this.listRuns(null, null, null, null, null, null, null, null, null, requestOptions); } /** @@ -2302,7 +2306,7 @@ public RunListResponse listRuns(RequestOptions requestOptions) throws AlgoliaRun * @throws AlgoliaRuntimeException If it fails to process the API call */ public RunListResponse listRuns() throws AlgoliaRuntimeException { - return this.listRuns(null, null, null, null, null, null, null, null, null); + return this.listRuns(null, null, null, null, null, null, null, null, null, null); } /** @@ -2311,6 +2315,7 @@ public RunListResponse listRuns() throws AlgoliaRuntimeException { * @param itemsPerPage Number of items per page. (optional, default to 10) * @param page Page number of the paginated API response. (optional) * @param status Run status for filtering the list of task runs. (optional) + * @param type Run type for filtering the list of task runs. (optional) * @param taskID Task ID for filtering the list of task runs. (optional) * @param sort Property by which to sort the list of task runs. (optional, default to createdAt) * @param order Sort order of the response, ascending or descending. (optional, default to desc) @@ -2326,6 +2331,7 @@ public CompletableFuture listRunsAsync( Integer itemsPerPage, Integer page, List status, + List type, String taskID, RunSortKeys sort, OrderKeys order, @@ -2339,6 +2345,7 @@ public CompletableFuture listRunsAsync( .addQueryParameter("itemsPerPage", itemsPerPage) .addQueryParameter("page", page) .addQueryParameter("status", status) + .addQueryParameter("type", type) .addQueryParameter("taskID", taskID) .addQueryParameter("sort", sort) .addQueryParameter("order", order) @@ -2354,6 +2361,7 @@ public CompletableFuture listRunsAsync( * @param itemsPerPage Number of items per page. (optional, default to 10) * @param page Page number of the paginated API response. (optional) * @param status Run status for filtering the list of task runs. (optional) + * @param type Run type for filtering the list of task runs. (optional) * @param taskID Task ID for filtering the list of task runs. (optional) * @param sort Property by which to sort the list of task runs. (optional, default to createdAt) * @param order Sort order of the response, ascending or descending. (optional, default to desc) @@ -2367,13 +2375,14 @@ public CompletableFuture listRunsAsync( Integer itemsPerPage, Integer page, List status, + List type, String taskID, RunSortKeys sort, OrderKeys order, String startDate, String endDate ) throws AlgoliaRuntimeException { - return this.listRunsAsync(itemsPerPage, page, status, taskID, sort, order, startDate, endDate, null); + return this.listRunsAsync(itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate, null); } /** @@ -2384,7 +2393,7 @@ public CompletableFuture listRunsAsync( * @throws AlgoliaRuntimeException If it fails to process the API call */ public CompletableFuture listRunsAsync(RequestOptions requestOptions) throws AlgoliaRuntimeException { - return this.listRunsAsync(null, null, null, null, null, null, null, null, requestOptions); + return this.listRunsAsync(null, null, null, null, null, null, null, null, null, requestOptions); } /** @@ -2393,7 +2402,7 @@ public CompletableFuture listRunsAsync(RequestOptions requestOp * @throws AlgoliaRuntimeException If it fails to process the API call */ public CompletableFuture listRunsAsync() throws AlgoliaRuntimeException { - return this.listRunsAsync(null, null, null, null, null, null, null, null, null); + return this.listRunsAsync(null, null, null, null, null, null, null, null, null, null); } /** diff --git a/algoliasearch/src/main/java/com/algolia/model/ingestion/RunType.java b/algoliasearch/src/main/java/com/algolia/model/ingestion/RunType.java index 3afd4bc1d..6988bf676 100644 --- a/algoliasearch/src/main/java/com/algolia/model/ingestion/RunType.java +++ b/algoliasearch/src/main/java/com/algolia/model/ingestion/RunType.java @@ -12,7 +12,11 @@ public enum RunType { UPDATE("update"), - DISCOVER("discover"); + DISCOVER("discover"), + + VALIDATE("validate"), + + PUSH("push"); private final String value;