Skip to content

Commit

Permalink
fix(specs): filter run list by type (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3577

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot and millotp committed Aug 27, 2024
1 parent b4ce00d commit 25113e3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
23 changes: 16 additions & 7 deletions algoliasearch/src/main/java/com/algolia/api/IngestionClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,7 @@ public CompletableFuture<ListEventsResponse> 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)
Expand All @@ -2247,14 +2248,15 @@ public RunListResponse listRuns(
Integer itemsPerPage,
Integer page,
List<RunStatus> status,
List<RunType> type,
String taskID,
RunSortKeys sort,
OrderKeys order,
String startDate,
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));
}

/**
Expand All @@ -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)
Expand All @@ -2276,13 +2279,14 @@ public RunListResponse listRuns(
Integer itemsPerPage,
Integer page,
List<RunStatus> status,
List<RunType> 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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand All @@ -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)
Expand All @@ -2326,6 +2331,7 @@ public CompletableFuture<RunListResponse> listRunsAsync(
Integer itemsPerPage,
Integer page,
List<RunStatus> status,
List<RunType> type,
String taskID,
RunSortKeys sort,
OrderKeys order,
Expand All @@ -2339,6 +2345,7 @@ public CompletableFuture<RunListResponse> listRunsAsync(
.addQueryParameter("itemsPerPage", itemsPerPage)
.addQueryParameter("page", page)
.addQueryParameter("status", status)
.addQueryParameter("type", type)
.addQueryParameter("taskID", taskID)
.addQueryParameter("sort", sort)
.addQueryParameter("order", order)
Expand All @@ -2354,6 +2361,7 @@ public CompletableFuture<RunListResponse> 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)
Expand All @@ -2367,13 +2375,14 @@ public CompletableFuture<RunListResponse> listRunsAsync(
Integer itemsPerPage,
Integer page,
List<RunStatus> status,
List<RunType> 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);
}

/**
Expand All @@ -2384,7 +2393,7 @@ public CompletableFuture<RunListResponse> listRunsAsync(
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<RunListResponse> 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);
}

/**
Expand All @@ -2393,7 +2402,7 @@ public CompletableFuture<RunListResponse> listRunsAsync(RequestOptions requestOp
* @throws AlgoliaRuntimeException If it fails to process the API call
*/
public CompletableFuture<RunListResponse> 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);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ public enum RunType {

UPDATE("update"),

DISCOVER("discover");
DISCOVER("discover"),

VALIDATE("validate"),

PUSH("push");

private final String value;

Expand Down

0 comments on commit 25113e3

Please sign in to comment.