Skip to content

Commit 4e03e66

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 5a3bf4d commit 4e03e66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/scala/algoliasearch/api/IngestionClient.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,11 +1220,15 @@ class IngestionClient(
12201220
* @param watch
12211221
* When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished
12221222
* before responding.
1223+
* @param referenceIndexName
1224+
* This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you
1225+
* wish to attach another index's transformation to it (e.g. the source index name).
12231226
*/
12241227
def push(
12251228
indexName: String,
12261229
pushTaskPayload: PushTaskPayload,
12271230
watch: Option[Boolean] = None,
1231+
referenceIndexName: Option[String] = None,
12281232
requestOptions: Option[RequestOptions] = None
12291233
)(implicit ec: ExecutionContext): Future[WatchResponse] = Future {
12301234
requireNotNull(indexName, "Parameter `indexName` is required when calling `push`.")
@@ -1236,6 +1240,7 @@ class IngestionClient(
12361240
.withPath(s"/1/push/${escape(indexName)}")
12371241
.withBody(pushTaskPayload)
12381242
.withQueryParameter("watch", watch)
1243+
.withQueryParameter("referenceIndexName", referenceIndexName)
12391244
.build()
12401245
execute[WatchResponse](
12411246
request,

0 commit comments

Comments
 (0)