tencentcloud-sdk-waf 1.0.354 → 1.0.355

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: 7ca7e2729673d842747542a7d36e2deb793ec5bc
4
+ data.tar.gz: dbc66b64b2361afd7e56258c19c77f9c17bc9235
5
5
  SHA512:
6
- metadata.gz: b783dcc5cf5e7cee1561fd32e6f4f1f2078698bda41efd4e4a6b67517c0fd65d2fa6ca7b66d2d0f37b269e15c89380d5893e2d82dab16d8d6eb8483fb6b53f7e
7
- data.tar.gz: deab504096d53ad531ccbfc3383ae485f3e94637b1046dc773227a92cd489c5fa7aa18cdd07490e4310bc88b0f9952d9187150a9d712efde189c8da40c0c9b94
6
+ metadata.gz: 382eebc8bc843663de3f1c6bab9b907d8bae95c52f2f7011d960b947bc294d23b12566e8fb72cbae5f84cb025c09daebd9a0cb7e53dc202d6b503886d8b3f568
7
+ data.tar.gz: 92a5b7a26d89de3a0294155460577aef2e60b6e167e1258faab18e6bd6ba987159e34c1ef2cf194c91f3fe755f8c717e028089824f25f5238a7cd3ec1ed0c4d9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.354
1
+ 1.0.355
@@ -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
 
@@ -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: 需要查询的域名
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.355
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-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common