tencentcloud-sdk-waf 3.0.644 → 3.0.645

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b68555975225e74077069cc8bd6c32a22531b52
4
- data.tar.gz: 9bfc165d09333f2d0fbcfcacf239c666dbe2e700
3
+ metadata.gz: 21f55bf7e207b8add5300ea8e12a60ca8ccd9432
4
+ data.tar.gz: f8ef0edfd5f4aa8963adec40ed0dff2b9c5d4633
5
5
  SHA512:
6
- metadata.gz: b22d6f1458418102631b951485a3d94f7e6821bdd88427377485a34b4e18e510bb8e4bb17450058d5e8ddbe994f97e6a47ff91949d87b313f39f271d23d002e5
7
- data.tar.gz: ac47b089a5e8aae3888e78ffad940d4568f99f3ee397949471c30c9392a5027a7472ed70ec878ef88cfbda9d0e89def84a0e82fbc120f7b96967a91761f6b52a
6
+ metadata.gz: 65b34f1d2c27e29cea22cbd439804e52aab0accdca879343c891a158565d8779464f39e042bea2d0984e99079cea2194b16480f00300f5d78a6f0d6562a5fd9b
7
+ data.tar.gz: 48d1387f5bcf218684aee3f1064687e02e278dd2ca29e95fce53c1de69bdc1c999bb7d1fc619e4e77cce5c63c05f33a86cb6e2a476ff9b0d9c693cab67032b02
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.644
1
+ 3.0.645
@@ -269,6 +269,30 @@ module TencentCloud
269
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
270
  end
271
271
 
