@@ -2554,18 +2554,23 @@ open class IngestionClient {
2554
2554
/// - parameter pushTaskPayload: (body)
2555
2555
/// - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
2556
2556
/// ingestion to be finished before responding. (optional)
2557
+ /// - parameter referenceIndexName: (query) This is required when targeting an index that does not have a push
2558
+ /// connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source
2559
+ /// index name). (optional)
2557
2560
/// - returns: IngestionWatchResponse
2558
2561
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2559
2562
open func push(
2560
2563
indexName: String ,
2561
2564
pushTaskPayload: PushTaskPayload ,
2562
2565
watch: Bool ? = nil ,
2566
+ referenceIndexName: String ? = nil ,
2563
2567
requestOptions: RequestOptions ? = nil
2564
2568
) async throws -> IngestionWatchResponse {
2565
2569
let response : Response < IngestionWatchResponse > = try await pushWithHTTPInfo (
2566
2570
indexName: indexName,
2567
2571
pushTaskPayload: pushTaskPayload,
2568
2572
watch: watch,
2573
+ referenceIndexName: referenceIndexName,
2569
2574
requestOptions: requestOptions
2570
2575
)
2571
2576
@@ -2592,12 +2597,17 @@ open class IngestionClient {
2592
2597
//
2593
2598
// - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
2594
2599
// ingestion to be finished before responding. (optional)
2600
+ //
2601
+ // - parameter referenceIndexName: (query) This is required when targeting an index that does not have a push
2602
+ // connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source
2603
+ // index name). (optional)
2595
2604
// - returns: RequestBuilder<IngestionWatchResponse>
2596
2605
2597
2606
open func pushWithHTTPInfo(
2598
2607
indexName: String ,
2599
2608
pushTaskPayload: PushTaskPayload ,
2600
2609
watch: Bool ? = nil ,
2610
+ referenceIndexName: String ? = nil ,
2601
2611
requestOptions userRequestOptions: RequestOptions ? = nil
2602
2612
) async throws -> Response < IngestionWatchResponse > {
2603
2613
guard !indexName. isEmpty else {
@@ -2617,6 +2627,7 @@ open class IngestionClient {
2617
2627
let body = pushTaskPayload
2618
2628
let queryParameters : [ String : Any ? ] = [
2619
2629
" watch " : watch? . encodeToJSON ( ) ,
2630
+ " referenceIndexName " : referenceIndexName? . encodeToJSON ( ) ,
2620
2631
]
2621
2632
2622
2633
let nillableHeaders : [ String : Any ? ] ? = nil
0 commit comments