Skip to content

Commit

Permalink
fix(specs): add sourceType to listTasks [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4193

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot and millotp committed Dec 3, 2024
1 parent fc62de0 commit 1051966
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/Api/IngestionClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -1554,7 +1555,7 @@ public function listSources($itemsPerPage = null, $page = null, $type = null, $a
*
* @return \Algolia\AlgoliaSearch\Model\Ingestion\ListTasksResponse|array<string, mixed>
*/
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 = [];
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 1051966

Please sign in to comment.