tencentcloud-sdk-waf 1.0.354 → 1.0.357

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: ca0661ff06411de64c6218cdbafa72c3a3bd7691
4
- data.tar.gz: 125dd9d48b774b7645e12bac333e167136e60ec9
3
+ metadata.gz: 12f6735f9bdb9bd8bb61a23691c8816ac00cedbc
4
+ data.tar.gz: 98630b33176d884340b07523a1d73b062d41559b
5
5
  SHA512:
6
- metadata.gz: b783dcc5cf5e7cee1561fd32e6f4f1f2078698bda41efd4e4a6b67517c0fd65d2fa6ca7b66d2d0f37b269e15c89380d5893e2d82dab16d8d6eb8483fb6b53f7e
7
- data.tar.gz: deab504096d53ad531ccbfc3383ae485f3e94637b1046dc773227a92cd489c5fa7aa18cdd07490e4310bc88b0f9952d9187150a9d712efde189c8da40c0c9b94
6
+ metadata.gz: de5e79f7815e99e46e6f7f77f4f3a363ad4b368fc17a09310d9bfe80b38f59261c5f9e27c8c0f460117dbdcab095d227a22faaeafa999b327695432002a28adc
7
+ data.tar.gz: 5416a2f718bb56b9f49f987629a510bce1053ce1ed15444068b9a335f404dbaeebf1e87f3cbffdac972ce99a9cbcdf8a98f8215af1455ef7554df3d51cf0ab0a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.354
1
+ 1.0.357
@@ -390,30 +390,6 @@ module TencentCloud
390
390
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
391
391
  end
392
392
 
393
- # 获取防护配置中的自定义策略列表
394
-
395
- # @param request: Request instance for DescribeCustomRules.
396
- # @type request: :class:`Tencentcloud::waf::V20180125::DescribeCustomRulesRequest`
397
- # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeCustomRulesResponse`
398
- def DescribeCustomRules(request)
399
- body = send_request('DescribeCustomRules', request.serialize)
400
- response = JSON.parse(body)
401
- if response['Response'].key?('Error') == false
402
- model = DescribeCustomRulesResponse.new
403
- model.deserialize(response['Response'])
404
- model
405
- else
406
- code = response['Response']['Error']['Code']
407
- message = response['Response']['Error']['Message']
408
- reqid = response['Response']['RequestId']
409
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
410
- end
411
- rescue TencentCloud::Common::TencentCloudSDKException => e
412
- raise e
413
- rescue StandardError => e
414
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
415
- end
416
-
417
393
  # 获取域名的规则白名单
418
394
 
419
395
 
@@ -655,6 +631,30 @@ module TencentCloud
655
631
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
656
632
  end
657
633
 
634
+ # 查询下载攻击日志任务记录列表
635
+
636
+ # @param request: Request instance for GetAttackDownloadRecords.
637
+ # @type request: :class:`Tencentcloud::waf::V20180125::GetAttackDownloadRecordsRequest`
638
+ # @rtype: :class:`Tencentcloud::waf::V20180125::GetAttackDownloadRecordsResponse`
639
+ def GetAttackDownloadRecords(request)
640
+ body = send_request('GetAttackDownloadRecords', request.serialize)
641
+ response = JSON.parse(body)
642
+ if response['Response'].key?('Error') == false
643
+ model = GetAttackDownloadRecordsResponse.new
644
+ model.deserialize(response['Response'])
645
+ model
646
+ else
647
+ code = response['Response']['Error']['Code']
648
+ message = response['Response']['Error']['Message']
649
+ reqid = response['Response']['RequestId']
650
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
651
+ end
652
+ rescue TencentCloud::Common::TencentCloudSDKException => e
653
+ raise e
654
+ rescue StandardError => e
655
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
656
+ end
657
+
658
658
  # 本接口用于修改访问日志保存期限
659
659
 
