tencentcloud-sdk-waf 3.0.674 → 3.0.676

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: 9ab5051dc829801368053e10e5d923d901491743
4
- data.tar.gz: 06864f04f3cf0ee5b0f56005e89ea86381f421b4
3
+ metadata.gz: 4d4eb95bede19cb1c41ce90fae3c9ce5b20bb7c0
4
+ data.tar.gz: ac78cc1cfb2e4e0e9159fc8d89e7e033385bd4ab
5
5
  SHA512:
6
- metadata.gz: 411045b575f2d9b01c7d153f435892f1bc34f0d53cc757b88798577da37d2cb4d71b389465cd6de4fee3dbd5cda7b528b017969df270288c2998a583a4d436ac
7
- data.tar.gz: d6eede14ee78007fb25d6c088b9a9015455e3fae014222bcf39ad4d77686ec6cabf3e92767bb3c0cf79d8f1ad0a72d220f5098dd1bf168aad1ce89cbf415e4ac
6
+ metadata.gz: 6b95e770548235026c3f17ab3fd2f819f728e8add88bff2a5c881284ff97a56eec83fa8503564b5596f014b3fab2694d405bf0d697e7b453f66b7cce15e553f6
7
+ data.tar.gz: 416d8405bab337e6367d7fd77510de01b73766a1e03557671b4c8b41989e4b6c5915035a732d1e384c43f8defab3491c0966ddf4f921b27a7a97505f25e04efe
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.674
1
+ 3.0.676
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 供用户控制台调用,增加Tiga规则引擎白名单。
81
+
82
+ # @param request: Request instance for AddAttackWhiteRule.
83
+ # @type request: :class:`Tencentcloud::waf::V20180125::AddAttackWhiteRuleRequest`
84
+ # @rtype: :class:`Tencentcloud::waf::V20180125::AddAttackWhiteRuleResponse`
85
+ def AddAttackWhiteRule(request)
86
+ body = send_request('AddAttackWhiteRule', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = AddAttackWhiteRuleResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 增加访问控制(自定义策略)
81
105
 
82
106
  # @param request: Request instance for AddCustomRule.
@@ -317,6 +341,30 @@ module TencentCloud
317
341
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
342
  end
319
343
 
344
+ # 供用户控制台调用,删除Tiga规则引擎白名单。
345
+
346
+ # @param request: Request instance for DeleteAttackWhiteRule.
347
+ # @type request: :class:`Tencentcloud::waf::V20180125::DeleteAttackWhiteRuleRequest`
348
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DeleteAttackWhiteRuleResponse`
349
+ def DeleteAttackWhiteRule(request)
350
+ body = send_request('DeleteAttackWhiteRule', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DeleteAttackWhiteRuleResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
320
368
  # Waf CC V2 Delete接口
321
369
 
322
370
  # @param request: Request instance for DeleteCCRule.
@@ -752,6 +800,30 @@ module TencentCloud
752
800
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
753
801
  end
754
802
 
803
+ # 获取用户规则白名单列表
804
+
805
+ # @param request: Request instance for DescribeAttackWhiteRule.
806
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeAttackWhiteRuleRequest`
807
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeAttackWhiteRuleResponse`
808
+ def DescribeAttackWhiteRule(request)
809
+ body = send_request('DescribeAttackWhiteRule', request.serialize)
810
+ response = JSON.parse(body)
811
+ if response['Response'].key?('Error') == false
812
+ model = DescribeAttackWhiteRuleResponse.new
813
+ model.deserialize(response['Response'])
814
+ model
815
+ else
816
+ code = response['Response']['Error']['Code']
817
+ message = response['Response']['Error']['Message']
818
+ reqid = response['Response']['RequestId']
819
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
820
+ end
821
+ rescue TencentCloud::Common::TencentCloudSDKException => e
822
+ raise e
823
+ rescue StandardError => e
824
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
825
+ end
826
+
755
827
  # 接口已废弃
756
828
 
757
829
  # 描述WAF自动封禁IP详情,对齐自动封堵状态
@@ -1306,6 +1378,30 @@ module TencentCloud
1306
1378
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1307
1379
  end
1308
1380
 
1381
+ # 查看防护对象列表
1382
+
1383
+ # @param request: Request instance for DescribeObjects.
1384
+ # @type request: :class:`Tencentcloud::waf::V20180125::DescribeObjectsRequest`
1385
+ # @rtype: :class:`Tencentcloud::waf::V20180125::DescribeObjectsResponse`
1386
+ def DescribeObjects(request)
1387
+ body = send_request('DescribeObjects', request.serialize)
1388
+ response = JSON.parse(body)
1389
+ if response['Response'].key?('Error') == false
1390
+ model = DescribeObjectsResponse.new
1391
+ model.deserialize(response['Response'])
1392
+ model
1393
+ else
1394
+ code = response['Response']['Error']['Code']
1395
+ message = response['Response']['Error']['Message']
1396
+ reqid = response['Response']['RequestId']
1397
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1398
+ end
1399
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1400
+ raise e
1401
+ rescue StandardError => e
1402
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1403
+ end
1404
+
1309
1405
  # 查询业务和攻击概要趋势
1310
1406
 
1311
1407
  # @param request: Request instance for DescribePeakPoints.
@@ -2004,6 +2100,30 @@ module TencentCloud
2004
2100
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2005
2101
  end
2006
2102
 
2103
+ # 供用户控制台调用,修改Tiga规则引擎白名单。
2104
+
2105
+ # @param request: Request instance for ModifyAttackWhiteRule.
2106
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyAttackWhiteRuleRequest`
2107
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyAttackWhiteRuleResponse`
2108
+ def ModifyAttackWhiteRule(request)
2109
+ body = send_request('ModifyAttackWhiteRule', request.serialize)
2110
+ response = JSON.parse(body)
2111
+ if response['Response'].key?('Error') == false
2112
+ model = ModifyAttackWhiteRuleResponse.new
2113
+ model.deserialize(response['Response'])
2114
+ model
2115
+ else
2116
+ code = response['Response']['Error']['Code']
2117
+ message = response['Response']['Error']['Message']
2118
+ reqid = response['Response']['RequestId']
2119
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2120
+ end
2121
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2122
+ raise e
2123
+ rescue StandardError => e
2124
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2125
+ end
2126
+
2007
2127
  # Bot_V2 bot总开关更新
2008
2128
 
2009
2129
  # @param request: Request instance for ModifyBotStatus.
@@ -2413,6 +2533,30 @@ module TencentCloud
2413
2533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2414
2534
  end
2415
2535
 
2536
+ # 修改防护对象
2537
+
2538
+ # @param request: Request instance for ModifyObject.
2539
+ # @type request: :class:`Tencentcloud::waf::V20180125::ModifyObjectRequest`
2540
+ # @rtype: :class:`Tencentcloud::waf::V20180125::ModifyObjectResponse`
2541
+ def ModifyObject(request)
2542
+ body = send_request('ModifyObject', request.serialize)
2543
+ response = JSON.parse(body)
2544
+ if response['Response'].key?('Error') == false
2545
+ model = ModifyObjectResponse.new
2546
+ model.deserialize(response['Response'])
2547
+ model
2548
+ else
2549
+ code = response['Response']['Error']['Code']
2550
+ message = response['Response']['Error']['Message']
2551
+ reqid = response['Response']['RequestId']
2552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2553
+ end
2554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2555
+ raise e
2556
+ rescue StandardError => e
2557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2558
+ end
2559
+
2416
2560
  # waf斯巴达-waf开关
2417
2561
 
2418
2562
  # @param request: Request instance for ModifyProtectionStatus.
@@ -426,6 +426,65 @@ module TencentCloud
426
426
  end
427
427
  end
428
428
 
429
+ # AddAttackWhiteRule请求参数结构体
430
+ class AddAttackWhiteRuleRequest < TencentCloud::Common::AbstractModel
431
+ # @param Domain: 域名
432
+ # @type Domain: String
433
+ # @param SignatureId: 规则Id
434
+ # @type SignatureId: String
435
+ # @param Status: 规则状态
436
+ # @type Status: Integer
437
+ # @param Rules: 匹配规则项列表
438
+ # @type Rules: Array
439
+ # @param RuleId: 规则序号
440
+ # @type RuleId: Integer
441
+
442
+ attr_accessor :Domain, :SignatureId, :Status, :Rules, :RuleId
443
+
444
+ def initialize(domain=nil, signatureid=nil, status=nil, rules=nil, ruleid=nil)
445
+ @Domain = domain
446
+ @SignatureId = signatureid
447
+ @Status = status
448
+ @Rules = rules
449
+ @RuleId = ruleid
450
+ end
451
+
452
+ def deserialize(params)
453
+ @Domain = params['Domain']
454
+ @SignatureId = params['SignatureId']
455
+ @Status = params['Status']
456
+ unless params['Rules'].nil?
457
+ @Rules = []
458
+ params['Rules'].each do |i|
459
+ userwhiteruleitem_tmp = UserWhiteRuleItem.new
460
+ userwhiteruleitem_tmp.deserialize(i)
461
+ @Rules << userwhiteruleitem_tmp
462
+ end
463
+ end
464
+ @RuleId = params['RuleId']
465
+ end
466
+ end
467
+
468
+ # AddAttackWhiteRule返回参数结构体
469
+ class AddAttackWhiteRuleResponse < TencentCloud::Common::AbstractModel
470
+ # @param RuleId: 规则总数
471
+ # @type RuleId: Integer
472
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
473
+ # @type RequestId: String
474
+
475
+ attr_accessor :RuleId, :RequestId
476
+
477
+ def initialize(ruleid=nil, requestid=nil)
478
+ @RuleId = ruleid
479
+ @RequestId = requestid
480
+ end
481
+
482
+ def deserialize(params)
483
+ @RuleId = params['RuleId']
484
+ @RequestId = params['RequestId']
485
+ end
486
+ end
487
+
429
488
  # AddCustomRule请求参数结构体
430
489
  class AddCustomRuleRequest < TencentCloud::Common::AbstractModel
431
490
  # @param Name: 规则名称
@@ -1461,6 +1520,78 @@ module TencentCloud
1461
1520
  end
1462
1521
  end
1463
1522
 
1523
+ # Clb类型防护对象
1524
+ class ClbObject < TencentCloud::Common::AbstractModel
1525
+ # @param ObjectId: 对象ID
1526
+ # @type ObjectId: String
1527
+ # @param InstanceId: 实例ID
1528
+ # @type InstanceId: String
1529
+ # @param InstanceName: 实例名称
1530
+ # @type InstanceName: String
1531
+ # @param PreciseDomains: 精准域名列表
1532
+ # @type PreciseDomains: Array
1533
+ # @param Status: WAF功能开关状态,0关闭1开启
1534
+ # @type Status: Integer
1535
+ # @param ClsStatus: WAF日志开关状态,0关闭1开启
1536
+ # @type ClsStatus: Integer
1537
+ # @param VirtualDomain: CLB对象对应的虚拟域名
1538
+ # @type VirtualDomain: String
1539
+ # @param ObjectName: 对象名称
1540
+ # @type ObjectName: String
1541
+ # @param PublicIp: 公网地址
1542
+ # @type PublicIp: Array
1543
+ # @param PrivateIp: 内网地址
1544
+ # @type PrivateIp: Array
1545
+ # @param VpcName: VPC名称
1546
+ # @type VpcName: String
1547
+ # @param Vpc: VPC ID
1548
+ # @type Vpc: String
1549
+ # @param InstanceLevel: waf实例等级,如果未绑定实例为0
1550
+ # @type InstanceLevel: Integer
1551
+ # @param PostCLSStatus: clb投递开关
1552
+ # @type PostCLSStatus: Integer
1553
+ # @param PostCKafkaStatus: kafka投递开关
1554
+ # @type PostCKafkaStatus: Integer
1555
+
1556
+ attr_accessor :ObjectId, :InstanceId, :InstanceName, :PreciseDomains, :Status, :ClsStatus, :VirtualDomain, :ObjectName, :PublicIp, :PrivateIp, :VpcName, :Vpc, :InstanceLevel, :PostCLSStatus, :PostCKafkaStatus
1557
+
1558
+ def initialize(objectid=nil, instanceid=nil, instancename=nil, precisedomains=nil, status=nil, clsstatus=nil, virtualdomain=nil, objectname=nil, publicip=nil, privateip=nil, vpcname=nil, vpc=nil, instancelevel=nil, postclsstatus=nil, postckafkastatus=nil)
1559
+ @ObjectId = objectid
1560
+ @InstanceId = instanceid
1561
+ @InstanceName = instancename
1562
+ @PreciseDomains = precisedomains
1563
+ @Status = status
1564
+ @ClsStatus = clsstatus
1565
+ @VirtualDomain = virtualdomain
1566
+ @ObjectName = objectname
1567
+ @PublicIp = publicip
1568
+ @PrivateIp = privateip
1569
+ @VpcName = vpcname
1570
+ @Vpc = vpc
1571
+ @InstanceLevel = instancelevel
1572
+ @PostCLSStatus = postclsstatus
1573
+ @PostCKafkaStatus = postckafkastatus
1574
+ end
1575
+
1576
+ def deserialize(params)
1577
+ @ObjectId = params['ObjectId']
1578
+ @InstanceId = params['InstanceId']
1579
+ @InstanceName = params['InstanceName']
1580
+ @PreciseDomains = params['PreciseDomains']
1581
+ @Status = params['Status']
1582
+ @ClsStatus = params['ClsStatus']
1583
+ @VirtualDomain = params['VirtualDomain']
1584
+ @ObjectName = params['ObjectName']
1585
+ @PublicIp = params['PublicIp']
1586
+ @PrivateIp = params['PrivateIp']
1587
+ @VpcName = params['VpcName']
1588
+ @Vpc = params['Vpc']
1589
+ @InstanceLevel = params['InstanceLevel']
1590
+ @PostCLSStatus = params['PostCLSStatus']
1591
+ @PostCKafkaStatus = params['PostCKafkaStatus']
1592
+ end
1593
+ end
1594
+
1464
1595
  # CreateAccessExport请求参数结构体
1465
1596
  class CreateAccessExportRequest < TencentCloud::Common::AbstractModel
1466
1597
  # @param TopicId: 客户要查询的日志主题ID,每个客户都有对应的一个主题
@@ -1724,6 +1855,47 @@ module TencentCloud
1724
1855
  end
1725
1856
  end
1726
1857
 
1858
+ # DeleteAttackWhiteRule请求参数结构体
1859
+ class DeleteAttackWhiteRuleRequest < TencentCloud::Common::AbstractModel
1860
+ # @param Ids: 规则序号组
1861
+ # @type Ids: Array
1862
+ # @param Domain: 用户域名
1863
+ # @type Domain: String
1864
+
1865
+ attr_accessor :Ids, :Domain
1866
+
1867
+ def initialize(ids=nil, domain=nil)
1868
+ @Ids = ids
1869
+ @Domain = domain
1870
+ end
1871
+
1872
+ def deserialize(params)
1873
+ @Ids = params['Ids']
1874
+ @Domain = params['Domain']
1875
+ end
1876
+ end
1877
+
1878
+ # DeleteAttackWhiteRule返回参数结构体
1879
+ class DeleteAttackWhiteRuleResponse < TencentCloud::Common::AbstractModel
1880
+ # @param FailIds: 删除失败的规则序号组
1881
+ # 注意:此字段可能返回 null,表示取不到有效值。
1882
+ # @type FailIds: Array
1883
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1884
+ # @type RequestId: String
1885
+
1886
+ attr_accessor :FailIds, :RequestId
1887
+
1888
+ def initialize(failids=nil, requestid=nil)
1889
+ @FailIds = failids
1890
+ @RequestId = requestid
1891
+ end
1892
+
1893
+ def deserialize(params)
1894
+ @FailIds = params['FailIds']
1895
+ @RequestId = params['RequestId']
1896
+ end
1897
+ end
1898
+
1727
1899
  # DeleteCCRule请求参数结构体
1728
1900
  class DeleteCCRuleRequest < TencentCloud::Common::AbstractModel
1729
1901
  # @param Domain: 域名
@@ -2788,6 +2960,81 @@ module TencentCloud
2788
2960
  end
2789
2961
  end
2790
2962
 
2963
+ # DescribeAttackWhiteRule请求参数结构体
2964
+ class DescribeAttackWhiteRuleRequest < TencentCloud::Common::AbstractModel
2965
+ # @param Domain: 需要查询的域名
2966
+ # @type Domain: String
2967
+ # @param Offset: 分页
2968
+ # @type Offset: Integer
2969
+ # @param Limit: 每页容量
2970
+ # @type Limit: Integer
2971
+ # @param By: 排序字段,支持user_id, signature_id, modify_time
2972
+ # @type By: String
2973
+ # @param Order: 排序方式
2974
+ # @type Order: String
2975
+ # @param Filters: 筛选条件,支持SignatureId, MatchContent
2976
+ # @type Filters: Array
2977
+
2978
+ attr_accessor :Domain, :Offset, :Limit, :By, :Order, :Filters
2979
+
2980
+ def initialize(domain=nil, offset=nil, limit=nil, by=nil, order=nil, filters=nil)
2981
+ @Domain = domain
2982
+ @Offset = offset
2983
+ @Limit = limit
2984
+ @By = by
2985
+ @Order = order
2986
+ @Filters = filters
2987
+ end
2988
+
2989
+ def deserialize(params)
2990
+ @Domain = params['Domain']
2991
+ @Offset = params['Offset']
2992
+ @Limit = params['Limit']
2993
+ @By = params['By']
2994
+ @Order = params['Order']
2995
+ unless params['Filters'].nil?
2996
+ @Filters = []
2997
+ params['Filters'].each do |i|
2998
+ filtersitemnew_tmp = FiltersItemNew.new
2999
+ filtersitemnew_tmp.deserialize(i)
3000
+ @Filters << filtersitemnew_tmp
3001
+ end
3002
+ end
3003
+ end
3004
+ end
3005
+
3006
+ # DescribeAttackWhiteRule返回参数结构体
3007
+ class DescribeAttackWhiteRuleResponse < TencentCloud::Common::AbstractModel
3008
+ # @param Total: 规则总数
3009
+ # @type Total: Integer
3010
+ # @param List: 规则白名单列表
3011
+ # 注意:此字段可能返回 null,表示取不到有效值。
3012
+ # @type List: Array
3013
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3014
+ # @type RequestId: String
3015
+
3016
+ attr_accessor :Total, :List, :RequestId
3017
+
3018
+ def initialize(total=nil, list=nil, requestid=nil)
3019
+ @Total = total
3020
+ @List = list
3021
+ @RequestId = requestid
3022
+ end
3023
+
3024
+ def deserialize(params)
3025
+ @Total = params['Total']
3026
+ unless params['List'].nil?
3027
+ @List = []
3028
+ params['List'].each do |i|
3029
+ userwhiterule_tmp = UserWhiteRule.new
3030
+ userwhiterule_tmp.deserialize(i)
3031
+ @List << userwhiterule_tmp
3032
+ end
3033
+ end
3034
+ @RequestId = params['RequestId']
3035
+ end
3036
+ end
3037
+
2791
3038
  # DescribeAutoDenyIP请求参数结构体
2792
3039
  class DescribeAutoDenyIPRequest < TencentCloud::Common::AbstractModel
2793
3040
  # @param Domain: 域名
@@ -4205,6 +4452,62 @@ module TencentCloud
4205
4452
  end
4206
4453
  end
4207
4454
 
4455
+ # DescribeObjects请求参数结构体
4456
+ class DescribeObjectsRequest < TencentCloud::Common::AbstractModel
4457
+ # @param Filters: 支持的过滤器:
4458
+ # ObjectId: clb实例ID
4459
+ # VIP: clb实例的公网IP
4460
+ # InstanceId: waf实例ID
4461
+ # Domain: 精准域名
4462
+ # Status: waf防护开关状态: 0关闭,1开启
4463
+ # ClsStatus: waf日志开关: 0关闭,1开启
4464
+ # @type Filters: Array
4465
+
4466
+ attr_accessor :Filters
4467
+
4468
+ def initialize(filters=nil)
4469
+ @Filters = filters
4470
+ end
4471
+
4472
+ def deserialize(params)
4473
+ unless params['Filters'].nil?
4474
+ @Filters = []
4475
+ params['Filters'].each do |i|
4476
+ filtersitemnew_tmp = FiltersItemNew.new
4477
+ filtersitemnew_tmp.deserialize(i)
4478
+ @Filters << filtersitemnew_tmp
4479
+ end
4480
+ end
4481
+ end
4482
+ end
4483
+
4484
+ # DescribeObjects返回参数结构体
4485
+ class DescribeObjectsResponse < TencentCloud::Common::AbstractModel
4486
+ # @param ClbObjects: 对象列表
4487
+ # @type ClbObjects: Array
4488
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4489
+ # @type RequestId: String
4490
+
4491
+ attr_accessor :ClbObjects, :RequestId
4492
+
4493
+ def initialize(clbobjects=nil, requestid=nil)
4494
+ @ClbObjects = clbobjects
4495
+ @RequestId = requestid
4496
+ end
4497
+
4498
+ def deserialize(params)
4499
+ unless params['ClbObjects'].nil?
4500
+ @ClbObjects = []
4501
+ params['ClbObjects'].each do |i|
4502
+ clbobject_tmp = ClbObject.new
4503
+ clbobject_tmp.deserialize(i)
4504
+ @ClbObjects << clbobject_tmp
4505
+ end
4506
+ end
4507
+ @RequestId = params['RequestId']
4508
+ end
4509
+ end
4510
+
4208
4511
  # DescribePeakPoints请求参数结构体
4209
4512
  class DescribePeakPointsRequest < TencentCloud::Common::AbstractModel
4210
4513
  # @param FromTime: 查询起始时间
@@ -7120,6 +7423,65 @@ module TencentCloud
7120
7423
  end
7121
7424
  end
7122
7425
 
7426
+ # ModifyAttackWhiteRule请求参数结构体
7427
+ class ModifyAttackWhiteRuleRequest < TencentCloud::Common::AbstractModel
7428
+ # @param RuleId: 规则序号
7429
+ # @type RuleId: Integer
7430
+ # @param Domain: 域名
7431
+ # @type Domain: String
7432
+ # @param SignatureId: 规则Id
7433
+ # @type SignatureId: String
7434
+ # @param Status: 规则状态
7435
+ # @type Status: Integer
7436
+ # @param Rules: 匹配规则项列表
7437
+ # @type Rules: Array
7438
+
7439
+ attr_accessor :RuleId, :Domain, :SignatureId, :Status, :Rules
7440
+
7441
+ def initialize(ruleid=nil, domain=nil, signatureid=nil, status=nil, rules=nil)
7442
+ @RuleId = ruleid
7443
+ @Domain = domain
7444
+ @SignatureId = signatureid
7445
+ @Status = status
7446
+ @Rules = rules
7447
+ end
7448
+
7449
+ def deserialize(params)
7450
+ @RuleId = params['RuleId']
7451
+ @Domain = params['Domain']
7452
+ @SignatureId = params['SignatureId']
7453
+ @Status = params['Status']
7454
+ unless params['Rules'].nil?
7455
+ @Rules = []
7456
+ params['Rules'].each do |i|
7457
+ userwhiteruleitem_tmp = UserWhiteRuleItem.new
7458
+ userwhiteruleitem_tmp.deserialize(i)
7459
+ @Rules << userwhiteruleitem_tmp
7460
+ end
7461
+ end
7462
+ end
7463
+ end
7464
+
7465
+ # ModifyAttackWhiteRule返回参数结构体
7466
+ class ModifyAttackWhiteRuleResponse < TencentCloud::Common::AbstractModel
7467
+ # @param RuleId: 规则总数
7468
+ # @type RuleId: Integer
7469
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7470
+ # @type RequestId: String
7471
+
7472
+ attr_accessor :RuleId, :RequestId
7473
+
7474
+ def initialize(ruleid=nil, requestid=nil)
7475
+ @RuleId = ruleid
7476
+ @RequestId = requestid
7477
+ end
7478
+
7479
+ def deserialize(params)
7480
+ @RuleId = params['RuleId']
7481
+ @RequestId = params['RequestId']
7482
+ end
7483
+ end
7484
+
7123
7485
  # ModifyBotStatus请求参数结构体
7124
7486
  class ModifyBotStatusRequest < TencentCloud::Common::AbstractModel
7125
7487
  # @param Domain: 域名
@@ -7947,6 +8309,50 @@ module TencentCloud
7947
8309
  end
7948
8310
  end
7949
8311
 
8312
+ # ModifyObject请求参数结构体
8313
+ class ModifyObjectRequest < TencentCloud::Common::AbstractModel
8314
+ # @param ObjectId: 修改对象标识
8315
+ # @type ObjectId: String
8316
+ # @param OpType: 改动作类型:Status修改开关,InstanceId绑定实例
8317
+ # @type OpType: String
8318
+ # @param Status: 新的Waf开关状态,如果和已有状态相同认为修改成功
8319
+ # @type Status: Integer
8320
+ # @param InstanceId: 新的实例ID,如果和已绑定的实例相同认为修改成功
8321
+ # @type InstanceId: String
8322
+
8323
+ attr_accessor :ObjectId, :OpType, :Status, :InstanceId
8324
+
8325
+ def initialize(objectid=nil, optype=nil, status=nil, instanceid=nil)
8326
+ @ObjectId = objectid
8327
+ @OpType = optype
8328
+ @Status = status
8329
+ @InstanceId = instanceid
8330
+ end
8331
+
8332
+ def deserialize(params)
8333
+ @ObjectId = params['ObjectId']
8334
+ @OpType = params['OpType']
8335
+ @Status = params['Status']
8336
+ @InstanceId = params['InstanceId']
8337
+ end
8338
+ end
8339
+
8340
+ # ModifyObject返回参数结构体
8341
+ class ModifyObjectResponse < TencentCloud::Common::AbstractModel
8342
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8343
+ # @type RequestId: String
8344
+
8345
+ attr_accessor :RequestId
8346
+
8347
+ def initialize(requestid=nil)
8348
+ @RequestId = requestid
8349
+ end
8350
+
8351
+ def deserialize(params)
8352
+ @RequestId = params['RequestId']
8353
+ end
8354
+ end
8355
+
7950
8356
  # ModifyProtectionStatus请求参数结构体
7951
8357
  class ModifyProtectionStatusRequest < TencentCloud::Common::AbstractModel
7952
8358
  # @param Domain: 域名
@@ -9863,6 +10269,74 @@ module TencentCloud
9863
10269
  end
9864
10270
  end
9865
10271
 
10272
+ # 用户规则白名单
10273
+ class UserWhiteRule < TencentCloud::Common::AbstractModel
10274
+ # @param WhiteRuleId: 白名单的id
10275
+ # @type WhiteRuleId: Integer
10276
+ # @param SignatureId: 规则id
10277
+ # @type SignatureId: String
10278
+ # @param Status: 状态
10279
+ # @type Status: Integer
10280
+ # @param MatchField: 匹配域
10281
+ # @type MatchField: String
10282
+ # @param MatchMethod: 匹配方法
10283
+ # @type MatchMethod: String
10284
+ # @param MatchContent: 匹配内容
10285
+ # @type MatchContent: String
10286
+ # @param CreateTime: 创建时间
10287
+ # @type CreateTime: String
10288
+ # @param ModifyTime: 修改时间
10289
+ # @type ModifyTime: String
10290
+
10291
+ attr_accessor :WhiteRuleId, :SignatureId, :Status, :MatchField, :MatchMethod, :MatchContent, :CreateTime, :ModifyTime
10292
+
10293
+ def initialize(whiteruleid=nil, signatureid=nil, status=nil, matchfield=nil, matchmethod=nil, matchcontent=nil, createtime=nil, modifytime=nil)
10294
+ @WhiteRuleId = whiteruleid
10295
+ @SignatureId = signatureid
10296
+ @Status = status
10297
+ @MatchField = matchfield
10298
+ @MatchMethod = matchmethod
10299
+ @MatchContent = matchcontent
10300
+ @CreateTime = createtime
10301
+ @ModifyTime = modifytime
10302
+ end
10303
+
10304
+ def deserialize(params)
10305
+ @WhiteRuleId = params['WhiteRuleId']
10306
+ @SignatureId = params['SignatureId']
10307
+ @Status = params['Status']
10308
+ @MatchField = params['MatchField']
10309
+ @MatchMethod = params['MatchMethod']
10310
+ @MatchContent = params['MatchContent']
10311
+ @CreateTime = params['CreateTime']
10312
+ @ModifyTime = params['ModifyTime']
10313
+ end
10314
+ end
10315
+
10316
+ # 用户规则白名单规则子项
10317
+ class UserWhiteRuleItem < TencentCloud::Common::AbstractModel
10318
+ # @param MatchField: 匹配域
10319
+ # @type MatchField: String
10320
+ # @param MatchMethod: 匹配方法
10321
+ # @type MatchMethod: String
10322
+ # @param MatchContent: 匹配内容
10323
+ # @type MatchContent: String
10324
+
10325
+ attr_accessor :MatchField, :MatchMethod, :MatchContent
10326
+
10327
+ def initialize(matchfield=nil, matchmethod=nil, matchcontent=nil)
10328
+ @MatchField = matchfield
10329
+ @MatchMethod = matchmethod
10330
+ @MatchContent = matchcontent
10331
+ end
10332
+
10333
+ def deserialize(params)
10334
+ @MatchField = params['MatchField']
10335
+ @MatchMethod = params['MatchMethod']
10336
+ @MatchContent = params['MatchContent']
10337
+ end
10338
+ end
10339
+
9866
10340
  # Vip信息
9867
10341
  class VipInfo < TencentCloud::Common::AbstractModel
9868
10342
  # @param Vip: Virtual IP
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.674
4
+ version: 3.0.676
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-10-11 00:00:00.000000000 Z
11
+ date: 2023-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-waf.rb
37
- - lib/v20180125/models.rb
38
36
  - lib/v20180125/client.rb
37
+ - lib/v20180125/models.rb
38
+ - lib/tencentcloud-sdk-waf.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: