Skip to content

Commit 79c5461

Browse files
feat(specs): add new ingestion property for push (generated)
algolia/api-clients-automation#5007 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 3c8e72f commit 79c5461

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/commonMain/kotlin/com/algolia/client/api/IngestionClient.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,15 +931,17 @@ public class IngestionClient(
931931
* @param indexName Name of the index on which to perform the operation.
932932
* @param pushTaskPayload
933933
* @param watch When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
934+
* @param 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).
934935
* @param requestOptions additional request configuration.
935936
*/
936-
public suspend fun push(indexName: String, pushTaskPayload: PushTaskPayload, watch: Boolean? = null, requestOptions: RequestOptions? = null): WatchResponse {
937+
public suspend fun push(indexName: String, pushTaskPayload: PushTaskPayload, watch: Boolean? = null, referenceIndexName: String? = null, requestOptions: RequestOptions? = null): WatchResponse {
937938
require(indexName.isNotBlank()) { "Parameter `indexName` is required when calling `push`." }
938939
val requestConfig = RequestConfig(
939940
method = RequestMethod.POST,
940941
path = listOf("1", "push", "$indexName"),
941942
query = buildMap {
942943
watch?.let { put("watch", it) }
944+
referenceIndexName?.let { put("referenceIndexName", it) }
943945
},
944946
body = pushTaskPayload,
945947
)

0 commit comments

Comments
 (0)