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 0bce790 commit 9167cff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -756,21 +756,23 @@ public class IngestionClient(
* @param itemsPerPage Number of items per page. (default to 10)
* @param page Page number of the paginated API response.
* @param status Run status for filtering the list of task runs.
* @param type Run type for filtering the list of task runs.
* @param taskID Task ID for filtering the list of task runs.
* @param sort Property by which to sort the list of task runs. (default to createdAt)
* @param order Sort order of the response, ascending or descending. (default to desc)
* @param startDate Date in RFC 3339 format for the earliest run to retrieve. By default, the current day minus seven days is used.
* @param endDate Date in RFC 3339 format for the latest run to retrieve. By default, the current day is used.
* @param requestOptions additional request configuration.
*/
public suspend fun listRuns(itemsPerPage: Int? = null, page: Int? = null, status: List<RunStatus>? = null, taskID: String? = null, sort: RunSortKeys? = null, order: OrderKeys? = null, startDate: String? = null, endDate: String? = null, requestOptions: RequestOptions? = null): RunListResponse {
public suspend fun listRuns(itemsPerPage: Int? = null, page: Int? = null, status: List<RunStatus>? = null, type: List<RunType>? = null, taskID: String? = null, sort: RunSortKeys? = null, order: OrderKeys? = null, startDate: String? = null, endDate: String? = null, requestOptions: RequestOptions? = null): RunListResponse {
val requestConfig = RequestConfig(
method = RequestMethod.GET,
path = listOf("1", "runs"),
query = buildMap {
itemsPerPage?.let { put("itemsPerPage", it) }
page?.let { put("page", it) }
status?.let { put("status", it.joinToString(",")) }
type?.let { put("type", it.joinToString(",")) }
taskID?.let { put("taskID", it) }
sort?.let { put("sort", it) }
order?.let { put("order", it) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ public enum class RunType(public val value: kotlin.String) {
Update("update"),

@SerialName(value = "discover")
Discover("discover");
Discover("discover"),

@SerialName(value = "validate")
Validate("validate"),

@SerialName(value = "push")
Push("push");

override fun toString(): kotlin.String = value
}

0 comments on commit 9167cff

Please sign in to comment.