272
+ # 删除自定义规则
273
+
274
+ # @param request: Request instance for DeleteCustomRule.
275
+ # @type request: :class:`Tencentcloud::waf::V20180125::DeleteCustomRuleRequest`
276
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DeleteCustomRuleResponse`
277
+ def DeleteCustomRule(request)
278
+ body = send_request('DeleteCustomRule', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DeleteCustomRuleResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
272
296
  # 删除精准白名单规则
273
297
 
274
298
  # @param request: Request instance for DeleteCustomWhiteRule.
@@ -608,6 +632,30 @@ module TencentCloud
608
632
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
609
633
  end
610
634
 
635
+ # 获取防护配置中的访问控制策略列表
636
+
637
+ # @param request: Request instance for DescribeCustomRuleList.
638
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeCustomRuleListRequest`
639
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeCustomRuleListResponse`
640
+ def DescribeCustomRuleList(request)
641
+ body = send_request('DescribeCustomRuleList', request.serialize)
642
+ response = JSON.parse(body)
643
+ if response['Response'].key?('Error') == false
644
+ model = DescribeCustomRuleListResponse.new
645
+ model.deserialize(response['Response'])
646
+ model
647
+ else
648
+ code = response['Response']['Error']['Code']
649
+ message = response['Response']['Error']['Message']
650
+ reqid = response['Response']['RequestId']
651
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
652
+ end
653
+ rescue TencentCloud::Common::TencentCloudSDKException => e
654
+ raise e
655
+ rescue StandardError => e
656
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
657
+ end
658
+
611
659
  # 获取防护配置中的精准白名单策略列表
612
660
 
613
661
  # @param request: Request instance for DescribeCustomWhiteRule.
@@ -1426,6 +1474,30 @@ module TencentCloud
1426
1474
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1427
1475
  end
1428
1476
 
1477
+ # 编辑自定义规则
1478
+
1479
+ # @param request: Request instance for ModifyCustomRule.
1480
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyCustomRuleRequest`
1481
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyCustomRuleResponse`
1482
+ def ModifyCustomRule(request)
1483
+ body = send_request('ModifyCustomRule', request.serialize)
1484
+ response = JSON.parse(body)
1485
+ if response['Response'].key?('Error') == false
1486
+ model = ModifyCustomRuleResponse.new
1487
+ model.deserialize(response['Response'])
1488
+ model
1489
+ else
1490
+ code = response['Response']['Error']['Code']
1491
+ message = response['Response']['Error']['Message']
1492
+ reqid = response['Response']['RequestId']
1493
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1494
+ end
1495
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1496
+ raise e
1497
+ rescue StandardError => e
1498
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1499
+ end
1500
+
1429
1501
  # 开启或禁用访问控制(自定义策略)
1430
1502
 
1431
1503
  # @param request: Request instance for ModifyCustomRuleStatus.
@@ -1311,6 +1311,46 @@ module TencentCloud
1311
1311
  end
1312
1312
  end
1313
1313
 
1314
+ # DeleteCustomRule请求参数结构体
1315
+ class DeleteCustomRuleRequest < TencentCloud::Common::AbstractModel
1316
+ # @param Domain: 删除的域名
1317
+ # @type Domain: String
1318
+ # @param RuleId: 删除的规则ID
1319
+ # @type RuleId: String
1320
+ # @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
1321
+ # @type Edition: String
1322
+
1323
+ attr_accessor :Domain, :RuleId, :Edition
1324
+
1325
+ def initialize(domain=nil, ruleid=nil, edition=nil)
1326
+ @Domain = domain
1327
+ @RuleId = ruleid
1328
+ @Edition = edition
1329
+ end
1330
+
1331
+ def deserialize(params)
1332
+ @Domain = params['Domain']
1333
+ @RuleId = params['RuleId']
1334
+ @Edition = params['Edition']
1335
+ end
1336
+ end
1337
+
1338
+ # DeleteCustomRule返回参数结构体
1339
+ class DeleteCustomRuleResponse < TencentCloud::Common::AbstractModel
1340
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1341
+ # @type RequestId: String
1342
+
1343
+ attr_accessor :RequestId
1344
+
1345
+ def initialize(requestid=nil)
1346
+ @RequestId = requestid
1347
+ end
1348
+
1349
+ def deserialize(params)
1350
+ @RequestId = params['RequestId']
1351
+ end
1352
+ end
1353
+
1314
1354
  # DeleteCustomWhiteRule请求参数结构体
1315
1355
  class DeleteCustomWhiteRuleRequest < TencentCloud::Common::AbstractModel
1316
1356
  # @param Domain: 删除的域名
@@ -2027,6 +2067,80 @@ module TencentCloud
2027
2067
  end
2028
2068
  end
2029
2069
 
2070
+ # DescribeCustomRuleList请求参数结构体
2071
+ class DescribeCustomRuleListRequest < TencentCloud::Common::AbstractModel
2072
+ # @param Domain: 域名
2073
+ # @type Domain: String
2074
+ # @param Offset: 偏移
2075
+ # @type Offset: Integer
2076
+ # @param Limit: 容量
2077
+ # @type Limit: Integer
2078
+ # @param Filters: 过滤数组,name可以是如下的值: RuleID,RuleName,Match
2079
+ # @type Filters: Array
2080
+ # @param Order: asc或者desc
2081
+ # @type Order: String
2082
+ # @param By: exp_ts或者mod_ts
2083
+ # @type By: String
2084
+
2085
+ attr_accessor :Domain, :Offset, :Limit, :Filters, :Order, :By
2086
+
2087
+ def initialize(domain=nil, offset=nil, limit=nil, filters=nil, order=nil, by=nil)
2088
+ @Domain = domain
2089
+ @Offset = offset
2090
+ @Limit = limit
2091
+ @Filters = filters
2092
+ @Order = order
2093
+ @By = by
2094
+ end
2095
+
2096
+ def deserialize(params)
2097
+ @Domain = params['Domain']
2098
+ @Offset = params['Offset']
2099
+ @Limit = params['Limit']
2100
+ unless params['Filters'].nil?
2101
+ @Filters = []
2102
+ params['Filters'].each do |i|
2103
+ filtersitemnew_tmp = FiltersItemNew.new
2104
+ filtersitemnew_tmp.deserialize(i)
2105
+ @Filters << filtersitemnew_tmp
2106
+ end
2107
+ end
2108
+ @Order = params['Order']
2109
+ @By = params['By']
2110
+ end
2111
+ end
2112
+
2113
+ # DescribeCustomRuleList返回参数结构体
2114
+ class DescribeCustomRuleListResponse < TencentCloud::Common::AbstractModel
2115
+ # @param RuleList: 规则详情
2116
+ # @type RuleList: Array
2117
+ # @param TotalCount: 规则条数
2118
+ # @type TotalCount: String
2119
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2120
+ # @type RequestId: String
2121
+
2122
+ attr_accessor :RuleList, :TotalCount, :RequestId
2123
+
2124
+ def initialize(rulelist=nil, totalcount=nil, requestid=nil)
2125
+ @RuleList = rulelist
2126
+ @TotalCount = totalcount
2127
+ @RequestId = requestid
2128
+ end
2129
+
2130
+ def deserialize(params)
2131
+ unless params['RuleList'].nil?
2132
+ @RuleList = []
2133
+ params['RuleList'].each do |i|
2134
+ describecustomrulesrsprulelistitem_tmp = DescribeCustomRulesRspRuleListItem.new
2135
+ describecustomrulesrsprulelistitem_tmp.deserialize(i)
2136
+ @RuleList << describecustomrulesrsprulelistitem_tmp
2137
+ end
2138
+ end
2139
+ @TotalCount = params['TotalCount']
2140
+ @RequestId = params['RequestId']
2141
+ end
2142
+ end
2143
+
2030
2144
  # DescribeCustomRules接口回包中的复杂类型
2031
2145
  class DescribeCustomRulesRspRuleListItem < TencentCloud::Common::AbstractModel
2032
2146
  # @param ActionType: 动作类型
@@ -5087,6 +5201,84 @@ module TencentCloud
5087
5201
  end
5088
5202
  end
5089
5203
 
5204
+ # ModifyCustomRule请求参数结构体
5205
+ class ModifyCustomRuleRequest < TencentCloud::Common::AbstractModel
5206
+ # @param Domain: 编辑的域名
5207
+ # @type Domain: String
5208
+ # @param RuleId: 编辑的规则ID
5209
+ # @type RuleId: Integer
5210
+ # @param RuleName: 编辑的规则名称
5211
+ # @type RuleName: String
5212
+ # @param RuleAction: 执行动作,0:放行、1:阻断、2:人机识别、3:观察、4:重定向
5213
+ # @type RuleAction: String
5214
+ # @param Strategies: 匹配条件数组
5215
+ # @type Strategies: Array
5216
+ # @param Edition: WAF的版本,clb-waf代表负载均衡WAF、sparta-waf代表SaaS WAF,默认是sparta-waf。
5217
+ # @type Edition: String
5218
+ # @param Redirect: 动作为重定向的时候重定向URL,默认为"/"
5219
+ # @type Redirect: String
5220
+ # @param Bypass: 放行时是否继续执行其它检查逻辑,继续执行地域封禁防护:geoip、继续执行CC策略防护:cc、继续执行WEB应用防护:owasp、继续执行AI引擎防护:ai、继续执行信息防泄漏防护:antileakage。如果多个勾选那么以,串接。
5221
+ # 默认是"geoip,cc,owasp,ai,antileakage"
5222
+ # @type Bypass: String
5223
+ # @param SortId: 优先级,1~100的整数,数字越小,代表这条规则的执行优先级越高。
5224
+ # 默认是100
5225
+ # @type SortId: Integer
5226
+ # @param ExpireTime: 规则生效截止时间,0:永久生效,其它值为对应时间的时间戳。
5227
+ # 默认是0
5228
+ # @type ExpireTime: Integer
5229
+
5230
+ attr_accessor :Domain, :RuleId, :RuleName, :RuleAction, :Strategies, :Edition, :Redirect, :Bypass, :SortId, :ExpireTime
5231
+
5232
+ def initialize(domain=nil, ruleid=nil, rulename=nil, ruleaction=nil, strategies=nil, edition=nil, redirect=nil, bypass=nil, sortid=nil, expiretime=nil)
5233
+ @Domain = domain
5234
+ @RuleId = ruleid
5235
+ @RuleName = rulename
5236
+ @RuleAction = ruleaction
5237
+ @Strategies = strategies
5238
+ @Edition = edition
5239
+ @Redirect = redirect
5240
+ @Bypass = bypass
5241
+ @SortId = sortid
5242
+ @ExpireTime = expiretime
5243
+ end
5244
+
5245
+ def deserialize(params)
5246
+ @Domain = params['Domain']
5247
+ @RuleId = params['RuleId']
5248
+ @RuleName = params['RuleName']
5249
+ @RuleAction = params['RuleAction']
5250
+ unless params['Strategies'].nil?
5251
+ @Strategies = []
5252
+ params['Strategies'].each do |i|
5253
+ strategy_tmp = Strategy.new
5254
+ strategy_tmp.deserialize(i)
5255
+ @Strategies << strategy_tmp
5256
+ end
5257
+ end
5258
+ @Edition = params['Edition']
5259
+ @Redirect = params['Redirect']
5260
+ @Bypass = params['Bypass']
5261
+ @SortId = params['SortId']
5262
+ @ExpireTime = params['ExpireTime']
5263
+ end
5264
+ end
5265
+
5266
+ # ModifyCustomRule返回参数结构体
5267
+ class ModifyCustomRuleResponse < TencentCloud::Common::AbstractModel
5268
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5269
+ # @type RequestId: String
5270
+
5271
+ attr_accessor :RequestId
5272
+
5273
+ def initialize(requestid=nil)
5274
+ @RequestId = requestid
5275
+ end
5276
+
5277
+ def deserialize(params)
5278
+ @RequestId = params['RequestId']
5279
+ end
5280
+ end
5281
+
5090
5282
  # ModifyCustomRuleStatus请求参数结构体
5091
5283
  class ModifyCustomRuleStatusRequest < TencentCloud::Common::AbstractModel
5092
5284
  # @param Domain: 域名
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-waf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.644
4
+ version: 3.0.645
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-25 00:00:00.000000000 Z
11
+ date: 2023-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common