Skip to content

Commit 25d3dc1

Browse files
feat(specs): add watch to pushTask ingestion (generated)
algolia/api-clients-automation#4224 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent c7b483d commit 25d3dc1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Api/IngestionClient.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,11 +1756,12 @@ public function listTransformations($itemsPerPage = null, $page = null, $sort =
17561756
*
17571757
* @see PushTaskPayload
17581758
*
1759+
* @param bool $watch When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding. (optional)
17591760
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
17601761
*
17611762
* @return \Algolia\AlgoliaSearch\Model\Ingestion\RunResponse|array<string, mixed>
17621763
*/
1763-
public function pushTask($taskID, $pushTaskPayload, $requestOptions = [])
1764+
public function pushTask($taskID, $pushTaskPayload, $watch = null, $requestOptions = [])
17641765
{
17651766
// verify the required parameter 'taskID' is set
17661767
if (!isset($taskID)) {
@@ -1780,6 +1781,10 @@ public function pushTask($taskID, $pushTaskPayload, $requestOptions = [])
17801781
$headers = [];
17811782
$httpBody = $pushTaskPayload;
17821783

1784+
if (null !== $watch) {
1785+
$queryParameters['watch'] = $watch;
1786+
}
1787+
17831788
// path params
17841789
if (null !== $taskID) {
17851790
$resourcePath = str_replace(

0 commit comments

Comments
 (0)