Skip to content

Commit cb043f2

Browse files
committed
Support API CreateEnterpriseAcceleratePolicy.
1 parent f039cad commit cb043f2

File tree

7 files changed

+6463
-5149
lines changed

7 files changed

+6463
-5149
lines changed

AlibabacloudCsas20230120.podspec

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

33
spec.name = "AlibabacloudCsas20230120"
4-
spec.version = "1.23.2"
4+
spec.version = "1.24.0"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud csas (20230120) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/csas-20230120"
@@ -17,7 +17,7 @@ Pod::Spec.new do |spec|
1717
spec.watchos.deployment_target = '6.0'
1818
spec.tvos.deployment_target = '13.0'
1919

20-
spec.dependency 'Tea', '~> 1.0.0'
20+
spec.dependency 'Tea', '~> 1.0.3'
2121
spec.dependency 'TeaUtils', '~> 1.0.6'
2222
spec.dependency 'AlibabacloudOpenApi', '~> 1.0.7'
2323
spec.dependency 'AlibabaCloudOpenApiUtil', '~> 1.0.1'

Cartfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
github aliyun/tea-swift ~> 1.0.0
1+
github aliyun/tea-swift ~> 1.0.3
22
github alibabacloud-sdk-swift/tea-utils ~> 1.0.6
33
github alibabacloud-sdk-swift/darabonba-openapi ~> 1.0.7
44
github alibabacloud-sdk-swift/openapi-util ~> 1.0.1

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let package = Package(
1515
],
1616
dependencies: [
1717
// Dependencies declare other packages that this package depends on.
18-
.package(url: "https://github.com/aliyun/tea-swift.git", from: "1.0.0"),
18+
.package(url: "https://github.com/aliyun/tea-swift.git", from: "1.0.3"),
1919
.package(url: "https://github.com/alibabacloud-sdk-swift/tea-utils", from: "1.0.6"),
2020
.package(url: "https://github.com/alibabacloud-sdk-swift/darabonba-openapi", from: "1.0.7"),
2121
.package(url: "https://github.com/alibabacloud-sdk-swift/openapi-util", from: "1.0.1"),

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/csas-20230120" "1.23.2"
20+
github "alibabacloud-sdk-swift/csas-20230120" "1.24.0"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/csas-20230120" "1.23.2"
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/csas-20230120.git", from: "1.23.2")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/csas-20230120.git", from: "1.24.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 `AlibabacloudCsas20230120` into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/csas-20230120" "1.23.2"
20+
github "alibabacloud-sdk-swift/csas-20230120" "1.24.0"
2121
```
2222

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

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/csas-20230120.git", from: "1.23.2")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/csas-20230120.git", from: "1.24.0")
3030
]
3131
```
3232

Sources/AlibabacloudCsas20230120/Client.swift

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,61 @@ open class Client : AlibabacloudOpenApi.Client {
255255
return try await createDynamicRouteWithOptions(request as! CreateDynamicRouteRequest, runtime as! TeaUtils.RuntimeOptions)
256256
}
257257

258+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
259+
public func createEnterpriseAcceleratePolicyWithOptions(_ request: CreateEnterpriseAcceleratePolicyRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateEnterpriseAcceleratePolicyResponse {
260+
try TeaUtils.Client.validateModel(request)
261+
var body: [String: Any] = [:]
262+
if (!TeaUtils.Client.isUnset(request.accelerationType)) {
263+
body["AccelerationType"] = request.accelerationType ?? "";
264+
}
265+
if (!TeaUtils.Client.isUnset(request.description_)) {
266+
body["Description"] = request.description_ ?? "";
267+
}
268+
if (!TeaUtils.Client.isUnset(request.name)) {
269+
body["Name"] = request.name ?? "";
270+
}
271+
if (!TeaUtils.Client.isUnset(request.priority)) {
272+
body["Priority"] = request.priority ?? "";
273+
}
274+
if (!TeaUtils.Client.isUnset(request.showInClient)) {
275+
body["ShowInClient"] = request.showInClient!;
276+
}
277+
if (!TeaUtils.Client.isUnset(request.upstreamHost)) {
278+
body["UpstreamHost"] = request.upstreamHost ?? "";
279+
}
280+
if (!TeaUtils.Client.isUnset(request.upstreamPort)) {
281+
body["UpstreamPort"] = request.upstreamPort!;
282+
}
283+
if (!TeaUtils.Client.isUnset(request.upstreamType)) {
284+
body["UpstreamType"] = request.upstreamType ?? "";
285+
}
286+
if (!TeaUtils.Client.isUnset(request.userAttributeGroup)) {
287+
body["UserAttributeGroup"] = request.userAttributeGroup ?? "";
288+
}
289+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
290+
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
291+
])
292+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
293+
"action": "CreateEnterpriseAcceleratePolicy",
294+
"version": "2023-01-20",
295+
"protocol": "HTTPS",
296+
"pathname": "/",
297+
"method": "POST",
298+
"authType": "AK",
299+
"style": "RPC",
300+
"reqBodyType": "formData",
301+
"bodyType": "json"
302+
])
303+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
304+
return Tea.TeaConverter.fromMap(CreateEnterpriseAcceleratePolicyResponse(), tmp)
305+
}
306+
307+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
308+
public func createEnterpriseAcceleratePolicy(_ request: CreateEnterpriseAcceleratePolicyRequest) async throws -> CreateEnterpriseAcceleratePolicyResponse {
309+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
310+
return try await createEnterpriseAcceleratePolicyWithOptions(request as! CreateEnterpriseAcceleratePolicyRequest, runtime as! TeaUtils.RuntimeOptions)
311+
}
312+
258313
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
259314
public func createIdpDepartmentWithOptions(_ request: CreateIdpDepartmentRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateIdpDepartmentResponse {
260315
try TeaUtils.Client.validateModel(request)
@@ -924,6 +979,37 @@ open class Client : AlibabacloudOpenApi.Client {
924979
return try await deleteIdpDepartmentWithOptions(request as! DeleteIdpDepartmentRequest, runtime as! TeaUtils.RuntimeOptions)
925980
}
926981

982+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
983+
public func deleteOtpConfigWithOptions(_ request: DeleteOtpConfigRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteOtpConfigResponse {
984+
try TeaUtils.Client.validateModel(request)
985+
var body: [String: Any] = [:]
986+
if (!TeaUtils.Client.isUnset(request.username)) {
987+
body["Username"] = request.username ?? "";
988+
}
989+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
990+
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
991+
])
992+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
993+
"action": "DeleteOtpConfig",
994+
"version": "2023-01-20",
995+
"protocol": "HTTPS",
996+
"pathname": "/",
997+
"method": "POST",
998+
"authType": "AK",
999+
"style": "RPC",
1000+
"reqBodyType": "formData",
1001+
"bodyType": "json"
1002+
])
1003+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
1004+
return Tea.TeaConverter.fromMap(DeleteOtpConfigResponse(), tmp)
1005+
}
1006+
1007+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1008+
public func deleteOtpConfig(_ request: DeleteOtpConfigRequest) async throws -> DeleteOtpConfigResponse {
1009+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
1010+
return try await deleteOtpConfigWithOptions(request as! DeleteOtpConfigRequest, runtime as! TeaUtils.RuntimeOptions)
1011+
}
1012+
9271013
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
9281014
public func deletePrivateAccessApplicationWithOptions(_ request: DeletePrivateAccessApplicationRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeletePrivateAccessApplicationResponse {
9291015
try TeaUtils.Client.validateModel(request)

0 commit comments

Comments
 (0)