tencentcloud-sdk-waf 3.0.643 → 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: 0fb1fa3b0939d708d7985a33852245125bb6d1f0
4
- data.tar.gz: 20f8533e598179dc503dd45807ae33dc7626ce59
3
+ metadata.gz: 21f55bf7e207b8add5300ea8e12a60ca8ccd9432
4
+ data.tar.gz: f8ef0edfd5f4aa8963adec40ed0dff2b9c5d4633
5
5
  SHA512:
6
- metadata.gz: 057177a2fc8f029e26137b3430f6e5e467474f31cb31ec1bf4a8fcb53dfc71c427d3001871f7f2bd7d7804882eb401fe150c072f3bd51ca191772b904cdf35b1
7
- data.tar.gz: c0970b013a95aa4fe7ab1c5a758a642aad3be793ab51ae750dc1a9c931ad4a944588152fcaa4fdffe0e29cf428ac628cb830af0ab79b08935a44f252aaabfb90
6
+ metadata.gz: 65b34f1d2c27e29cea22cbd439804e52aab0accdca879343c891a158565d8779464f39e042bea2d0984e99079cea2194b16480f00300f5d78a6f0d6562a5fd9b
7
+ data.tar.gz: 48d1387f5bcf218684aee3f1064687e02e278dd2ca29e95fce53c1de69bdc1c999bb7d1fc619e4e77cce5c63c05f33a86cb6e2a476ff9b0d9c693cab67032b02
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.643
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.
@@ -1354,6 +1402,30 @@ module TencentCloud
1354
1402
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1355
1403
  end
1356
1404
 
1405
+ # api分析页面开关
1406
+
1407
+ # @param request: Request instance for ModifyApiAnalyzeStatus.
1408
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyApiAnalyzeStatusRequest`
1409
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyApiAnalyzeStatusResponse`
1410
+ def ModifyApiAnalyzeStatus(request)
1411
+ body = send_request('ModifyApiAnalyzeStatus', request.serialize)
1412
+ response = JSON.parse(body)
1413
+ if response['Response'].key?('Error') == false
1414
+ model = ModifyApiAnalyzeStatusResponse.new
1415
+ model.deserialize(response['Response'])
1416
+ model
1417
+ else
1418
+ code = response['Response']['Error']['Code']
1419
+ message = response['Response']['Error']['Message']
1420
+ reqid = response['Response']['RequestId']
1421
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1422
+ end
1423
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1424
+ raise e
1425
+ rescue StandardError => e
1426
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1427
+ end
1428
+
1357
1429
  # 修改防护域名的地域封禁状态
1358
1430
 
1359
1431
  # @param request: Request instance for ModifyAreaBanStatus.
@@ -1378,6 +1450,54 @@ module TencentCloud
1378
1450
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1379
1451
  end
1380
1452
 
1453
+ # Bot_V2 bot总开关更新
1454
+
1455
+ # @param request: Request instance for ModifyBotStatus.
1456
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyBotStatusRequest`
1457
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyBotStatusResponse`
1458
+ def ModifyBotStatus(request)
1459
+ body = send_request('ModifyBotStatus', request.serialize)
1460
+ response = JSON.parse(body)
1461
+ if response['Response'].key?('Error') == false
1462
+ model = ModifyBotStatusResponse.new
1463
+ model.deserialize(response['Response'])
1464
+ model
1465
+ else
1466
+ code = response['Response']['Error']['Code']
1467
+ message = response['Response']['Error']['Message']
1468
+ reqid = response['Response']['RequestId']
1469
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1470
+ end
1471
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1472
+ raise e
1473
+ rescue StandardError => e
1474
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1475
+ end
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
+
1381
1501
  # 开启或禁用访问控制(自定义策略)
1382
1502
 
1383
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: 删除的域名
@@ -1874,18 +1914,22 @@ module TencentCloud
1874
1914
  # @type BotCount: Integer
1875
1915
  # @param ApiAssetsCount: api资产总数
1876
1916
  # @type ApiAssetsCount: Integer
1917
+ # @param ApiRiskEventCount: api风险事件数量
1918
+ # 注意:此字段可能返回 null,表示取不到有效值。
1919
+ # @type ApiRiskEventCount: Integer
1877
1920
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1878
1921
  # @type RequestId: String
1879
1922
 
1880
- attr_accessor :AccessCount, :AttackCount, :ACLCount, :CCCount, :BotCount, :ApiAssetsCount, :RequestId
1923
+ attr_accessor :AccessCount, :AttackCount, :ACLCount, :CCCount, :BotCount, :ApiAssetsCount, :ApiRiskEventCount, :RequestId
1881
1924
 
