From 105196691768ea9fd20e9988cbb867c0906cc243 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Tue, 3 Dec 2024 10:16:26 +0000 Subject: [PATCH] fix(specs): add sourceType to listTasks [skip-bc] (generated) https://github.com/algolia/api-clients-automation/pull/4193 Co-authored-by: algolia-bot Co-authored-by: Pierre Millot --- lib/Api/IngestionClient.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Api/IngestionClient.php b/lib/Api/IngestionClient.php index 4b983f9d..0a1467c3 100644 --- a/lib/Api/IngestionClient.php +++ b/lib/Api/IngestionClient.php @@ -1546,6 +1546,7 @@ public function listSources($itemsPerPage = null, $page = null, $type = null, $a * @param array $action Actions for filtering the list of tasks. (optional) * @param bool $enabled Whether to filter the list of tasks by the `enabled` status. (optional) * @param array $sourceID Source IDs for filtering the list of tasks. (optional) + * @param array $sourceType Filters the tasks with the specified source type. (optional) * @param array $destinationID Destination IDs for filtering the list of tasks. (optional) * @param array $triggerType Type of task trigger for filtering the list of tasks. (optional) * @param array $sort Property by which to sort the list of tasks. (optional) @@ -1554,7 +1555,7 @@ public function listSources($itemsPerPage = null, $page = null, $type = null, $a * * @return \Algolia\AlgoliaSearch\Model\Ingestion\ListTasksResponse|array */ - public function listTasks($itemsPerPage = null, $page = null, $action = null, $enabled = null, $sourceID = null, $destinationID = null, $triggerType = null, $sort = null, $order = null, $requestOptions = []) + public function listTasks($itemsPerPage = null, $page = null, $action = null, $enabled = null, $sourceID = null, $sourceType = null, $destinationID = null, $triggerType = null, $sort = null, $order = null, $requestOptions = []) { $resourcePath = '/2/tasks'; $queryParameters = []; @@ -1587,6 +1588,13 @@ public function listTasks($itemsPerPage = null, $page = null, $action = null, $e $queryParameters['sourceID'] = $sourceID; } + if (is_array($sourceType)) { + $sourceType = ObjectSerializer::serializeCollection($sourceType, 'form', true); + } + if (null !== $sourceType) { + $queryParameters['sourceType'] = $sourceType; + } + if (is_array($destinationID)) { $destinationID = ObjectSerializer::serializeCollection($destinationID, 'form', true); }