From 7f3960e36658419d6e3dc235f3eb0f0b863291e1 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Tue, 27 Aug 2024 06:53:17 +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 --- algoliasearch/Clients/IngestionClient.cs | 15 ++++++++++----- algoliasearch/Models/Ingestion/RunType.cs | 14 +++++++++++++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/algoliasearch/Clients/IngestionClient.cs b/algoliasearch/Clients/IngestionClient.cs index d9eeceec7..4075b6501 100644 --- a/algoliasearch/Clients/IngestionClient.cs +++ b/algoliasearch/Clients/IngestionClient.cs @@ -847,6 +847,7 @@ public interface IIngestionClient /// Number of items per page. (optional, default to 10) /// Page number of the paginated API response. (optional) /// Run status for filtering the list of task runs. (optional) + /// Run type for filtering the list of task runs. (optional) /// Task ID for filtering the list of task runs. (optional) /// Property by which to sort the list of task runs. (optional) /// Sort order of the response, ascending or descending. (optional) @@ -858,7 +859,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of RunListResponse - Task ListRunsAsync(int? itemsPerPage = default, int? page = default, List status = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default); + Task ListRunsAsync(int? itemsPerPage = default, int? page = default, List status = default, List type = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default); /// /// Retrieve a list of task runs. (Synchronous version) @@ -866,6 +867,7 @@ public interface IIngestionClient /// Number of items per page. (optional, default to 10) /// Page number of the paginated API response. (optional) /// Run status for filtering the list of task runs. (optional) + /// Run type for filtering the list of task runs. (optional) /// Task ID for filtering the list of task runs. (optional) /// Property by which to sort the list of task runs. (optional) /// Sort order of the response, ascending or descending. (optional) @@ -877,7 +879,7 @@ public interface IIngestionClient /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// RunListResponse - RunListResponse ListRuns(int? itemsPerPage = default, int? page = default, List status = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default); + RunListResponse ListRuns(int? itemsPerPage = default, int? page = default, List status = default, List type = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default); /// /// Retrieves a list of sources. @@ -3153,6 +3155,7 @@ public ListEventsResponse ListEvents(string runID, int? itemsPerPage = default, /// Number of items per page. (optional, default to 10) /// Page number of the paginated API response. (optional) /// Run status for filtering the list of task runs. (optional) + /// Run type for filtering the list of task runs. (optional) /// Task ID for filtering the list of task runs. (optional) /// Property by which to sort the list of task runs. (optional) /// Sort order of the response, ascending or descending. (optional) @@ -3164,7 +3167,7 @@ public ListEventsResponse ListEvents(string runID, int? itemsPerPage = default, /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// Task of RunListResponse - public async Task ListRunsAsync(int? itemsPerPage = default, int? page = default, List status = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default) + public async Task ListRunsAsync(int? itemsPerPage = default, int? page = default, List status = default, List type = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default) { var requestOptions = new InternalRequestOptions(options); @@ -3172,6 +3175,7 @@ public async Task ListRunsAsync(int? itemsPerPage = default, in requestOptions.AddQueryParameter("itemsPerPage", itemsPerPage); requestOptions.AddQueryParameter("page", page); requestOptions.AddQueryParameter("status", status); + requestOptions.AddQueryParameter("type", type); requestOptions.AddQueryParameter("taskID", taskID); requestOptions.AddQueryParameter("sort", sort); requestOptions.AddQueryParameter("order", order); @@ -3192,6 +3196,7 @@ public async Task ListRunsAsync(int? itemsPerPage = default, in /// Number of items per page. (optional, default to 10) /// Page number of the paginated API response. (optional) /// Run status for filtering the list of task runs. (optional) + /// Run type for filtering the list of task runs. (optional) /// Task ID for filtering the list of task runs. (optional) /// Property by which to sort the list of task runs. (optional) /// Sort order of the response, ascending or descending. (optional) @@ -3203,8 +3208,8 @@ public async Task ListRunsAsync(int? itemsPerPage = default, in /// Thrown when the API call was rejected by Algolia /// Thrown when the client failed to call the endpoint /// RunListResponse - public RunListResponse ListRuns(int? itemsPerPage = default, int? page = default, List status = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default) => - AsyncHelper.RunSync(() => ListRunsAsync(itemsPerPage, page, status, taskID, sort, order, startDate, endDate, options, cancellationToken)); + public RunListResponse ListRuns(int? itemsPerPage = default, int? page = default, List status = default, List type = default, string taskID = default, RunSortKeys? sort = default, OrderKeys? order = default, string startDate = default, string endDate = default, RequestOptions options = null, CancellationToken cancellationToken = default) => + AsyncHelper.RunSync(() => ListRunsAsync(itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate, options, cancellationToken)); /// diff --git a/algoliasearch/Models/Ingestion/RunType.cs b/algoliasearch/Models/Ingestion/RunType.cs index 954d479f7..ef8a7216a 100644 --- a/algoliasearch/Models/Ingestion/RunType.cs +++ b/algoliasearch/Models/Ingestion/RunType.cs @@ -33,6 +33,18 @@ public enum RunType /// Enum Discover for value: discover /// [JsonPropertyName("discover")] - Discover = 3 + Discover = 3, + + /// + /// Enum Validate for value: validate + /// + [JsonPropertyName("validate")] + Validate = 4, + + /// + /// Enum Push for value: push + /// + [JsonPropertyName("push")] + Push = 5 }