@@ -1281,8 +1281,8 @@ public interface IIngestionClient
1281
1281
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1282
1282
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1283
1283
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1284
- /// <returns>Task of RunResponse </returns>
1285
- Task < RunResponse > PushTaskAsync ( string taskID , PushTaskPayload pushTaskPayload , bool ? watch = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1284
+ /// <returns>Task of WatchResponse </returns>
1285
+ Task < WatchResponse > PushTaskAsync ( string taskID , PushTaskPayload pushTaskPayload , bool ? watch = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1286
1286
1287
1287
/// <summary>
1288
1288
/// Push a `batch` request payload through the Pipeline. You can check the status of task pushes with the observability endpoints. (Synchronous version)
@@ -1300,8 +1300,8 @@ public interface IIngestionClient
1300
1300
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1301
1301
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1302
1302
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1303
- /// <returns>RunResponse </returns>
1304
- RunResponse PushTask ( string taskID , PushTaskPayload pushTaskPayload , bool ? watch = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1303
+ /// <returns>WatchResponse </returns>
1304
+ WatchResponse PushTask ( string taskID , PushTaskPayload pushTaskPayload , bool ? watch = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1305
1305
1306
1306
/// <summary>
1307
1307
/// Runs all tasks linked to a source, only available for Shopify sources. It will create 1 run per task.
@@ -1625,8 +1625,8 @@ public interface IIngestionClient
1625
1625
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1626
1626
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1627
1627
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1628
- /// <returns>Task of SourceWatchResponse </returns>
1629
- Task < SourceWatchResponse > TriggerDockerSourceDiscoverAsync ( string sourceID , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1628
+ /// <returns>Task of WatchResponse </returns>
1629
+ Task < WatchResponse > TriggerDockerSourceDiscoverAsync ( string sourceID , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1630
1630
1631
1631
/// <summary>
1632
1632
/// Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`. (Synchronous version)
@@ -1642,8 +1642,8 @@ public interface IIngestionClient
1642
1642
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1643
1643
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1644
1644
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1645
- /// <returns>SourceWatchResponse </returns>
1646
- SourceWatchResponse TriggerDockerSourceDiscover ( string sourceID , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1645
+ /// <returns>WatchResponse </returns>
1646
+ WatchResponse TriggerDockerSourceDiscover ( string sourceID , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1647
1647
1648
1648
/// <summary>
1649
1649
/// Try a transformation before creating it.
@@ -1915,8 +1915,8 @@ public interface IIngestionClient
1915
1915
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1916
1916
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1917
1917
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1918
- /// <returns>Task of SourceWatchResponse </returns>
1919
- Task < SourceWatchResponse > ValidateSourceAsync ( SourceCreate sourceCreate = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1918
+ /// <returns>Task of WatchResponse </returns>
1919
+ Task < WatchResponse > ValidateSourceAsync ( SourceCreate sourceCreate = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1920
1920
1921
1921
/// <summary>
1922
1922
/// Validates a source payload to ensure it can be created and that the data source can be reached by Algolia. (Synchronous version)
@@ -1932,8 +1932,8 @@ public interface IIngestionClient
1932
1932
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1933
1933
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1934
1934
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1935
- /// <returns>SourceWatchResponse </returns>
1936
- SourceWatchResponse ValidateSource ( SourceCreate sourceCreate = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1935
+ /// <returns>WatchResponse </returns>
1936
+ WatchResponse ValidateSource ( SourceCreate sourceCreate = default , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1937
1937
1938
1938
/// <summary>
1939
1939
/// Validates an update of a source payload to ensure it can be created and that the data source can be reached by Algolia.
@@ -1950,8 +1950,8 @@ public interface IIngestionClient
1950
1950
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1951
1951
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1952
1952
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1953
- /// <returns>Task of SourceWatchResponse </returns>
1954
- Task < SourceWatchResponse > ValidateSourceBeforeUpdateAsync ( string sourceID , SourceUpdate sourceUpdate , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1953
+ /// <returns>Task of WatchResponse </returns>
1954
+ Task < WatchResponse > ValidateSourceBeforeUpdateAsync ( string sourceID , SourceUpdate sourceUpdate , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1955
1955
1956
1956
/// <summary>
1957
1957
/// Validates an update of a source payload to ensure it can be created and that the data source can be reached by Algolia. (Synchronous version)
@@ -1968,8 +1968,8 @@ public interface IIngestionClient
1968
1968
/// <exception cref="ArgumentException">Thrown when arguments are not correct</exception>
1969
1969
/// <exception cref="Algolia.Search.Exceptions.AlgoliaApiException">Thrown when the API call was rejected by Algolia</exception>
1970
1970
/// <exception cref="Algolia.Search.Exceptions.AlgoliaUnreachableHostException">Thrown when the client failed to call the endpoint</exception>
1971
- /// <returns>SourceWatchResponse </returns>
1972
- SourceWatchResponse ValidateSourceBeforeUpdate ( string sourceID , SourceUpdate sourceUpdate , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1971
+ /// <returns>WatchResponse </returns>
1972
+ WatchResponse ValidateSourceBeforeUpdate ( string sourceID , SourceUpdate sourceUpdate , RequestOptions options = null , CancellationToken cancellationToken = default ) ;
1973
1973
1974
1974
}
1975
1975
@@ -2804,7 +2804,7 @@ public ListTransformationsResponse ListTransformations(int? itemsPerPage = defau
2804
2804
2805
2805
2806
2806
/// <inheritdoc />
2807
- public async Task < RunResponse > PushTaskAsync ( string taskID , PushTaskPayload pushTaskPayload , bool ? watch = default , RequestOptions options = null , CancellationToken cancellationToken = default )
2807
+ public async Task < WatchResponse > PushTaskAsync ( string taskID , PushTaskPayload pushTaskPayload , bool ? watch = default , RequestOptions options = null , CancellationToken cancellationToken = default )
2808
2808
{
2809
2809
2810
2810
if ( taskID == null )
@@ -2820,12 +2820,12 @@ public async Task<RunResponse> PushTaskAsync(string taskID, PushTaskPayload push
2820
2820
2821
2821
requestOptions . AddQueryParameter ( "watch" , watch ) ;
2822
2822
requestOptions . Data = pushTaskPayload ;
2823
- return await _transport . ExecuteRequestAsync < RunResponse > ( new HttpMethod ( "POST" ) , "/2/tasks/{taskID}/push" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
2823
+ return await _transport . ExecuteRequestAsync < WatchResponse > ( new HttpMethod ( "POST" ) , "/2/tasks/{taskID}/push" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
2824
2824
}
2825
2825
2826
2826
2827
2827
/// <inheritdoc />
2828
- public RunResponse PushTask ( string taskID , PushTaskPayload pushTaskPayload , bool ? watch = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
2828
+ public WatchResponse PushTask ( string taskID , PushTaskPayload pushTaskPayload , bool ? watch = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
2829
2829
AsyncHelper . RunSync ( ( ) => PushTaskAsync ( taskID , pushTaskPayload , watch , options , cancellationToken ) ) ;
2830
2830
2831
2831
@@ -3011,7 +3011,7 @@ public List<Transformation> SearchTransformations(TransformationSearch transform
3011
3011
3012
3012
3013
3013
/// <inheritdoc />
3014
- public async Task < SourceWatchResponse > TriggerDockerSourceDiscoverAsync ( string sourceID , RequestOptions options = null , CancellationToken cancellationToken = default )
3014
+ public async Task < WatchResponse > TriggerDockerSourceDiscoverAsync ( string sourceID , RequestOptions options = null , CancellationToken cancellationToken = default )
3015
3015
{
3016
3016
3017
3017
if ( sourceID == null )
@@ -3021,12 +3021,12 @@ public async Task<SourceWatchResponse> TriggerDockerSourceDiscoverAsync(string s
3021
3021
3022
3022
requestOptions . PathParameters . Add ( "sourceID" , QueryStringHelper . ParameterToString ( sourceID ) ) ;
3023
3023
3024
- return await _transport . ExecuteRequestAsync < SourceWatchResponse > ( new HttpMethod ( "POST" ) , "/1/sources/{sourceID}/discover" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
3024
+ return await _transport . ExecuteRequestAsync < WatchResponse > ( new HttpMethod ( "POST" ) , "/1/sources/{sourceID}/discover" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
3025
3025
}
3026
3026
3027
3027
3028
3028
/// <inheritdoc />
3029
- public SourceWatchResponse TriggerDockerSourceDiscover ( string sourceID , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
3029
+ public WatchResponse TriggerDockerSourceDiscover ( string sourceID , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
3030
3030
AsyncHelper . RunSync ( ( ) => TriggerDockerSourceDiscoverAsync ( sourceID , options , cancellationToken ) ) ;
3031
3031
3032
3032
@@ -3226,23 +3226,23 @@ public TransformationUpdateResponse UpdateTransformation(string transformationID
3226
3226
3227
3227
3228
3228
/// <inheritdoc />
3229
- public async Task < SourceWatchResponse > ValidateSourceAsync ( SourceCreate sourceCreate = default , RequestOptions options = null , CancellationToken cancellationToken = default )
3229
+ public async Task < WatchResponse > ValidateSourceAsync ( SourceCreate sourceCreate = default , RequestOptions options = null , CancellationToken cancellationToken = default )
3230
3230
{
3231
3231
var requestOptions = new InternalRequestOptions ( options ) ;
3232
3232
3233
3233
3234
3234
requestOptions . Data = sourceCreate ;
3235
- return await _transport . ExecuteRequestAsync < SourceWatchResponse > ( new HttpMethod ( "POST" ) , "/1/sources/validate" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
3235
+ return await _transport . ExecuteRequestAsync < WatchResponse > ( new HttpMethod ( "POST" ) , "/1/sources/validate" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
3236
3236
}
3237
3237
3238
3238
3239
3239
/// <inheritdoc />
3240
- public SourceWatchResponse ValidateSource ( SourceCreate sourceCreate = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
3240
+ public WatchResponse ValidateSource ( SourceCreate sourceCreate = default , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
3241
3241
AsyncHelper . RunSync ( ( ) => ValidateSourceAsync ( sourceCreate , options , cancellationToken ) ) ;
3242
3242
3243
3243
3244
3244
/// <inheritdoc />
3245
- public async Task < SourceWatchResponse > ValidateSourceBeforeUpdateAsync ( string sourceID , SourceUpdate sourceUpdate , RequestOptions options = null , CancellationToken cancellationToken = default )
3245
+ public async Task < WatchResponse > ValidateSourceBeforeUpdateAsync ( string sourceID , SourceUpdate sourceUpdate , RequestOptions options = null , CancellationToken cancellationToken = default )
3246
3246
{
3247
3247
3248
3248
if ( sourceID == null )
@@ -3257,12 +3257,12 @@ public async Task<SourceWatchResponse> ValidateSourceBeforeUpdateAsync(string so
3257
3257
requestOptions . PathParameters . Add ( "sourceID" , QueryStringHelper . ParameterToString ( sourceID ) ) ;
3258
3258
3259
3259
requestOptions . Data = sourceUpdate ;
3260
- return await _transport . ExecuteRequestAsync < SourceWatchResponse > ( new HttpMethod ( "POST" ) , "/1/sources/{sourceID}/validate" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
3260
+ return await _transport . ExecuteRequestAsync < WatchResponse > ( new HttpMethod ( "POST" ) , "/1/sources/{sourceID}/validate" , requestOptions , cancellationToken ) . ConfigureAwait ( false ) ;
3261
3261
}
3262
3262
3263
3263
3264
3264
/// <inheritdoc />
3265
- public SourceWatchResponse ValidateSourceBeforeUpdate ( string sourceID , SourceUpdate sourceUpdate , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
3265
+ public WatchResponse ValidateSourceBeforeUpdate ( string sourceID , SourceUpdate sourceUpdate , RequestOptions options = null , CancellationToken cancellationToken = default ) =>
3266
3266
AsyncHelper . RunSync ( ( ) => ValidateSourceBeforeUpdateAsync ( sourceID , sourceUpdate , options , cancellationToken ) ) ;
3267
3267
3268
3268
}
0 commit comments