660
660
  # @param request: Request instance for ModifyAccessPeriod.
@@ -1267,151 +1267,6 @@ module TencentCloud
1267
1267
  end
1268
1268
  end
1269
1269
 
1270
- # DescribeCustomRules接口的翻页参数
1271
- class DescribeCustomRulesPagingInfo < TencentCloud::Common::AbstractModel
1272
- # @param Offset: 当前页码
1273
- # @type Offset: Integer
1274
- # @param Limit: 当前页的最大数据条数
1275
- # @type Limit: Integer
1276
-
1277
- attr_accessor :Offset, :Limit
1278
-
1279
- def initialize(offset=nil, limit=nil)
1280
- @Offset = offset
1281
- @Limit = limit
1282
- end
1283
-
1284
- def deserialize(params)
1285
- @Offset = params['Offset']
1286
- @Limit = params['Limit']
1287
- end
1288
- end
1289
-
1290
- # DescribeCustomRules请求参数结构体
1291
- class DescribeCustomRulesRequest < TencentCloud::Common::AbstractModel
1292
- # @param Domain: 域名
1293
- # @type Domain: String
1294
- # @param Paging: 分页参数
1295
- # @type Paging: :class:`Tencentcloud::Waf.v20180125.models.DescribeCustomRulesPagingInfo`
1296
- # @param Edition: clb-waf或者sparta-waf
1297
- # @type Edition: String
1298
- # @param ActionType: 过滤参数:动作类型:0放行,1阻断,2人机识别,3观察,4重定向
1299
- # @type ActionType: String
1300
- # @param Search: 过滤参数:规则名称过滤条件
1301
- # @type Search: String
1302
-
1303
- attr_accessor :Domain, :Paging, :Edition, :ActionType, :Search
1304
-
1305
- def initialize(domain=nil, paging=nil, edition=nil, actiontype=nil, search=nil)
1306
- @Domain = domain
1307
- @Paging = paging
1308
- @Edition = edition
1309
- @ActionType = actiontype
1310
- @Search = search
1311
- end
1312
-
1313
- def deserialize(params)
1314
- @Domain = params['Domain']
1315
- unless params['Paging'].nil?
1316
- @Paging = DescribeCustomRulesPagingInfo.new
1317
- @Paging.deserialize(params['Paging'])
1318
- end
1319
- @Edition = params['Edition']
1320
- @ActionType = params['ActionType']
1321
- @Search = params['Search']
1322
- end
1323
- end
1324
-
1325
- # DescribeCustomRules返回参数结构体
1326
- class DescribeCustomRulesResponse < TencentCloud::Common::AbstractModel
1327
- # @param RuleList: 规则详情
1328
- # @type RuleList: Array
1329
- # @param TotalCount: 规则条数
1330
- # @type TotalCount: String
1331
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1332
- # @type RequestId: String
1333
-
1334
- attr_accessor :RuleList, :TotalCount, :RequestId
1335
-
1336
- def initialize(rulelist=nil, totalcount=nil, requestid=nil)
1337
- @RuleList = rulelist
1338
- @TotalCount = totalcount
1339
- @RequestId = requestid
1340
- end
1341
-
1342
- def deserialize(params)
1343
- unless params['RuleList'].nil?
1344
- @RuleList = []
1345
- params['RuleList'].each do |i|
1346
- describecustomrulesrsprulelistitem_tmp = DescribeCustomRulesRspRuleListItem.new
1347
- describecustomrulesrsprulelistitem_tmp.deserialize(i)
1348
- @RuleList << describecustomrulesrsprulelistitem_tmp
1349
- end
1350
- end
1351
- @TotalCount = params['TotalCount']
1352
- @RequestId = params['RequestId']
1353
- end
1354
- end
1355
-
1356
- # DescribeCustomRules接口回包中的复杂类型
1357
- class DescribeCustomRulesRspRuleListItem < TencentCloud::Common::AbstractModel
1358
- # @param ActionType: 动作类型
1359
- # @type ActionType: String
1360
- # @param Bypass: 跳过的策略
1361
- # @type Bypass: String
1362
- # @param CreateTime: 创建时间
1363
- # @type CreateTime: String
1364
- # @param ExpireTime: 过期时间
1365
- # @type ExpireTime: String
1366
- # @param Name: 策略名称
1367
- # @type Name: String
1368
- # @param Redirect: 重定向地址
1369
- # @type Redirect: String
1370
- # @param RuleId: 策略ID
1371
- # @type RuleId: String
1372
- # @param SortId: 优先级
1373
- # @type SortId: String
1374
- # @param Status: 状态
1375
- # @type Status: String
1376
- # @param Strategies: 策略详情
1377
- # @type Strategies: Array
1378
-
1379
- attr_accessor :ActionType, :Bypass, :CreateTime, :ExpireTime, :Name, :Redirect, :RuleId, :SortId, :Status, :Strategies
1380
-
1381
- def initialize(actiontype=nil, bypass=nil, createtime=nil, expiretime=nil, name=nil, redirect=nil, ruleid=nil, sortid=nil, status=nil, strategies=nil)
1382
- @ActionType = actiontype
1383
- @Bypass = bypass
1384
- @CreateTime = createtime
1385
- @ExpireTime = expiretime
1386
- @Name = name
1387
- @Redirect = redirect
1388
- @RuleId = ruleid
1389
- @SortId = sortid
1390
- @Status = status
1391
- @Strategies = strategies
1392
- end
1393
-
1394
- def deserialize(params)
1395
- @ActionType = params['ActionType']
1396
- @Bypass = params['Bypass']
1397
- @CreateTime = params['CreateTime']
1398
- @ExpireTime = params['ExpireTime']
1399
- @Name = params['Name']
1400
- @Redirect = params['Redirect']
1401
- @RuleId = params['RuleId']
1402
- @SortId = params['SortId']
1403
- @Status = params['Status']
1404
- unless params['Strategies'].nil?
1405
- @Strategies = []
1406
- params['Strategies'].each do |i|
1407
- strategy_tmp = Strategy.new
1408
- strategy_tmp.deserialize(i)
1409
- @Strategies << strategy_tmp
1410
- end
1411
- end
1412
- end
1413
- end
1414
-
1415
1270
  # DescribeDomainWhiteRules请求参数结构体
