@@ -2805,11 +2805,17 @@ open class IngestionClient {
28052805 }
28062806
28072807 /// - parameter taskID: (path) Unique identifier of a task.
2808+ /// - parameter runTaskPayload: (body) (optional)
28082809 /// - returns: RunResponse
28092810 @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 {
28112816 let response : Response < RunResponse > = try await runTaskWithHTTPInfo (
28122817 taskID: taskID,
2818+ runTaskPayload: runTaskPayload,
28132819 requestOptions: requestOptions
28142820 )
28152821
@@ -2827,10 +2833,13 @@ open class IngestionClient {
28272833 // - editSettings
28282834 //
28292835 // - parameter taskID: (path) Unique identifier of a task.
2836+ //
2837+ // - parameter runTaskPayload: (body) (optional)
28302838 // - returns: RequestBuilder<RunResponse>
28312839
28322840 open func runTaskWithHTTPInfo(
28332841 taskID: String ,
2842+ runTaskPayload: RunTaskPayload ? = nil ,
28342843 requestOptions userRequestOptions: RequestOptions ? = nil
28352844 ) async throws -> Response < RunResponse > {
28362845 guard !taskID. isEmpty else {
@@ -2847,7 +2856,7 @@ open class IngestionClient {
28472856 options: . literal,
28482857 range: nil
28492858 )
2850- let body : AnyCodable ? = nil
2859+ let body = runTaskPayload
28512860 let queryParameters : [ String : Any ? ] ? = nil
28522861
28532862 let nillableHeaders : [ String : Any ? ] ? = nil
@@ -2857,7 +2866,7 @@ open class IngestionClient {
28572866 return try await self . transporter. send (
28582867 method: " POST " ,
28592868 path: resourcePath,
2860- data: body,
2869+ data: body ?? AnyCodable ( ) ,
28612870 requestOptions: RequestOptions (
28622871 headers: headers,
28632872 queryParameters: queryParameters
@@ -2866,12 +2875,18 @@ open class IngestionClient {
28662875 }
28672876
28682877 /// - parameter taskID: (path) Unique identifier of a task.
2878+ /// - parameter runTaskPayload: (body) (optional)
28692879 /// - returns: RunResponse
28702880 @available ( * , deprecated, message: " This operation is deprecated. " )
28712881 @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 {
28732887 let response : Response < RunResponse > = try await runTaskV1WithHTTPInfo (
28742888 taskID: taskID,
2889+ runTaskPayload: runTaskPayload,
28752890 requestOptions: requestOptions
28762891 )
28772892
@@ -2890,11 +2905,14 @@ open class IngestionClient {
28902905 /// - editSettings
28912906 ///
28922907 /// - parameter taskID: (path) Unique identifier of a task.
2908+ ///
2909+ /// - parameter runTaskPayload: (body) (optional)
28932910 /// - returns: RequestBuilder<RunResponse>
28942911 @available ( * , deprecated, message: " This operation is deprecated. " )
28952912
28962913 open func runTaskV1WithHTTPInfo(
28972914 taskID: String ,
2915+ runTaskPayload: RunTaskPayload ? = nil ,
28982916 requestOptions userRequestOptions: RequestOptions ? = nil
28992917 ) async throws -> Response < RunResponse > {
29002918 guard !taskID. isEmpty else {
@@ -2911,7 +2929,7 @@ open class IngestionClient {
29112929 options: . literal,
29122930 range: nil
29132931 )
2914- let body : AnyCodable ? = nil
2932+ let body = runTaskPayload
29152933 let queryParameters : [ String : Any ? ] ? = nil
29162934
29172935 let nillableHeaders : [ String : Any ? ] ? = nil
@@ -2921,7 +2939,7 @@ open class IngestionClient {
29212939 return try await self . transporter. send (
29222940 method: " POST " ,
29232941 path: resourcePath,
2924- data: body,
2942+ data: body ?? AnyCodable ( ) ,
29252943 requestOptions: RequestOptions (
29262944 headers: headers,
29272945 queryParameters: queryParameters
0 commit comments