1882
- def initialize(accesscount=nil, attackcount=nil, aclcount=nil, cccount=nil, botcount=nil, apiassetscount=nil, requestid=nil)
1925
+ def initialize(accesscount=nil, attackcount=nil, aclcount=nil, cccount=nil, botcount=nil, apiassetscount=nil, apiriskeventcount=nil, requestid=nil)
1883
1926
  @AccessCount = accesscount
1884
1927
  @AttackCount = attackcount
1885
1928
  @ACLCount = aclcount
1886
1929
  @CCCount = cccount
1887
1930
  @BotCount = botcount
1888
1931
  @ApiAssetsCount = apiassetscount
1932
+ @ApiRiskEventCount = apiriskeventcount
1889
1933
  @RequestId = requestid
1890
1934
  end
1891
1935
 
@@ -1896,6 +1940,7 @@ module TencentCloud
1896
1940
  @CCCount = params['CCCount']
1897
1941
  @BotCount = params['BotCount']
1898
1942
  @ApiAssetsCount = params['ApiAssetsCount']
1943
+ @ApiRiskEventCount = params['ApiRiskEventCount']
1899
1944
  @RequestId = params['RequestId']
1900
1945
  end
1901
1946
  end
@@ -2022,6 +2067,80 @@ module TencentCloud
2022
2067
  end
2023
2068
  end
2024
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
+
2025
2144
  # DescribeCustomRules接口回包中的复杂类型
2026
2145
  class DescribeCustomRulesRspRuleListItem < TencentCloud::Common::AbstractModel
2027
2146
  # @param ActionType: 动作类型
@@ -2370,7 +2489,7 @@ module TencentCloud
2370
2489
 
2371
2490
  # DescribeDomains请求参数结构体
2372
2491
  class DescribeDomainsRequest < TencentCloud::Common::AbstractModel
2373
- # @param Offset: 数据偏移量,从1开始。
2492
+ # @param Offset: 分页偏移量,取Limit整数倍。最小值为0,最大值= Total/Limit向上取整
2374
2493
  # @type Offset: Integer
2375
2494
  # @param Limit: 返回域名的数量
2376
2495
  # @type Limit: Integer
@@ -4923,6 +5042,72 @@ module TencentCloud
4923
5042
  end
4924
5043
  end
4925
5044
 
5045
+ # ModifyApiAnalyzeStatus请求参数结构体
5046
+ class ModifyApiAnalyzeStatusRequest < TencentCloud::Common::AbstractModel
5047
+ # @param Status: 开关状态
5048
+ # @type Status: Integer
5049
+ # @param Domain: 域名
5050
+ # @type Domain: String
5051
+ # @param InstanceId: 实例id
5052
+ # @type InstanceId: String
5053
+ # @param TargetList: 需要批量开启的实体列表
5054
+ # @type TargetList: Array
5055
+
5056
+ attr_accessor :Status, :Domain, :InstanceId, :TargetList
5057
+
5058
+ def initialize(status=nil, domain=nil, instanceid=nil, targetlist=nil)
5059
+ @Status = status
5060
+ @Domain = domain
5061
+ @InstanceId = instanceid
5062
+ @TargetList = targetlist
5063
+ end
5064
+
5065
+ def deserialize(params)
5066
+ @Status = params['Status']
5067
+ @Domain = params['Domain']
5068
+ @InstanceId = params['InstanceId']
5069
+ unless params['TargetList'].nil?
5070
+ @TargetList = []
5071
+ params['TargetList'].each do |i|
5072
+ targetentity_tmp = TargetEntity.new
5073
+ targetentity_tmp.deserialize(i)
5074
+ @TargetList << targetentity_tmp
5075
+ end
5076
+ end
5077
+ end
5078
+ end
5079
+
5080
+ # ModifyApiAnalyzeStatus返回参数结构体
5081
+ class ModifyApiAnalyzeStatusResponse < TencentCloud::Common::AbstractModel
5082
+ # @param Count: 已经开启的数量,如果返回值为3(大于支持的域名开启数量),则表示开启失败
5083
+ # 注意:此字段可能返回 null,表示取不到有效值。
5084
+ # @type Count: Integer
5085
+ # @param UnSupportedList: 不支持开启的域名列表
5086
+ # 注意:此字段可能返回 null,表示取不到有效值。
5087
+ # @type UnSupportedList: Array
5088
+ # @param FailDomainList: 开启/关闭失败的域名列表
5089
+ # 注意:此字段可能返回 null,表示取不到有效值。
5090
+ # @type FailDomainList: Array
5091
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5092
+ # @type RequestId: String
5093
+
5094
+ attr_accessor :Count, :UnSupportedList, :FailDomainList, :RequestId
5095
+
5096
+ def initialize(count=nil, unsupportedlist=nil, faildomainlist=nil, requestid=nil)
5097
+ @Count = count
5098
+ @UnSupportedList = unsupportedlist
5099
+ @FailDomainList = faildomainlist
5100
+ @RequestId = requestid
5101
+ end
5102
+
5103
+ def deserialize(params)
5104
+ @Count = params['Count']
5105
+ @UnSupportedList = params['UnSupportedList']
5106
+ @FailDomainList = params['FailDomainList']
5107
+ @RequestId = params['RequestId']
5108
+ end
5109
+ end
5110
+
4926
5111
  # ModifyAreaBanStatus请求参数结构体
