Skip to content

Commit ec138b2

Browse files
feat(specs): add new ingestion property for push (generated)
algolia/api-clients-automation#5007 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
1 parent 7808e10 commit ec138b2

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/Api/IngestionClient.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,12 +1814,13 @@ public function listTransformations($itemsPerPage = null, $page = null, $sort =
18141814
*
18151815
* @see PushTaskPayload
18161816
*
1817-
* @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)
1818-
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
1817+
* @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)
1818+
* @param string $referenceIndexName This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source index name). (optional)
1819+
* @param array $requestOptions the requestOptions to send along with the query, they will be merged with the transporter requestOptions
18191820
*
18201821
* @return array<string, mixed>|WatchResponse
18211822
*/
1822-
public function push($indexName, $pushTaskPayload, $watch = null, $requestOptions = [])
1823+
public function push($indexName, $pushTaskPayload, $watch = null, $referenceIndexName = null, $requestOptions = [])
18231824
{
18241825
// verify the required parameter 'indexName' is set
18251826
if (!isset($indexName)) {
@@ -1843,6 +1844,10 @@ public function push($indexName, $pushTaskPayload, $watch = null, $requestOption
18431844
$queryParameters['watch'] = $watch;
18441845
}
18451846

1847+
if (null !== $referenceIndexName) {
1848+
$queryParameters['referenceIndexName'] = $referenceIndexName;
1849+
}
1850+
18461851
// path params
18471852
if (null !== $indexName) {
18481853
$resourcePath = str_replace(

0 commit comments

Comments
 (0)