@@ -1072,6 +1072,87 @@ open class Client : AlibabacloudOpenApi.Client {
10721072 return try await grantRoleToUsersWithOptions ( request as! GrantRoleToUsersRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
10731073 }
10741074
1075+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1076+ public func listCatalogsWithOptions( _ workspaceId: String , _ request: ListCatalogsRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ListCatalogsResponse {
1077+ try TeaUtils . Client. validateModel ( request)
1078+ var query : [ String : Any ] = [ : ]
1079+ if ( !TeaUtils. Client. isUnset ( request. environment) ) {
1080+ query [ " environment " ] = request. environment ?? " " ;
1081+ }
1082+ if ( !TeaUtils. Client. isUnset ( request. regionId) ) {
1083+ query [ " regionId " ] = request. regionId ?? " " ;
1084+ }
1085+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
1086+ " headers " : headers as! [ String : String ] ,
1087+ " query " : AlibabaCloudOpenApiUtil . Client. query ( query)
1088+ ] )
1089+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
1090+ " action " : " ListCatalogs " ,
1091+ " version " : " 2023-08-08 " ,
1092+ " protocol " : " HTTPS " ,
1093+ " pathname " : " /api/v1/workspaces/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( workspaceId) ) + " /catalogs " ,
1094+ " method " : " GET " ,
1095+ " authType " : " AK " ,
1096+ " style " : " ROA " ,
1097+ " reqBodyType " : " json " ,
1098+ " bodyType " : " json "
1099+ ] )
1100+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
1101+ return Tea . TeaConverter. fromMap ( ListCatalogsResponse ( ) , tmp)
1102+ }
1103+
1104+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1105+ public func listCatalogs( _ workspaceId: String , _ request: ListCatalogsRequest ) async throws -> ListCatalogsResponse {
1106+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
1107+ var headers : [ String : String ] = [ : ]
1108+ return try await listCatalogsWithOptions ( workspaceId as! String , request as! ListCatalogsRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
1109+ }
1110+
1111+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1112+ public func listJobExecutorsWithOptions( _ workspaceId: String , _ jobRunId: String , _ request: ListJobExecutorsRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ListJobExecutorsResponse {
1113+ try TeaUtils . Client. validateModel ( request)
1114+ var query : [ String : Any ] = [ : ]
1115+ if ( !TeaUtils. Client. isUnset ( request. executorType) ) {
1116+ query [ " executorType " ] = request. executorType ?? " " ;
1117+ }
1118+ if ( !TeaUtils. Client. isUnset ( request. maxResults) ) {
1119+ query [ " maxResults " ] = request. maxResults!;
1120+ }
1121+ if ( !TeaUtils. Client. isUnset ( request. nextToken) ) {
1122+ query [ " nextToken " ] = request. nextToken ?? " " ;
1123+ }
1124+ if ( !TeaUtils. Client. isUnset ( request. regionId) ) {
1125+ query [ " regionId " ] = request. regionId ?? " " ;
1126+ }
1127+ if ( !TeaUtils. Client. isUnset ( request. status) ) {
1128+ query [ " status " ] = request. status ?? " " ;
1129+ }
1130+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
1131+ " headers " : headers as! [ String : String ] ,
1132+ " query " : AlibabaCloudOpenApiUtil . Client. query ( query)
1133+ ] )
1134+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
1135+ " action " : " ListJobExecutors " ,
1136+ " version " : " 2023-08-08 " ,
1137+ " protocol " : " HTTPS " ,
1138+ " pathname " : " /api/v1/workspaces/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( workspaceId) ) + " /jobRuns/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( jobRunId) ) + " /executors " ,
1139+ " method " : " GET " ,
1140+ " authType " : " AK " ,
1141+ " style " : " ROA " ,
1142+ " reqBodyType " : " json " ,
1143+ " bodyType " : " json "
1144+ ] )
1145+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
1146+ return Tea . TeaConverter. fromMap ( ListJobExecutorsResponse ( ) , tmp)
1147+ }
1148+
1149+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1150+ public func listJobExecutors( _ workspaceId: String , _ jobRunId: String , _ request: ListJobExecutorsRequest ) async throws -> ListJobExecutorsResponse {
1151+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
1152+ var headers : [ String : String ] = [ : ]
1153+ return try await listJobExecutorsWithOptions ( workspaceId as! String , jobRunId as! String , request as! ListJobExecutorsRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
1154+ }
1155+
10751156 @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
10761157 public func listJobRunsWithOptions( _ workspaceId: String , _ tmpReq: ListJobRunsRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ListJobRunsResponse {
10771158 try TeaUtils . Client. validateModel ( tmpReq)
@@ -1574,6 +1655,39 @@ open class Client : AlibabacloudOpenApi.Client {
15741655 return try await listSqlStatementContentsWithOptions ( workspaceId as! String , request as! ListSqlStatementContentsRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
15751656 }
15761657
1658+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1659+ public func listTemplateWithOptions( _ workspaceBizId: String , _ request: ListTemplateRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ListTemplateResponse {
1660+ try TeaUtils . Client. validateModel ( request)
1661+ var query : [ String : Any ] = [ : ]
1662+ if ( !TeaUtils. Client. isUnset ( request. regionId) ) {
1663+ query [ " regionId " ] = request. regionId ?? " " ;
1664+ }
1665+ var req : AlibabacloudOpenApi . OpenApiRequest = AlibabacloudOpenApi . OpenApiRequest ( [
1666+ " headers " : headers as! [ String : String ] ,
1667+ " query " : AlibabaCloudOpenApiUtil . Client. query ( query)
1668+ ] )
1669+ var params : AlibabacloudOpenApi . Params = AlibabacloudOpenApi . Params ( [
1670+ " action " : " ListTemplate " ,
1671+ " version " : " 2023-08-08 " ,
1672+ " protocol " : " HTTPS " ,
1673+ " pathname " : " /api/interactive/v1/workspace/ " + ( AlibabaCloudOpenApiUtil . Client. getEncodeParam ( workspaceBizId) ) + " /template/listing " ,
1674+ " method " : " GET " ,
1675+ " authType " : " AK " ,
1676+ " style " : " ROA " ,
1677+ " reqBodyType " : " json " ,
1678+ " bodyType " : " json "
1679+ ] )
1680+ var tmp : [ String : Any ] = try await callApi ( params as! AlibabacloudOpenApi . Params , req as! AlibabacloudOpenApi . OpenApiRequest , runtime as! TeaUtils . RuntimeOptions )
1681+ return Tea . TeaConverter. fromMap ( ListTemplateResponse ( ) , tmp)
1682+ }
1683+
1684+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1685+ public func listTemplate( _ workspaceBizId: String , _ request: ListTemplateRequest ) async throws -> ListTemplateResponse {
1686+ var runtime : TeaUtils . RuntimeOptions = TeaUtils . RuntimeOptions ( [ : ] )
1687+ var headers : [ String : String ] = [ : ]
1688+ return try await listTemplateWithOptions ( workspaceBizId as! String , request as! ListTemplateRequest , headers as! [ String : String ] , runtime as! TeaUtils . RuntimeOptions )
1689+ }
1690+
15771691 @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
15781692 public func listWorkspaceQueuesWithOptions( _ workspaceId: String , _ request: ListWorkspaceQueuesRequest , _ headers: [ String : String ] , _ runtime: TeaUtils . RuntimeOptions ) async throws -> ListWorkspaceQueuesResponse {
15791693 try TeaUtils . Client. validateModel ( request)
0 commit comments