@@ -3133,6 +3133,9 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync()
3133
3133
* @param pushTaskPayload (required)
3134
3134
* @param watch When provided, the push operation will be synchronous and the API will wait for
3135
3135
* the ingestion to be finished before responding. (optional)
3136
+ * @param referenceIndexName This is required when targeting an index that does not have a push
3137
+ * connector setup (e.g. a tmp index), but you wish to attach another index's transformation
3138
+ * to it (e.g. the source index name). (optional)
3136
3139
* @param requestOptions The requestOptions to send along with the query, they will be merged with
3137
3140
* the transporter requestOptions.
3138
3141
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -3141,9 +3144,10 @@ public WatchResponse push(
3141
3144
@ Nonnull String indexName ,
3142
3145
@ Nonnull PushTaskPayload pushTaskPayload ,
3143
3146
Boolean watch ,
3147
+ String referenceIndexName ,
3144
3148
@ Nullable RequestOptions requestOptions
3145
3149
) throws AlgoliaRuntimeException {
3146
- return LaunderThrowable .await (pushAsync (indexName , pushTaskPayload , watch , requestOptions ));
3150
+ return LaunderThrowable .await (pushAsync (indexName , pushTaskPayload , watch , referenceIndexName , requestOptions ));
3147
3151
}
3148
3152
3149
3153
/**
@@ -3160,11 +3164,14 @@ public WatchResponse push(
3160
3164
* @param pushTaskPayload (required)
3161
3165
* @param watch When provided, the push operation will be synchronous and the API will wait for
3162
3166
* the ingestion to be finished before responding. (optional)
3167
+ * @param referenceIndexName This is required when targeting an index that does not have a push
3168
+ * connector setup (e.g. a tmp index), but you wish to attach another index's transformation
3169
+ * to it (e.g. the source index name). (optional)
3163
3170
* @throws AlgoliaRuntimeException If it fails to process the API call
3164
3171
*/
3165
- public WatchResponse push (@ Nonnull String indexName , @ Nonnull PushTaskPayload pushTaskPayload , Boolean watch )
3172
+ public WatchResponse push (@ Nonnull String indexName , @ Nonnull PushTaskPayload pushTaskPayload , Boolean watch , String referenceIndexName )
3166
3173
throws AlgoliaRuntimeException {
3167
- return this .push (indexName , pushTaskPayload , watch , null );
3174
+ return this .push (indexName , pushTaskPayload , watch , referenceIndexName , null );
3168
3175
}
3169
3176
3170
3177
/**
@@ -3185,7 +3192,7 @@ public WatchResponse push(@Nonnull String indexName, @Nonnull PushTaskPayload pu
3185
3192
*/
3186
3193
public WatchResponse push (@ Nonnull String indexName , @ Nonnull PushTaskPayload pushTaskPayload , @ Nullable RequestOptions requestOptions )
3187
3194
throws AlgoliaRuntimeException {
3188
- return this .push (indexName , pushTaskPayload , null , requestOptions );
3195
+ return this .push (indexName , pushTaskPayload , null , null , requestOptions );
3189
3196
}
3190
3197
3191
3198
/**
@@ -3203,7 +3210,7 @@ public WatchResponse push(@Nonnull String indexName, @Nonnull PushTaskPayload pu
3203
3210
* @throws AlgoliaRuntimeException If it fails to process the API call
3204
3211
*/
3205
3212
public WatchResponse push (@ Nonnull String indexName , @ Nonnull PushTaskPayload pushTaskPayload ) throws AlgoliaRuntimeException {
3206
- return this .push (indexName , pushTaskPayload , null , null );
3213
+ return this .push (indexName , pushTaskPayload , null , null , null );
3207
3214
}
3208
3215
3209
3216
/**
@@ -3220,6 +3227,9 @@ public WatchResponse push(@Nonnull String indexName, @Nonnull PushTaskPayload pu
3220
3227
* @param pushTaskPayload (required)
3221
3228
* @param watch When provided, the push operation will be synchronous and the API will wait for
3222
3229
* the ingestion to be finished before responding. (optional)
3230
+ * @param referenceIndexName This is required when targeting an index that does not have a push
3231
+ * connector setup (e.g. a tmp index), but you wish to attach another index's transformation
3232
+ * to it (e.g. the source index name). (optional)
3223
3233
* @param requestOptions The requestOptions to send along with the query, they will be merged with
3224
3234
* the transporter requestOptions.
3225
3235
* @throws AlgoliaRuntimeException If it fails to process the API call
@@ -3228,6 +3238,7 @@ public CompletableFuture<WatchResponse> pushAsync(
3228
3238
@ Nonnull String indexName ,
3229
3239
@ Nonnull PushTaskPayload pushTaskPayload ,
3230
3240
Boolean watch ,
3241
+ String referenceIndexName ,
3231
3242
@ Nullable RequestOptions requestOptions
3232
3243
) throws AlgoliaRuntimeException {
3233
3244
Parameters .requireNonNull (indexName , "Parameter `indexName` is required when calling `push`." );
@@ -3239,6 +3250,7 @@ public CompletableFuture<WatchResponse> pushAsync(
3239
3250
.setMethod ("POST" )
3240
3251
.setBody (pushTaskPayload )
3241
3252
.addQueryParameter ("watch" , watch )
3253
+ .addQueryParameter ("referenceIndexName" , referenceIndexName )
3242
3254
.build ();
3243
3255
return executeAsync (
3244
3256
request ,
@@ -3265,11 +3277,18 @@ public CompletableFuture<WatchResponse> pushAsync(
3265
3277
* @param pushTaskPayload (required)
3266
3278
* @param watch When provided, the push operation will be synchronous and the API will wait for
3267
3279
* the ingestion to be finished before responding. (optional)
3280
+ * @param referenceIndexName This is required when targeting an index that does not have a push
3281
+ * connector setup (e.g. a tmp index), but you wish to attach another index's transformation
3282
+ * to it (e.g. the source index name). (optional)
3268
3283
* @throws AlgoliaRuntimeException If it fails to process the API call
3269
3284
*/
3270
- public CompletableFuture <WatchResponse > pushAsync (@ Nonnull String indexName , @ Nonnull PushTaskPayload pushTaskPayload , Boolean watch )
3271
- throws AlgoliaRuntimeException {
3272
- return this .pushAsync (indexName , pushTaskPayload , watch , null );
3285
+ public CompletableFuture <WatchResponse > pushAsync (
3286
+ @ Nonnull String indexName ,
3287
+ @ Nonnull PushTaskPayload pushTaskPayload ,
3288
+ Boolean watch ,
3289
+ String referenceIndexName
3290
+ ) throws AlgoliaRuntimeException {
3291
+ return this .pushAsync (indexName , pushTaskPayload , watch , referenceIndexName , null );
3273
3292
}
3274
3293
3275
3294
/**
@@ -3293,7 +3312,7 @@ public CompletableFuture<WatchResponse> pushAsync(
3293
3312
@ Nonnull PushTaskPayload pushTaskPayload ,
3294
3313
@ Nullable RequestOptions requestOptions
3295
3314
) throws AlgoliaRuntimeException {
3296
- return this .pushAsync (indexName , pushTaskPayload , null , requestOptions );
3315
+ return this .pushAsync (indexName , pushTaskPayload , null , null , requestOptions );
3297
3316
}
3298
3317
3299
3318
/**
@@ -3312,7 +3331,7 @@ public CompletableFuture<WatchResponse> pushAsync(
3312
3331
*/
3313
3332
public CompletableFuture <WatchResponse > pushAsync (@ Nonnull String indexName , @ Nonnull PushTaskPayload pushTaskPayload )
3314
3333
throws AlgoliaRuntimeException {
3315
- return this .pushAsync (indexName , pushTaskPayload , null , null );
3334
+ return this .pushAsync (indexName , pushTaskPayload , null , null , null );
3316
3335
}
3317
3336
3318
3337
/**
0 commit comments