Skip to content

Commit b5902a3

Browse files
committed
Support API ListCatalogs.
1 parent bda8f78 commit b5902a3

File tree

5 files changed

+925
-5
lines changed

5 files changed

+925
-5
lines changed

emr-serverless-spark-20230808/AlibabacloudEmrServerlessSpark20230808.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |spec|
22

33
spec.name = "AlibabacloudEmrServerlessSpark20230808"
4-
spec.version = "1.13.0"
4+
spec.version = "1.14.0"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud emr-serverless-spark (20230808) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/emr-serverless-spark-20230808"

emr-serverless-spark-20230808/README-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
要使用 [Carthage](https://github.com/Carthage/Carthage)`AlibabacloudEmrServerlessSpark20230808` 集成到你的 Xcode 项目中,需要在 `Cartfile` 中定义以下内容:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/emr-serverless-spark-20230808" "1.13.0"
20+
github "alibabacloud-sdk-swift/emr-serverless-spark-20230808" "1.14.0"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/emr-serverless-spark-20230808" "1.13.0"
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/emr-serverless-spark-20230808.git", from: "1.13.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/emr-serverless-spark-20230808.git", from: "1.14.0")
3030
]
3131
```
3232

emr-serverless-spark-20230808/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ English | [简体中文](README-CN.md)
1717
To integrate `AlibabacloudEmrServerlessSpark20230808` into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/emr-serverless-spark-20230808" "1.13.0"
20+
github "alibabacloud-sdk-swift/emr-serverless-spark-20230808" "1.14.0"
2121
```
2222

2323
### Swift Package Manager
@@ -26,7 +26,7 @@ To integrate `AlibabacloudEmrServerlessSpark20230808` into your Xcode project us
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/emr-serverless-spark-20230808.git", from: "1.13.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/emr-serverless-spark-20230808.git", from: "1.14.0")
3030
]
3131
```
3232

emr-serverless-spark-20230808/Sources/AlibabacloudEmrServerlessSpark20230808/Client.swift

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)