@@ -1347,10 +1347,14 @@ open class IngestionClient {
1347
1347
1348
1348
/// - parameter runID: (path) Unique identifier of a task run.
1349
1349
/// - parameter eventID: (path) Unique identifier of an event.
1350
- /// - returns: Event
1350
+ /// - returns: IngestionEvent
1351
1351
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
1352
- open func getEvent( runID: String , eventID: String , requestOptions: RequestOptions ? = nil ) async throws -> Event {
1353
- let response : Response < Event > = try await getEventWithHTTPInfo (
1352
+ open func getEvent(
1353
+ runID: String ,
1354
+ eventID: String ,
1355
+ requestOptions: RequestOptions ? = nil
1356
+ ) async throws -> IngestionEvent {
1357
+ let response : Response < IngestionEvent > = try await getEventWithHTTPInfo (
1354
1358
runID: runID,
1355
1359
eventID: eventID,
1356
1360
requestOptions: requestOptions
@@ -1372,13 +1376,13 @@ open class IngestionClient {
1372
1376
// - parameter runID: (path) Unique identifier of a task run.
1373
1377
//
1374
1378
// - parameter eventID: (path) Unique identifier of an event.
1375
- // - returns: RequestBuilder<Event >
1379
+ // - returns: RequestBuilder<IngestionEvent >
1376
1380
1377
1381
open func getEventWithHTTPInfo(
1378
1382
runID: String ,
1379
1383
eventID: String ,
1380
1384
requestOptions userRequestOptions: RequestOptions ? = nil
1381
- ) async throws -> Response < Event > {
1385
+ ) async throws -> Response < IngestionEvent > {
1382
1386
guard !runID. isEmpty else {
1383
1387
throw AlgoliaError . invalidArgument ( " runID " , " getEvent " )
1384
1388
}
@@ -1926,7 +1930,7 @@ open class IngestionClient {
1926
1930
runID: String ,
1927
1931
itemsPerPage: Int ? = nil ,
1928
1932
page: Int ? = nil ,
1929
- status: [ EventStatus ] ? = nil ,
1933
+ status: [ IngestionEventStatus ] ? = nil ,
1930
1934
type: [ IngestionEventType ] ? = nil ,
1931
1935
sort: EventSortKeys ? = nil ,
1932
1936
order: OrderKeys ? = nil ,
@@ -1985,7 +1989,7 @@ open class IngestionClient {
1985
1989
runID: String ,
1986
1990
itemsPerPage: Int ? = nil ,
1987
1991
page: Int ? = nil ,
1988
- status: [ EventStatus ] ? = nil ,
1992
+ status: [ IngestionEventStatus ] ? = nil ,
1989
1993
type: [ IngestionEventType ] ? = nil ,
1990
1994
sort: EventSortKeys ? = nil ,
1991
1995
order: OrderKeys ? = nil ,
@@ -2550,15 +2554,15 @@ open class IngestionClient {
2550
2554
/// - parameter pushTaskPayload: (body)
2551
2555
/// - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
2552
2556
/// ingestion to be finished before responding. (optional)
2553
- /// - returns: WatchResponse
2557
+ /// - returns: IngestionWatchResponse
2554
2558
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2555
2559
open func push(
2556
2560
indexName: String ,
2557
2561
pushTaskPayload: PushTaskPayload ,
2558
2562
watch: Bool ? = nil ,
2559
2563
requestOptions: RequestOptions ? = nil
2560
- ) async throws -> WatchResponse {
2561
- let response : Response < WatchResponse > = try await pushWithHTTPInfo (
2564
+ ) async throws -> IngestionWatchResponse {
2565
+ let response : Response < IngestionWatchResponse > = try await pushWithHTTPInfo (
2562
2566
indexName: indexName,
2563
2567
pushTaskPayload: pushTaskPayload,
2564
2568
watch: watch,
@@ -2588,14 +2592,14 @@ open class IngestionClient {
2588
2592
//
2589
2593
// - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
2590
2594
// ingestion to be finished before responding. (optional)
2591
- // - returns: RequestBuilder<WatchResponse >
2595
+ // - returns: RequestBuilder<IngestionWatchResponse >
2592
2596
2593
2597
open func pushWithHTTPInfo(
2594
2598
indexName: String ,
2595
2599
pushTaskPayload: PushTaskPayload ,
2596
2600
watch: Bool ? = nil ,
2597
2601
requestOptions userRequestOptions: RequestOptions ? = nil
2598
- ) async throws -> Response < WatchResponse > {
2602
+ ) async throws -> Response < IngestionWatchResponse > {
2599
2603
guard !indexName. isEmpty else {
2600
2604
throw AlgoliaError . invalidArgument ( " indexName " , " push " )
2601
2605
}
@@ -2636,15 +2640,15 @@ open class IngestionClient {
2636
2640
/// - parameter pushTaskPayload: (body)
2637
2641
/// - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
2638
2642
/// ingestion to be finished before responding. (optional)
2639
- /// - returns: WatchResponse
2643
+ /// - returns: IngestionWatchResponse
2640
2644
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2641
2645
open func pushTask(
2642
2646
taskID: String ,
2643
2647
pushTaskPayload: PushTaskPayload ,
2644
2648
watch: Bool ? = nil ,
2645
2649
requestOptions: RequestOptions ? = nil
2646
- ) async throws -> WatchResponse {
2647
- let response : Response < WatchResponse > = try await pushTaskWithHTTPInfo (
2650
+ ) async throws -> IngestionWatchResponse {
2651
+ let response : Response < IngestionWatchResponse > = try await pushTaskWithHTTPInfo (
2648
2652
taskID: taskID,
2649
2653
pushTaskPayload: pushTaskPayload,
2650
2654
watch: watch,
@@ -2674,14 +2678,14 @@ open class IngestionClient {
2674
2678
//
2675
2679
// - parameter watch: (query) When provided, the push operation will be synchronous and the API will wait for the
2676
2680
// ingestion to be finished before responding. (optional)
2677
- // - returns: RequestBuilder<WatchResponse >
2681
+ // - returns: RequestBuilder<IngestionWatchResponse >
2678
2682
2679
2683
open func pushTaskWithHTTPInfo(
2680
2684
taskID: String ,
2681
2685
pushTaskPayload: PushTaskPayload ,
2682
2686
watch: Bool ? = nil ,
2683
2687
requestOptions userRequestOptions: RequestOptions ? = nil
2684
- ) async throws -> Response < WatchResponse > {
2688
+ ) async throws -> Response < IngestionWatchResponse > {
2685
2689
guard !taskID. isEmpty else {
2686
2690
throw AlgoliaError . invalidArgument ( " taskID " , " pushTask " )
2687
2691
}
@@ -3219,13 +3223,13 @@ open class IngestionClient {
3219
3223
}
3220
3224
3221
3225
/// - parameter sourceID: (path) Unique identifier of a source.
3222
- /// - returns: WatchResponse
3226
+ /// - returns: IngestionWatchResponse
3223
3227
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
3224
3228
open func triggerDockerSourceDiscover(
3225
3229
sourceID: String ,
3226
3230
requestOptions: RequestOptions ? = nil
3227
- ) async throws -> WatchResponse {
3228
- let response : Response < WatchResponse > = try await triggerDockerSourceDiscoverWithHTTPInfo (
3231
+ ) async throws -> IngestionWatchResponse {
3232
+ let response : Response < IngestionWatchResponse > = try await triggerDockerSourceDiscoverWithHTTPInfo (
3229
3233
sourceID: sourceID,
3230
3234
requestOptions: requestOptions
3231
3235
)
@@ -3245,12 +3249,12 @@ open class IngestionClient {
3245
3249
// - editSettings
3246
3250
//
3247
3251
// - parameter sourceID: (path) Unique identifier of a source.
3248
- // - returns: RequestBuilder<WatchResponse >
3252
+ // - returns: RequestBuilder<IngestionWatchResponse >
3249
3253
3250
3254
open func triggerDockerSourceDiscoverWithHTTPInfo(
3251
3255
sourceID: String ,
3252
3256
requestOptions userRequestOptions: RequestOptions ? = nil
3253
- ) async throws -> Response < WatchResponse > {
3257
+ ) async throws -> Response < IngestionWatchResponse > {
3254
3258
guard !sourceID. isEmpty else {
3255
3259
throw AlgoliaError . invalidArgument ( " sourceID " , " triggerDockerSourceDiscover " )
3256
3260
}
@@ -3820,13 +3824,13 @@ open class IngestionClient {
3820
3824
}
3821
3825
3822
3826
/// - parameter sourceCreate: (body) (optional)
3823
- /// - returns: WatchResponse
3827
+ /// - returns: IngestionWatchResponse
3824
3828
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
3825
3829
open func validateSource(
3826
3830
sourceCreate: SourceCreate ? = nil ,
3827
3831
requestOptions: RequestOptions ? = nil
3828
- ) async throws -> WatchResponse {
3829
- let response : Response < WatchResponse > = try await validateSourceWithHTTPInfo (
3832
+ ) async throws -> IngestionWatchResponse {
3833
+ let response : Response < IngestionWatchResponse > = try await validateSourceWithHTTPInfo (
3830
3834
sourceCreate: sourceCreate,
3831
3835
requestOptions: requestOptions
3832
3836
)
@@ -3845,12 +3849,12 @@ open class IngestionClient {
3845
3849
// - editSettings
3846
3850
//
3847
3851
// - parameter sourceCreate: (body) (optional)
3848
- // - returns: RequestBuilder<WatchResponse >
3852
+ // - returns: RequestBuilder<IngestionWatchResponse >
3849
3853
3850
3854
open func validateSourceWithHTTPInfo(
3851
3855
sourceCreate: SourceCreate ? = nil ,
3852
3856
requestOptions userRequestOptions: RequestOptions ? = nil
3853
- ) async throws -> Response < WatchResponse > {
3857
+ ) async throws -> Response < IngestionWatchResponse > {
3854
3858
let resourcePath = " /1/sources/validate "
3855
3859
let body = sourceCreate
3856
3860
let queryParameters : [ String : Any ? ] ? = nil
@@ -3874,14 +3878,14 @@ open class IngestionClient {
3874
3878
3875
3879
/// - parameter sourceID: (path) Unique identifier of a source.
3876
3880
/// - parameter sourceUpdate: (body)
3877
- /// - returns: WatchResponse
3881
+ /// - returns: IngestionWatchResponse
3878
3882
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
3879
3883
open func validateSourceBeforeUpdate(
3880
3884
sourceID: String ,
3881
3885
sourceUpdate: SourceUpdate ,
3882
3886
requestOptions: RequestOptions ? = nil
3883
- ) async throws -> WatchResponse {
3884
- let response : Response < WatchResponse > = try await validateSourceBeforeUpdateWithHTTPInfo (
3887
+ ) async throws -> IngestionWatchResponse {
3888
+ let response : Response < IngestionWatchResponse > = try await validateSourceBeforeUpdateWithHTTPInfo (
3885
3889
sourceID: sourceID,
3886
3890
sourceUpdate: sourceUpdate,
3887
3891
requestOptions: requestOptions
@@ -3904,13 +3908,13 @@ open class IngestionClient {
3904
3908
// - parameter sourceID: (path) Unique identifier of a source.
3905
3909
//
3906
3910
// - parameter sourceUpdate: (body)
3907
- // - returns: RequestBuilder<WatchResponse >
3911
+ // - returns: RequestBuilder<IngestionWatchResponse >
3908
3912
3909
3913
open func validateSourceBeforeUpdateWithHTTPInfo(
3910
3914
sourceID: String ,
3911
3915
sourceUpdate: SourceUpdate ,
3912
3916
requestOptions userRequestOptions: RequestOptions ? = nil
3913
- ) async throws -> Response < WatchResponse > {
3917
+ ) async throws -> Response < IngestionWatchResponse > {
3914
3918
guard !sourceID. isEmpty else {
3915
3919
throw AlgoliaError . invalidArgument ( " sourceID " , " validateSourceBeforeUpdate " )
3916
3920
}
0 commit comments