1416
1271
  class DescribeDomainWhiteRulesRequest < TencentCloud::Common::AbstractModel
1417
1272
  # @param Domain: 需要查询的域名
@@ -2151,6 +2006,33 @@ module TencentCloud
2151
2006
  end
2152
2007
  end
2153
2008
 
2009
+ # GetAttackDownloadRecords请求参数结构体
2010
+ class GetAttackDownloadRecordsRequest < TencentCloud::Common::AbstractModel
2011
+
2012
+
2013
+ def initialize()
2014
+ end
2015
+
2016
+ def deserialize(params)
2017
+ end
2018
+ end
2019
+
2020
+ # GetAttackDownloadRecords返回参数结构体
2021
+ class GetAttackDownloadRecordsResponse < TencentCloud::Common::AbstractModel
2022
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2023
+ # @type RequestId: String
2024
+
2025
+ attr_accessor :RequestId
2026
+
2027
+ def initialize(requestid=nil)
2028
+ @RequestId = requestid
2029
+ end
2030
+
2031
+ def deserialize(params)
2032
+ @RequestId = params['RequestId']
2033
+ end
2034
+ end
2035
+
2154
2036
  # 一个实例的详细信息
2155
2037
  class InstanceInfo < TencentCloud::Common::AbstractModel
2156
2038
  # @param InstanceId: id
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: 1.0.354
4
+ version: 1.0.357
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-12 00:00:00.000000000 Z
11
+ date: 2022-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common