Skip to content

Commit 7f3960e

Browse files
algolia-botmillotp
andcommitted
fix(specs): filter run list by type (generated)
algolia/api-clients-automation#3577 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 82cade4 commit 7f3960e

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

algoliasearch/Clients/IngestionClient.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ public interface IIngestionClient
847847
/// <param name="itemsPerPage">Number of items per page. (optional, default to 10)</param>
848848
/// <param name="page">Page number of the paginated API response. (optional)</param>
849849
/// <param name="status">Run status for filtering the list of task runs. (optional)</param>
850+
/// <param name="type">Run type for filtering the list of task runs. (optional)</param>
850851
/// <param name="taskID">Task ID for filtering the list of task runs. (optional)</param>
851852
/// <param name="sort">Property by which to sort the list of task runs. (optional)</param>
852853
/// <param name="order">Sort order of the response, ascending or descending. (optional)</param>
@@ -858,14 +859,15 @@ public interface IIngestionClient
858859
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
859860
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
860861
/// <returns>Task of RunListResponse</returns>
861-
Task<RunListResponse> ListRunsAsync(int? itemsPerPage = default, int? page = default, List<RunStatus> status = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default);
862+
Task<RunListResponse> ListRunsAsync(int? itemsPerPage = default, int? page = default, List<RunStatus> status = default, List<RunType> type = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default);
862863

863864
/// <summary>
864865
/// Retrieve a list of task runs. (Synchronous version)
865866
/// </summary>
866867
/// <param name="itemsPerPage">Number of items per page. (optional, default to 10)</param>
867868
/// <param name="page">Page number of the paginated API response. (optional)</param>
868869
/// <param name="status">Run status for filtering the list of task runs. (optional)</param>
870+
/// <param name="type">Run type for filtering the list of task runs. (optional)</param>
869871
/// <param name="taskID">Task ID for filtering the list of task runs. (optional)</param>
870872
/// <param name="sort">Property by which to sort the list of task runs. (optional)</param>
871873
/// <param name="order">Sort order of the response, ascending or descending. (optional)</param>
@@ -877,7 +879,7 @@ public interface IIngestionClient
877879
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
878880
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
879881
/// <returns>RunListResponse</returns>
880-
RunListResponse ListRuns(int? itemsPerPage = default, int? page = default, List<RunStatus> status = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default);
882+
RunListResponse ListRuns(int? itemsPerPage = default, int? page = default, List<RunStatus> status = default, List<RunType> type = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default);
881883

882884
/// <summary>
883885
/// Retrieves a list of sources.
@@ -3153,6 +3155,7 @@ public ListEventsResponse ListEvents(string runID, int? itemsPerPage = default,
31533155
/// <param name="itemsPerPage">Number of items per page. (optional, default to 10)</param>
31543156
/// <param name="page">Page number of the paginated API response. (optional)</param>
31553157
/// <param name="status">Run status for filtering the list of task runs. (optional)</param>
3158+
/// <param name="type">Run type for filtering the list of task runs. (optional)</param>
31563159
/// <param name="taskID">Task ID for filtering the list of task runs. (optional)</param>
31573160
/// <param name="sort">Property by which to sort the list of task runs. (optional)</param>
31583161
/// <param name="order">Sort order of the response, ascending or descending. (optional)</param>
@@ -3164,14 +3167,15 @@ public ListEventsResponse ListEvents(string runID, int? itemsPerPage = default,
31643167
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
31653168
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
31663169
/// <returns>Task of RunListResponse</returns>
3167-
public async Task<RunListResponse> ListRunsAsync(int? itemsPerPage = default, int? page = default, List<RunStatus> status = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default)
3170+
public async Task<RunListResponse> ListRunsAsync(int? itemsPerPage = default, int? page = default, List<RunStatus> status = default, List<RunType> type = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default)
31683171
{
31693172
var requestOptions = new InternalRequestOptions(options);
31703173

31713174

31723175
requestOptions.AddQueryParameter("itemsPerPage", itemsPerPage);
31733176
requestOptions.AddQueryParameter("page", page);
31743177
requestOptions.AddQueryParameter("status", status);
3178+
requestOptions.AddQueryParameter("type", type);
31753179
requestOptions.AddQueryParameter("taskID", taskID);
31763180
requestOptions.AddQueryParameter("sort", sort);
31773181
requestOptions.AddQueryParameter("order", order);
@@ -3192,6 +3196,7 @@ public async Task<RunListResponse> ListRunsAsync(int? itemsPerPage = default, in
31923196
/// <param name="itemsPerPage">Number of items per page. (optional, default to 10)</param>
31933197
/// <param name="page">Page number of the paginated API response. (optional)</param>
31943198
/// <param name="status">Run status for filtering the list of task runs. (optional)</param>
3199+
/// <param name="type">Run type for filtering the list of task runs. (optional)</param>
31953200
/// <param name="taskID">Task ID for filtering the list of task runs. (optional)</param>
31963201
/// <param name="sort">Property by which to sort the list of task runs. (optional)</param>
31973202
/// <param name="order">Sort order of the response, ascending or descending. (optional)</param>
@@ -3203,8 +3208,8 @@ public async Task<RunListResponse> ListRunsAsync(int? itemsPerPage = default, in
32033208
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
32043209
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
32053210
/// <returns>RunListResponse</returns>
3206-
public RunListResponse ListRuns(int? itemsPerPage = default, int? page = default, List<RunStatus> status = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
3207-
AsyncHelper.RunSync(() => ListRunsAsync(itemsPerPage, page, status, taskID, sort, order, startDate, endDate, options, cancellationToken));
3211+
public RunListResponse ListRuns(int? itemsPerPage = default, int? page = default, List<RunStatus> status = default, List<RunType> type = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default) =>
3212+
AsyncHelper.RunSync(() => ListRunsAsync(itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate, options, cancellationToken));
32083213

32093214

32103215
/// <summary>

algoliasearch/Models/Ingestion/RunType.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ public enum RunType
3333
/// Enum Discover for value: discover
3434
/// </summary>
3535
[JsonPropertyName("discover")]
36-
Discover = 3
36+
Discover = 3,
37+
38+
/// <summary>
39+
/// Enum Validate for value: validate
40+
/// </summary>
41+
[JsonPropertyName("validate")]
42+
Validate = 4,
43+
44+
/// <summary>
45+
/// Enum Push for value: push
46+
/// </summary>
47+
[JsonPropertyName("push")]
48+
Push = 5
3749
}
3850

0 commit comments

Comments
 (0)