@@ -2805,11 +2805,17 @@ open class IngestionClient {
2805
2805
}
2806
2806
2807
2807
/// - parameter taskID: (path) Unique identifier of a task.
2808
+ /// - parameter runTaskPayload: (body) (optional)
2808
2809
/// - returns: RunResponse
2809
2810
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2810
- open func runTask( taskID: String , requestOptions: RequestOptions ? = nil ) async throws -> RunResponse {
2811
+ open func runTask(
2812
+ taskID: String ,
2813
+ runTaskPayload: RunTaskPayload ? = nil ,
2814
+ requestOptions: RequestOptions ? = nil
2815
+ ) async throws -> RunResponse {
2811
2816
let response : Response < RunResponse > = try await runTaskWithHTTPInfo (
2812
2817
taskID: taskID,
2818
+ runTaskPayload: runTaskPayload,
2813
2819
requestOptions: requestOptions
2814
2820
)
2815
2821
@@ -2827,10 +2833,13 @@ open class IngestionClient {
2827
2833
// - editSettings
2828
2834
//
2829
2835
// - parameter taskID: (path) Unique identifier of a task.
2836
+ //
2837
+ // - parameter runTaskPayload: (body) (optional)
2830
2838
// - returns: RequestBuilder<RunResponse>
2831
2839
2832
2840
open func runTaskWithHTTPInfo(
2833
2841
taskID: String ,
2842
+ runTaskPayload: RunTaskPayload ? = nil ,
2834
2843
requestOptions userRequestOptions: RequestOptions ? = nil
2835
2844
) async throws -> Response < RunResponse > {
2836
2845
guard !taskID. isEmpty else {
@@ -2847,7 +2856,7 @@ open class IngestionClient {
2847
2856
options: . literal,
2848
2857
range: nil
2849
2858
)
2850
- let body : AnyCodable ? = nil
2859
+ let body = runTaskPayload
2851
2860
let queryParameters : [ String : Any ? ] ? = nil
2852
2861
2853
2862
let nillableHeaders : [ String : Any ? ] ? = nil
@@ -2857,7 +2866,7 @@ open class IngestionClient {
2857
2866
return try await self . transporter. send (
2858
2867
method: " POST " ,
2859
2868
path: resourcePath,
2860
- data: body,
2869
+ data: body ?? AnyCodable ( ) ,
2861
2870
requestOptions: RequestOptions (
2862
2871
headers: headers,
2863
2872
queryParameters: queryParameters
@@ -2866,12 +2875,18 @@ open class IngestionClient {
2866
2875
}
2867
2876
2868
2877
/// - parameter taskID: (path) Unique identifier of a task.
2878
+ /// - parameter runTaskPayload: (body) (optional)
2869
2879
/// - returns: RunResponse
2870
2880
@available ( * , deprecated, message: " This operation is deprecated. " )
2871
2881
@available ( macOS 10 . 15 , iOS 13 . 0 , tvOS 13 . 0 , watchOS 6 . 0 , * )
2872
- open func runTaskV1( taskID: String , requestOptions: RequestOptions ? = nil ) async throws -> RunResponse {
2882
+ open func runTaskV1(
2883
+ taskID: String ,
2884
+ runTaskPayload: RunTaskPayload ? = nil ,
2885
+ requestOptions: RequestOptions ? = nil
2886
+ ) async throws -> RunResponse {
2873
2887
let response : Response < RunResponse > = try await runTaskV1WithHTTPInfo (
2874
2888
taskID: taskID,
2889
+ runTaskPayload: runTaskPayload,
2875
2890
requestOptions: requestOptions
2876
2891
)
2877
2892
@@ -2890,11 +2905,14 @@ open class IngestionClient {
2890
2905
/// - editSettings
2891
2906
///
2892
2907
/// - parameter taskID: (path) Unique identifier of a task.
2908
+ ///
2909
+ /// - parameter runTaskPayload: (body) (optional)
2893
2910
/// - returns: RequestBuilder<RunResponse>
2894
2911
@available ( * , deprecated, message: " This operation is deprecated. " )
2895
2912
2896
2913
open func runTaskV1WithHTTPInfo(
2897
2914
taskID: String ,
2915
+ runTaskPayload: RunTaskPayload ? = nil ,
2898
2916
requestOptions userRequestOptions: RequestOptions ? = nil
2899
2917
) async throws -> Response < RunResponse > {
2900
2918
guard !taskID. isEmpty else {
@@ -2911,7 +2929,7 @@ open class IngestionClient {
2911
2929
options: . literal,
2912
2930
range: nil
2913
2931
)
2914
- let body : AnyCodable ? = nil
2932
+ let body = runTaskPayload
2915
2933
let queryParameters : [ String : Any ? ] ? = nil
2916
2934
2917
2935
let nillableHeaders : [ String : Any ? ] ? = nil
@@ -2921,7 +2939,7 @@ open class IngestionClient {
2921
2939
return try await self . transporter. send (
2922
2940
method: " POST " ,
2923
2941
path: resourcePath,
2924
- data: body,
2942
+ data: body ?? AnyCodable ( ) ,
2925
2943
requestOptions: RequestOptions (
2926
2944
headers: headers,
2927
2945
queryParameters: queryParameters
0 commit comments