Skip to content

Commit 7a005f7

Browse files
committed
Support API DeleteDefenseRuleBlockIp.
1 parent e1626d5 commit 7a005f7

File tree

5 files changed

+240
-7
lines changed

5 files changed

+240
-7
lines changed

waf-openapi-20211001/AlibabacloudWafOpenapi20211001.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 = "AlibabacloudWafOpenapi20211001"
4-
spec.version = "6.6.0"
4+
spec.version = "7.0.0"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud waf-openapi (20211001) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/waf-openapi-20211001"

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/waf-openapi-20211001" "6.6.0"
20+
github "alibabacloud-sdk-swift/waf-openapi-20211001" "7.0.0"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/waf-openapi-20211001" "6.6.0"
2626

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/waf-openapi-20211001.git", from: "6.6.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/waf-openapi-20211001.git", from: "7.0.0")
3030
]
3131
```
3232

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/waf-openapi-20211001" "6.6.0"
20+
github "alibabacloud-sdk-swift/waf-openapi-20211001" "7.0.0"
2121
```
2222

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

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/waf-openapi-20211001.git", from: "6.6.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/waf-openapi-20211001.git", from: "7.0.0")
3030
]
3131
```
3232

waf-openapi-20211001/Sources/AlibabacloudWafOpenapi20211001/Client.swift

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,49 @@ open class Client : AlibabacloudOpenApi.Client {
11261126
return try await deleteDefenseRuleWithOptions(request as! DeleteDefenseRuleRequest, runtime as! TeaUtils.RuntimeOptions)
11271127
}
11281128

1129+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1130+
public func deleteDefenseRuleBlockIpWithOptions(_ request: DeleteDefenseRuleBlockIpRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteDefenseRuleBlockIpResponse {
1131+
try TeaUtils.Client.validateModel(request)
1132+
var query: [String: Any] = [:]
1133+
if (!TeaUtils.Client.isUnset(request.instanceId)) {
1134+
query["InstanceId"] = request.instanceId ?? "";
1135+
}
1136+
if (!TeaUtils.Client.isUnset(request.regionId)) {
1137+
query["RegionId"] = request.regionId ?? "";
1138+
}
1139+
if (!TeaUtils.Client.isUnset(request.resourceManagerResourceGroupId)) {
1140+
query["ResourceManagerResourceGroupId"] = request.resourceManagerResourceGroupId ?? "";
1141+
}
1142+
if (!TeaUtils.Client.isUnset(request.ruleId)) {
1143+
query["RuleId"] = request.ruleId!;
1144+
}
1145+
if (!TeaUtils.Client.isUnset(request.templateId)) {
1146+
query["TemplateId"] = request.templateId!;
1147+
}
1148+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
1149+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
1150+
])
1151+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
1152+
"action": "DeleteDefenseRuleBlockIp",
1153+
"version": "2021-10-01",
1154+
"protocol": "HTTPS",
1155+
"pathname": "/",
1156+
"method": "POST",
1157+
"authType": "AK",
1158+
"style": "RPC",
1159+
"reqBodyType": "formData",
1160+
"bodyType": "json"
1161+
])
1162+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
1163+
return Tea.TeaConverter.fromMap(DeleteDefenseRuleBlockIpResponse(), tmp)
1164+
}
1165+
1166+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1167+
public func deleteDefenseRuleBlockIp(_ request: DeleteDefenseRuleBlockIpRequest) async throws -> DeleteDefenseRuleBlockIpResponse {
1168+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
1169+
return try await deleteDefenseRuleBlockIpWithOptions(request as! DeleteDefenseRuleBlockIpRequest, runtime as! TeaUtils.RuntimeOptions)
1170+
}
1171+
11291172
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
11301173
public func deleteDefenseTemplateWithOptions(_ request: DeleteDefenseTemplateRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteDefenseTemplateResponse {
11311174
try TeaUtils.Client.validateModel(request)
@@ -3399,6 +3442,9 @@ open class Client : AlibabacloudOpenApi.Client {
33993442
if (!TeaUtils.Client.isUnset(request.domain)) {
34003443
query["Domain"] = request.domain ?? "";
34013444
}
3445+
if (!TeaUtils.Client.isUnset(request.domainId)) {
3446+
query["DomainId"] = request.domainId ?? "";
3447+
}
34023448
if (!TeaUtils.Client.isUnset(request.instanceId)) {
34033449
query["InstanceId"] = request.instanceId ?? "";
34043450
}
@@ -7371,6 +7417,9 @@ open class Client : AlibabacloudOpenApi.Client {
73717417
if (!TeaUtils.Client.isUnset(request.domain)) {
73727418
query["Domain"] = request.domain ?? "";
73737419
}
7420+
if (!TeaUtils.Client.isUnset(request.domainId)) {
7421+
query["DomainId"] = request.domainId ?? "";
7422+
}
73747423
if (!TeaUtils.Client.isUnset(request.instanceId)) {
73757424
query["InstanceId"] = request.instanceId ?? "";
73767425
}

0 commit comments

Comments
 (0)