Skip to content

Commit 1051966

Browse files
algolia-botmillotp
andcommitted
fix(specs): add sourceType to listTasks [skip-bc] (generated)
algolia/api-clients-automation#4193 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent fc62de0 commit 1051966

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

lib/Api/IngestionClient.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,7 @@ public function listSources($itemsPerPage = null, $page = null, $type = null, $a
15461546
* @param array $action Actions for filtering the list of tasks. (optional)
15471547
* @param bool $enabled Whether to filter the list of tasks by the `enabled` status. (optional)
15481548
* @param array $sourceID Source IDs for filtering the list of tasks. (optional)
1549+
* @param array $sourceType Filters the tasks with the specified source type. (optional)
15491550
* @param array $destinationID Destination IDs for filtering the list of tasks. (optional)
15501551
* @param array $triggerType Type of task trigger for filtering the list of tasks. (optional)
15511552
* @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
15541555
*
15551556
* @return \Algolia\AlgoliaSearch\Model\Ingestion\ListTasksResponse|array<string, mixed>
15561557
*/
1557-
public function listTasks($itemsPerPage = null, $page = null, $action = null, $enabled = null, $sourceID = null, $destinationID = null, $triggerType = null, $sort = null, $order = null, $requestOptions = [])
1558+
public function listTasks($itemsPerPage = null, $page = null, $action = null, $enabled = null, $sourceID = null, $sourceType = null, $destinationID = null, $triggerType = null, $sort = null, $order = null, $requestOptions = [])
15581559
{
15591560
$resourcePath = '/2/tasks';
15601561
$queryParameters = [];
@@ -1587,6 +1588,13 @@ public function listTasks($itemsPerPage = null, $page = null, $action = null, $e
15871588
$queryParameters['sourceID'] = $sourceID;
15881589
}
15891590

1591+
if (is_array($sourceType)) {
1592+
$sourceType = ObjectSerializer::serializeCollection($sourceType, 'form', true);
1593+
}
1594+
if (null !== $sourceType) {
1595+
$queryParameters['sourceType'] = $sourceType;
1596+
}
1597+
15901598
if (is_array($destinationID)) {
15911599
$destinationID = ObjectSerializer::serializeCollection($destinationID, 'form', true);
15921600
}

0 commit comments

Comments
 (0)