4927
5112
  class ModifyAreaBanStatusRequest < TencentCloud::Common::AbstractModel
4928
5113
  # @param Domain: 需要修改的域名
@@ -4959,6 +5144,141 @@ module TencentCloud
4959
5144
  end
4960
5145
  end
4961
5146
 
5147
+ # ModifyBotStatus请求参数结构体
5148
+ class ModifyBotStatusRequest < TencentCloud::Common::AbstractModel
5149
+ # @param Domain: 域名
5150
+ # @type Domain: String
5151
+ # @param Category: 类别
5152
+ # @type Category: String
5153
+ # @param Status: 状态
5154
+ # @type Status: String
5155
+ # @param InstanceID: 实例id
5156
+ # @type InstanceID: String
5157
+ # @param IsVersionFour: 是否是bot4.0版本
5158
+ # @type IsVersionFour: Boolean
5159
+ # @param BotVersion: 传入Bot版本号,场景化版本为"4.1.0"
5160
+ # @type BotVersion: String
5161
+
5162
+ attr_accessor :Domain, :Category, :Status, :InstanceID, :IsVersionFour, :BotVersion
5163
+
5164
+ def initialize(domain=nil, category=nil, status=nil, instanceid=nil, isversionfour=nil, botversion=nil)
5165
+ @Domain = domain
5166
+ @Category = category
5167
+ @Status = status
5168
+ @InstanceID = instanceid
5169
+ @IsVersionFour = isversionfour
5170
+ @BotVersion = botversion
5171
+ end
5172
+
5173
+ def deserialize(params)
5174
+ @Domain = params['Domain']
5175
+ @Category = params['Category']
5176
+ @Status = params['Status']
5177
+ @InstanceID = params['InstanceID']
5178
+ @IsVersionFour = params['IsVersionFour']
5179
+ @BotVersion = params['BotVersion']
5180
+ end
5181
+ end
5182
+
5183
+ # ModifyBotStatus返回参数结构体
5184
+ class ModifyBotStatusResponse < TencentCloud::Common::AbstractModel
5185
+ # @param Data: 正常情况为null
5186
+ # 注意:此字段可能返回 null,表示取不到有效值。
5187
+ # @type Data: String
5188
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5189
+ # @type RequestId: String
5190
+
5191
+ attr_accessor :Data, :RequestId
5192
+
5193
+ def initialize(data=nil, requestid=nil)
5194
+ @Data = data
5195
+ @RequestId = requestid
5196
+ end
5197
+
5198
+ def deserialize(params)
5199
+ @Data = params['Data']
5200
+ @RequestId = params['RequestId']
5201
+ end
5202
+ end
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
+
4962
5282
  # ModifyCustomRuleStatus请求参数结构体
4963
5283
  class ModifyCustomRuleStatusRequest < TencentCloud::Common::AbstractModel
4964
5284
  # @param Domain: 域名
@@ -6519,6 +6839,26 @@ module TencentCloud
6519
6839
  end
6520
6840
  end
6521
6841
 
6842
+ # 需要开启/关闭API安全的 实例+域名 组合实体
6843
+ class TargetEntity < TencentCloud::Common::AbstractModel
6844
+ # @param InstanceId: 实例ID
6845
+ # @type InstanceId: String
6846
+ # @param Domain: 域名
6847
+ # @type Domain: String
6848
+
6849
+ attr_accessor :InstanceId, :Domain
6850
+
6851
+ def initialize(instanceid=nil, domain=nil)
6852
+ @InstanceId = instanceid
6853
+ @Domain = domain
6854
+ end
6855
+
6856
+ def deserialize(params)
6857
+ @InstanceId = params['InstanceId']
6858
+ @Domain = params['Domain']
6859
+ end
6860
+ end
6861
+
6522
6862
  # UpsertIpAccessControl请求参数结构体
6523
6863
  class UpsertIpAccessControlRequest < TencentCloud::Common::AbstractModel
6524
6864
  # @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.643
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-24 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