@@ -3074,54 +3074,54 @@ public CompletableFuture<ListTransformationsResponse> listTransformationsAsync()
3074
3074
* with the observability endpoints.
3075
3075
*
3076
3076
* @param taskID Unique identifier of a task. (required)
3077
- * @param batchWriteParams Request body of a Search API `batch` request that will be pushed in the
3077
+ * @param pushTaskPayload Request body of a Search API `batch` request that will be pushed in the
3078
3078
* Connectors pipeline. (required)
3079
3079
* @param requestOptions The requestOptions to send along with the query, they will be merged with
3080
3080
* the transporter requestOptions.
3081
3081
* @throws AlgoliaRuntimeException If it fails to process the API call
3082
3082
*/
3083
- public RunResponse pushTask (@ Nonnull String taskID , @ Nonnull BatchWriteParams batchWriteParams , RequestOptions requestOptions )
3083
+ public RunResponse pushTask (@ Nonnull String taskID , @ Nonnull PushTaskPayload pushTaskPayload , RequestOptions requestOptions )
3084
3084
throws AlgoliaRuntimeException {
3085
- return LaunderThrowable .await (pushTaskAsync (taskID , batchWriteParams , requestOptions ));
3085
+ return LaunderThrowable .await (pushTaskAsync (taskID , pushTaskPayload , requestOptions ));
3086
3086
}
3087
3087
3088
3088
/**
3089
3089
* Push a `batch` request payload through the Pipeline. You can check the status of task pushes
3090
3090
* with the observability endpoints.
3091
3091
*
3092
3092
* @param taskID Unique identifier of a task. (required)
3093
- * @param batchWriteParams Request body of a Search API `batch` request that will be pushed in the
3093
+ * @param pushTaskPayload Request body of a Search API `batch` request that will be pushed in the
3094
3094
* Connectors pipeline. (required)
3095
3095
* @throws AlgoliaRuntimeException If it fails to process the API call
3096
3096
*/
3097
- public RunResponse pushTask (@ Nonnull String taskID , @ Nonnull BatchWriteParams batchWriteParams ) throws AlgoliaRuntimeException {
3098
- return this .pushTask (taskID , batchWriteParams , null );
3097
+ public RunResponse pushTask (@ Nonnull String taskID , @ Nonnull PushTaskPayload pushTaskPayload ) throws AlgoliaRuntimeException {
3098
+ return this .pushTask (taskID , pushTaskPayload , null );
3099
3099
}
3100
3100
3101
3101
/**
3102
3102
* (asynchronously) Push a `batch` request payload through the Pipeline. You can check the status
3103
3103
* of task pushes with the observability endpoints.
3104
3104
*
3105
3105
* @param taskID Unique identifier of a task. (required)
3106
- * @param batchWriteParams Request body of a Search API `batch` request that will be pushed in the
3106
+ * @param pushTaskPayload Request body of a Search API `batch` request that will be pushed in the
3107
3107
* Connectors pipeline. (required)
3108
3108
* @param requestOptions The requestOptions to send along with the query, they will be merged with
3109
3109
* the transporter requestOptions.
3110
3110
* @throws AlgoliaRuntimeException If it fails to process the API call
3111
3111
*/
3112
3112
public CompletableFuture <RunResponse > pushTaskAsync (
3113
3113
@ Nonnull String taskID ,
3114
- @ Nonnull BatchWriteParams batchWriteParams ,
3114
+ @ Nonnull PushTaskPayload pushTaskPayload ,
3115
3115
RequestOptions requestOptions
3116
3116
) throws AlgoliaRuntimeException {
3117
3117
Parameters .requireNonNull (taskID , "Parameter `taskID` is required when calling `pushTask`." );
3118
3118
3119
- Parameters .requireNonNull (batchWriteParams , "Parameter `batchWriteParams ` is required when calling `pushTask`." );
3119
+ Parameters .requireNonNull (pushTaskPayload , "Parameter `pushTaskPayload ` is required when calling `pushTask`." );
3120
3120
3121
3121
HttpRequest request = HttpRequest .builder ()
3122
3122
.setPath ("/2/tasks/{taskID}/push" , taskID )
3123
3123
.setMethod ("POST" )
3124
- .setBody (batchWriteParams )
3124
+ .setBody (pushTaskPayload )
3125
3125
.build ();
3126
3126
return executeAsync (request , requestOptions , new TypeReference <RunResponse >() {});
3127
3127
}
@@ -3131,13 +3131,13 @@ public CompletableFuture<RunResponse> pushTaskAsync(
3131
3131
* of task pushes with the observability endpoints.
3132
3132
*
3133
3133
* @param taskID Unique identifier of a task. (required)
3134
- * @param batchWriteParams Request body of a Search API `batch` request that will be pushed in the
3134
+ * @param pushTaskPayload Request body of a Search API `batch` request that will be pushed in the
3135
3135
* Connectors pipeline. (required)
3136
3136
* @throws AlgoliaRuntimeException If it fails to process the API call
3137
3137
*/
3138
- public CompletableFuture <RunResponse > pushTaskAsync (@ Nonnull String taskID , @ Nonnull BatchWriteParams batchWriteParams )
3138
+ public CompletableFuture <RunResponse > pushTaskAsync (@ Nonnull String taskID , @ Nonnull PushTaskPayload pushTaskPayload )
3139
3139
throws AlgoliaRuntimeException {
3140
- return this .pushTaskAsync (taskID , batchWriteParams , null );
3140
+ return this .pushTaskAsync (taskID , pushTaskPayload , null );
3141
3141
}
3142
3142
3143
3143
/**
0 commit comments