Skip to content

Commit 366629a

Browse files
committed
Support API DeleteConfig.
1 parent 719406e commit 366629a

File tree

5 files changed

+1638
-439
lines changed

5 files changed

+1638
-439
lines changed

AlibabacloudAIWorkSpace20210204.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 = "AlibabacloudAIWorkSpace20210204"
4-
spec.version = "4.2.0"
4+
spec.version = "4.3.0"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud AIWorkSpace (20210204) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204"

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)`AlibabacloudAIWorkSpace20210204` 集成到你的 Xcode 项目中,需要在 `Cartfile` 中定义以下内容:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.2.0"
20+
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.3.0"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.2.0"
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.2.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.3.0")
3030
]
3131
```
3232

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 `AlibabacloudAIWorkSpace20210204` into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.2.0"
20+
github "alibabacloud-sdk-swift/aiworkspace-20210204" "4.3.0"
2121
```
2222

2323
### Swift Package Manager
@@ -26,7 +26,7 @@ To integrate `AlibabacloudAIWorkSpace20210204` into your Xcode project using [Sw
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.2.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/aiworkspace-20210204.git", from: "4.3.0")
3030
]
3131
```
3232

Sources/AlibabacloudAIWorkSpace20210204/Client.swift

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,42 @@ open class Client : AlibabacloudOpenApi.Client {
11151115
return try await deleteCodeSourceWithOptions(CodeSourceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
11161116
}
11171117

1118+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1119+
public func deleteConfigWithOptions(_ WorkspaceId: String, _ ConfigKey: String, _ request: DeleteConfigRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteConfigResponse {
1120+
try TeaUtils.Client.validateModel(request)
1121+
var query: [String: Any] = [:]
1122+
if (!TeaUtils.Client.isUnset(request.categoryName)) {
1123+
query["CategoryName"] = request.categoryName ?? "";
1124+
}
1125+
if (!TeaUtils.Client.isUnset(request.labels)) {
1126+
query["Labels"] = request.labels ?? "";
1127+
}
1128+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
1129+
"headers": headers as! [String: String],
1130+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
1131+
])
1132+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
1133+
"action": "DeleteConfig",
1134+
"version": "2021-02-04",
1135+
"protocol": "HTTPS",
1136+
"pathname": "/api/v1/workspaces/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(WorkspaceId)) + "/configs/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ConfigKey)),
1137+
"method": "DELETE",
1138+
"authType": "AK",
1139+
"style": "ROA",
1140+
"reqBodyType": "json",
1141+
"bodyType": "json"
1142+
])
1143+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
1144+
return Tea.TeaConverter.fromMap(DeleteConfigResponse(), tmp)
1145+
}
1146+
1147+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1148+
public func deleteConfig(_ WorkspaceId: String, _ ConfigKey: String, _ request: DeleteConfigRequest) async throws -> DeleteConfigResponse {
1149+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
1150+
var headers: [String: String] = [:]
1151+
return try await deleteConfigWithOptions(WorkspaceId as! String, ConfigKey as! String, request as! DeleteConfigRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
1152+
}
1153+
11181154
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
11191155
public func deleteDatasetWithOptions(_ DatasetId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteDatasetResponse {
11201156
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
@@ -1730,6 +1766,45 @@ open class Client : AlibabacloudOpenApi.Client {
17301766
return try await getCodeSourceWithOptions(CodeSourceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
17311767
}
17321768

1769+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1770+
public func getConfigWithOptions(_ WorkspaceId: String, _ request: GetConfigRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetConfigResponse {
1771+
try TeaUtils.Client.validateModel(request)
1772+
var query: [String: Any] = [:]
1773+
if (!TeaUtils.Client.isUnset(request.categoryName)) {
1774+
query["CategoryName"] = request.categoryName ?? "";
1775+
}
1776+
if (!TeaUtils.Client.isUnset(request.configKey)) {
1777+
query["ConfigKey"] = request.configKey ?? "";
1778+
}
1779+
if (!TeaUtils.Client.isUnset(request.verbose)) {
1780+
query["Verbose"] = request.verbose ?? "";
1781+
}
1782+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
1783+
"headers": headers as! [String: String],
1784+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
1785+
])
1786+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
1787+
"action": "GetConfig",
1788+
"version": "2021-02-04",
1789+
"protocol": "HTTPS",
1790+
"pathname": "/api/v1/workspaces/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(WorkspaceId)) + "/config",
1791+
"method": "GET",
1792+
"authType": "AK",
1793+
"style": "ROA",
1794+
"reqBodyType": "json",
1795+
"bodyType": "json"
1796+
])
1797+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
1798+
return Tea.TeaConverter.fromMap(GetConfigResponse(), tmp)
1799+
}
1800+
1801+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1802+
public func getConfig(_ WorkspaceId: String, _ request: GetConfigRequest) async throws -> GetConfigResponse {
1803+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
1804+
var headers: [String: String] = [:]
1805+
return try await getConfigWithOptions(WorkspaceId as! String, request as! GetConfigRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
1806+
}
1807+
17331808
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
17341809
public func getDatasetWithOptions(_ DatasetId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetDatasetResponse {
17351810
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
@@ -2284,6 +2359,48 @@ open class Client : AlibabacloudOpenApi.Client {
22842359
return try await listCodeSourcesWithOptions(request as! ListCodeSourcesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
22852360
}
22862361

2362+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
2363+
public func listConfigsWithOptions(_ WorkspaceId: String, _ request: ListConfigsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListConfigsResponse {
2364+
try TeaUtils.Client.validateModel(request)
2365+
var query: [String: Any] = [:]
2366+
if (!TeaUtils.Client.isUnset(request.categoryName)) {
2367+
query["CategoryName"] = request.categoryName ?? "";
2368+
}
2369+
if (!TeaUtils.Client.isUnset(request.configKeys)) {
2370+
query["ConfigKeys"] = request.configKeys ?? "";
2371+
}
2372+
if (!TeaUtils.Client.isUnset(request.labels)) {
2373+
query["Labels"] = request.labels ?? "";
2374+
}
2375+
if (!TeaUtils.Client.isUnset(request.verbose)) {
2376+
query["Verbose"] = request.verbose ?? "";
2377+
}
2378+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
2379+
"headers": headers as! [String: String],
2380+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
2381+
])
2382+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
2383+
"action": "ListConfigs",
2384+
"version": "2021-02-04",
2385+
"protocol": "HTTPS",
2386+
"pathname": "/api/v1/workspaces/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(WorkspaceId)) + "/configs",
2387+
"method": "GET",
2388+
"authType": "AK",
2389+
"style": "ROA",
2390+
"reqBodyType": "json",
2391+
"bodyType": "json"
2392+
])
2393+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
2394+
return Tea.TeaConverter.fromMap(ListConfigsResponse(), tmp)
2395+
}
2396+
2397+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
2398+
public func listConfigs(_ WorkspaceId: String, _ request: ListConfigsRequest) async throws -> ListConfigsResponse {
2399+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
2400+
var headers: [String: String] = [:]
2401+
return try await listConfigsWithOptions(WorkspaceId as! String, request as! ListConfigsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
2402+
}
2403+
22872404
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
22882405
public func listDatasetFileMetasWithOptions(_ DatasetId: String, _ tmpReq: ListDatasetFileMetasRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDatasetFileMetasResponse {
22892406
try TeaUtils.Client.validateModel(tmpReq)
@@ -3742,6 +3859,81 @@ open class Client : AlibabacloudOpenApi.Client {
37423859
return try await updateCodeSourceWithOptions(CodeSourceId as! String, request as! UpdateCodeSourceRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
37433860
}
37443861

3862+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
3863+
public func updateConfigWithOptions(_ WorkspaceId: String, _ request: UpdateConfigRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateConfigResponse {
3864+
try TeaUtils.Client.validateModel(request)
3865+
var body: [String: Any] = [:]
3866+
if (!TeaUtils.Client.isUnset(request.categoryName)) {
3867+
body["CategoryName"] = request.categoryName ?? "";
3868+
}
3869+
if (!TeaUtils.Client.isUnset(request.configKey)) {
3870+
body["ConfigKey"] = request.configKey ?? "";
3871+
}
3872+
if (!TeaUtils.Client.isUnset(request.configValue)) {
3873+
body["ConfigValue"] = request.configValue ?? "";
3874+
}
3875+
if (!TeaUtils.Client.isUnset(request.labels)) {
3876+
body["Labels"] = request.labels ?? [];
3877+
}
3878+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
3879+
"headers": headers as! [String: String],
3880+
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
3881+
])
3882+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
3883+
"action": "UpdateConfig",
3884+
"version": "2021-02-04",
3885+
"protocol": "HTTPS",
3886+
"pathname": "/api/v1/workspaces/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(WorkspaceId)) + "/config",
3887+
"method": "PUT",
3888+
"authType": "AK",
3889+
"style": "ROA",
3890+
"reqBodyType": "json",
3891+
"bodyType": "json"
3892+
])
3893+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
3894+
return Tea.TeaConverter.fromMap(UpdateConfigResponse(), tmp)
3895+
}
3896+
3897+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
3898+
public func updateConfig(_ WorkspaceId: String, _ request: UpdateConfigRequest) async throws -> UpdateConfigResponse {
3899+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
3900+
var headers: [String: String] = [:]
3901+
return try await updateConfigWithOptions(WorkspaceId as! String, request as! UpdateConfigRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
3902+
}
3903+
3904+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
3905+
public func updateConfigsWithOptions(_ WorkspaceId: String, _ request: UpdateConfigsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateConfigsResponse {
3906+
try TeaUtils.Client.validateModel(request)
3907+
var body: [String: Any] = [:]
3908+
if (!TeaUtils.Client.isUnset(request.configs)) {
3909+
body["Configs"] = request.configs ?? [];
3910+
}
3911+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
3912+
"headers": headers as! [String: String],
3913+
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
3914+
])
3915+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
3916+
"action": "UpdateConfigs",
3917+
"version": "2021-02-04",
3918+
"protocol": "HTTPS",
3919+
"pathname": "/api/v1/workspaces/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(WorkspaceId)) + "/configs",
3920+
"method": "PUT",
3921+
"authType": "AK",
3922+
"style": "ROA",
3923+
"reqBodyType": "json",
3924+
"bodyType": "json"
3925+
])
3926+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
3927+
return Tea.TeaConverter.fromMap(UpdateConfigsResponse(), tmp)
3928+
}
3929+
3930+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
3931+
public func updateConfigs(_ WorkspaceId: String, _ request: UpdateConfigsRequest) async throws -> UpdateConfigsResponse {
3932+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
3933+
var headers: [String: String] = [:]
3934+
return try await updateConfigsWithOptions(WorkspaceId as! String, request as! UpdateConfigsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
3935+
}
3936+
37453937
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
37463938
public func updateDatasetWithOptions(_ DatasetId: String, _ request: UpdateDatasetRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateDatasetResponse {
37473939
try TeaUtils.Client.validateModel(request)

0 commit comments

Comments
 (0)