@@ -1051,27 +1051,27 @@ public interface IIngestionClient
1051
1051
/// Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints.
1052
1052
/// </summary>
1053
1053
/// <param name="taskID">Unique identifier of a task.</param>
1054
- /// <param name="batchWriteParams ">Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.</param>
1054
+ /// <param name="pushTaskPayload ">Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.</param>
1055
1055
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
1056
1056
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
1057
1057
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1058
1058
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1059
1059
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1060
1060
/// <returns>Task of RunResponse</returns>
1061
- Task < RunResponse > PushTaskAsync ( string taskID , BatchWriteParams batchWriteParams , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1061
+ Task < RunResponse > PushTaskAsync ( string taskID , PushTaskPayload pushTaskPayload , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1062
1062
1063
1063
/// <summary>
1064
1064
/// Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints. (Synchronous version)
1065
1065
/// </summary>
1066
1066
/// <param name="taskID">Unique identifier of a task.</param>
1067
- /// <param name="batchWriteParams ">Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.</param>
1067
+ /// <param name="pushTaskPayload ">Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.</param>
1068
1068
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
1069
1069
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
1070
1070
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1071
1071
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1072
1072
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1073
1073
/// <returns>RunResponse</returns>
1074
- RunResponse PushTask ( string taskID , BatchWriteParams batchWriteParams , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1074
+ RunResponse PushTask ( string taskID , PushTaskPayload pushTaskPayload , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1075
1075
1076
1076
/// <summary>
1077
1077
/// Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
@@ -3510,28 +3510,28 @@ public ListTransformationsResponse ListTransformations(int? itemsPerPage = defau
3510
3510
/// - deleteIndex
3511
3511
/// - editSettings
3512
3512
/// <param name="taskID">Unique identifier of a task.</param>
3513
- /// <param name="batchWriteParams ">Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.</param>
3513
+ /// <param name="pushTaskPayload ">Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.</param>
3514
3514
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
3515
3515
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
3516
3516
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
3517
3517
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
3518
3518
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
3519
3519
/// <returns>Task of RunResponse</returns>
3520
- public async Task < RunResponse > PushTaskAsync ( string taskID , BatchWriteParams batchWriteParams , RequestOptions options = null , CancellationToken cancellationToken = default )
3520
+ public async Task < RunResponse > PushTaskAsync ( string taskID , PushTaskPayload pushTaskPayload , RequestOptions options = null , CancellationToken cancellationToken = default )
3521
3521
{
3522
3522
3523
3523
if ( taskID == null )
3524
3524
throw new ArgumentException ( "Parameter `taskID` is required when calling `PushTask`." ) ;
3525
3525
3526
3526
3527
- if ( batchWriteParams == null )
3528
- throw new ArgumentException ( "Parameter `batchWriteParams ` is required when calling `PushTask`." ) ;
3527
+ if ( pushTaskPayload == null )
3528
+ throw new ArgumentException ( "Parameter `pushTaskPayload ` is required when calling `PushTask`." ) ;
3529
3529
3530
3530
var requestOptions = new InternalRequestOptions ( options ) ;
3531
3531
3532
3532
requestOptions . PathParameters . Add ( "taskID" , QueryStringHelper . ParameterToString ( taskID ) ) ;
3533
3533
3534
- requestOptions . Data = batchWriteParams ;
3534
+ requestOptions . Data = pushTaskPayload ;
3535
3535
return await _transport . ExecuteRequestAsync < RunResponse > ( new HttpMethod ( "POST" ) , "/2/tasks/{taskID}/push" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
3536
3536
}
3537
3537
@@ -3545,15 +3545,15 @@ public async Task<RunResponse> PushTaskAsync(string taskID, BatchWriteParams bat
3545
3545
/// - deleteIndex
3546
3546
/// - editSettings
3547
3547
/// <param name="taskID">Unique identifier of a task.</param>
3548
- /// <param name="batchWriteParams ">Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.</param>
3548
+ /// <param name="pushTaskPayload ">Request body of a Search API `batch` request that will be pushed in the Connectors pipeline.</param>
3549
3549
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
3550
3550
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
3551
3551
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
3552
3552
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
3553
3553
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
3554
3554
/// <returns>RunResponse</returns>
3555
- public RunResponse PushTask ( string taskID , BatchWriteParams batchWriteParams , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
3556
- AsyncHelper . RunSync ( ( ) => PushTaskAsync ( taskID , batchWriteParams , options , cancellationToken ) ) ;
3555
+ public RunResponse PushTask ( string taskID , PushTaskPayload pushTaskPayload , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
3556
+ AsyncHelper . RunSync ( ( ) => PushTaskAsync ( taskID , pushTaskPayload , options , cancellationToken ) ) ;
3557
3557
3558
3558
3559
3559
/// <summary>
0 commit comments