@@ -1314,7 +1314,7 @@ public interface IIngestionClient
1314
1314
SourceWatchResponse TriggerDockerSourceDiscover ( string sourceID , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1315
1315
1316
1316
/// <summary>
1317
- /// Try a transformation.
1317
+ /// Try a transformation before creating it .
1318
1318
/// </summary>
1319
1319
/// <param name="transformationTry"></param>
1320
1320
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
@@ -1326,7 +1326,7 @@ public interface IIngestionClient
1326
1326
Task < TransformationTryResponse > TryTransformationAsync ( TransformationTry transformationTry , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1327
1327
1328
1328
/// <summary>
1329
- /// Try a transformation. (Synchronous version)
1329
+ /// Try a transformation before creating it . (Synchronous version)
1330
1330
/// </summary>
1331
1331
/// <param name="transformationTry"></param>
1332
1332
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
@@ -1337,6 +1337,32 @@ public interface IIngestionClient
1337
1337
/// <returns>TransformationTryResponse</returns>
1338
1338
TransformationTryResponse TryTransformation ( TransformationTry transformationTry , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1339
1339
1340
+ /// <summary>
1341
+ /// Try a transformation before updating it.
1342
+ /// </summary>
1343
+ /// <param name="transformationID">Unique identifier of a transformation.</param>
1344
+ /// <param name="transformationTry"></param>
1345
+ /// <param name="options">Add extra http header or query parameters to Algolia.</param>
1346
+ /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
1347
+ /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1348
+ /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1349
+ /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1350
+ /// <returns>Task of TransformationTryResponse</returns>
1351
+ Task < TransformationTryResponse > TryTransformationBeforeUpdateAsync ( string transformationID , TransformationTry transformationTry , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1352
+
1353
+ /// <summary>
1354
+ /// Try a transformation before updating it. (Synchronous version)
1355
+ /// </summary>
1356
+ /// <param name="transformationID">Unique identifier of a transformation.</param>
1357
+ /// <param name="transformationTry"></param>
1358
+ /// <param name="options">Add extra http header or query parameters to Algolia.</param>
1359
+ /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
1360
+ /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1361
+ /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1362
+ /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1363
+ /// <returns>TransformationTryResponse</returns>
1364
+ TransformationTryResponse TryTransformationBeforeUpdate ( string transformationID , TransformationTry transformationTry , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1365
+
1340
1366
/// <summary>
1341
1367
/// Updates an authentication resource.
1342
1368
/// </summary>
@@ -4009,7 +4035,7 @@ public SourceWatchResponse TriggerDockerSourceDiscover(string sourceID, RequestO
4009
4035
4010
4036
4011
4037
/// <summary>
4012
- /// Try a transformation.
4038
+ /// Try a transformation before creating it .
4013
4039
/// </summary>
4014
4040
///
4015
4041
/// Required API Key ACLs:
@@ -4038,7 +4064,7 @@ public async Task<TransformationTryResponse> TryTransformationAsync(Transformati
4038
4064
4039
4065
4040
4066
/// <summary>
4041
- /// Try a transformation. (Synchronous version)
4067
+ /// Try a transformation before creating it . (Synchronous version)
4042
4068
/// </summary>
4043
4069
///
4044
4070
/// Required API Key ACLs:
@@ -4056,6 +4082,61 @@ public TransformationTryResponse TryTransformation(TransformationTry transformat
4056
4082
AsyncHelper . RunSync ( ( ) => TryTransformationAsync ( transformationTry , options , cancellationToken ) ) ;
4057
4083
4058
4084
4085
+ /// <summary>
4086
+ /// Try a transformation before updating it.
4087
+ /// </summary>
4088
+ ///
4089
+ /// Required API Key ACLs:
4090
+ /// - addObject
4091
+ /// - deleteIndex
4092
+ /// - editSettings
4093
+ /// <param name="transformationID">Unique identifier of a transformation.</param>
4094
+ /// <param name="transformationTry"></param>
4095
+ /// <param name="options">Add extra http header or query parameters to Algolia.</param>
4096
+ /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
4097
+ /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
4098
+ /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
4099
+ /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
4100
+ /// <returns>Task of TransformationTryResponse</returns>
4101
+ public async Task < TransformationTryResponse > TryTransformationBeforeUpdateAsync ( string transformationID , TransformationTry transformationTry , RequestOptions options = null , CancellationToken cancellationToken = default )
4102
+ {
4103
+
4104
+ if ( transformationID == null )
4105
+ throw new ArgumentException ( "Parameter `transformationID` is required when calling `TryTransformationBeforeUpdate`." ) ;
4106
+
4107
+
4108
+ if ( transformationTry == null )
4109
+ throw new ArgumentException ( "Parameter `transformationTry` is required when calling `TryTransformationBeforeUpdate`." ) ;
4110
+
4111
+ var requestOptions = new InternalRequestOptions ( options ) ;
4112
+
4113
+ requestOptions . PathParameters . Add ( "transformationID" , QueryStringHelper . ParameterToString ( transformationID ) ) ;
4114
+
4115
+ requestOptions . Data = transformationTry ;
4116
+ return await _transport . ExecuteRequestAsync < TransformationTryResponse > ( new HttpMethod ( "POST" ) , "/1/transformations/{transformationID}/try" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
4117
+ }
4118
+
4119
+
4120
+ /// <summary>
4121
+ /// Try a transformation before updating it. (Synchronous version)
4122
+ /// </summary>
4123
+ ///
4124
+ /// Required API Key ACLs:
4125
+ /// - addObject
4126
+ /// - deleteIndex
4127
+ /// - editSettings
4128
+ /// <param name="transformationID">Unique identifier of a transformation.</param>
4129
+ /// <param name="transformationTry"></param>
4130
+ /// <param name="options">Add extra http header or query parameters to Algolia.</param>
4131
+ /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
4132
+ /// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
4133
+ /// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
4134
+ /// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
4135
+ /// <returns>TransformationTryResponse</returns>
4136
+ public TransformationTryResponse TryTransformationBeforeUpdate ( string transformationID , TransformationTry transformationTry , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
4137
+ AsyncHelper . RunSync ( ( ) => TryTransformationBeforeUpdateAsync ( transformationID , transformationTry , options , cancellationToken ) ) ;
4138
+
4139
+
4059
4140
/// <summary>
4060
4141
/// Updates an authentication resource.
4061
4142
/// </summary>
0 commit comments